
@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", serif;
}

html, body{
    width: 100%;
    height: 100%;
}
body{
    background: #F8F7F4;
}
#page1{
    height: 100%;
    width: 100%;
}
#nav{
    height: 8vh;
    /* background: #000; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3vw;
}
#navpart1{
    width: 28%;
    /* background: yellow; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
#navpart2{
    width: 28%;
    /* background: yellow; */
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
#nav img{
    width: 110px;
    object-fit: cover;
}
#navpart1 h4{
    font-size: 0.9vw;
    font-weight: 400;
}
#navpart2 button{
    padding: 10px 28px;
    font-weight: 600;
    border: none;
    background-color: black;
    color: white;
    border-radius: 50px;
    font-size: 18px;
    margin: 0 10px;
    transition: all ease-in-out 0.3s;
}
#navpart2 button:nth-child(1){
    background: transparent;
    color: black;
    position: relative;
    font-weight: 400;
}
#navpart2 button:nth-child(2){
    width: 8vw;
}
#navpart2 button:nth-child(2):hover{
    color: black;
    background: white;
    border: 1px solid black;

}
#navpart2 button:nth-child(1)::after{
    content: ".";
    font-size: 32px;
    position: absolute;
    bottom: 20%;
    left: 96%;
}

#content{
    width: 100%;
    height: calc(100% - 8vh);
    /* background: crimson; */
    padding-top: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2vw;
}
#content h3{
    width: fit-content;
    background: #d4f12b;
    padding: 1vh 2.2vh;
    border-radius: 50px;
    font-weight: 500;
    font-size: 17px;
}
#content h1{
    line-height: 8vh;
    font-family: "PT Serif", serif;
    text-align: center;
    /* margin-top: 20px; */
    font-size: 3vw;
    font-weight: 500;
}
#content h4{
    font-weight: 400;
    font-size: 1vw;
}
#content button{
    margin-top: 1vh;
    width: fit-content;
    font-size: 0.8vw;
    padding: 0.8vw 1.5vw;
    border-radius: 50px;
    background: black;
    color: white;
    transition: all ease-in 0.3s;
}
#content button:hover{
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}
#bottom{
    /* height: 100%; */
    width: 100%;
    /* background: black; */
    padding: 4vw 2vh;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: hidden;

}
.elem{
    margin-right: 22px;
    display: inline-block;
    height: 36vh;
    width: 14vw;
    /* background: red; */
    border-radius: 16px;
    animation-name: anime;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}
.elem img{
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}
@keyframes anime{
    from{
        transform: translateX(0%);
    }
    to{
        transform: translateX(calc(-100% - 26px));
    }
}
#page2{
    height: 100%;
    width: 100%;
    padding: 8vh 22vh;
}
#page2 h1{
    text-align: center;
    font-weight: 400;
    font-size: 2vw;
    margin-bottom: 4vh;
}
.box{
    display: inline-block;
    margin: 1vh;
    height: 14vw;
    width: 18vw;
    background: red;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all ease 0.3s;
}
.box img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.box-bottom{
    width: 100%;
    height: 40%;
    bottom: -40%;
    position: absolute;
    transition: all ease 0.5s;
    display: flex;
    align-items: center;
    color: white;
    justify-content: space-between;
    padding: 1.2vw;
    background: linear-gradient(transparent,rgba(0, 0, 0, 0.726));
}
.box h5{
    font-size: 2vh;
    font-weight: 500;
}
.box i{
    padding: 1vh 1vh;
    border-radius: 50%;
    background: white;
    color: black;
}
.box:hover .box-bottom{
    bottom: 0;
}
.box:hover{
    scale: 1.1;
    box-shadow: 0px 3px 20px rgb(54, 54, 54);
}