:root {
    --bg-line-trans: 0.2;
    --bg-color: rgb(255, 223, 150);
    --light-outline-color: rgb(255, 245, 220);
    --bg-font-color: rgb(0, 0, 0);
    --bg-font-hover-color: rgb(180, 100, 0);
    --button-color: rgb(220, 150, 60);
    --row-color: rgba(255, 255, 255, 0.5);
    --info-font-color: rgb(32, 0, 32);
    --hl-color: rgb(255, 0, 0);
    --box1-color: rgb(255, 160, 0);
    --box2-color: rgb(226, 126, 27);
    --box3-color: rgb(140, 70, 0);
    --dual-a-color: rgb(161, 10, 10);
    --dual-b-color: rgb(36, 82, 209);
    --row-border-color: rgb(0, 0, 111);
    --desc-color: rgb(99, 99, 99);
    --comment-color: rgb(200, 100, 0);
}

.bg-0 {
    background-color: var(--bg-color);
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -104;
}


.bg-1 {
    background-image: url('/static/svg/background1.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: fixed;
    left: -5%;
    top: -5%;
    width: 110%;
    height: 110%;
    -webkit-filter: blur(4em);
    filter: blur(4em);
    z-index: -103;
    mix-blend-mode: hard-light;
    opacity: 0.8;
}

.bg-2 {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    background-image: repeating-linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, var(--bg-line-trans)) 0, 
        rgba(255, 255, 255, var(--bg-line-trans)) 1.5%, 
        rgba(255, 255, 255, 0) 1.5%, 
        rgba(255, 255, 255, 0) 2%,
        rgba(255, 255, 255, var(--bg-line-trans)) 2%
    );
    z-index: -102;
}

.bg-3 {
    background-image: url('/static/svg/background2.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: fixed;
    left: 0;
    top: 0;
    mix-blend-mode: lighten;
    width: 100%;
    height: 100%;
    z-index: -101;
    opacity: 0.8;
}

.bg-4 {
    background-image: url('/static/svg/background3.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    -webkit-filter: blur(0.2em);
    filter: blur(0.2em);
    mix-blend-mode: soft-light;
    z-index: -100;
    opacity: 0.5;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",SimSun, sans-serif;
}

.header {
    padding: 20px 15px 0px 15px;
}

.header-logo {
    max-width: 30%;
    max-height: 84px;
}

h1 {
    color: var(--bg-font-color);
    font-weight: normal;
    font-size: 1.5em;
    margin-block-end: 0;
}

.nav {
    margin-block-start: 10px;
    padding-inline-start: 0;
    margin-bottom: 5px;
}

.nav li {
    display: inline-block;
}

.nav li a{
    color: var(--bg-font-color);
    font-size: 0.8em;
    padding-right: 1em;
    text-decoration: none;
}

.nav li a:hover{
    color: var(--bg-font-hover-color);
}

@media (min-width:1000px){
    .body {
        display: flex;
        flex-direction: row;
    }

    .body-left {
        width: 30%;
    }

    .body-right {
        width: 70%;
    }

    .row {
        margin: 10px 10px;
    }
}

@media (max-width:1000px){
    .body {
        display: flex;
        flex-direction: column;
    }

    .body-left {
        width: 100%;
    }

    .body-right {
        width: 100%;
    }

    .row {
        margin: 10px 20px;
    }
}

.info-sec h3 {
    margin: 0;
    font-size: 1em;
}

.info-sec {
    padding-top: 10px;
    font-size: 0.8em;
    color: var(--info-font-color);
}

.info-sec:first-of-type{
    padding-top: 0;
}

.row {
    background-color: var(--row-color);
    border-radius: 10px;
    padding: 5px 10px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow: hidden;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) inset,
    2px 2px 10px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.row-head {
    padding: 3px 0px;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    color: var(--bg-font-color);
    font-size: 1.2em;
    font-weight: bold;
}

.bingo-board {
    display: grid;
    grid-template-columns: repeat(var(--bingo-size, 5), minmax(80px, 1fr));
    gap: 6px;
    margin: 8px 0;
    max-width: 760px;
}

.bingo-cell {
    min-height: 72px;
    padding: 8px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.92);
    color: #222;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    word-break: break-word;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.bingo-cell:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
    background: #f3fff4;
}

.bingo-cell.selected {
    background: #73d982;
    border-color: #278a38;
    color: #0d3b16;
}

.bingo-cell.selected:hover:not(.disabled) {
    background: #5dcc70;
}

.bingo-cell.disabled {
    cursor: default;
    opacity: 0.75;
}

.bingo-mini-board {
    display: grid;
    grid-template-columns: repeat(var(--bingo-size, 5), 9px);
    grid-template-rows: repeat(var(--bingo-size, 5), 9px);
    gap: 0px;
    width: max-content;
    margin: 0 auto 5px;
}

.bingo-mini-cell {
    width: 9px;
    height: 9px;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.4);
    background: #fff;
}

