a {
    text-decoration: none;
    color: inherit;
}

*{
    margin: 0px;
    padding: 0px;
}

body {
    font-family: Roboto;
    /* background-color: rgb(15, 15, 15); */
    color: #183A90;
    text-align: center;
    overflow: auto;
    height: 100%;
}

#galery {
    background-image: url('../event_assets/banner_images/wallpaper_gallery.jpg');
    background-position: center;


}

img {
    max-width: 100vw;
    object-fit: contain;
}

/* ------------------------------- page de connexion ------------------- */

#form_container {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100vw; height: 100vh;
}

#form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

form > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #2B4E9D;
    width: 100%;
    margin: 1rem 0rem;
}

label {
    padding: 1rem 0rem;
}

#form_block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

input {
    font-size: 20px;
    width: 100%;
    border: none;
    border-radius: 10px;
    text-align: center;
    padding: 0.5rem;
    box-shadow: 0px 0px 9px -3px #393869;
}

input::placeholder {
    color: #7f8798;
}

input[type="submit"] {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 7px 7px 18px -10px #393869;
    background-color: #2B4E9D;
    color: aliceblue;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #2b4d9df6;
    box-shadow: 1px 5px 10px -10px #393869;
}

#index {
    background-color: white;
    background-image: url('');
}

#pb {
    width: 300px;
}

/*----------------------------------loader + top banner----------------------------------------------*/

#loader {
    position : fixed;
    z-index: 10;
    background-color: white;
    top : 0px;
    left : 0px;
    height : 100%;
    width : 100%;
    overflow-x: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#loader_logo {
    height: 50vh;
}

#loading {
    animation-name: spin;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#top-banner {
    position: static;
    top: 0px;
    width: 100%;
    z-index: 1;
}

/*----------------------------header-----------------------------*/

header {
    position: sticky;
    top: 0;
    z-index: 4;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    background-color: white;
    box-shadow: 0px 0px 0px -2px rgba(0,0,0,0.63);
}

nav > ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    list-style: none;
    margin: 0;
}

ul > a {
    padding: 0.5rem;
    margin: 0 1rem;
    text-transform: uppercase;
}

ul > a:hover {
    text-decoration: underline;
}

#title-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

#title-banner > * {
    padding: 0.5em;
}

#title-banner_logo {
    max-width: 30vw;
}

#title-banner_text {
    font-size: 25px;
    white-space: nowrap;
}

#onglet-deconnexion {
    color: red;
}

/*----------------------------------accueil gallerie--------------------------------------*/

#gallery_container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    background-color: rgba(200, 200, 200, 0.8);
    border-radius: 1rem;
    margin: 0rem 10rem;
    padding: 0.5rem;
}

.img_before {
    width: 450px;
    height: 300px;
    margin: 0.6vw;
    cursor: pointer;
    box-shadow: 2px 2px 6px 2px grey;
    transition: 0.3s;
    animation-name: zoom;
    animation-duration: 1s;
}

.img_before:hover {
    transform: scale(1.075);
    box-shadow: 3px 3px 9px 3px grey;
}

/* .reveal {
    opacity: 0;
    transform: translateY(-30px);
} */

/* .reveal_visible {
    opacity: 1;
    transform: translateY(0);
    transition: 0.75s cubic-bezier(.5, 0, 0, 1);
} */

/*------------------------------modal---------------------------------------------------------------------*/

#main-zoomed-image {
    position: fixed;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: none;
    transition: all 1s;
}

#background_black {
    position: fixed;
    display: none;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    z-index: 7;
    background-color: black;
    transition: all 0.33s;
}

.banner-top {
    max-height: 10vh;
    max-width: 100vw;
}

#zoomed-image-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.zoomed-image-and-socials-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#zoomed-image {
    max-height: 90vh;
    max-width: 90vw;
    transition: all 0.5s;
}

#zoomed-image-container {
    position: relative;
}

#zoomed-image:hover {
    cursor: pointer;
    transform: scale(0.95);
}


.socials-list {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-width: 100vw;
}

