* {

    margin: 0px auto;
    max-width: 1920px;
    max-height: 1500px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;

}

html {

    scroll-behavior: smooth;
    overflow-x: hidden;
}

html::-webkit-scrollbar {

    display: none;
}

body {

    background-image: url(home\ assets/bodybackground.jpg);
    background-color: rgba(14, 112, 9, 0.697);
    z-index: 0;
    max-width: 1380px;

}

header {

    background-color: rgba(191, 237, 172, 0.752);
    text-align: center;
    z-index: 1;
    max-width: 1200px;
    position: relative;
    height: 310px;
}

header img {

    width: 100px;
    height: 100px;

}

main {

    z-index: 2;
    text-align: center;
    background-color: rgba(255,255,255, 0.9);
    position: relative;
    bottom: 60px;
    height: 1500px;
    max-width: 1200px;

}

main p {

    padding-left: 50px;
    padding-right: 50px;
    text-align: justify;
    font-size: 20px;
}

/* these two are responsible for the images and the main area width */

main section {

    width: 1000px;


}

div {

    display: flex;
    flex: 50%;
    
}

/* these are all of the images area and the captions */

.energy p  {

    position: relative;
    top: 310px;
    right: 480px;
    width: auto;
    white-space: nowrap;
    display: block;
    font-size: 22px;
    color: darkgreen;
}

.energy a {

    text-decoration: underline;
    color: darkgreen;
}

.energy a:hover {

    color: limegreen;
    text-decoration-color: limegreen;
}


.energy {

    width: 450px;
    height: 300px;
    float: left;
    position: relative;
}

.energy img {

    width: 450px;
    height: 300px;
    position: relative;
    left: 20px;
}

/* above is the first image */

.susqatar p {

    position: relative;
    top: 310px;
    right: 365px;
    width: auto;
    white-space: nowrap;
    display: block;
    font-size: 22px;
    color: darkgreen;
}

.susqatar a {

    color: darkgreen;
    text-decoration: underline;
}

.susqatar a:hover {

    color: limegreen;
    text-decoration-color: limegreen;
}

.susqatar {

    width: 450px;
    height: 300px;
    position: relative;
}

.susqatar img {

    width: 450px;
    height: 300px;
    position: relative;
    left: 20px;
}

/* above is the second image */

.tech p {

    position: relative;
    top: 310px;
    right: 480px;
    width: auto;
    white-space: nowrap;
    display: block;
    font-size: 22px;
    color: darkgreen;
}

.tech a {

    color: darkgreen;
    text-decoration: underline;
}

.tech a:hover {

    color: limegreen;
    text-decoration-color: limegreen;
}

.tech {

    width: 450px;
    height: 300px;
    position: relative;
    float: left;
    top: 50px;

}

.tech img {

    width: 450px;
    height: 300px;
    position: relative;
    left: 20px;
}


/* above is the third image */

.food p {

    position: relative;
    top: 360px;
    right: 480px;
    width: auto;
    white-space: nowrap;
    display: block;
    font-size: 22px;
    color: darkgreen;
}

.food a {

    color: darkgreen;
    text-decoration: underline;
}

.food a:hover {

    color: limegreen;
    text-decoration-color: limegreen;
}

.food {

    width: 450px;
    height: 300px;
    position: relative;
}

.food img {

    width: 450px;
    height: 300px;
    position: relative;
    left: 20px;
    top: 50px;
}


/* above is the fourth image */


/* above is the fifth image */

.survey p {

    position: relative;
    top: 310px;
    right: 490px;
    width: auto;
    white-space: nowrap;
    display: block;
    font-size: 22px;
    color: darkgreen;
}

.survey a {

    color: darkgreen;
    text-decoration: underline;
}

.survey a:hover {

    color: limegreen;
    text-decoration-color: limegreen;
}

.survey {

    width: 450px;
    height: 300px;
    position: relative;
    top: 120px;
    right: 20px;
}

.survey img {

    width: 450px;
    height: 300px;
    position: relative;
    left: 20px;
}

/* above is the sixth image */

/* above this contains the css code for all the images and captions in the research page */

article .end {

    position: relative;
    top: 250px;
}

/* this div is for controlling the footer of this main area */

.further {

    width: 150px;
    height: 70px;
    margin-top: 95px;
    font-size: 20px;
    text-shadow: 2px;
    background-color: darkgreen;
    color: white;
    font-weight: bold;
    border: none;
    position: relative;
    left: 10px;
    top: 90px;
    

}

.further:hover {

    box-shadow: inset;
    cursor: pointer;
    text-decoration: none;
    background-color: white;
    color: darkgreen;
    transition-duration: 0.9984721110051113s;
    border: 2px solid darkgreen;

}


article hr {

    background-color: darkgreen;
    width: 600px;
    height: 3px;
    position: relative;
    left: 10px;
    top: 120px;
    color: darkgreen;

}

article p {

    font-size: 18px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-top: 2px;
    padding-top: 5px;
    position: relative;
    left: 320px;
    top: 110px;
    white-space: nowrap;
    

}

article p span {

    font-weight: bold;
    font-size: 25px;
}

header button {

    width: 120px;
    height: 50px;
    text-align: center;
    font-size: 25px;
    background-color: white;
    color: darkgreen;
    position: relative;
    right: 520px;
    top: 20px;
    border-radius: 25px;
    padding-bottom: 5px;
    

}

