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

body {                                      /* This block of CSS is responsible for setting site wide properties such as colours, alignments, */
    min-height: 100svh;                     /* font's and text colours. This CSS block is used site-wide for lots of different assets. */
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    background-color: #111111;
    color: #FFFFFF;
}

/* Main container CSS (main_container) */
/* The following CSS is responsible for handing all of the main container material and content. */

#main_container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 0;
}

#main_title {
    text-align: center;
}

/* Alpha banner CSS (alpha_banner, alpha_tag, alpha_message) */
/* The following CSS is responsible for handing all of the alpha banner material and content. */

#alpha_banner {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #ffeeba;
    position: sticky; 
    top: 0;
    z-index: 1000;
    font-size: 0.9rem;
    gap: 0.75rem;
    width: 100%;
}

#alpha_tag {
    background-color: #856404;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
}

#alpha_message {
    margin: 0;
}

/* Login page CSS (login_container, login_content, login_title_content, .description_text, .subtitle_content) */
/* The following CSS is responsible for handing all of the login page material and content. */

body.login {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

body.login #login_container {
    margin-top: auto;
    margin-bottom: auto;
}

#login_container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 275px;
    max-width: 300px;
    min-height: 300px;
    padding: 1rem;
    border-radius: 1.5rem;
    background-color: #111111;
    text-align: center;
    box-sizing: border-box;
    z-index: 1;
}

#login_container::before {
    position: absolute;
    content: "";
    inset: 0;
    padding: 0.25rem;
    border-radius: 1.5rem;
    background: linear-gradient(to bottom, #004067, #FFFFFF);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

#login_container #login_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#login_container h1 {
    font-size: 1.75rem;
    margin-bottom: 0;
    color: #FFFFFF;
}

#login_container p {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1.5rem;
}

#login_container input {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    width: 100%;
    max-width: 300px;
    height: 1.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    box-sizing: border-box;
    font-size: 0.8rem;
}

#login_container button[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    width: 100%;
    max-width: none;
    height: 2rem;
    padding: 0 1.5rem;
    margin: 0 auto 0.8rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #004067;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 0.8rem;
    line-height: 1;
}

#login_container button[type="submit"] .input_icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

#login_container button[type="submit"]:hover {
    background-color: #006089;
    transform: translateY(-2px);
}

#login_container #login_description {
    font-size: 0.6rem;
    margin-top: 1rem;
    opacity: 0.7;
}

#login_container #login_subtitle {
    font-size: 0.6rem;
    margin-top: 0px;
    opacity: 0.7;
}

.input_container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 300px;
    height: 2rem;
    margin-bottom: 0.8rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    background-color: white;
    box-sizing: border-box;
}

.input_container .input_icon {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: #004067;
}

.input_container input {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    height: 100%;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    color: #000000;
    line-height: 2rem;
}

/* Navbar CSS (navbar_content, navbar_inner, navbar_left) */
/* The following CSS is responsible for handing all of the navbar material and content. */

#header_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#navbar_container, #content_container {
    position: relative;
    border-radius: 1rem;
    padding: 0.25rem;
    width: fit-content;
    margin-bottom: 1rem;
}

#navbar_container::before, #content_container::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 0.25rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom, #004067, #FFFFFF);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

#navbar_content, #content_content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #111111;
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

#sub_main_container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

#navbar_title {
    margin: 0;
    font-size: 1.25rem;
}
#navbar_subtitle {
    margin: 0;
    font-size: 0.6rem;
    opacity: 0.7;
}

#navbar_links {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

#navbar_links svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

#navbar_links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #004067;
    color: white;
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

#navbar_links a:hover {
    background-color: #006089;
    transform: translateY(-2px);
}

/* Column layout CSS (.column, .row, .left, .right, .middle) */
/* The following CSS is responsible for handing all of the column layout material and content. */

.column.middle {
    display: flex;
    justify-content: center;
    flex: 2;
}

.row {
    display: flex;
    flex-direction: row;
    width: 100%;
    box-sizing: border-box;
    gap: 1rem;
}

.column {
    padding: 0.5rem;
    box-sizing: border-box;
}

.column.left,
.column.right {
    flex: 1;
}

/* CSS loader (loader) */
/* The following CSS is responsible for creating and handling the content for the CSS loader used across the project. */

/* HTML: <div class="loader"></div> */
.loader {
    display: none;
    width: 60px;
    aspect-ratio: 4;
    --_g: no-repeat radial-gradient(circle closest-side,#FFFFFF 90%,#0000);
    background: 
        var(--_g) 0%   50%,
        var(--_g) 50%  50%,
        var(--_g) 100% 50%;
    background-size: calc(100%/3) 100%;
    animation: l7 1s infinite linear;
}

@keyframes l7 {
    33%{background-size:calc(100%/3) 0%  ,calc(100%/3) 100%,calc(100%/3) 100%}
    50%{background-size:calc(100%/3) 100%,calc(100%/3) 0%  ,calc(100%/3) 100%}
    66%{background-size:calc(100%/3) 100%,calc(100%/3) 100%,calc(100%/3) 0%  }
}

button {
    display: inline-flex;
    align-items: center; 
    justify-content: center;
    gap: 8px;
}

button.loading .loader {
    display: block;
}

button.loading #text {
    display: none;
}

/* Stats table CSS (stats_table) */
/* The following CSS is responsible for handling all of the stats table on the home page material and content. */

.data_charts {
    width:100%;
    max-width:700px
}

#horizontal_line {
    display: block;
    height: 1px;
    width: 100%;
    border-top: 1px solid #ffffff;
    margin: 1em 0;
    padding: 0;
}

/* Media tags for adjusting certain CSS properties depending on the device's screen size. */

@media (max-width: 600px) {
    .alpha-banner {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 768px) {
    #navbar_content {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    #navbar_title_content {
        text-align: center;
    }

    #navbar_links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem 0.5rem;
    }

    #navbar_links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    #navbar_title {
        font-size: 1.1rem;
    }

    #navbar_subtitle {
        font-size: 0.55rem;
    }
}

@media (max-width: 480px) {
    .input_container {
        height: 2.5rem;
    }

    .input_container input {
        font-size: 0.9rem;
        line-height: 2.5rem;
    }

    #login_container button[type="submit"] {
        height: 2.5rem;
        font-size: 0.9rem;
    }

    #login_container #login_description,
    #login_container #login_subtitle {
        font-size: 0.75rem;
    }

    #navbar_content {
        padding: 0.5rem 0.75rem;
    }

    #navbar_links a {
        padding: 0.5rem 0.5rem;
        font-size: 0.9rem;
    }

    #navbar_title {
        font-size: 1rem;
    }

    #navbar_subtitle {
        font-size: 0.5rem;
    }
}