

/* polices */

@font-face {
    font-family: 'Nyght Serif';
    src: url('NyghtSerif-MediumItalic.eot');
    src: url('NyghtSerif-MediumItalic.eot?#iefix') format('embedded-opentype'),
        url('NyghtSerif-MediumItalic.woff2') format('woff2'),
        url('NyghtSerif-MediumItalic.woff') format('woff');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Marynata-BETA';
    src: url('Marynata-BETA-Regular.eot');
    src: url('Marynata-BETA-Regular.eot?#iefix') format('embedded-opentype'),
        url('Marynata-BETA-Regular.woff2') format('woff2'),
        url('Marynata-BETA-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* elements base */

html {
    
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    transition: 500ms;
}

ul, li, li a{
    text-decoration: none;
    list-style: none;
    color: white;
    padding: 0;
}

li {
    display: inline-block;
}

li > a{
    text-align: center;
    padding: 1vh 3vw;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 5px;
    line-height: 2.3em;
}

section {
    display: flex;
    align-content: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
}

/* text */

h1, h2, h4{
    font-family: 'Nyght Serif';
    color: white;
}

h1{
    margin: 0;
}

h2{
    margin: 0;
    margin-bottom: 0.5em;
}

h4{
    margin: 0;
    padding: 0;
    margin-bottom: 2em;
}

p {
    font-size: 1em;
    font-family: 'Marynata-BETA';
    color: white;
}

/* autre */


.etoile{
    position: absolute;
}

#etoile-1{
    position: absolute;
    left: 40vw;
    bottom: 0vh;
}

#etoile-2{
    position: absolute;
    right: 0;
    bottom: 55vh;
}

#etoile-3{
    position: absolute;
    bottom: 0;
    right: 7vw;
}

#etoile-4{
    position: absolute;
    bottom: 75vh;
    left: 38vw;
}

#arrow-up-link{
    position: fixed;
    bottom: 3vh;
    right: 1.2vw;
    width: 5vw;
    height: 10vh;
    border-radius: 10px;
}

#arrow-up{
    position: fixed;
    bottom: 3vh;
    right: 1.2vw;
    z-index: -1;
    width: 5vw;
    background: rgba(0, 0, 0, 0.25);
    height: 10vh;
    border-radius: 10px;
}

/* premiere section */

.rer{
    display: flex;
    margin: 4vh 4vw;
    align-items: center;
    justify-content: center;
}

.text-holder {
    width: 35vw;
    margin: 0 3vw;
    background: #000b;
    padding: 5vw;
}

#moon {
    width: 100%;
}

/* autres sections */

.gallery-section {
  overflow-y: auto;
  height: 75vh;
  width: 75vw;
  margin: 0 auto;
  border-radius: 10px;
}

.gallery-slide{
  margin: 0;
}

.gallery {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    flex-flow: row wrap;
    align-content: flex-end;
    margin-bottom: 1em;
}

.gallery > a{
    width: calc(100% / 7);
    margin: 0.5em;
}

.gallery > a > img{
    width: 100%;
    border-radius: 10px;
}

.ai-gallery {
    column-count: 5;
}

.ai-gallery > a > img{
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.category-section {
    margin: 1em auto;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-color: white;
    width: 50%;
}

.category-header {
    width: 80%;
    margin: 2vh auto;
    padding: 1em;
    background: #000b;
}

.category-header, .category-section{
    text-align: center;
}

/* .category-header > h1, .category-section > h2, .category-header > p{
    color: black;
} */

.separator {
    width: inherit;
    height: 20vh;
}

.container {
    scroll-snap-align: start;
}

@media only screen 
   and (min-width : 1px) {
    .gallery > a {
       width: calc(100% / 3);
       margin: 0.5em;
    }
    .gallery-section {
       height: 70vh;
       width: 100vw;
    }
    .ai-gallery {
       column-count: 3;
       margin: 0 5vw;
    }
    .category-header {
        width: 100vw;
        padding: 1em 0;
    }
    .category-header > p {
        margin: 0 5vw;
    }
    #arrow-up-link{
        bottom: 10px;
        right: 10px;
        width: 50px;
        height: 50px;
        border-radius: 10px;
        z-index: 1;
    }
    #arrow-up{
        bottom: 10px;
        right: 10px;
        z-index: -1;
        background: rgba(0, 0, 0, 0.75);
        width: 50px;
        height: 50px;
    }
    .image-holder{
        display: none;
    }
    .text-holder {
        width: 85vw;
        background: rgba(0, 0, 0, 0.8);
        padding: 5vw;
    }
    .text-holder:before {
    content: ' ';
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image:  url("../img/moon.png");
    background-repeat: no-repeat;
    background-position: 20vw -20vh;
    }

    h1{
        font-size: 10vw;
    }
}

@media only screen 
   and (min-width : 400px) {
    .gallery > a {
       width: calc(100% / 5);
    }
    
    .text-holder:before {
        background-position: 30vw -20vh;
    }
}


@media only screen 
   and (min-width : 600px) {    
    .text-holder:before {
        background-position: 40vw -20vh;
    }
}

@media only screen 
   and (min-width : 800px) {
    .gallery > a {
           width: calc(100% / 8);
           margin: 0.5em;
    }
    .gallery-section {
           height: 75vh;
           width: 80vw;
    }
    .ai-gallery {
           column-count: 5;
    }
    .gallery > a {
        width: calc(100% / 7);
        margin: 0.5em;
    } 
    .category-header {
        width: 80vw;
        padding: 1em;
    }

   .category-header > p {
         margin: 0 5vw;
    }
    #arrow-up-link{
        position: fixed;
        bottom: 3vh;
        right: 1.2vw;
        width: 5vw;
        height: 10vh;
        border-radius: 10px;
        z-index: 0;
    }
    #arrow-up{
        position: fixed;
        bottom: 3vh;
        right: 1.2vw;
        z-index: -10;
        width: 5vw;
        background: rgba(0, 0, 0, 0.25);
        height: 10vh;
        border-radius: 10px;
    }
    h1 {
        font-size: 3em;
    }
    .etoile {
        z-index: -1;
    }
    .image-holder{
        display: block;
    }
    .text-holder {
        width: 35vw;
        margin: 0 3vw;
        background: rgba(0, 0, 0, 0.8);
        padding: 5vw;
    }
    
    .text-holder:before {
        display: none;
    }
}

@media only screen 
   and (min-width : 1600px) {
    .gallery > a {
        width: calc(100% / 10);
        margin: 0.5em;
    }
    .gallery-section {
        height: 80vh;
    }
    .ai-gallery {
        column-count: 7;
    }
}