*{
    /* border: 1px solid red; */
    padding: 0;
    margin: 0;
    /* word-wrap: break-word; */
    /* hyphens: auto; */
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    box-sizing: border-box;
    /* user-select: none; */
}
:root{
    --theme: rgb(186, 201, 224);
    --hover: rgba(255, 255, 255, 0.4);
    --background_outside: rgb(51, 49, 49);
    --background_inside: rgb(248, 246, 246);
    --font_color: rgb(0,0,0);
    --blue: rgb(15,48,81);
    --green: rgb(111, 148, 68);
    --themeGradient: linear-gradient(to top, var(--theme),var(--background_inside));
    --hoverGradient: linear-gradient(to right, var(--theme), var(--background_inside));
}
html{
    display: flex;
    justify-content: center;
    scroll-padding-top: 250px;
    scroll-behavior: smooth;
    box-sizing: border-box;
    min-width: 360px;
    color: var(--font_color);
    background-color: var(--background_outside);
}
body{
    width: 100%;
    background-color: var(--background_inside);
}
header{
    position: sticky;
    display: flex;
    justify-content: space-between;
    align-items: center;
    top: 0;
    height: 130px;
    background-color: var(--background_inside);
    z-index: 20;
}
header a {
    max-width: 50%;
    display: block;
    padding: 20px;
}
header a img {
    width: 100%;
    height: auto;
}
#hamburgerContainer{
    position: relative;
    width: 30px;
    height: 30px;
    padding: 10px;
    margin-right: 7%;
    cursor: pointer;
    z-index: 100;
}
#hamburger {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 3px;
    background-color: var(--blue);
    transform: translate(-50%, -50%);
}
#hamburger::before, #hamburger::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: var(--blue);
    transform-origin: center;
    transition: transform 0.3s ease, top 0.3s ease;
}
#hamburger::before { 
    top: -10px; 
}
#hamburger::after { 
    top: 10px; 
}
#hamburger.active {
    background-color: transparent;
}
#hamburger.active::before {
    top: 0;
    transform: rotate(45deg);
}
#hamburger.active::after {
    top: 0;
    transform: rotate(-45deg);
}
#menuContainer {
    position: fixed;
    display: none;
    justify-content: center;
    top: 130px;
    width: 100%;
    height: calc(100% - 130px);
    border-top: 1px solid var(--blue);
    font-size: 25px;   
    background-color: var(--background_inside);
    box-sizing: border-box;
    padding: 0;
    z-index: 100;
}

#menuContainer ul {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    overflow-y: auto;
    padding: 20px 0;
    max-width: 25%;
    min-width: fit-content;
    width: 100%;
}

#menuContainer li {
    text-align: center;
    box-sizing: border-box;
    list-style: none;
    height: fit-content;
    width: 100%;
    padding: 3px;
    border-radius: 10px;
}
#menuContainer a {
    text-decoration: none;
    width: 100%;
}

#menuContainer li:hover, #menuContainer a:hover {
    background-color: var(--theme);
}
nav{
    position: sticky;
    text-align: center;
    top: 130px;
    max-width: 100%;
    background-image: var(--themeGradient);
    font-size: small;
    z-index: 20;
}
nav ul{
    display: flex;
    justify-content: space-between;
    list-style: none;
    overflow-x: auto;
}
nav li{
    align-content: center;
    width: 100%;
    min-width: calc(100% / 8.2);
    padding-top: 15px;
    padding-bottom: 15px;
    cursor: pointer;
    border-top: 1px solid var(--blue);
    border-bottom: 1px solid var(--blue);
}
nav li:hover{
    background-color: var(--hover);
}
nav a{
    display: inline-block;
    text-decoration: none;
    width: 100%;
    color: var(--font_color);
    border-left: 1px solid var(--blue);
}
nav li:first-child a{
    border: none;
}
a{
    text-decoration: none;
    color: var(--font_color);
}
main{
    display: none;
    min-height: calc(100vh - 130px - 111px - 136px);
    width: 100%;
    position: relative;
}
main div{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
}
main.active{
    display: grid;
}
section {
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    cursor: pointer;
}
.popupContent {
    display: none;
    justify-self: center;
    max-width: 1000px;
}
section div.active{
    display: grid;
    grid-template-rows: 250px; 
    grid-template-columns: 1fr;    
    justify-self: start;
    position: fixed;
    align-self: center;
    align-items: start;
    top: 237px;
    left: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    height: calc(100% - 237px);
    background-color: var(--background_inside);
    z-index: 2;
    border-radius: 0;
    /* box-shadow: inset 0px 0px 20px 20px var(--theme); */
    overflow-y: auto;
    cursor: url('https://icons8.com') 12 12, auto;
}
section div.active::after {
    content: "✕";
    position: absolute;
    top: 10%;
    right: 7%;
    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: var(--font_color);
    z-index: 9999;
    cursor: pointer;
}
section div.active img, section div.active h2{
    justify-self: center;
    align-self: center;
}
.popupContent.active {
    display: flex;
    overflow: auto;
    padding: 50px;
}
section div{
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 20px;
    padding: 20px;
    width: 250px;
    min-width: fit-content;
    min-height: fit-content;
    height: 250px;
    box-shadow: 3px 3px 3px 3px var(--theme);
    border-radius: 30px;
}
section h2, section div img{
    display: flex;
    justify-content: center;
    text-align: center;
}
footer {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-evenly;
    min-height: fit-content;
    row-gap: 25px;
    padding: 30px 0;
    border-top: 1px solid var(--blue);
    color: var(--font_color);
    background-image: var(--themeGradient);
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-heading {
    font-weight: bold;
    font-size: 16px;
    color: var(--green);
}

footer ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
}

footer li {
    display: flex;
    align-items: center;
}
footer a:hover{
    background-color: var(--theme);
}
footer li:not(:last-child)::after {
    content: "|";
}

footer a {
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
}

.copyright {
    grid-column: 1 / -1;
    text-align: center;
    width: 100%;
}
@media (max-width: 900px) {
    footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        row-gap: 30px;
    }

    .footer-section {
        flex-direction: column;
        justify-content: center;
    }

    footer ul {
        justify-content: center;
    }
}
@media(max-width: 650px){
    nav li{
        min-width: 33%;
    }
    #navContainer ul::-webkit-scrollbar {
        height: 7px;
        background: var(--background_inside);
    }
    #navContainer ul::-webkit-scrollbar-track {
        border-radius: 4px;
    }
    #navContainer ul::-webkit-scrollbar-thumb {
        background-color: var(--blue);
        border-radius: 4px;
    }
    section div.active{
        top: 243px;
        height: calc(100% - 243px);
    }
    section div.active::after {
        top: 7%;
        right: 15%;
    }
    header a {
        max-width: 70%;
    }
}