@charset "utf-8";

.mark,
.set {
    flex-direction: column;
    align-items: center;
    background: var(--main-background-color);
    border-radius: 8px;
    height: 400px;
    max-height: 400px;
    width: 80%;
    max-width: 900px;
    position: absolute;
    margin-top: 200px;
    z-index: 2000;
    animation: fade 0.75s;
    -webkit-animation: fade 0.75s;
    -moz-animation: fade 0.75s;
    -o-animation: fade 0.75s;
    -ms-animation: fade 0.75s;
}

.mark .tab,
.set .tabs {
    height: 40px;
    min-height: 40px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 20px;
}

.set .tabs {
    margin-bottom: 0px !important;
}

.mark .tab .tab-item,
.set .tabs .tab-items {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.95rem;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
    border-top: 2px solid transparent;
}

.mark .tab .tab-item:hover,
.set .tabs .tab-items:hover {
    cursor: pointer;
    border-bottom-color: var(--border-bottom-color-hover);
}

.mark .tab .tab-item.active,
.set .tabs .tab-items.actives {
    border-bottom-color: var(--border-bottom-color-active);
}

.products,
.productss {
    width: 100%;
    height: 100%;
}

.products .mainCont,
.productss .mainConts {
    display: none;
    width: 100%;
    flex-wrap: wrap;
    animation: fade 0.5s;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

.products .mainCont.selected,
.productss .mainConts.selected {
    display: flex;
}

.quick-all,
.quick-alls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    width: 100%;
    margin: 0px 20px 20px 20px;
    height: 316px;
    overflow: auto;
}

.quick,
.quicks {
    flex: 1;
    height: 48px;
    background: var(--main-background-color);
    cursor: pointer;
    border-radius: 8px;
    width: 18%;
    min-width: 18%;
    max-width: 18%;
    margin: 0% 1% 2% 1%;
    transition: 0.3s;
}

.quick:hover,
.quicks:hover {
    background: var(--main-background-hover-color);
}

.quick:active,
.quicks:active {
    transform: scale(0.95);
    background: var(--main-background-active-color);
}

.quick a,
.quicks a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.set_blocks {
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.set_blocks_content {
    display: flex;
    margin: 20px 20px 0px 20px;
    height: 430px;
    flex-direction: column;
    justify-content: space-between;
}

.set_blocks_content .se_add_preinstall,
.set_blocks_content .se_add_preinstalls,
.from_items.button {
    display: flex;
    justify-content: center;
}

.set_se_list_add,
.set_se_list_preinstall,
.se_add_save,
.se_add_cancel,
.set_quick_list_add,
.set_quick_list_preinstall,
.quick_add_cancel,
.quick_add_save,
.wallpaper_save,
.countdown_save,
.countdown_reset,
.but-ordinary {
    width: 25%;
    display: flex;
    height: 40px;
    border-radius: 8px;
    background: var(--main-background-color);
    margin: 0 20px;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.set_se_list_add:hover,
.set_se_list_preinstall:hover,
.se_add_save:hover,
.se_add_cancel:hover,
.set_quick_list_add:hover,
.set_quick_list_preinstall:hover,
.quick_add_cancel:hover,
.quick_add_save:hover,
.wallpaper_save:hover,
.countdown_save:hover,
.countdown_reset:hover,
.but-ordinary:hover {
    cursor: pointer;
    background: var(--main-background-hover-color);
}

.set_se_list_add:active,
.set_se_list_preinstall:active,
.se_add_save:active,
.se_add_cancel:active,
.set_quick_list_add:active,
.set_quick_list_preinstall:active,
.quick_add_cancel:active,
.quick_add_save:active,
.wallpaper_save:active,
.countdown_save:active,
.countdown_reset:active,
.but-ordinary:active {
    transform: scale(0.90);
    background: var(--main-background-active-color);
}

.set_blocks_content button {
    width: 40px;
    height: 100%;
    background: var(--main-button-color);
    border: 1px solid transparent;
    transition: 0.3s;
}

.set_blocks_content button:hover {
    cursor: pointer;
    background: var(--main-button-hover-color);
}

.set_blocks_content button:active {
    transform: scale(0.95);
    background: var(--main-button-active-color);
}

.se_list,
.se_add_preinstall,
.se_add_preinstalls,
.quick_list,
.add_content,
#wallpaper_url {
    animation: fade 0.5s;
    -webkit-animation: fade 0.5s;
    -moz-animation: fade 0.5s;
    -o-animation: fade 0.5s;
    -ms-animation: fade 0.5s;
}

.add_content {
    display: flex;
    flex-direction: column;
    height: 320px;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
}

.countdown-settings {
    justify-content: center;
}

.countdown_content {
    height: 220px;
}

.froms {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.froms .from_items {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.from_text {
    width: 60px;
    display: flex;
    justify-content: center;
    margin-right: 10px;
}

.countdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.countdown-toggle label,
input[type="radio"]+label {
    cursor: pointer;
}

.countdown-toggle input {
    width: auto;
    height: auto;
}

.add_content input,
#wallpaper_url input {
    font-size: 1.05rem;
    outline: none;
    height: 40px;
    width: 100%;
    border-radius: 8px;
    padding: 0px 10px;
    border: none;
    background: var(--main-input-color);
}

.add_content input:hover,
.add_content input:active,
#wallpaper_url input:hover,
#wallpaper_url input:active {
    box-shadow: var(--main-search-hover-shadow);
}

.add_content input::-webkit-input-placeholder,
#wallpaper_url input::-webkit-input-placeholder {
    color: var(--main-input-text-placeholder-color);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.quick_list,
.se_list {
    height: 260px;
    overflow-y: auto;
}

.quick_list_table,
.se_list_table {
    display: flex;
    flex-direction: column;
    margin: 0px 10px;
}

.quick_list_div,
.se_list_div {
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    background: var(--main-background-color);
    border-radius: 8px;
    transition: 0.3s;
}

.quick_list_div:hover,
.se_list_div:hover {
    background: var(--main-background-hover-color);
}

.quick_list_div_num,
.se_list_num {
    height: 40px;
    width: 40px;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main-background-color);
    border-radius: 8px;
}

