* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
}

html, body {
    height: 100%; 
    width: 100%;
    font-family: 'Roboto', sans-serif;
}

img {
    width: 100%;
}

#container {
    height: 100%;
    width: 100%;

}

#progressBar {
    height: 30px;
    background-color: rgb(44, 44, 44);
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 10000;
    border-radius: 0 20px 20px 0;
}

#progress {
    color: white;
    margin: 0 20px;
    font-size: 0.8rem;
}


/* PAGE 1 */

#page1 {
    height: 100vh;
    width: 100%;
    /* background-color: yellow; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}


#caption1 {
    position: fixed;
    top: 25vh;
    z-index: 100;
}

#caption1 h1 {
    font-size: 10rem;
    line-height: 0.9;
    color: white;
}

#caption1 h3 {
    font-size: 4rem;
    line-height: 1.5;
    color: rgb(75, 75, 75);
}

#caption2 {
    position: fixed;
    top: 25vh;
    z-index: 100;
    opacity: 0;
}

#caption2 h1 {
    font-size: 10rem;
    line-height: 0.9;
    color: white;
}

#caption2 h3 {
    font-size: 4rem;
    line-height: 1.5;
    color: rgb(255, 255, 255);
    text-decoration: underline;
    cursor: pointer;
}


.fade-in {
    animation-name: fadeIn;
    animation-duration: 500ms;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
    animation-delay: 0.5s;
}

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

.fade-out {
    animation-name: fadeOut;
    animation-duration: 500ms;
    animation-fill-mode: both;
    animation-timing-function: ease-in-out;
}

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


/* IMAGE LAYERS */

#layer0, #layer1, #layer2, #layer3, #layer4 {
    width: auto;
    position: fixed;
}

#layer0 {
    display: block;
    width: 500%;
    height: 100vh;
    top: 0;
    left: -10%;
    z-index: 10;
    overflow: hidden;
}

#layer1 {
    display: block;
    width: 60%;
    right: -10%;
    bottom: 8vw;
    z-index: 20;
    opacity: 0;
}

#layer2 {
    display: block;
    width: 85%;
    left: -5%;
    bottom: -8vw;
    z-index: 30;
    opacity: 0;
}

#layer3 {
    display: block;
    width: 100%;
    right: 0;
    bottom: 0vw;
    z-index: 40;
    opacity: 0;
}

#layer4 {
    display: block;
    width: 68%;
    left: -10%;
    bottom: 0;
    z-index: 50;
    height: 553px;
    overflow: hidden;
    opacity: 0;
}



/* PAGE 2 */

#page2 {
    height: 100vh;
    width: 100%;
    background-color: green;
}



/* PAGE 3 */

#page3 {
    height: 100vh;
    width: 100%;
    background-color: red;
}





@media (max-width: 375px) {
    #layer0 {
        display: block;
        width: 1000%;
        height: 101vh;
        top: 0;
        left: -10%;
        z-index: 10;
        overflow: hidden;
    }
    
    #layer1 {
        display: block;
        width: 120%;
        right: -38%;
        bottom: 36vw;
        z-index: 20;
    }

    #layer2 {
        display: block;
        width: 111%;
        left: -35%;
        bottom: 20vw;
        z-index: 30;
    }

    #layer3 {
        display: block;
        width: 296%;
        right: 0;
        bottom: -9vw;
        z-index: 40;
    }

    #layer4 {
        display: block;
        width: 157%;
        left: -33%;
        bottom: -68vw;
        z-index: 50;
        height: 553px;
        overflow: hidden;
    }


}