
/* Main */

html{
    scroll-behavior: smooth;
    transition: .5s;
}

main{
    width: 90%;
    margin: 0 auto 60px auto;
}

h1{
    text-align: center;
}

#bck1{
    background-image: url(../image/background.jpg);
}

#qui_suis_je > h2{
    text-align: center;
    padding-top: 1%;
}

#devise{
    text-align: center;
}

.parallax{
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 90%;
    min-height: 500px;
}

#back_collé{
    display: flex;
}

#j_c_photos{
    display: flex;
    text-align: center;
    align-items: center;
}

#j_c_dessine, #j_c_presse{
    margin: 0 auto;
    width: 50%;
}

#j_c_presse > img{
    width:60%;
    height: 40%;
    border: black solid 2px;
}


#j_c_dessine > img{
    width:80%;
    height: 40%;
    border: black solid 2px;
}

#qui_suis_je_background{
    background-color:lightgray ;
    font-size: 1.5em;
    min-height: 300px;
    margin: 0 auto;
}

#qui_suis_je{
    padding: 0 5%;
}

#qui_suis_je > p{
    margin: 0;
    padding: 1% 0;
    text-align: justify;
    text-justify:inter-word;
}

/* SOCIAL NETWORK */

#social_network{
    background-color: lightgray;
}

#social_network > h1{
    text-align: center;
}

#div_social {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

/* DESSINS */ 

#block_art{
    height: 40%;
}

#block_art > h1{
    text-align: center;
    background-color: lightgray;
}

.groupe_dessins{
    background-color: lightgrey;
    padding: 1%;
    display: grid;
    grid-gap: 1%;
    justify-content: center;
    grid-template-columns: repeat(auto-fill,minmax(20%,1fr));
    align-items: center;
}

.groupe_dessins img {
    display: block;
    margin: 5% auto;
    width: 70%;
    border: solid black 2px;
}


/* LIGHTBOX */

.lightbox{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .7);
    z-index: 10;
    overflow: auto;
    animation: lightboxIn .5s;
    transition: opacity .3s;
}

.lightbox.fadeout{
    opacity: 0;
    
}

#lightbox_prev, #lightbox_next{
    border: none;
    background: url(../image/arrow.svg) center center / 100% 100%;
    width: 5%;
    height: 5%;
    position: fixed;
    top: 50%;
    right: 0;
    margin-top: -5%;
    z-index: 11;
}

#lightbox_prev{
    right: auto;
    left: 0;
    transform: rotate(180deg);
}

#lightbox_close{
    width: 2%;
    height: 2%;
    position: fixed;
    top: 2%;
    right: 2%;
    border: none;
    background: url(../image/close.svg)center center / 100% 100% transparent;
    z-index: 12;
}

.lightbox button{
    opacity: .5;
    cursor: pointer;
    text-indent: -3000px;
    transition: opacity .3s;
}

.lightbox button:hover{
    opacity: 1;
}

#lightbox_container img{
    max-width: 100%;
    height: 60%;
    text-align: center;
    margin: 0 auto;
    animation: lightboxIn .5s;
}
#lightbox_container a{
    display: block;
    text-decoration: none;
    color: white;
    font-size: 1.5em;
}

#lightbox_container a:hover{
    text-decoration: underline;
}

#lightbox_container{
    margin: 5% auto;
    width: 100%;
    height: 100%;
    text-align: center;

}

.lightbox_loader{
    width: 10%;
    height: 10%;
    opacity: .5;
    background: url(../image/waiting.svg)center center no-repeat;

}

#pagination{
    background-color: lightgray;
    text-align: center;
    margin-bottom: 5%;
}

#precedant{
    transform: rotate(180deg);
}

#precedant, #suivant{
    width: 50px;
    color: black;
}

#mentions{
    text-align: justify;
}

#mentions a{
    color: black;
    text-decoration: none;
}

#mentions a:hover{
    color: black;
    background-color: lightgray;
    font-weight: bold;
}

/* Style all font awesome icons */
.fa {
    padding: 20px;
    margin: 20px;
    font-size: 30px !important;
    width: 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
  }
  
  /* Add a hover effect if you want */
  .fa:hover {
    opacity: 0.7;
  }
  
  /* Set a specific color for each brand */
  
  /* Facebook */
  .fa-facebook {
    background: #3B5998;
    color: white;
    /* height: 30px; */
  }
  
  /* Instagram */
  .fa-instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
  }

  .fa-behance {
    background:#0056FF;
    color: white;
  }


@keyframes lightboxIn {
    from{opacity: 0;}
    to{opacity: 1;}
}

@media screen and (max-width: 920px){
    .groupe_dessins{
        grid-template-columns: repeat(auto-fill,minmax(30%,1fr));
    }
}

@media screen and (max-width: 820px) {
    #qui_suis_je_background{
        font-size: 1em;
    }

    h1{
        font-size: 1.5em;
    }
}

@media screen and (max-width: 720px){
    .groupe_dessins{
        grid-template-columns: repeat(auto-fill,minmax(40%,1fr));
    }

    .parallax{
        min-height: 300px;
    }

    #lightbox_container img{
        height: 40%;
        padding-top: 20%;
    }

    #lightbox_container{
        align-items: center;
        font-size: 0.8rem;
    }

    #lightbox_prev, #lightbox_next{
        width: 8%;
        height: 8%;
    }

    #lightbox_close{
        width: 5%;
        height: 5%;
    }
}

@media screen and (max-width: 500px){
    #j_c_photos{
        display: block;
    }

    #j_c_dessine, #j_c_presse{
        width: 80%;
        margin: 5% auto;
    }

}