.bingo-mini-cell.selected {
    background: #57c96b;
    border-color: #278a38;
}

.raid-admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    margin: 6px 0;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.55);
}

.raid-admin-avatar {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.45);
}

.raid-admin-fields {
    flex: 1;
}

.raid-drag-handle {
    display: inline-block;
    cursor: grab;
    font-weight: bold;
    margin-bottom: 6px;
}

.raid-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px 16px;
    position: relative;
}

.raid-panel[hidden] {
    display: none;
}

.raid-top {
    display: flex;
    gap: 18px;
    min-height: 96px;
    margin-top: -20px;
}

.raid-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.raid-name {
    color: #9f1f18;
    font-size: 1.15em;
    font-weight: bold;
    margin-bottom: 8px;
}

.raid-meta,
.raid-hp-text {
    margin: -5px 0;
}

.raid-hp-text {
    text-align: right;
    font-weight: bold;
    font-size: 1.5em;
    color: #ffffff;
    text-shadow: #9f1f18 1px 0 0, #9f1f18 0 1px 0, #9f1f18 -1px 0 0, #9f1f18 0 -1px 0, rgba(0, 0, 0, 0.34) 1px 2px 3px
}

.raid-avatar-frame {
    width: 110px;
    height: 96px;
    background: #ffffff;
    border: 4px solid #ffffff;
    transform: skewX(-8deg);
    overflow: hidden;
    align-self: flex-end;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    border-bottom: 16px solid #ffffff;
    margin-bottom: -24px;
}

.raid-avatar {
    display: block;
    width: calc(100% + 20px);
    height: 100%;
    margin-left: -10px;
    object-fit: cover;
    transform: skewX(8deg);
    transform-origin: center;
}

.raid-health-track {
    position: relative;
    width: calc(100% - 8px);
    height: 40px;
    box-sizing: border-box;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #eeeeee 50%, #ffffff 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.raid-health-marker {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #9c9c9c;
}

.raid-health-fill-track {
    flex: 1;
    height: 26px;
    border-radius: 13px;
    overflow: hidden;
    position: relative;
    margin-right: 4px;
    background-color: #000000;
}

.raid-health-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
        hsl(0, 100%, 50%)     0px,
        hsl(60, 100%, 50%)    50.50760px,
        hsl(90, 100%, 50%)    101.01525px,
        hsl(140, 100%, 50%)   151.52290px,
        hsl(200, 100%, 50%)   202.03050px,
        hsl(260, 100%, 50%)   252.53810px,
        hsl(320, 100%, 50%)   303.04576px,
        hsl(0, 100%, 50%)   353.55340px);
    background-size: 500px 500px;
    background-repeat: repeat;
    background-position: 0 0;
    border-radius: 13px;
    clip-path: inset(0 0 0 0);
    transition: clip-path 0.45s ease;
    animation: raid-rainbow-scroll 5s linear infinite;
    will-change: clip-path, background-position;
}

@keyframes raid-rainbow-scroll {
    from { background-position: 0 0; }
    to { background-position: -500px 0; }
}

@media (max-width: 650px) {
    .bingo-board {
        grid-template-columns: repeat(var(--bingo-size, 5), minmax(50px, 1fr));
        gap: 3px;
    }

    .bingo-cell {
        min-height: 58px;
        padding: 4px;
        font-size: 0.78em;
    }

    .raid-panel {
        gap: 8px;
        padding: 9px 10px 12px;
    }

    .raid-top {
        gap: 10px;
        min-height: 84px;
    }

    .raid-name {
        font-size: 1.15em;
    }

    .raid-meta,
    .raid-hp-text {
        font-size: 0.78em;
    }

    .raid-avatar-frame {
        flex-basis: 92px;
        width: 92px;
        height: 84px;
        border-width: 5px;
        border-bottom: 16px solid #ffffff;
    }

    .raid-health-track {
        height: 30px;
        border-radius: 15px;
        padding: 5px;
        gap: 6px;
    }

    .raid-health-marker {
        flex-basis: 12px;
        width: 12px;
        height: 12px;
    }

    .raid-health-fill-track {
        height: 20px;
        border-radius: 10px;
    }

    .raid-health-bar {
        border-radius: 10px;
    }
}

