body {
    margin-top: 90px;
    height: 100%;
    min-height: 100vh;
    padding: 0;
    font-family: Times, serif;
    font-size: 16px;
}

a {
    color: #ddd;
    text-decoration: none;
}

a:visited {
    color: #add;
}

.a-button {
    display: inline-block;
    border-radius: 7px;
    padding: 5px;
    padding-block: 2px;
    margin: 3px;
    margin-left: 5px;
    margin-right: 5px;
    box-shadow: 0px 0px 4px 0px #ccc;
}

.a-button:hover {
    background: rgb(0, 0, 0, .2);
}

hr {
    border: none;
    height: 1px;
    background-color: rgba(222, 222, 222, 0.5);
    box-shadow: 0px 0px 3px 1px rgba(222, 222, 222, 0.7);
}

ul {
    padding: 0;
    margin: 0;
}

.content-area {
    margin-top: 1%;
    text-align: center;
    padding-block: 10px;
    margin: auto;
    width: 70%;
    clear: both;
    border-radius: 15px;
    line-height: 1.1em;
    background-repeat: no-repeat;
    background-position: top right;
    box-shadow: inset 0px 0px 8px 4px rgba(222, 222, 222), 0px 0px 10px 5px rgba(222, 222, 222);
}

.head {
    display: inline-block;
    border-radius: 9px;
    margin: 5px;
    padding: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    border-color: rgba(222, 222, 222, 0.2);
}

.search-box {
    width: 360px;
    height: 22px;
    font-size: 16px;
    margin-top: 4px;
    display: block;
    margin: 0 auto;
    text-align: center;
    color: rgba(222, 222, 222);
    box-shadow: 0px 0px 2px 0px rgba(222, 222, 222);
    background-color: rgba(33, 31, 31, 0.2);
}

.foot {
    font-size: 11px;
    color: rgba(222, 222, 222, 0.7);
    background: none;
    box-shadow: none;
}

.theme-dark {
    background: linear-gradient(to right, rgb(75, 75, 75), rgb(35, 35, 35));
}

.theme-dark-inverse {
    background: linear-gradient(to left, rgb(75, 75, 75), rgb(35, 35, 35));
}

.theme-dark h1,
.theme-dark a:hover,
.theme-dark-inverse a:hover {
    color: rgb(155, 175, 245);
}

.theme-dark-text {
    color: rgb(222, 222, 222);
}

.theme-light {
    background: linear-gradient(to right, rgb(150, 90, 190), rgb(95, 125, 195));
}

.theme-light-inverse {
    background: linear-gradient(to right, rgb(95, 125, 195), rgb(150, 90, 190));
}

.theme-light h1,
.theme-light a:hover,
.theme-light-inverse a:hover {
    color: rgb(255, 175, 20);
}

.theme-light-text {
    color: rgb(222, 222, 222);
}

.w0 a {
    text-decoration: none;
}

.w30 a {
    text-decoration: none;
    width: 30%
}

.w45 a {
    text-decoration: none;
    width: 45%
}

.w90 a {
    text-decoration: none;
    width: 90%
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    visibility: visible;
}

.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
}

.popup .popup-text {
    visibility: hidden;
    max-width: 25%;
    text-align: left;
    position: fixed;
    z-index: 1;
    border-radius: 10px;
    transition: visibility 0.1s ease-in-out 0.1s, opacity 0.5s ease-in-out, background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.popup:hover .popup-text {
    visibility: visible;
    color: rgb(222, 222, 222);
    background-color: rgba(22, 22, 22, 0.7);
    box-shadow: 0 0 5px 5px rgba(222, 222, 222, 0.7);
    transition: visibility 0.1s ease-in-out 0.1s, opacity 0.5s ease-in-out, background-color 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
}

.popup-content p {
    margin: 5px 0;
}

/* Settings Popup */

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.popup-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    background-color: rgba(22, 22, 22, 0.9);
    box-shadow: 0 0 7px 7px rgba(222, 222, 222, 0.7);
    padding: 20px;
    border-radius: 10px;
    text-align: left;
}

.settings-dropdown,
.dropdown {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: rgba(22, 22, 22, 0.9);
    color: #ccc;
    margin-bottom: 20px;
    font-family: inherit;
}

.tabcontent {
    display: none;
}

.settings-option,
.popup-config-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.settings-option label,
.popup-config-option label {
    flex: 1;
    margin-right: 10px;
    text-align: right;
}

.settings-option select,
.popup-config-option input {
    flex: 0 0 auto;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: rgba(22, 22, 22, 0.9);
    color: #ccc;
    font-family: inherit;
    /* Ensures the font matches the rest of the page */
}

@media (max-width: 768px) {
    .popup-text {
        max-width: 100%;
    }

    .popup-config-option {
        width: 100%;
        margin-bottom: 15px;
    }

    .settings-option-row {
        flex-direction: column;
    }

    .settings-option {
        margin-bottom: 10px;
        width: 100%;
    }

    .settings-option label {
        margin-right: 0;
        width: 100%;
    }

    .settings-option select {
        width: 100%;
    }
}

@media (min-width: 769px) {
    .settings-option-row {
        flex-direction: row;
    }

    .settings-option {
        margin-bottom: 2;
        width: auto;
    }

    .settings-option label {
        margin-right: 10px;
        width: auto;
    }

    .settings-option select {
        width: auto;
    }
}

#index-buttons {
    background-color: rgba(22, 22, 22, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

#index-buttons.hidden {
    transform: translateY(-100%);
}

#toggle-arrow {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1001;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

#toggle-arrow.up {
    transform: rotate(180deg);
}