/*
 * Some general styling
 */

@font-face {
    font-family: 'GenshinFont';
    src: url('genshin-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

:root {
    --item-height: 100px;
}




body {
    background-image: url('items/background.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* body {
    background-image: linear-gradient(rgb(51, 62, 110), #4a338b, #2a2a62, #543689);
    background-color: #574a6d;
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
} */

html,
body,
input,
select,
button,
.login-title,
.login-form,
.header-icons,
.header-uid,
.footer-bar,
.footer-left,
.footer-right {
    font-family: 'GenshinFont', Arial, sans-serif !important;
}

.header-uid {
    position: fixed;
    top: 2vw;
    left: 2vw;
    z-index: 101;
    color: #fff;
    font-size: 4.5vw;
    letter-spacing: 0.05em;
    background: rgba(30, 20, 50, 0.32);
    border-radius: 0.7vw;
    padding: 0.4vw 1vw;
    box-shadow: 0 2px 8px #2a1a3a22;
    user-select: all;
}

.header-icons {
    position: fixed;
    top: 2vw;
    right: 2vw;
    left: unset;
    z-index: 100;
    display: flex;
    gap: 1.5vw;
}

.header-icon {
    filter: drop-shadow(0 2px 6px #2a1a3a88);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    padding: 0.3vw;
    box-sizing: border-box;
    transition: background 0.2s, filter 0.2s;
    cursor: pointer;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.28);
    filter: drop-shadow(0 4px 12px #2a1a3a88);
}

/*
 * Style the orange box
 */

.start-button {
    display: block;
    margin: 1em auto;
    padding: 0.75em 2.5em;
    font-size: 1.2em;
    font-weight: bold;
    color: #5a3e36;
    background: linear-gradient(135deg, #fffbe9 0%, #f7e7ce 100%);
    /* warm milk color */
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(90, 62, 54, 0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}

.start-button:active {
    background: linear-gradient(135deg, #f7e7ce 0%, #fffbe9 100%);
    box-shadow: 0 1px 4px rgba(90, 62, 54, 0.12);
    transform: scale(0.97);
}

#container {
    background: linear-gradient(135deg, #fff 0%, #b39ddb 100%);
    /* white to purple */
    padding: 50px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    position: static;
    margin: 0;
    /* Responsive width for mobile */
    max-width: 100vw;
    box-sizing: border-box;
    border-radius: 28px;
    /* match rounded corners */
    transform: scale(2);
}

.window {
    position: relative;
    overflow: hidden;
    height: var(--item-height);
    /* Show only 1 row */
    background: linear-gradient(135deg, #fff 60%, #8580e5 100%);
    /* white to light purple */
    border-radius: 18px;
    /* rounded corners inside */
}

.window::before {
    content: "";
    clear: both;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.window::after {
    content: "";
    clear: both;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.4));
}

.window-border {
    padding: 5px;
    background-image: linear-gradient(135deg, #fff 0%, #b39ddb 100%);
    /* white to purple */
    box-shadow: 0 6px 4px -5px #eca654 inset;
    border-radius: 24px;
    /* rounded corners */
}

/*
 * Reels and icon styling
 */

.icon {
    width: 80px;
    height: var(--item-height);
    display: block;
    position: relative;

    /*animation: wiggle 0.1s linear infinite;*/
}

.outer-col {
    overflow-y: hidden;
    width: 100px;
    float: left;
    background-color: #eee;
    background-image: linear-gradient(#5b36a1, #ac6199, #430155, #16013c);
    height: calc(var(--item-height) * 3);
}

.outer-spacer {
    width: 8px;
    height: 100%;
    float: left;
    border-right: 2px solid #f7ce6c38;
    background-image: linear-gradient(#be4d01, #893802);
}

.col {
    padding: 0 10px;
    will-change: true;
    transform: translateY(calc(-100% + var(--item-height) * 3));
}

.col img {
    width: 100%;
    height: auto;
    margin: 10px 0;
    position: relative;
    z-index: 3;
}

/* shadow effect behind the items */
.col .icon::after {
    content: "";
    clear: both;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 1px;
    background-color: white;
    box-shadow: 0 0 35px 30px rgba(12, 0, 14, 0.69);
    z-index: 2;
    border-radius: 100%;
}

/*
 * Spinning animation
 */

#container.spinning .outer-col:nth-of-type(2) .col {
    animation-delay: 0.01s;
}

#container.spinning .outer-col:nth-of-type(3) .col {
    animation-delay: 0.02s;
}

#container.spinning .outer-col:nth-of-type(4) .col {
    animation-delay: 0.03s;
}

#container.spinning .col {
    animation-name: scroll;
    animation-iteration-count: 1;
    animation-timing-function: cubic-bezier(.65, .97, .72, 1);
}

@keyframes scroll {
    to {
        transform: translateY(0);
    }
}

/*@keyframes wiggle {
    0% {
        transform: rotate(7deg);
    }
    50% {
        transform: rotate(-7deg);
    }
    100% {
        transform: rotate(7deg);
    }
}*/

.footer-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1vw 2vw 0.7vw 2vw;
    font-size: 2vw;
    color: #e0d8f7;
    background: none;
    pointer-events: none;
    z-index: 99;
}

.footer-bar .footer-left,
.footer-bar .footer-right {
    pointer-events: auto;
    background: rgba(30, 20, 50, 0.22);
    border-radius: 0.5vw;
    padding: 0.3vw 1vw;
    box-shadow: 0 2px 8px #2a1a3a22;
    user-select: text;
}

.footer-bar .footer-left {
    text-align: left;
}

.footer-bar .footer-right {
    text-align: right;
}

/* Custom Alert Styles */
.custom-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(2.08);
    background: linear-gradient(135deg, #fff 60%, #ce93d8 100%);
    border-radius: 24px;
    box-shadow: 0 10px 32px 0 #2a1a3a55, 0 2px 8px #b39ddb44;
    z-index: 9999;
    min-width: 340px;
    max-width: 90vw;
    padding: 2.5em 2em 1.5em 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: alert-pop 0.18s cubic-bezier(.65, .97, .72, 1);
}

.custom-alert.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}

.alert-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5em;
}

.alert-icon {
    width: 90px;
    height: 90px;
    margin-bottom: 1em;
    filter: drop-shadow(0 2px 12px #b39ddb88);
}

.alert-text {
    font-size: 1.5em;
    color: #5a3e36;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5em;
    letter-spacing: 0.02em;
}

.alert-close {
    position: absolute;
    top: 0.7em;
    right: 1.1em;
    background: none;
    border: none;
    font-size: 2em;
    color: #b39ddb;
    cursor: pointer;
    z-index: 2;
    transition: color 0.15s;
}

.alert-close:hover {
    color: #741a5e;
}

.alert-ok {
    background: linear-gradient(135deg, #fffbe9 0%, #f7e7ce 100%);
    color: #5a3e36;
    font-size: 1.1em;
    font-weight: bold;
    border: none;
    border-radius: 14px;
    padding: 0.7em 2.5em;
    box-shadow: 0 2px 8px rgba(90, 62, 54, 0.08);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    margin-top: 0.5em;
}

.alert-ok:active {
    background: linear-gradient(135deg, #f7e7ce 0%, #fffbe9 100%);
    box-shadow: 0 1px 4px rgba(90, 62, 54, 0.12);
    transform: scale(0.97);
}

@keyframes alert-pop {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(2.08);
    }
}