@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300;400&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: "Quicksand";
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;

}


.section{
    /*Makes it so that the sections snap into place when the taskbar stops moving*/
    scroll-snap-align: start;
}

.container{
    width: 100%;
    min-height: 100vh;
    padding-left: 8%;
    padding-right: 8%;
    box-sizing: border-box;
    overflow: hidden;
    scroll-snap-align: start;
}

.navbar{
    width: 100%;
    display: flex;
    align-items: center;
}

.logo{
    width: 50px;
    cursor: pointer;
    margin: 30px 0;
}

.menu{
    width: 25px;
    cursor: pointer;
    display: none;
}

nav{
    flex: 1;
    text-align: right;
}

nav ul li{
    list-style: none;
    display: inline-block;
    margin-right:40px;
}

nav ul li a{
    text-decoration: none;
    color: #000;
    font-size: 1.5rem;
    font-style: "Quicksand";
}

nav ul li a:hover{
    background: rgb(240,224,34);
    background: linear-gradient(135deg, rgba(240,224,34,1) 0%, rgba(196,91,26,1) 52%, rgba(209,58,58,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px 0;
}

.col-1{
    flex-basis: 40%;
    position: relative;
    margin-left: 50px;
}

.col-1 h2{
    font-size: 80px;
    background: rgb(240,224,34);
    background: linear-gradient(135deg, rgba(240,224,34,1) 0%, rgba(196,91,26,1) 52%, rgba(209,58,58,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.col-1 h3{
    font-size: 30px;
}

.col-1::after{
    /*Gradient line for decoration*/
    content: '';
    width: 450px;
    height: 6%;
    background: linear-gradient(135deg, rgba(240,224,34,1) 0%, rgba(196,91,26,1) 52%, rgba(209,58,58,1) 100%);
    position: absolute;
    top: -20px;
}

.col-2{
    position: relative;
    flex-basis: 60%;
    display: flex;
    align-items: center;
}

.col-2 .page{
    width: 90%;
    margin-left: 15%;
}



.info{
    height: 950px;
    margin-inline: auto;
    scroll-snap-align: start;
}

.info h2{
    font-size: 2rem;
    color: white;
}

.hub{
    display: grid;
    height: 1000px;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    scroll-snap-align: start;
}

#content-1{
    background: rgb(252,246,98);
    background: linear-gradient(103deg, rgba(252,246,98,1) 0%, rgba(255,136,0,1) 50%, rgba(247,0,0,1) 100%);
    position: relative;
}

#content-2{
    margin-top: 20%;
    background-color: #fff;
}

.hub h2{
    font-size: 80px;
    color: #fff;
    margin-top: 20%;
}

.hub h3{
    font-size: 40px;
    color: #fff;
}

.EcoQuiz{
    display: grid;
    height: 1000px;
    grid-template-columns: 1fr 1fr;
    text-align: center;
    scroll-snap-align: start;
}

#content-3{
    background: rgb(252,246,98);
    background: linear-gradient(103deg, rgba(252,246,98,1) 0%, rgba(255,136,0,1) 50%, rgba(247,0,0,1) 100%);
    position: relative;
}

#content-4{
    margin-top: 20%;
    background-color: #fff;
}

.EcoQuiz h2{
    font-size: 80px;
    color: #fff;
    margin-top: 20%;
}

.EcoQuiz h3{
    font-size: 40px;
    color: #fff;
}

.EcoQuiz a:visited, a:link, a:active{
    text-decoration: none;
}

.EcoQuiz a{
    display: grid;
    height: 80px;
    width: 250px;
    background: #f026ef;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    place-items: center;
    border-radius: 25px;
    color: #fff;
    font-size: 25px;
    transition: 0.3s;
}

.hub a:hover{
    background: #0a971d;
}

::-webkit-scrollbar{
    width: 10px;
}

::-webkit-scrollbar-thumb{
    background: #7038ff;
    border-radius: 10px;
    background: rgb(252,246,98);
    background: linear-gradient(103deg, rgba(252,246,98,1) 0%, rgba(255,136,0,1) 50%, rgba(247,0,0,1) 100%);
}

/*backToTop Button with arrow image inside*/
.backToTop{
    position: fixed;
    bottom: 400px;
    right: 40px;
    height: 60px;
    width: 60px;
    background:#fff url(up-arrow.png);
    border-radius: 50%;
    background-size: 40px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    z-index: 100000;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
}

.backToTop.active{
    bottom: 40px;
    visibility: visible;
    opacity: 1;
}


.mainSite{
    scroll-snap-type: y mandatory;
}
.destructionMasher .h2{
    font-size: 80px;
}

.info h1{
    font-size: 3rem;
    color: #fff;
    text-align: center;
}

.color1{
    background: rgb(63,94,251);
    background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(199,77,188,1) 72%, rgba(252,70,107,1) 100%); 
}

.color2{
    background: rgb(252,70,107);
    background: radial-gradient(circle, rgba(252,70,107,1) 0%, rgba(199,77,188,1) 72%, rgba(63,94,251,1) 100%);
}

.half-1{
    flex-basis: 40%;
    position: relative;
    margin-left: 50px;
}

.half-1 h2{
    font-size: 50px;
    color: white;
}


