@media (min-width: 1px) and (max-width: 575px) {
    .formatted-stats-grid {
        grid-template-columns: repeat(3, auto);
    }
}

@media (min-width: 576px) {
    .formatted-stats-grid {
        grid-template-columns: repeat(6, auto);
    }
}

@media (min-width: 768px) {
    .table-cell-full {
        display: table-cell;
        border: 1px solid black;
        padding: 10px;
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 1024px) {
    .table-cell-full {
        display: table-cell;
        border: 1px solid black;
        padding: 10px;
        width: 100%;
        text-align: center;
    }
}

.img_ny_hat {
    position: absolute;
    top: -10px;
    left: -5px;
    width: 50px;
    height: auto;
}

/* Стили для форм и элементов */
.formatted-stats-box {
    display: inline;
    align-content: center;
    font-size: 120%;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--pico-border-color);
}

label.custom_radio:has([type=checkbox],[type=radio]) {
    cursor: default;
}

[type=checkbox]~label, [type=radio]~label {
    display: inline-block;
    margin-bottom: 0;
    cursor: default;
}

input[type="radio"]:disabled {
    -webkit-appearance: none;
    background-color:  var(--pico-border-width) solid var(--pico-border-color);
    opacity: inherit;
}

input[type="radio"]:checked {
    background-color: var(--pico-primary-border);
}

fieldset legend,
label {
    display: inline-block;
    margin-top: calc(var(--pico-spacing) * .100);
    margin-bottom: calc(var(--pico-spacing) * .100);
    color: var(--pico-color);
    font-weight: var(--pico-font-weight);
}

#btn_go_to_top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 150px;
    z-index: 100;
    background-color: var(--pico-border-color);
    border-color: var(--pico-background-color);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    padding: 15px;
}

#btn_open_notepad {
    position: fixed;
    bottom: 30px;
    right: 50px;
    z-index: 100;
    background-color: var(--pico-border-color);
    border-color: var(--pico-background-color);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    padding: 15px;
}

.th-spells {
    display: flex;
    align-content: space-around;
    justify-content: space-between;
    align-items: start;
    justify-items: stretch;
}

/* Применяем стили только для таблиц с классом "custom-table" */
.custom-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-table th {
    width: 60%;
}

.custom-table td {
    width: 40%;
}

.custom-table th, .custom-table td {
    text-align: left;
}

#div_banner {
    padding: 20px;
    position: relative;
}
.close-btn {
    padding: 0px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

#new_year_hat,
#new_year_garland {
    display: none;
}

/*вечно зеленый свич*/
/*:root:not([data-theme=dark]), [data-theme=light] {*/
/*    --pico-switch-background-color: var(--pico-primary-hover-background);*/
/*}*/