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

html , body {
    width : 100%;
    height : 100%;
}

#main{
    position: relative;
    overflow:hidden;
}

#page1{
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #f1f1f1;
}

#page2{
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page3{
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#page4{
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: rgb(173, 170, 165);
}

canvas{
    position: relative;
    z-index: 9;
    max-width: 100vw;
    max-height: 100vh;
}

nav{
    position: absolute;
    position:fixed;
    height: 7%;
    width: 100%;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

nav h3{
    font-size: 23px;
    font-weight: 400;
    font-family: Arial;
}

nav button{
    background-color: #0e0d0d;
    color : white ;
    padding: 7px 15px;
    border-radius: 50px;
    border: none;
}

#loop{
    display: flex;
    font-family: Arial;
    position: absolute;
    top: 30%;
    font-size: 100px;
    height: 25%;
    width: 100%;
    white-space: nowrap;
}

#loop h1 span{
    font-style: italic;
    -webkit-text-stroke: 1.2px #0e0d0d;
    color: transparent;
}

#loop h1{
    font-weight: 400;
    animation-name: anim;
    animation-duration: 15s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes anim{
    0%{
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

#text{
    width: 100%;
    position:absolute;
    top: 65%;
    display: flex;
    justify-content: space-between;
    padding: 0px 50px;
}
#text h3{
    font-size: 14px;
    font-weight: 200;
    color: rgb(145, 145, 145);
    font-family: Arial;
}

#text h4{
    font-size: 14px;
    font-weight: 500;
    color: rgb(73, 73, 73);
    font-family: Arial;
}

#p2-d{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    height: 90%;
    font-family: Arial;
}

.left{
    width: 50%;
    height: 70%;
}

.right{
    padding: 0px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    width: 50%;
    height: 70%;
}

#page3 .right{
    padding: 0px 5px;
}
#p2-d h6{
    color: gray;
}

#p2-d h5{

    color: gray;
}

#page4 .right{
    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: end;
    width: 100%;
    height: 70%;
    font-family: Arial;
}

#page4 h6{
    font-size: 13px;
}