.half-1{
    padding: 40px;
    position: relative;
    flex-basis: 60%;
    display: flex;
    align-items: center;
}

.half-2{
    padding: 30px;
    flex-basis: 60%;
    display: flex;
    align-items: center;
}

.half-2 h2{
    font-size: 50px;
    color: white;
}

.text{
    margin-left: 60px;
}


.hub a:visited, a:link, a:active{
    text-decoration: none;
}

.hub a{
    display: grid;
    height: 80px;
    width: 250px;
    background: #f026ef;
    position: absolute;
    margin: auto;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    place-items: center;
    border-radius: 25px;
    color: #fff;
    font-size: 25px;
    transition: 0.3s;
}

.hub a:hover{
    background: #0a971d;
}

.EcoQuiz a:hover{
    background: #0a971d;
}

.info{
    display: grid;
    height: 1000px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 0.5fr;
    grid-template-areas: 
    "content-5 content-6"
    "content-7" "content-8";
    text-align: center;
    scroll-snap-align: start;

}

#content-5{
    background: rgb(63,94,251);
    background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(199,77,188,1) 72%, rgba(252,70,107,1) 100%); 
}

#content-5 h2{
    font-size: 43px;
    margin-top: 10%;
    padding-left: 10px;
}

#content-6{
    background: rgb(63,94,251);
    background: radial-gradient(circle, rgba(63,94,251,1) 0%, rgba(199,77,188,1) 72%, rgba(252,70,107,1) 100%); 
}

#content-6 img{
    padding: 30px;
}

#content-7{
    background: rgb(240,38,239);
    background: linear-gradient(103deg, rgba(240,38,239,1) 0%, rgba(241,145,34,1) 44%, rgba(247,61,61,1) 100%);
}

#content-7 img{
    padding: 30px;
}

#content-8{
    background: rgb(247,61,61);
    background: linear-gradient(73deg, rgba(247,61,61,1) 0%, rgba(241,145,34,1) 44%, rgba(240,38,239,1) 100%);
}

#content-8 h2{
    font-size: 43px;
    margin-top: 10%;
    padding-right: 10px;
}

/*responsive 1200px width makes the figma image smaller and the home page flex*/
@media only screen and (max-width:1200px){

    .row{
        flex-direction: column;
        margin-top: 100px;
        margin-right: 75px;
    }

    .col-2 .page{
        width: 125%;
        margin-left: 0;
        margin-top: 40px;
    }

}

/*responsive 700px width makes certain aspects of the website fit in the content*/
@media only screen and (max-width:700px){
    nav ul{
        width: 100%;
        background: linear-gradient(135deg, rgba(240,224,34,1) 0%, rgba(196,91,26,1) 52%, rgba(209,58,58,1) 100%);
        position: absolute;
        top: 75px;
        right: 0;
        z-index: 10;
    }

    nav ul li{
        display: block;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    nav ul li a{
        color: #fff;
        font-size: 1rem;
        margin-left: 1px;
    }

    .menu{
        display: block;
    }

    #menulist{
        overflow: hidden;
        transition: 1.5s;
    }

    .row{
        flex-direction: column;
        margin-top: 100px;
        margin-right: 75px;
    }

    .col-2 .page{
        width: 125%;
        margin-left: 0;
        margin-top: 40px;
        height: 200%;
    }

    .page:hover{
        width: 125%;
        margin-left: 0;
        margin-top: 40px;
        height: 200%;
        cursor: pointer;
    }

    .col-1::after{
        content: '';
        width: 5px;
        height: 57%;
        background: linear-gradient(135deg, rgba(240,224,34,1) 0%, rgba(196,91,26,1) 52%, rgba(209,58,58,1) 100%);
        position: absolute;
        left: -20px;
        top: 8px;
    }

    .backToTop{
        position: fixed;
        bottom: 10px;
        right: 10px;
        height: 20px;
        width: 20px;
        background:#6ec3f4 url(up-arrow.png);
        border-radius: 6px;
        background-size: 20px;
        background-position: center;
        background-repeat: no-repeat;
        cursor: pointer;
        z-index: 100000;
        visibility: hidden;
        opacity: 0;
        transition: 0.5s;
    }

    .info h2{
        font-size: 20px;
        color: white;
    }

    .hub{
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        text-align: center;
        scroll-snap-align: start;
        grid-template-areas: 
        "content-1" 
        "content-2";
    }

    #content-5 h2{
        font-size: 20px;
    }

    #content-8 h2{
        font-size: 20px;
    }

    .info{
        display: grid;
        height: 500px;
        grid-template-columns: 1fr;
        grid-template-rows: 0.5fr 0.5fr 0.5fr 0.5fr;
        grid-template-areas: 
        "content-5 content-6"
        "content-7" "content-8";
        text-align: center;
        scroll-snap-align: start;
    }

    .EcoQuiz{
        display: grid;
        height: 1000px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-template-areas:  
        "content-3" 
        "content-4";
        text-align: center;
        scroll-snap-align: start;
    }

    

    .hub{
        display: grid;
        height: 1000px;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
        grid-template-areas:  
        "content-6" 
        "content-5";
        text-align: center;
        scroll-snap-align: start;
    }
    
}