:root {
        --color-dark-gray: #384050;
        --color-light-gray: #9ea2adff;
}

.example-text {
        font-size: 1.5rem;
        margin: 1rem;
}

.settings-button {
        cursor: pointer;
}

/* Popup overlay */
.popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 1000;
}

.popup {
        display: flex;
        background: #2f343f;
        color: #9298b2;
        border-radius: 8px;
        max-width: 90%;
        width: 300px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        flex-direction: column;
}

.popup h2 {
        margin-top: 0;
        font-size: 1.2rem;
}

.preset-colors {
        display: flex;
        gap: 10px;
        margin: 1rem 0;
        flex-wrap: wrap;
}

.preset-colors button {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #525966;
        cursor: pointer;
}

.input-box {
        border: 1px solid #525966;
        display: block;
}

.popup input[type="color"] {
        width: 40px;
        aspect-ratio: 1 / 1;
        border: 20px solid var(--color-dark-gray);
        cursor: pointer;
}

.popup-top-box {
        padding: 3px 3px;
}

.close-btn {
        border: 1px solid var(--color-dark-gray);
        color: var(--color-light-gray);
        background-color: transparent;
        border-radius: 6px;
        cursor: pointer;
        float: right;
        width: 35px;
        aspect-ratio: 1 / 1;
        display: flex;
        line-height: 50%;
        flex-direction: column;
        justify-content: center;
}

.popup-bottom-box {
        padding: 0 0 20px 30px;
}

.size-box {
        display: flex;
        gap: 20px;
        padding: 16px;
}

@media (hover: none) and (pointer: coarse) {

        .popup {
                width: 90%;
        }
}