.quick_list_div_name,
.se_list_name {
    width: 100%;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick_list_div_button,
.se_list_button {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wallpaper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.wallpaper-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-height: 240px;
    overflow: auto;
}

.wallpaper-card {
    background: var(--main-background-color);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallpaper-card:hover {
    background: var(--main-background-hover-color);
    transform: translateY(-2px);
}

.wallpaper-card.active {
    border-color: var(--main-text-color);
    background: var(--main-background-active-color);
}

.wallpaper-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.wallpaper-card span {
    font-size: 0.85rem;
    text-align: center;
}

#wallpaper_text {
    font-weight: bold;
    margin-top: 6px;
}

.form-radio {
    margin: 0px 10px 10px 0px;
}

input[type="radio"]+label {
    padding: 6px 10px;
    background: var(--main-background-color);
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid transparent;
}

input[type="radio"]:checked+label {
    background: var(--main-background-active-color);
    border: 2px solid var(--main-background-active-color);
}

.set_tip {
    display: flex;
    margin: 20px;
    background: var(--main-background-color);
    padding: 20px;
    border-radius: 8px;
    flex-direction: column;
}

.set_button {
    margin: 20px;
    display: flex;
    justify-content: center;
}

.set_version {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.set_version-text2 {
    font-size: small;
    color: var(--main-background-active-color);
}

.set_version-text a,
.set_version-text2 a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.set_version-text a:hover,
.set_version-text2 a:hover {
    opacity: 0.85;
}

.site-confirm {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.28);
    z-index: 1003;
}

.site-confirm-dialog {
    width: min(360px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.site-confirm-message {
    text-align: center;
    line-height: 1.7;
    color: var(--main-text-color);
}

.site-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.site-confirm-button {
    border: none;
    min-width: 88px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--main-text-color);
    cursor: pointer;
}

.site-confirm-button.primary {
    background: rgba(255, 255, 255, 0.22);
}

.site-confirm-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.site-confirm-button.primary:hover {
    background: rgba(255, 255, 255, 0.28);
}

.from_items input::selection {
    background: #ffffff60;
    color: #ffffffb3;
}
