@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    color: white;
    font-family: system-ui, sans-serif, math, cursive;
    display: grid;
    min-height: 100vh;
    grid-template-rows: auto 1fr auto;
    animation: fadeIn 0.5s ease-in forwards;
    opacity: 0;
    background-color: black;
    background-image: url(/images/common/background.png);
}

nav {
    height: 60px;
    display: flex;
    align-items: center;
    z-index: 5;
}

nav svg {
    margin: 0 0 -4px 2px;
}

.navLink {
    text-decoration: none;
    display: inline-block;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    border: solid 1px lightgray;
    border-radius: 5px;
    margin-left: 8px;
    font-weight: 400;
    color: white;
    background-color: transparent;
    background: linear-gradient(to right, rgb(112, 189, 199) 50%, transparent 50%);
    background-size: 200% 100%;
    background-position: right;
    transition: background-position 0.5s, color 0.5s;
    white-space: nowrap;
    padding: 0 10px;
    cursor: pointer;
}

.navDropDown {
    margin: 0;
    border: none !important;
    border-radius: 0 !important;
    justify-content: left;
}

.navLink:hover {
    background-position: left;
    color: black;
    font-weight: bold;
}

.navActive {
    color: wheat;
    background-color: black;
    box-shadow: 0px 0px 4px 3px rgba(255, 255, 255, 0.2)
}

#logoLink {
    height: 40px;
    display: flex;
    align-items: center;
    margin: 0 0 0 8px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: linear-gradient(to right, rgb(53, 54, 66), rgb(70, 70, 75));
    z-index: 1;
    border: 1px solid white;
    margin-left: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .navLink {
    border-radius: 5px 5px 0 0;
}

.dropdown-side {
    position: relative;
}

.dropdown-side-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    /* push to the side */
    background: linear-gradient(to right, rgb(53, 54, 66), rgb(70, 70, 75));
    border: 1px solid white;
    min-width: 100%;
    z-index: 2;
}

.dropdown-side:hover>.dropdown-side-content {
    display: block;
}

footer {
    display: grid;
    grid-template-columns: auto auto min-content;
    row-gap: 4px;
    column-gap: 16px;
}

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

footer svg:hover {
    fill: goldenrod;
}

footer svg {
    width: 16px;
    height: 16px;
    fill: beige;
    margin-right: 8px;
    display: block;
}

footer pre {
    margin: 0;
    font-family: ui-monospace, math, system-ui, ui-sans-serif, sans-serif;
}

footer span {
    display: flex;
    align-items: center;
}

div:has(footer) {
    padding: 8px;
}

hr {
    border-color: rgba(25, 25, 25, 0.4) !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    body {
        grid-template-rows: auto 1fr auto;
    }

    nav {
        height: auto;
        flex-direction: column;
        padding: 10px 0;
    }

    .navLink {
        width: 90%;
        margin: 5px 0;
        min-width: unset;
    }

    #logoLink {
        margin: 0 0 10px 0;
    }

    .dropdown {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .dropdown-content {
        position: relative;
        width: 90%;
        margin-left: 0;
    }

    .dropdown-side-content {
        position: relative;
        left: 0;
        top: 0;
        border-left: 1px solid white;
    }

    /* Footer */
    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    footer span {
        display: block;
        padding: 5px;
    }
}