* {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: white;
}

::-webkit-scrollbar-track {
    border: 1px solid black;
}

label {
    color: floralwhite;
    font-size: 19px;
    user-select: none;
}

button:is(.cancel-btn, .apply-btn) {
    -webkit-appearance: none;
}

input[type="checkbox"] {
    transform: scale(1.6);
}

.settings {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    padding-top: 4em;
    margin: auto;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    overflow: auto;
}

.settings > h3 {
    position: fixed;
    top: 1em;
    left: 1.7em;
    color: white;
}

.settings > h5 {
    position: fixed;
    bottom: 1em;
    right: 2em;
}

.settings-panel {
    position: relative;
    width: 80%;
    height: 90%;
    background-color: rgba(20, 10, 20, 1);
    margin: auto;
    padding: 4em;
    overflow: auto;
    box-shadow:0 1px 4px rgba(200, 200, 200, 0.9), 0 0 40px rgba(200, 200, 200, 0.3) inset;
    -webkit-box-shadow:0 1px 4px rgba(200, 200, 200, 0.9), 0 0 40px rgba(200, 200, 200, 0.3) inset;
    -moz-box-shadow:0 1px 4px rgba(200, 200, 200, 0.9), 0 0 40px rgba(200, 200, 200, 0.3) inset;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.span-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 15em;
    width: fit-content;
}

.wrapper-for-select {
    width: auto;
    height: auto;
}

.wrapper-for-checkbox {
    width: auto;
    height: auto;
}

.wrapper-for-select > div {
    display: flex;
    align-items: center;
    gap: 1em;
    padding-top: 1em;
}

.wrapper-for-checkbox > div {
    display: flex;
    align-items: center;
    gap: 1em;
    padding-top: 1em;
}

#span-buttons {
    position: absolute;
    bottom: 2em;
    right: 1.5em;
    display: flex;
    gap: 1em;
}

#span-buttons > button {
    width: 4.5em;
    text-align: center;
    color: black;
    transition: 0.4s all;
    transform: scale(1);
}

#span-buttons > button[id=ok-btn] {
    background-color: cornflowerblue;
    border: none;
    color: white;
}

@media screen and (max-width: 768px) {
    input[type=checkbox] {
        width: 1em;
        height: 1em;
    }

    label {
        font-size: 14px;
    }

    .settings > h5 {
        bottom: 0.1em;
        right: 0.1em;
        font-size: 12px;
    }

    .settings > h3 {
        top: 0.2em;
        font-size: 18px;
    }

    #span-buttons {
        display: flex;
        gap: 0.5em;
    }

    .span-wrapper {
        flex-direction: column;
        gap: 2em;
    }
}

@media screen and (max-width: 1024px) {
    .settings-panel {
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .span-wrapper {
        gap: 2em;
    }
}

@media (hover: hover) {
    label:not(#label-choose-font-size, #label-select-default-file-ext, #label-theme):hover, input[type="checkbox"]:hover {
        cursor: pointer;
    }

    #span-buttons > button:hover {
        transition: .4s all;
        transform: scale(1.1);
    }

    select:hover {
        cursor: pointer;
    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: grey;
    }
}