@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:ital,wght@0,100..700;1,100..700&display=swap');

:root {
    --background: #1b1f24;
    --card_bg: #242930;
    --card_border: #38414e;
    --btn_bg: #1b1f24;
    --spse_colour: #1FC799;
    --spse_dark: #106e56;
    --text-color: #e6edf3;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Roboto Mono', monospace;
    background-color: var(--background);
    padding: 0 0 20px 0;
    box-sizing: border-box;
}

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding: 8px 30px;
}

#vocko {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

.header-img {
    width: 75px;
    height: auto;
    display: block;
}

.header-logo {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.type-logo {
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    display: inline-block;
    animation: typeLogo 1s steps(5, end) forwards;
}

#blinking {
    color: var(--text-color);
    animation: blink 1.2s steps(1, start) infinite;
}

@keyframes typeLogo {
    0%   { width: 0; }
    100% { width: 5ch; }
}

@keyframes blink {
    50% { opacity: 0; }
}

#header-buttons {
    display: flex;
    align-items: center;
}

.header-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    width: fit-content;
    padding: 0 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--card_bg);
    border: 1px solid var(--spse_dark);
    border-radius: 8px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.header-admin-btn:hover {
    background-color: var(--spse_colour);
    border-color: var(--spse_colour);
    color: #0e1317;
}

.header-admin-btn img {
    height: 13px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.header-admin-btn:hover img {
    filter: brightness(0);
}

hr {
    width: 100%;
    border: none;
    border-top: 1px solid var(--card_border);
    margin: 0 0 20px 0;
}

#pane_wrapper {
    margin: auto 0;
    display: flex;
    align-items: stretch;
    gap: 20px;
    height: 80vh;
}

.pane {
    background-color: var(--card_bg);
    border: 1px solid var(--card_border);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

#left_pane {
    width: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2vh;
    box-sizing: border-box;
}

#right_pane {
    width: 130vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#upper_right_pane, 
#lower_right_pane {
    flex: 1;
    padding: 3vh;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

#upper_right_pane {
    border-bottom: 1px solid var(--card_border);
}

#list_wrapper {
    width: 100%;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5vh;
    width: 100%;
}

li {
    width: fit-content;
}

button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 35vh;
    height: 18.8vh;
    gap: 1.8vh;
    padding: 0 2.5vh;
    cursor: pointer;
    font-family: inherit;
    font-size: 2.2vh;
    font-weight: 600;
    color: var(--text-color);
    background-color: var(--btn_bg);
    border: 2px solid var(--spse_dark);
    border-radius: 2vh;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

button:hover {
    background-color: var(--spse_colour);
    border-color: var(--spse_colour);
}

button:active {
    transform: scale(0.98);
}

.locked_button {
    opacity: 0.5;
    cursor: not-allowed;
}

.locked_button:hover {
    background-color: var(--btn_bg);
    border-color: var(--spse_dark);
}

button img {
    height: 6vh;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

button span {
    line-height: 1;
}

.dvd {
    position: absolute;
    font-size: 2vh;
    font-weight: 700;
    white-space: nowrap;
    user-select: none;
    color: var(--spse_colour);
    opacity: 0.9;
}

.dvd::after {
    content: "";
    display: inline-block;
    width: 2.5ch;
    text-align: left;
    animation: cycleDots 2.4s steps(1) infinite;
}

.dvd-top {
    animation: 
        dvdX1 9.2s linear infinite alternate, 
        dvdY1 5.4s linear infinite alternate;
}

.dvd-bottom {
    animation: 
        dvdX2 8.1s linear infinite alternate, 
        dvdY2 4.9s linear infinite alternate;
}

@keyframes cycleDots {
    0%   { content: ""; }
    25%  { content: "."; }
    50%  { content: ".."; }
    75%  { content: "..."; }
}

@keyframes dvdX1 { 
    from { left: 12px; } 
    to   { left: calc(100% - 220px); } 
}
@keyframes dvdY1 { 
    from { top: 12px; } 
    to   { top: calc(100% - 35px); } 
}

@keyframes dvdX2 { 
    from { left: calc(100% - 220px); } 
    to   { left: 12px; } 
}
@keyframes dvdY2 { 
    from { top: calc(100% - 35px); } 
    to   { top: 12px; } 
}

@media (max-width: 900px) {
    body {
        align-items: center;
        padding: 0 0 20px 0;
        height: auto;
    }

    header {
        padding: 8px 14px;
    }

    #vocko {
        gap: 10px;
    }

    .header-img {
        width: 48px;
    }

    .header-logo {
        font-size: 1.5rem;
    }

    .header-admin-btn {
        height: 26px;
        font-size: 11px;
        padding: 0 10px;
        border-radius: 6px;
    }

    .header-admin-btn img {
        height: 11px;
    }

    hr {
        margin-bottom: 15px;
    }

    #pane_wrapper {
        margin: 0;
        padding: 0 15px;
        box-sizing: border-box;
        flex-direction: column;
        width: 100%;
        height: auto;
        gap: 16px;
    }

    #left_pane,
    #right_pane {
        width: 100%;
    }

    #left_pane {
        padding: 14px;
    }

    ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        width: 100%;
        padding: 0;
        margin: 0;
    }

    li {
        width: 100%;
    }

    li button {
        width: 100%;
        height: 85px;
        border-radius: 18px;
        font-size: 14px;
        gap: 12px;
        padding: 0 16px;
    }

    li button img {
        height: 30px;
    }

    #upper_right_pane,
    #lower_right_pane {
        min-height: 220px;
        padding: 20px;
    }
}