header button:hover {

    background-color: darkgreen;
    color: white;
    cursor: default;
    transition: 0.99211510005s;

}

.sidenavig {

    height: 100%;
    width: 0;
    position: fixed;
    z-index: 3;
    top: 0;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;

}

.sidenavig a {

    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: darkgreen;
    display: block;
    transition: 0.3s;
    font-weight: bold;
}

.sidenavig a:hover {

    color: palegreen;
}

.sidenavig .closebutton {

    position: absolute;
    top: 5px;
    font-size: 55px;
    left: 160px;

}

@media screen and (max-height:300px) {
    .sidenavig {padding-top: 15px;}
    .sidenavig a {font-size: 18px;}
}

@media screen and (min-width: 320px) and (max-width: 480px) {
    
    * {

        max-width: 480px;
        max-height: 2560px;
        margin: auto;
        box-sizing: border-box;
        font-family: Verdana, Geneva, Tahoma, sans-serif;
    }

    html {

        scroll-behavior: smooth;
        overflow-x: hidden;
        -ms-overflow-style: none;
        scrollbar-width: none;
        max-width: 480px;
    }

    body {

        max-width: 480px;

    }

    html::-webkit-scrollbar {

        display: none;

    }

    header {

        max-width: 480px;
        width: 480px;
        position: relative;
        right: 30px;

    }
    
    header h1 {

        position: relative;
        max-width: 480px;
        font-size: 20px;
        right: 23px;
        top: 40px;
    }

    header h3 {

        position: relative;
        max-width: 480px;
        width: 480px;
        font-size: 17px;
        right: 21px;
        top: 30px;
    }

    header img {

        position: relative;
        right: 26px;
        top: 25px;
    }

    main {

        text-align: justify;
        position: relative;
        bottom: 0;
        height: 2560px;
        max-width: 480px;
        width: 480px;
    }

    main section {
        max-width: 480px;
        width: 480px;
    }

    main h2 {
        position: relative;
        left: 100px; /* Moved a bit more to the left */
    }

    main p {
        padding-left: 5px;
        padding-right: 5px;
        width: 350px;
        text-align: justify;
        position: relative;
        right: 50px; /* Moved a bit more to the left */
    }

    /* this area is for energy */

    .energy {

        width: 370px;
        height: 300px;
        position: relative;
        right: 10px;
    }

    .energy img {

        width: 370px;
    }

    .energy p {

        display: block;
        position: relative;
        font-size: 17px;
        width: 370px;
        top: 173px;
        left: -350px;
    }

    .energy a {

        text-decoration: none;
        color: black;
    }

    /* this area is for energy */
    /* this area is for susqatar */

    .susqatar {

        width: 370px;
        height: 300px;
        position: relative;
        right: 65px;
        top: 45px;
    }

    .susqatar img {

        width: 370px;
    }

    .susqatar p {

        display: block;
        position: relative;
        font-size: 17px;
        width: 370px;
        top: 173px;
        left: -260px;
    }

    .susqatar a {

        text-decoration: none;
        color: black;
    }

    /* this area is for susqatar */
    /* this area is for science & tech */

    .tech {

        width: 370px;
        height: 300px;
        position: relative;
        right: 10px;
        top: 85px;
    }

    .tech img {

        width: 370px;
    }

    .tech p {

        display: block;
        position: relative;
        font-size: 17px;
        width: 370px;
        top: 173px;
        left: -350px;
    }

    .tech a {

        text-decoration: none;
        color: black;
    }

    /* this area is for science & tech */
    /* this area is for food */

    .food {

        width: 370px;
        height: 300px;
        position: relative;
        right: 60px;
        top: 85px;
    }

    .food img {

        width: 370px;
    }

    .food p {

        display: block;
        position: relative;
        font-size: 17px;
        width: 370px;
        top: 220px;
        left: -350px;
    }

    .food a {

        text-decoration: none;
        color: black;
    }

    /* this area is for food */
    /* this area is for survey */

    
    .survey {

        width: 370px;
        height: 300px;
        position: relative;
        right: 60px;
        top: 180px;
    }

    .survey img {

        width: 370px;
    }

    .survey p {

        display: block;
        position: relative;
        font-size: 17px;
        width: 370px;
        top: 180px;
        left: -350px;
    }

    .survey a {

        color: black;
        text-decoration: none;
    }

    /* this area is for survey */

    .further {
        width: 120px;
        height: 50px;
        margin-top: 20px;
        font-size: 16px;
        left: 170px;
        bottom: 200px;
        color: white;
        background-color: darkgreen;
    }

    article {

        position: relative;
        top: 140px;
        right: 30px;
    }

    article hr {

        background-color: darkgreen;
        color: darkgreen;
        max-width: 440px;
        position: relative;
        
    }

    article p {

        font-size: 14px;
        position: relative;
        left: -30px;
        bottom: 30px;
    }


    header button {
        
        position: relative;
        width: 100px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        left: 100px; /* Keep on the left */
    
    }

    .sidenavig {

        height: 100%;
        width: 0;
        position: fixed;
        z-index: 3;
        top: 0;
        left: 0;
        background-color: white;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
    
    }

    .sidenavig a {
        font-size: 20px;
    }

    .sidenavig .closebutton {
        font-size: 40px;
        left: 120px;
    }
}

