*{
    margin: 0;
    padding: 0;
    box-sizing:  border-box;
    font-family: sans-serif;
}

body{
    background: #000;
    position: relative;
}

/* Landing div */
.header{
    position: relative;
    width: 100%;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* rmspc */
#logo{
    font-size: 1.2rem;
    font-weight: bolder;
    position: absolute;
    top: 20px;
    left: 20px;
}

/* Contact button */
#top-button{
    background: transparent ; 
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 0.8rem;
    padding: 10px;
    position: absolute; 
    right: 20px; 
    top: 20px;
    color: #fff;
    outline: none;
    cursor: pointer;
}

/* Physique chimie lycee Galilee */
#legende{
    font-size: 0.6rem;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

#fleche{
    font-size:1.5rem;
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgb(100,100,100);
}

/* Explore. */
#headline{
    width: 55%;
    position: absolute;
    margin: auto;
}

#headline > img{
    /*font-size: 4rem;
    font-weight: bolder;
    position: absolute;
    top: 60vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;*/
}

/* Background image */
.bg{
    position: absolute; 
    top: 0; 
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url(../photos/main/main_bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0px 20px 100px black, inset -20px 0px 100px black;
}

/* Black container with grid of levels and quote */
section{
    padding: 35vh 15% 10vh 15%;
    color: #fff;
    min-height: 80vh;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 100%);
    position: relative;
    display:block;
}

/* Invisible container of the grid with levels */
.container{
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-bottom: 100px;
}

/* Container of each level */
.level-container{
    height: 130px;
    background-size: 100%;
    background-position: center;
    display: table;
    transition: all 0.5s ease;
    width: 100%;
}

.level-container a{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bolder;
    color: #eee;
    height: 100%;
    width: 100%;
}

.level-container:hover{
    background-size: 110%;
}

#level-vm{
    background-image: url(../photos/main/pict10.jpg); 
}
#level-2nde{
    background-image: url(../photos/main/level_2nde_small.jpg); 
}
#level-1sci{
    background-image: url(../photos/main/level_1sci_small.jpg);
}
#level-1spe{
    background-image: url(../photos/main/level_1spe_small.jpg);
}
#level-Tsci{
    background-image: url(../photos/main/level_Tsci_small.jpg);
}
#level-Tspe{
    background-image: url(../photos/main/level_Tspe_small.jpg);
}

.quote{
    color:#eee;
    font-size: 1.2rem;
    transform: translateY(100px);
    opacity: 0;
}

q{
    line-height: 1.6rem;
}

.src, .author{
    text-align: end;
}


@media screen and (min-width: 700px){
    #headline{
        font-size: 6rem;
    }

    #logo{
        font-size: 2rem;
    }

    #top-button{
        font-size: 1.2rem;
    }
    #fleche{
        font-size: 2rem;
    }
    #legende{
        font-size: 1rem;
    }
    .container{
        grid-template-columns: 1fr 1fr;
    }
}