.slide-button {
    float: right;
}

.slide-button:hover {
    text-decoration: underline;
    cursor: pointer;
}

.hl {
    font-weight: bold;
    color: var(--hl-color);
}

.button {
    align-items: center;
    background-color: var(--button-color);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0 2px 4px;
    box-sizing: border-box;
    color: #eeeeee;
    cursor: pointer;
    display: inline-flex;
    font-size: 0.8em;
    justify-content: center;
    padding: 5px 10px;
    margin: 2px 0;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}

.button.disabled {
    background-color: #777777;
    cursor: not-allowed;
}

.button.disabled:hover, .button.disabled:focus, .button.disabled:active{
    transform: none;
    background-color: #777777;
}

.button:hover, .button:focus {
    background-color: color-mix(in lch, var(--button-color), black 10%);
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    color: #ffffff;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    background-color: color-mix(in lch, var(--button-color), black 20%);
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: rgba(0, 0, 0, 0.15) 0 2px 4px;
    color: #ffffff;
    transform: translateY(0);
}

input[type=file]::file-selector-button {
    align-items: center;
    background-color: var(--button-color);
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: .25rem;
    box-shadow: rgba(0, 0, 0, 0.15) 0 2px 4px;
    box-sizing: border-box;
    color: #eeeeee;
    cursor: pointer;
    display: inline-flex;
    font-size: 1em;
    justify-content: center;
    line-height: 1.25;
    padding: 5px 10px;
    margin: 2px 0;
    text-decoration: none;
    transition: all 250ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: baseline;
    width: auto;
}

input[type=file]::file-selector-button:hover, input[type=file]::file-selector-button:focus {
    background-color: color-mix(in lch, var(--button-color), black 10%);
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
    color: #ffffff;
}

input[type=file]::file-selector-button:hover {
    transform: translateY(-1px);
}

input[type=file]::file-selector-button:active {
    background-color: color-mix(in lch, var(--button-color), black 20%);
    border-color: rgba(0, 0, 0, 0.5);
    box-shadow: rgba(0, 0, 0, 0.15) 0 2px 4px;
    color: #ffffff;
    transform: translateY(0);
}

.box1 {
    border: 1px solid var(--box1-color);
    background-color: white;
    color: var(--box1-color);
    padding: 2px 5px;
    font-size: 0.8em;
    border-radius: 5px;
    display: inline-block;
    margin: 2px 0;
}

.box2 {
    border: 1px solid var(--box2-color);
    background-color: white;
    color: var(--box2-color);
    padding: 2px 5px;
    font-size: 0.8em;
    border-radius: 5px;
    display: inline-block;
    margin: 2px 0;
}

.box3 {
    border: 1px solid var(--box3-color);
    background-color: rgba(255, 255, 255, .5);
    border-radius: 5px;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 5px 0;
}

.box3-left {
    border-radius: 5px 0 0 5px;
    padding: 2px 5px;
    color: var(--box3-color);
    font-size: 2em;
    font-weight: bold;
    font-style: italic;
}

.box3-right {
    border-left: 1px solid var(--box3-color);
    display: block;
    border-radius: 0 5px 5px 0;
    padding: 2px 5px;
}

.box-A {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border: 1px solid var(--dual-a-color);
    margin-bottom: 0;
    border-bottom: 1px solid black;
}

.box-left-A {
    color: var(--dual-a-color);
    min-width: 54px;
    box-sizing: border-box;
    text-align: center;
}

