html,
body {
    display: flex;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    color: white;
}

body {
    flex-direction: column;
    min-height: 100%;
    width: 100vw;
    background-color: black;
    align-items: center;
    justify-content: center;
}

.background {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    background-image: url("images/background.png");
    background-position: center;
    background-size: cover;
    flex-direction: column;
    min-height: 100%;
    width: 100vw;
    opacity: 0.6;
}

.content {
    display: flex;
    flex-direction: column;
}

.links {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    margin-bottom: 1rem;

    .search {
        height: 50px;
        width: 80vw;
        max-width: 500px;
        border-radius: 10px;
        margin: 3vw 0 2vw;
        padding: 5px 10px;
        border: none;
        text-align: center;
        font-size: 1.2rem;
    }

    .search:focus {
        outline: none;
    }

    a {
        display: flex;
        width: 120px;
        height: 80px;
        background-color: white;
        align-items: center;
        border-radius: 10px;
        margin: 10px;

        div {
            text-decoration: none;
            color: white;
            font-size: 1.2rem;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;

            img {
                display: flex;
                max-width: 90%;
                max-height: 70%;
            }

            span {
                display: inline-block;
            }
        }

        a:hover div {
            color: blue;
        }

    }

    p {
        display: flex;
        align-items: center;
        margin: 10px;
    }

}

.hidden-block {
    display: none;
}


/*   Toggle UI rules   */
.ip-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 100%;
    padding: 3px;
    border-radius: 999px;
    gap: 4px;

    input[type="radio"] {
        /* hide native radio */
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

    label {
        cursor: pointer;
        padding: 6px 12px;
        border-radius: 999px;
        font-weight: 600;
        color: #333;
        transition: background-color .12s ease, color .12s ease, transform .08s ease;
        user-select: none;
    }

    input[type="radio"]+label {
        background: rgba(255, 255, 255, 0.5);
    }

    input[type="radio"]:checked+label {
        background: #0b76d1;
        /* active color */
        color: #fff;
        box-shadow: 0 2px 6px rgba(11, 118, 209, 0.18);
        transform: translateY(-1px);
    }
}

/* small screens: slightly smaller toggle */
@media (max-width: 420px) {
    .ip-toggle label {
        padding: 5px 8px;
        font-size: 0.95rem;
    }
}


/*   Server selector rules   */
button {
    width: 130px;
    height: 50px;
    background-color: rgba(1, 1, 1, 0.5);
    border: 2px solid transparent;
    color: white;
    font-size: 1rem;

    --border-color: rgb(55, 0, 87);
}

button:hover {
    background-color: rgba(1, 1, 1, 0.7);
    border: 2px solid var(--border-color);
    cursor: pointer;
}

button.active {
    background-color: rgba(1, 1, 1, 0.9);
    border: 2px solid var(--border-color);
}

button:first-of-type {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

button:last-of-type {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.sidebar {
    box-sizing: border-box;
    color: gray;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1000px) {
    .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        width: 300px;
        height: 100vh;
        padding: 0 1em;
        z-index: 100;
        overflow-y: auto;
        font-family: -apple-system system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        h2 {
            height: 30px;
            margin: 2rem 0 0 0;
        }

        .server-overview-list {
            height: calc(100% - 30px);
            display: flex;
            flex-direction: column;
            justify-content: center;


            .server-overview {
                margin: 1rem 0;
            }
        }
    }

    .content {
        margin-right: 320px;
    }

}

@media (max-width: 999px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;

        h2 {
            text-align: center;
        }

        .server-overview-list {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 3rem;
            margin: 2rem 0;

            .server-overview {
                width: 40%;
            }

            .server-overview:nth-child(odd) {
                text-align: right;
            }
        }
    }
}

@media (max-width: 550px) {
    .sidebar {
        .server-overview-list {
            .server-overview {
                width: auto!important;
                text-align: left!important;
            }
        }
    }
}