@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@100;300;500&display=swap');

:root {
    --body-bg: #252934;
}

* {
    font-family: 'Raleway';
    position: relative;
    z-index: 1; /* Make sure the content is above the overlay */
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    background-color: var(--body-bg);
    font-size: .8vw;
    overflow-x: hidden;
}

/**
Styles for the scrollbar.
**/
::-webkit-scrollbar {
    width: .25em;
}

::-webkit-scrollbar-track {
    background-color: var(--body-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--body-bg), #8083FF, #0090aa, var(--body-bg));
}

/**
Styles for util classes
**/

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    flex-direction: column;
}

.justify-evenly {
    justify-content: space-evenly !important;
}

.align-start {
   align-items: flex-start !important;
}

#page-container {
    width: 50%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

#header, #main, #main-content, #footer {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#header {
    margin-bottom: 5em;
    margin-top: 1em;
}

#footer {
    margin-top: 5em;
}

#footer a {
    margin-left: 2em;
}

#footer p {
    margin-bottom: 1em;
}

#main {
    height: 100%;
}

#main-content {
    text-align: center;
    width: 100%;
    max-height: 100%;
}

#nav {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#nav-list {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    width: 100%;
    padding: 0;
    margin: 0;
}

#nav-list li a {
    color: #fff;
    padding: 1em;
}

a {
    color: #006090;
    text-decoration: none;
    cursor: pointer;
}

#nav-dropdown-btn {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    width: 2.5em;
    aspect-ratio: 1;
}

#nav-dropdown-btn div {
    width: 70%;
    height: 5%;
    background-color: #fff;
}

#particles-js {
    position: fixed;
    left: 0;
    width: 100%;
    height: 99%;
}

.btn {
    width: fit-content;
    background-color: transparent;
    border: 0.5px solid white;
    border-radius: 5px;
    color: white;
    transition: all .2s;
    font-size: 1em;
    cursor: pointer;
    backdrop-filter: blur(1px);
}

.btn:hover {
    transform: scale(1.12);
}

.disable-selection {
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none;
}

/* Use collapsed mode */
@media (max-width: 1500px) {
    #nav-list {
        display: none;
    }

    #nav-list li {
        margin-top: 1em;
    }

    #nav-dropdown-btn {
        display: flex;
    }
}

@media (min-width: 1501px) {
    #nav-list {
        display: flex !important;
        flex-direction: row !important;
    }
}

@media (orientation: portrait) {
    body {
        font-size: 2vw;
    }

    #page-container {
        width: 100%;
    }
}