/* #region Variables */

:root {
    --textPrimary: rgb(220,220,220);
    --textSecondary: rgb(150,150,150);
    --background: rgb(20,20,20);
    --panelPrimary: rgb(40,40,40);
    --panelSecondary: rgb(30,30,30);
    --panelAccent: rgb(210, 182, 255);
    --elementHover: rgba(255,255,255,0.1);
    --boxShadow: 0 0 5px 5px rgba(0, 0, 0, 0.5);
}

/* #endregion */

/* #region Base Styles */

* {
    margin: 0;
    padding: 0;
    color: var(--textPrimary);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
    cursor: default;
}

body {
    display: grid;
    grid-template-rows: 50px auto;
    row-gap: 30px;
    padding-bottom: 80px;
    width: 100dvw;
    height: 100dvh;
    background-color: var(--background);
    white-space: nowrap;
}

/* #endregion */

/* #region Alignment */

.ju-left {
    justify-self: left;
}

.ju-center {
    justify-self: center;
}

.ju-right {
    justify-self: right;
}

/* #endregion */

/* #region Divs */

div {
    width: 100%;
    height: 100%;
}

    /* #region Navbar Elements */

    .navbar-container {
        position: absolute;
        height: max-content;
    }

    .navbar {
        position: relative;
        display: flex;
        flex-direction: row-reverse;
        gap: 10px;
        width: 100%;
        height: 50px;
        align-items: center;
        background-color: var(--panelPrimary);
        z-index: 2;
    }

    .navbar::before {
        display: block;
        position: absolute;
        bottom: 0;
        width: 100%;
        height: max-content;
        border-bottom: 2px inset var(--panelAccent);
        content: '';
    }

    .navbar-item {
        display: flex;
        width: max-content;
        height: 100%;
        background-color: transparent;
        transition: all 0.4s ease-in-out;
    }

    .navbar-item:hover {
        background-color: var(--elementHover);
    }

    .navbar-dropdown {
        display: none;
        flex-direction: column;
        height: max-content;
        align-items: flex-end;
        background-color: var(--panelSecondary);
        box-shadow: var(--boxShadow);
        z-index: 1;

        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-dropdown.show {
        display: flex;
        opacity: 1;
        transform: translateY(0);
    }

    .navbar-dropdown-item {
        display: flex;
        height: max-content;
        width: 100%;
        align-items: center;
        justify-content: flex-end;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.4s ease-in-out;
    }

    .navbar-dropdown-item:hover {
        background-color: var(--elementHover);
    }

    /* #endregion */

    /* #region Content Elements */

    .content {
        grid-row: 2;
    }

    /* #endregion */

    /* #region Footer Elements */

    .footer {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-row: 3;
        position: fixed;
        bottom: 0;
        padding: 0 5px;
        width: 100%;
        height: max-content;
        min-height: 50px;
        align-items: center;
        justify-content: space-between;
        color: var(--textSecondary);
        background-color: var(--panelPrimary);
        font-size: smaller;
    }

    .footer::before {
        display: block;
        position: absolute;
        top: 0;
        width: 100%;
        height: max-content;
        border-bottom: 2px inset var(--panelAccent);
        content: '';
    }

    .footer-links{
        display: flex;
        gap: 10px;
        width: max-content;
        height: 100%;
        align-items: center;
        background-color: transparent;
    }

    .footer-links a {
        display: flex;
        padding: 5px;
        align-items: center;
        justify-content: center;
        height: 100%;
        width: 100%;
        text-decoration: none;
        transition: all 0.4s ease-in-out;
        cursor: pointer;
    }

    .footer-links a:hover {
        background-color: var(--elementHover);
    }

    /* #endregion */

/* #endregion */

/* #region Images*/

.logo {
    position: absolute;
    min-width: 55px;
    max-width: 85px;
    width: 10%;
    box-shadow: var(--boxShadow);
    cursor: pointer;
    z-index: 3;
}

/* #endregion */

/* #region Links*/

a {
    padding: 10px;
    height: 100%;
    line-height: 25px;
    text-decoration: none;
    cursor: pointer;
}

.navbar-dropdown-item > a {
    padding: 5px 10px;
}

/* #endregion */

/* #region iFrames*/

iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
}

/* #endregion */

/* #region Mobile Overrides */

@media screen and (max-width:1200px) {
    .footer {
        grid-template-columns: 1fr;
    }

    .footer > *:nth-child(-n + 2) {
        display: none !important;
    }
}

@media screen and (max-width:800px) {
    body {
        padding-bottom: 70px;
    }

    .navbar {
        height: 40px !important;
        font-size: small !important;
    }

    .navbar-dropdown {
        font-size: small !important;
    }

    .footer {
        min-height: 40px !important;
    }
}

/* #endregion */