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

a {
    color: white;
    text-decoration: none;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

h1 {
    font-size: clamp(1.5rem, 3vw, 4rem);
}

h2 {
    font-size: clamp(1rem, 2.5vw, 3.5rem);
}

h3 {
    font-size: clamp(0.5rem, 2vw, 3rem);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1; /* or 1.2 for more breathing room */
    margin-bottom: 2.5vw;
}


body {
    min-height: 100vh;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
    font-family: 'Courier New', Courier, monospace;
}

header {
    background-color: #505050;
    position: fixed; 
    top: 0;
    left: 0;
    right: 0;
    height: 10vh;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
    border-bottom: 2px solid #606060;
}


/* Main-Shit */
main {
    display: flex;
    flex-direction: column;
    align-items: center;

    flex-grow: 1;
    background-color: #707070;
    padding: 15vh 5vh 100px 5vh;

    position: relative;
    z-index: 50;
    font-size: 2rem;
    
}

main p {
    font-size: clamp(1rem, 1.5vw, 2rem);
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}



/* Navigation-Shit */

.main-nav {
    width: 100%;
    padding: 0 5%;
    box-sizing: border-box;
}
.main-nav > ul {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}
.main-nav li {
    position: relative;
    color: white;
}
.main-nav a {
    color: white;
    text-decoration: none; 
    padding: 0.5rem 1rem; 
    display: inline-block;
}
.main-nav > ul > li:first-child {
    margin-right: auto;
}
.main-nav > ul > li:first-child a {
    color:rgb(8, 52, 8);
    font-size: 1.2rem;
}

/* Side-Nav */

.top-nav {
    display: flex;
    gap: 2rem;
}

.side-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    padding-left: 40px;
    

    background-color: rgba(80, 80, 80, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);


    backdrop-filter: blur(10px);
    -webkit-mask-image: radial-gradient(white, black); /* iOS fix */
    mask-image: radial-gradient(white, black);

    padding-top: 1rem;
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);

    z-index: 999;

    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.side-nav.active {
    transform: translateX(0);
    opacity: 1;
}

.side-nav ul {
    height: 100%;
    display: flex;
    flex-direction: column;
    
    align-items: flex-start;
    justify-content: start;
    gap: 3rem;
    padding-top: 0.4rem;
}

/* Felian-Shit */
.felian-left {
    margin-right: 120px;
}
.fnav {
    background-color: rgb(10, 100, 10);
    width: 120px;
    position: fixed;
    right: 0.5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style-type: none;
    border-radius: 10ch;
    border: solid 2px whitesmoke;
    border-style: double;
    top: 10vh;
    bottom: 5vh;
    box-shadow: 8px 4px 8px rgba(244, 241, 241, 0.3);
}

/* Dropdown-shit */

.dropdown-content {
    display: none; /*?*/
    position: absolute;
    top: 100%; /*?*/
    left: 0;
    background-color: #505050;
    min-width: 160px;
    z-index: 1000;
}
.dropdown-content li a {
    display: block;
    padding: 0.5rem 1rem;
    color: white;
    background-color: #505050;
    border-top: 1px solid #606060;
}
.main-nav .dropdown:hover > .dropdown-content {
    display: block;
}
.dropdown-sub {
    position: relative;
}
.dropdown-sub ul {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #505050;
}
.main-nav .dropdown-sub:hover > ul {
    display: block;
}


/* Side-nav dropdown container */
.side-nav .dropdown-content {
    display: none;
    position: static; /* Flow naturally inside the side-nav */
    padding-left: 1rem;
    margin-top: 0.5rem;
    flex-direction: column;
    gap: 0.3rem;
}

/* Show dropdown when active */
.side-nav .dropdown.active > .dropdown-content {
    display: flex;
}

/* Sub-dropdown container */
.side-nav .dropdown-sub ul {
    display: none;
    position: static;
    
    padding-left: 1.5rem;
    margin-top: 0.3rem;
    flex-direction: column;
    gap: 0.2rem;
}

/* Show sub-dropdown when active */
.side-nav .dropdown-sub.active > ul {
    display: flex;
}

/* Side-nav links styling 
.side-nav a {
    color: white;
    padding: 0.3rem 0;
    display: block;
    font-size: 1rem;
    user-select: none;
}
*/
/* Dropdown and sub-dropdown links */
.side-nav .dropdown-content li a,
.side-nav .dropdown-sub ul li a {
    padding-left: 0.5rem;
    font-size: 0.95rem;
}


/* Prevent pushing down other links by keeping natural flow */
.side-nav ul,
.side-nav .dropdown-content,
.side-nav .dropdown-sub ul {
    margin: 0;
}

/* Remove background from dropdowns in side-nav */
.side-nav .dropdown-content,
.side-nav .dropdown-sub ul {
    background-color: transparent; /* no bg color */
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
}

/* Show dropdown when active */
.side-nav .dropdown.active > .dropdown-content,
.side-nav .dropdown-sub.active > ul {
    display: flex;
}

/* Style links inside dropdown */
.side-nav .dropdown-content li a,
.side-nav .dropdown-sub ul li a {
    padding-left: 0.5rem;
    font-size: 0.95rem;
    background-color: transparent; /* also no bg on links */
    color: white;
}



footer {
    background-color: #909090;
    min-height: 30px;
    padding: 0.5rem 1rem 0.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;

    position: fixed;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.3);
    border-top: 2px solid #404040;
    font-size: 0.8rem;
}

.footer-info {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.copyright {
    width: 100%;
    text-align: center;
}



button#nav-close {
    background: none;
    border: none;
    padding-top: 0.4rem;
    cursor: pointer;
}

button#nav-open {
    background: none;
    border: none;
    padding-top: 0.4rem;
    cursor: pointer;
}


@media (max-width: 1192px) {
    .top-nav > li:not(:first-child):not(:last-child) {
        display: none;
    }

    .top-nav > li:last-child {
        display: flex;
        height: 100%;
        align-items: center;
    }
}

@media (max-width: 480px) {
    footer {
        font-size: 0.5rem;
    }
}

@media (min-width: 1193px) {
    .top-nav > li:last-child {
        display: none;
    }
}