.social {
    padding: 0.5vw;
    cursor: pointer;
    transition: all 1s;
}

.social:hover {
    border-radius: 25rem;
    transform: scale(0.9);
}

.social > img {
    height: 3vw;
    width: 3vw;
    min-width: 3rem;
    min-height: 3rem;
}

/*-----------------------barre des reseaux sociaux pour photo horizontale-------------------------------*/

#social_h{
    order: 2;
    width: 100vw; height: auto;
    max-width: 100%; max-height: 100%;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

#social_h>div>a>img {
    height: 5vw;
    width: 5vw;
}

#social_h>div>a>img:hover {
    transform: scale(1.1);
}

#mail_icon {
    margin-top: 10vw;
}

/*-----------------------barre des reseaux sociaux pour photo verticale-------------------------------*/

#social_v{
    order: 2;
    display: flex;
    flex-direction: column;
    width: 5vh;
    height: auto;
    padding-top: 4.9vh;
    margin-left: -3vh;
    padding-right: 3vh;
}

#social_v>img, #social_v>a>img {
    height: 9.9vh;
    width: 9.9vh;
}

#social_v>a {
    margin-bottom: 5vh;
}

#mail_icon_v {
    margin-top: 5vh;
    position: relative;
    top: 2vh;
}

#social_v>img:hover, #social_v>a>img:hover {
    transform: scale(1.1);
}

/* -------------------------------submit button -------------------------*/



/* ------------------------------- mobile ------------------------------ */

@media screen and (min-width: 0px) and (max-width: 1204px) {
    .img_before {
        height: fit-content;
        max-width: 45vw;
    }

    #gallery_container {
        margin: 0rem;
        padding: 0;
    }

    #title-banner_logo {
        max-width: 20vw;
    }
    
    #title-banner_text {
        font-size: 1rem;
    }

    ul > a {
        margin: 0rem;
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .zoomed-image-and-socials-container {
        flex-direction: column;
    }

    .socials-list {
        flex-direction: row;
        gap: 3vw;
    }

    #gallery_container {
        background-color: white;
    }

    nav > ul {
        white-space: nowrap;
        font-size: 0.5rem;
    }

    .img_before {
        height: fit-content;
        max-width: 45vw;
    }

    #gallery_container{
        margin: 0rem;
        padding: 0;
    }

    #title-banner {
        width: 100%;
        justify-content: space-evenly;
    }

}

/*---------------------------------------animations----------------------------------------------------*/

@keyframes zoom {
     0% {transform: scale(1);
        opacity: 0.3;}
     30% {transform: scale(0.8);
        opacity: 0.6;}
     60% {transform: scale(1.1);
        opacity: 0.9;}
     100% {transform: scale(1);
        opacity: 1;}
}

@keyframes zoomOut {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 100%;}
    100% {transform: translate(-50%, -50%) scale(0);
    opacity: 0%;}
}

@keyframes zoomIn {
    0% {transform: translate(-50%, -50%) scale(0);}
    100% {transform: translate(-50%, -50%) scale(1);}
}

@keyframes vibration {
    0% {transform: rotate(0deg);}
    50% {transform: rotate(10deg);}
    100% {transform: rotate(-10deg);}
}

@keyframes bounceOut {
    0% {
       transform: scale(1);
    }
    25% {
       transform: scale(.95);
    }
    50% {
       opacity: 1;
       transform: scale(1.1);
    }
    100% {
       opacity: 0;
       transform: scale(.3);
    }
 }

@keyframes disapear {
     50% {
        opacity: 1;
     }
     100% {
        opacity: 0;
     }
}

@keyframes spin {
    100% {transform: rotate(360deg);}
}

@keyframes spinAndBounceOut {
    0% {
        transform: scale(1);
        transform: rotate(90deg);
     }
     25% {
        transform: scale(.95);
        transform: rotate(180deg);
     }
     50% {
        opacity: 1;
        transform: scale(1.1);
        transform: rotate(270deg);
     }
     100% {
        opacity: 0;
        transform: scale(.3);
        transform: rotate(360deg);
     }
}