.box-right-A {
    border-left: 1px solid var(--dual-a-color);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.box-B {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border: 1px solid var(--dual-b-color);
    margin-top: 0;
    border-top: none;
}

.box-left-B {
    color: var(--dual-b-color);
    min-width: 54px;
    box-sizing: border-box;
    text-align: center;
}

.box-right-B {
    border-left: 1px solid var(--dual-b-color);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}


.team-name {
    font-weight: bold;
    color: var(--box3-color);
}

.team-name-A {
    color: var(--dual-a-color);
}

.team-name-B {
    color: var(--dual-b-color);
}

.desc {
    font-size: 0.8em;
    color: var(--desc-color);
}

.modal {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-page {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 1px 1px 50px rgba(0, 0, 0, .3);
}


.modal-page::-webkit-scrollbar {
    width: 8px;
}

.modal-page::-webkit-scrollbar-track {
    background: #d0d0d0;
    border-radius: 3px;
}

.modal-page::-webkit-scrollbar-thumb {
    background: #505050;
    border-radius: 3px;

}

@supports not selector(::-webkit-scrollbar) {
    body {
        scrollbar-color: #505050
                        #d0d0d0;
    }
}

.login-page {
    text-align: center;
}

.key-input {
    border: 1px solid black;
    border-radius: 0;
}

.comment {
    font-size: 0.8em;
    color: var(--comment-color);
}

.match-item {
    display: inline-block;
}

.match-padding {
    width: 1em;
}

.inline-block {
    display: inline-block;
}

.sep {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 5px;
    border-bottom: dashed 1px var(--info-font-color);
}

.file-zone {
    display: flex;
    flex-direction: row;
}

.file-left {
    flex-shrink: 0;
}

.file-right {
    display: inline-block;
}

.clickable {
    color: var(--bg-font-hover-color);
    cursor: pointer;
}

.radio-inputs {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    border-color: color-mix(in lch, rgba(0, 0, 0, 0), var(--bg-font-color) 20%);
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    background-color: color-mix(in lch, var(--light-outline-color), black 5%);
    box-sizing: border-box;
    box-shadow: 0 0 0px 1px rgba(0, 0, 0, 0.06);
    padding: 3px;
    font-size: 14px;
    margin: 5px 0;
}

.radio-inputs.inline {
    display: inline-flex;
}

.radio-inputs.inline .radio .name {
    padding: 3 20px;
}
  
.radio-inputs .radio {
    flex: 1 1 auto;
    text-align: center;
}

.radio-inputs .radio input {
    display: none;
}

.radio-inputs .radio .name {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: none;
    padding: 3px 10px;
    transition: all .15s ease-in-out;
}

.radio-inputs .radio input:checked + .name {
    background-color: #fff;
    font-weight: 600;
}

.message-holder {
    position: fixed;
    right: 0;
    top: min(10%, 200px);
    width: min(40%, 300px);
    z-index: 100;
}

.message {
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--bg-font-hover-color);
    border-radius: 5px;
    padding: 5px 5px;
    margin-right: 15px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px 1px rgba(0, 0, 0, 0.3);
}

.key-input {
    margin-top: 5px;
    border: 1px solid #DDD;
    border-radius: 8px;
    padding: 5px;
    transition: 0.15s ease;
}

.key-input:focus {
    outline: none;
    border-color: var(--bg-color);
    box-shadow: 0 0 0 1px var(--bg-color), 0 0 0 4px var(--light-outline-color);
}

.key-input--textarea {
    min-height: 100px;
    max-width: 100%;
}

.vote-option {
    background-color: white;
    display: inline-block; 
    padding: 5px;
    border: 1px solid #7f7f7f;
    border-radius: 5px;
    width: 200px;
    margin: 5px;
}

.vote-option:hover {
    background-color: #eeeeee;
    cursor: pointer;
}

.vote-option.vote-selected {
    background-color: #ffefcf;
    border-color: #cf7f00;
}

.vote-option.vote-selected:hover {
    background-color: #efdfbf;
}

table td, table th {
    border: 1px solid var(--info-font-color);
    padding: 5px;
    vertical-align: middle;
}

table {
    border: 1px solid var(--border-primary);
    border-collapse: collapse;
}

.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border: 1px solid #ffe69c;
    border-radius: 6px;
    padding: 1em;
}

.vote-header {
    border: 1px solid var(--button-color);
    background-color: rgba(255, 255, 255, .5);
    border-radius: 5px;
    padding: 5px;
    margin-top: 5px;
    cursor: pointer;
}

.vote-header:hover {
    background-color: rgba(224, 224, 224, .7);
}
