:root {
    --white: #FFFFFF;
    --black: #101010;
    --dark: #202020;
    --light: #303030;

    --thin-border: #606060;
    --transition-fast: 0.15s ease;

    --online-background: #11331f;
    --offline-background: #2b2c2c;
    --online-text: #9df3a0;
    --offline-text: #474747;

    --resource-button: transparent;
    --resource-button-hover: #4D4D4D;
    --resource-button-press: #777777;

    font-family: 'Montserrat', sans-serif;
}

/* Every consumer page relies on percentage heights (e.g. #main-container {
   height: 100% }) cascading all the way down — without this, html/body have
   no resolved height and the whole chain collapses to 0px. */
html {
    height: 100%;
}

body {
    height: 100%;
    background-color: var(--black);
    margin: 0;
    padding: 0;
    user-select: none;
    outline: none;
    overflow-y: scroll;
    -webkit-tap-highlight-color: transparent;
}

.disabled {
    pointer-events: none;
    opacity: 25%;
}

/*#region SCROLLBAR */

::-webkit-scrollbar {
    width: 0.75vh;
    height: 0.75vh;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0.75vh;
}

::-webkit-scrollbar-thumb {
    background: var(--white);
    border-radius: 0.75vh;
}

@media screen and (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 0.75vw;
        height: 0.75vw;
    }

    ::-webkit-scrollbar-track {
        border-radius: 0.75vw;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 0.75vw;
    }
}

/*#endregion*/

/*#region SEARCH BAR */

.search-bar {
    height: 4vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--dark);
    border: 0.05vh solid var(--thin-border);
    border-radius: 0.5vh;
    transition: border-color var(--transition-fast);
}

.search-bar:focus-within {
    border-color: rgba(255, 255, 255, 0.4);
}

.search-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1vh;
}

.search-bar-icon span {
    font-size: 2.5vh;
    color: var(--white);
    opacity: 0.5;
}

.search-bar-input {
    height: 100%;
    flex: auto;
    background-color: transparent;
    border-radius: 0.5vh;
    border: none;
    font-size: 1.75vh;
    font-weight: normal;
    color: var(--white);
    outline: none;
    margin-left: 1vh;
}

.search-bar-results-container {
    position: absolute;
    top: 6vh;
}

.search-bar-result-item {
    width: 30vh;
    height: 5vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--dark);
    border: 0.05vh solid var(--thin-border);
    border-radius: 0.5vh;
    color: var(--white);
    font-size: 2vh;
    font-weight: bold;
    margin-bottom: 1vh;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.search-bar-result-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/*#endregion*/
