@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;600&display=swap');
      
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    color: #fff;
} 

body {
    height: 100%;
    width: 100%;
    background-image: url(./images-mountain/main.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    
}
body::after {
    content: "";
    position: absolute;
    background: black;
    width: 100%;
    height: 500vh;
    top: 0;
    left: 0;
    opacity: 0.5;
}
.title {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    font-size: 2.2rem;
    opacity: 0;
}

@media screen and (max-width: 375px) {
    .title {
        font-size: 1.8em;
    }
    
}
.title a {
    text-decoration: none;
}
.title.active {
    opacity: 1;
    transition: all 3s;
}

section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;   
}

.img-wrap {
    position: relative;
    top: 40%;
    height: 40%;
    width: 1px;
    overflow: hidden;
    opacity: 0;
}

.img-wrap.active {
    width: 40vw;
    opacity: 1;
    transition: opacity 1s, width 2s;
}

img {
    position: absolute;
    top: 0;
    left: 0;
    width: 40vw;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.6);
    z-index: 20;
}
@media screen and (max-width: 768px) {
    img {
        transform: scale(0.8);
        width: 80vw;
    } 
}
@media screen and (max-width: 768px) {
    img {
        transform: scale(0.8);
        width: 80vw;
    }  
}


.img-wrap.h2.active > img {
    transform: scale(1);
    transition: 1s ease-out;
}

h2 {
    position: absolute;
    font-size: 2.3rem;
    top: 70%;
    z-index: 30;
    letter-spacing: 2px;
    opacity: 0;
    transition: all 0.2s;
}
@media screen and (max-width: 375px) {
    h2 {
        font-size: 1.6em;
    }
    
}

h2.active {
    opacity: 1;
    transition: opacity 3s;
}