:root {
    --lgbgc: linear-gradient(135deg, #0332ff, #00136c, #4785ff);

}
html {
    font-size: 20px;
    font-family: sans-serif;
    background-color: rgb(255, 255, 255);
}
html, body { height: 100%; overflow: hidden; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../imgs/iqroyale_logo1.webp") center/contain no-repeat;
}
body.is-fs {
  padding-top: max(0.6rem, env(safe-area-inset-top));
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}
/* In fullscreen, subtract the body padding from the snap heights */
body.is-fs .snap-container,
body.is-fs .snap {
  height: calc(100dvh - max(0.6rem, env(safe-area-inset-top)) - max(0.6rem, env(safe-area-inset-bottom)));
}
#theme_btn {
    display: none;
    position: absolute;
    height: 1.5rem;
    font-size: 0.9rem;
    aspect-ratio: 1;
    top: 0.2rem;
    left: 0.2rem;
    place-items: center;
    background-color: rgb(255, 255, 255);
    border-radius: 0.2rem;
    border: 0.1rem outset gainsboro;
}
.snap-container {
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100svh;  
    width: 100%;
    scroll-snap-type: y mandatory;
    overscroll-behavior-y: contain;
}
.snap {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 31rem; 
    height: 100svh;
    padding: 1vw;
}
/*  */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
/*  */
    button { 
        touch-action: manipulation; 
    }
    button:disabled {
        opacity: 0.5;
        pointer-events: none;
        cursor: not-allowed;
    }
    button:not(:disabled):hover {
        opacity: 0.8;
    }
/*  */
/* header - START */
    header {
        background: var(--lgbgc);
        width: fit-content;
        padding: 0.6rem 0.3rem;
        height: 1.5rem;
        top:0;
        left:0;
        display: flex;
        align-items: center;    
        justify-content: center;
        position: absolute;
        border-bottom-right-radius: 0.2rem;
        z-index: 3;
    }
    header p {
        color: white;
        font-size: 0.6rem;
        letter-spacing: 0.1rem;
    }
/* header - END */

/* random - START */
    .game-sec {
        padding-top: 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    #status_p {
        position: absolute;
        top: 0;
        left: 50%;
        transition: transform 700ms ease-out;
        max-width: 20rem;
        box-shadow: 0 0.05rem 0.05rem #1d1f2fe6;
        height: 1.5rem;
        display: grid;
        place-items: center;
        border-radius: 0 0 0.3rem 0.3rem;
        background-image: linear-gradient(to bottom right, #2f3341, #222731);
        border: 0.05rem double gray;
        border-top: none;
        font-size: 0.8rem;
        text-align: center;
        width: 55vw;
        color: #ffffff;
    }
    #info_span {
        display: block;
        position: absolute;
        top: 0.2rem;
        right: 0.45rem;
        font-size: 0.7rem;
        color: gray;
    }
    #offline_div {
        position: absolute;
        width: 100%;
        height: 100%;
        background: #ffffff63;
        backdrop-filter: blur(0.5rem);
        top: 0;
        color: #000000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 2rem;
    }
/* random - END */

/* error message slider - START */
    #err_div {
        position: fixed;
        top: 0;
        left: 100vw;
        text-align: center;
        width: 100vw;
        background-color: rgba(255, 0, 0, 0.867);
        color: white;
        padding: 5rem 1rem;
        font-size: 1rem;
        font-weight: bold;
        box-shadow: 0 0.3rem 0.3rem rgb(0, 0, 0);
        transition: left 0.5s ease-in-out;
        z-index: 1000;
    }
/* error message slider - END */

/* initial_view - START */
    #initial_view {
        padding: 2rem 0;
        border-radius: 1rem;
        background-color: white;
        flex-direction: column; align-items: center; justify-content: center;
        gap: 1rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 2rem;
        max-width: 25rem;
        box-shadow: 0 0 0.3rem rgb(0 0 0 / 74%);
    }   
    .intro-p {
        color: orange;
        font-size: 0.8rem;
        mix-blend-mode: difference;
    }
    h1 {
        line-height: 2rem;
        color: #44495c;
        font-size: 1.4rem;
        border-bottom: 0.2rem dashed orange;
    }
    .game-idea-p {
        font-family: 'Segoe UI', Tahoma, sans-serif;
        font-size: 1.1rem;
        line-height: 1.6;
        color: rgb(95, 95, 95);
        margin: 1.5rem auto;
        text-align: center;
    }
    #start_form {
        display: flex;
        width: 80%;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        border: 0.2rem dashed rgb(97 104 142);
        padding: 1rem;
        border-radius: 1rem;
        background-color: #fffffff1;
    }
    #start_form label {
        color: rgb(0, 6, 61);
        text-align: center;
        font-size: 0.9rem;
    }
    #start_form input {
        width: 100%;
        padding: 0.5rem 0.3rem;
        font-size: 1rem;
        font-family: inherit;
        color: #333;
        border: 0.2rem solid orange;
        border-radius: 0.5rem;
        text-align: center;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    #start_form input::placeholder {
        color: #aaa;
    }
    #start_form input:focus {
        border-color: blue;
        box-shadow: 0 0 1rem rgb(0, 0, 0);
        outline: none;
    }
    #start_btn {
        display: grid;
        background: var(--lgbgc);
        color: white;
        border: none;
        place-items: center;
        height: 3.5rem;
        border: 0.5rem double #ffffff0f;
        width: 100%;
        font-size: 1.2rem;
        font-weight: bold;
        border-radius: 0.6rem;
        cursor: pointer;
        box-shadow: 0 0 0.5rem #10203a;
    }
/* initial_view - END */

/* pre_lobby_view - START */
    #pre_lobby_view {
        height: 100%;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 30rem;
        padding-top: 1.5rem;
    }
    #name_insert {
        color: orangered;
        margin-top: 2rem;
        font-size: 1rem;
        font-style: italic;
    }
    #name_insert::before {
        content: "Your name: ";
        color: #ffffff;
        mix-blend-mode: difference;
    }
    #queue_btn {
        background-image: var(--lgbgc);
        color: white;
        width: 80%;
        display: grid;
        place-items: center;
        font-size: 1rem;
        border: 0.5rem double #ffffff0f;
        height: 5rem;
        letter-spacing: 0.1rem;
        border-radius: 1rem;
        box-shadow: 0 0 0.5rem #000000a1;
    }
    #queue_btn:active {
        background-color: #1b2032;
    }
    .attention-div {
        border-radius: 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 3rem;
        padding-bottom: 0.5rem;
        position: relative;
    }
    .attention-div p:first-child {
        text-align: center;
    }
    .attention-span {
        color: #ffffff;
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        width: calc(100% - 1rem);
        border-bottom: 0.05rem solid #bec7d6;
    }
    .please {
        color: #ffffff;
        mix-blend-mode: difference;
    }
    .arrow-down {
        font-size: 4rem;
    }
/* pre_lobby_view - END */

/* flip card - START */
    #card_container_lobby,
    #card_container_match,
    #card_container_post_match  {
        width: 100%;
    }
    #card_div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 0.3rem;
    }
    .btn-div {
        height: 2rem;
        display: flex;
        width: 100%;
        gap: 0.3rem;
        justify-content: space-between;
    }
    .btn-div button {
        height: 100%;
        width: calc(100% / 3);
        border: 0.05rem solid rgb(117 122 142);
        font-size: 0.7rem;
        justify-content: center;
        align-items: center;
        border-radius: 1rem;
        box-shadow: 0 0 0.1rem #000000;
    }
    #card_flip_btn {
        background-color: aliceblue;
        color: rgb(0 0 0);
        display: flex;
        justify-content: space-evenly;
        border: 0.05rem outset black;
    }
    #fs_btn {
        background-color: #000000d4;
        color: #ffffff;
    }
    #sound_btn {
        background-color: #222731;
        color: #ffffff;
    }
    #sound_btn span {
        margin-left: 0.2rem;
    }
    #call_start_btn {
        background-image: linear-gradient(to right, #00ff03, #aaff82);
        color: #193e0a;
    }
    #card {
        position: relative;
        width: 100%;    
        height: 15.05rem;
        transition: opacity 300ms; 
    }
    #msg_amount {
        color: #5f1313;
        height: 70%;
        aspect-ratio: 1;
        border-radius: 1rem;
        display: grid;
        border-left: 0.05rem solid #978383;
        place-items: center;
        font-weight: 100;
    }
    #card > .slot-container,
    #card > .chat-container {
        position: absolute;
        opacity: 0;
        transition: opacity 300ms
        }
    /* show one face at a time */
    #card.slot-view > .slot-container { opacity: 1; pointer-events: auto; }
    #card.slot-view > .chat-container { opacity: 0; pointer-events: none; }
    #card.chat-view > .slot-container { opacity: 0; pointer-events: none; }
    #card.chat-view > .chat-container { opacity: 1; pointer-events: auto; }

    .chat-container {
        display: flex;
        width: 100%;
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        background-color: #1e243c36;
        border-radius: 0.4rem;
        padding: 0 0.4rem;
        font-size: 0.8rem;
    }
    .chat-container span {
        color: white;
    }
    #msgs {
        overflow-y: auto;
        border-top: 0.05rem solid gray;
        border-bottom: 0.05rem solid gray;
        padding: 0.2rem 0;
        height: 10rem;
        width: 100%;
    }
    #msgs div {
        display: flex;
        justify-content: start;
        font-size: 0.8rem;
        gap: 0.4rem;
    }
    .msg-name {
        mix-blend-mode: difference;
        color: rgb(255, 255, 255);
    }
    .msg-name::after {
        content: " :";
        color: greenyellow;
    }
    .msg-txt {
        color: rgb(255, 255, 255);
        font-weight: 200;
        word-break: break-all;
    }
    .log-name {
        color: #a00;
        white-space: nowrap; 
    }
    .log-txt {
        color: rgb(255, 255, 255);
    }
    .log-name::after {
        content: "\00a0:";  
        color: greenyellow;
    }
    .chat-container form {
        width: 100%;
        height: 2.5rem;
        display: flex;
    }
    .chat-container form input {
        height: 100%;
        width: 75%;
        border: 0.2rem double #162041;
        border-radius: 0.4rem 0 0 0.4rem;
        text-align: center;
    }
    .chat-container form button {
        all: unset;
        font-size: 0.8rem;
        height: 100%;
        display: grid;
        place-items: center;
        background: #222731;
        width: 25%;
        border-radius: 0 0.4rem 0.4rem 0;
        color: white;
    }
    .slot-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        width: 100%;
        height: 100%;
    }
    .single-slot {
        position: relative;
        justify-content: space-between;
        background-color: #341c12a8;
        align-items: center;
        border-radius: 0.4rem;
        height: 2rem;
        padding: 0 0.4rem;
        width: 100%;
        font-size: 0.8rem;
        color: #ffffff;
    }   
    .player-name {
        width: 6.5rem;
        border-right: 0.05rem solid gray;
        font-style: italic;
    }
    .player-time-p {
        width: 5rem;
        display: flex;
        justify-content: start;
        align-items: center;
        gap: 0.4rem;
        color: #cacaca;
        font-size: 0.8rem;
        border-right: 0.05rem solid gray;
    }
    .player-time-p::before {
        content: 'Time: ';
        color: #ffffff;
    }
    .player-points-p {
        width: 5rem;
        font-size: 0.8rem;
        color: #cacaca;
    }
    .player-points-p::before {
        content: 'Points: ';
        color: #ffffff;
    }
/* flip card - END */

/* lobby_view - START */
    #lobby_view {
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        width: 100%;
        max-width: 30rem;
    }
    .voting-container {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
        width: 100%;
        max-width: 20rem;
        padding: 0.2rem;
        border-radius: 0.5rem;
        border: 0.05rem solid #838da5;
        background: var(--lgbgc);
    }
    .vote-hint {
        font-size: 0.9rem;
        width: 100%;
        color: white;
        text-align: center;
        padding: 0.3rem 0;
    }
    .voting-container div {
        display: flex;
        gap: 0.2rem;
        width: 100%;
    }
    .mode-btn {    
        background-color: white;
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        padding: 0 0.5rem;
        border-radius: 0.3rem;
        height: 3rem;
        border: 0.05rem outset orange;
    }
    .mode-btn:active .vote-box {
        background-color: orange;
    }
    .mode-btn p:first-child {
        color:#000821;
        text-align: start;
        font-weight: 200;
        font-size: 0.8rem;
        width: 4.6rem;
        border-right: 0.05rem solid orange;  
    }
    .vote-count {
        font-size: 0.8rem;
        color: #39415b;
    }
    .vote-box {
        height: 55%;
        aspect-ratio: 1;
        border: 0.05rem solid gray;
        border-radius: 0.2rem;
        display: grid;
        place-items: center;
    }
    .ready-indicator-div {
        height: 50%;
        aspect-ratio: 1;
        border-radius: 50%;
        border: 0.05rem solid #464646;
        background-color: #e1e2e5;
    }
/* lobby_view - END */

/* match_view - START */
    #match_view,
    #post_match_view {
        height: 100%;
        flex-direction: column;
        justify-content: space-evenly; 
        align-items: center;
        width: 100%;
        max-width: 30rem;
        position: relative;
        max-height: 35rem;
    }
    .round-timer {
        background: linear-gradient(135deg, #0331ff44, #00146c62, #4784ff59);
        box-shadow: 0 0 0.3rem #1b2333;
        position: relative;
        width: 100%;
        min-height: 0.5rem;
        border-radius: 1rem;
        height: 0.5rem;
        overflow: hidden;
    }
    #round_timer_fill {
        display: flex;
        position: absolute;
        height: 100%;
        width: 100%;
        background-image: linear-gradient(to right, rgb(43, 255, 0), rgb(17, 146, 0));
        transform-origin: left center;
    }
    .round-timer span {
        position: absolute;
        height: 100%;
        width: 0.1rem;
        background-color: rgb(0 0 0 / 32%);
    }
    .round-timer span:first-of-type {
        left: 25%;
    }
    .round-timer span:nth-of-type(2) {
        left: 50%;
    }
    .round-timer span:last-of-type {
        left: 75%;
    }
    .play-area {    
        display: flex;
        position: relative;
        width: 100%;
        flex-direction: column;
        background-color: white;
        border-radius: 0.3rem;
        box-shadow: 0 0 0.2rem #000a21e8;
    }
    #question_div {
        font-size: 0.9rem;
        color: rgb(41 53 65);
        user-select: none;    
        pointer-events: none; 
        text-align: center;
        background-color: #0009330e;
        position: relative;
    }
    .task-panel {
        width: 100%;
        background-color: #1a203c;
        border-radius: 0.3rem 0.3rem 0 0;
        color: gainsboro;
        letter-spacing: 0.1rem;
        font-size: 0.5rem;
        padding-left: 0.5rem;
        text-align: start;
        height: 1rem;
        line-height: 1rem;
    }
    .border-div {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        height: 4rem;
        border-radius: 0.2rem;
    }
    #question_placeholder {
        position: absolute;
        justify-content: center;
        gap: 0.5rem;
        width: 100%;
        text-align: center;
    }
    #q_prefix {
        padding: 0.3rem 0;  
        background-color: white;
    }
    #q_mainpart {
        padding: 0.3rem 0;  
        background-color: white;
    }
    #answer_div {
        width: 100%;
        display: flex;
        flex-direction: column;
        position: relative;
        padding: 0.1rem;
        padding-top: 0;
    }
    .answer-container {
        width: 100%;
        height: 3rem;
        display: flex;
        gap: 0.1rem;
        padding: 0.1rem 0;
    }
    #answer_display {
        background-color: gainsboro;
        width: 50%;
        display: grid;
        place-items: center;
        overflow: auto;
        color: #000933;
        letter-spacing: 0.1rem;
        height: 100%;
        border: 0.05rem solid #8d8d8d;
        border-radius: 0.2rem;
    }
    #submit_answer_btn {
        all: unset;
        display: grid;
        place-items: center;
        font-size: 0.9rem;
        width: 25%;
        height: 100%;
        background-color: #0080ff;
        color: white;
        border-radius: 0.2rem;
    }
    #remove_number_btn {
        all: unset;
        display: grid;
        place-items: center;
        color: #ffffff;
        width: 25%;
        background: #be1919;
        height: 100%;
        border-radius: 0.2rem;
    }
    #numpad {
        display: flex;
        width: 100%;
        height: 3rem;
        gap: 0.05rem;
    }
    #numpad button {
        all: unset;
        display: grid;
        place-items: center;
        width: 10%;
        border-radius: 0.2rem;
        height: 100%;
        color: rgb(255 255 255);
        background-image: linear-gradient(to bottom right, #2f3341, #222731);
    }
    #numpad button:hover {
        opacity: 0.9;
    }
    #numpad button:active {
        background-image: linear-gradient(to bottom right, #1b1d25, #101318);
    }
    #submit_answer_btn:active {
        background-color: #021e3b;
    }
    #remove_number_btn:active {
        background-color:#330000;
    }
    .point-change-p {
        position:absolute; display:grid; place-items:center;
        pointer-events: none;
        text-shadow:0 0 0.3rem rgb(0, 0, 0); 
        font-weight:bold; letter-spacing:0.1rem; font-size:5.5rem;
    }
/* match_view - END */

/* post_match_view - START */
    #winner_name_p {
        color: orangered;
    }
    #winner_name_p::before {
        color: #ffffff;
        mix-blend-mode: difference;
        content: "Match winner: ";
    }
    .proceed-btn-div {
        display: flex;
        width: 100%;
        height: 5rem;
        justify-content: space-evenly;
        align-items: center;
        border-radius: 0.4rem;
        background: #ffffff0f;
    }
    .proceed-btn-div button {
        height: 60%;
        width: 40%;
        border: 0.5rem double #ffffff0f;
        letter-spacing: 0.1rem;
        display: grid;
        place-items: center;
        border-radius: 0.4rem;
        box-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.689);
        position: relative;
    }
    #quit_btn {
        background-image: linear-gradient(135deg, #280000, #6c0000, #280000);
        color: #bba3a3;
    }
    #continue_btn {
        color: #002302;
        background-image: linear-gradient(135deg, #ffffff, #61ff63, #ffffff);
    }
/* post_match_view - END */

/* mode-explained-sec - START */
    .mode-explained-sec {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-evenly;
    }
    .mode-explained-sec h2 {
        color: #44495c;
        font-size: 1.2rem;
    }
    /* --- Stacked 3D carousel --- */
    .mode-explained-sec .carousel {
        touch-action: pan-x;
        overscroll-behavior: contain; /* stop scroll chaining upward */
    }
    .mode-explained-sec .carousel.stacked {
        position: relative;
        max-width: 34rem;
        width: 100%;
        height: 50vh;
        margin: 0 auto;
        perspective: 20rem;
        transform-style: preserve-3d;
        overflow: visible;
        scrollbar-width: none;
    }
    .mode-explained-sec .carousel.stacked::-webkit-scrollbar { 
        display:none; 
    }
    .mode-explained-sec .carousel.stacked .slide {
        user-select: none; 
        position: absolute;
        left: 50%;
        top: 50%;
        width: clamp(18rem, 90%, 28rem);
        height: fit-content;
        transform-origin: center;
        border-radius: 0.5rem;
        border: 0.05rem solid gainsboro;
        background-image: linear-gradient(to bottom right, rgb(255, 255, 255), rgba(240, 248, 255, 0.952));
        box-shadow: 0 0 2rem rgba(0,0,0,0.18);
        transition:
            transform 100ms ease-in-out,
            filter 100ms ease,
            opacity 100ms ease,
            z-index 0s step-end;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        padding: 4rem 1rem 2rem 2rem;
    }
    .mode-explained-sec .carousel .slide h3 {
        color: #ffffff;
        position: absolute;
        top: 0;
        left: 0;
        border: 0.05rem ridge gainsboro;
        background: linear-gradient(135deg, #0332ff , #00136c, #4785ff);
        border-radius: 0.5rem 0 0.5rem 0;
        border-left: none;
        border-top: none;
        padding: 0.5rem;
        font-size: 1rem;
        font-weight: normal;
    }
    .mode-explained-sec .carousel .slide h3::before {
        font-weight: bold;
        color: orange;
    }
    .mode-explained-sec .carousel .slide:nth-of-type(1) h3::before { content: "Mode 1: "; }
    .mode-explained-sec .carousel .slide:nth-of-type(2) h3::before { content: "Mode 2: "; }
    .mode-explained-sec .carousel .slide:nth-of-type(3) h3::before { content: "Mode 3: "; }
    .mode-explained-sec .carousel .slide:nth-of-type(4) h3::before { content: "Mode 4: "; }

    /* Pack tilt while dragging (JS sets --tilt from -1 to 1) */
    .mode-explained-sec .carousel.stacked {
        --tilt: 0; /* -1 … 1 */
        --tilt-deg: calc(var(--tilt) * 6deg);
        transform: rotateY(var(--tilt-deg));
    }
    /* Positions relative to the active index */
    .slide.pos-0 {  /* FRONT */
        z-index: 5;
        opacity: 1;
        filter: none;
        transform: translate(-50%, -50%) translateZ(0) rotateY(0deg) scale(1);
    }
    .slide.pos-1 { /* RIGHT, slightly behind */
        z-index: 4;
        opacity: 0.95;
        filter: saturate(0.95) brightness(0.98);
        transform: translate(calc(-50% + 170px), -50%)
                    translateZ(-130px) rotateY(-12deg) scale(0.94);
    }
    .slide.pos-2 { /* RIGHT BACK (peek) */
        z-index: 3;
        opacity: 0.85;
        filter: blur(0.2px) brightness(0.95);
        transform: translate(calc(-50% + 280px), -50%)
                    translateZ(-260px) rotateY(-16deg) scale(0.9);
    }

    .slide.pos--1 { /* LEFT, slightly behind */
        z-index: 4;
        opacity: 0.95;
        filter: saturate(0.95) brightness(0.98);
        transform: translate(calc(-50% - 170px), -50%)
                    translateZ(-130px) rotateY(12deg) scale(0.94);
    }
    .slide.pos--2 { /* LEFT BACK (peek) */
        z-index: 3;
        opacity: 0.85;
        filter: blur(0.2px) brightness(0.95);
        transform: translate(calc(-50% - 280px), -50%)
                    translateZ(-260px) rotateY(16deg) scale(0.9);
    }
    .mode-explained-sec .slide ul {
        margin-inline-start: 0.4em;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .mode-explained-sec .slide ul li {
        color: #44495c;
    }
    .mode-explained-sec .slide ul li span {
        white-space: nowrap;
        font-style: italic;
        font-weight: 900;
    }
    /* Optional: tiny bounce when becoming front */
    .slide.becoming-front {
        transition: transform 320ms cubic-bezier(.2,1,.2,1), filter 320ms, opacity 320ms;
    }
    /* --- Dots --- */
    .slide-indicator {
        display: flex;
        justify-content: center;
        gap: 0.6rem;
        margin-top: 1rem;
        user-select: none;
    }
    .slide-indicator span {
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.445);
        display: inline-block;
        opacity: 0.5;
        transform: scale(1);
        transition: transform 0.2s ease, opacity 0.2s ease;
        cursor: pointer;
    }
    .slide-indicator span.active {
        opacity: 1;
        transform: scale(1.2);
        background: rgb(255, 255, 255);
    }
/* mode-explained-sec - end */

/* footer - START */
    footer {
        width: 100%;
        display: flex;  
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        position: relative;
    }
    footer p {
        color: #44495c;
        font-weight: bold;
        font-size: 1.2rem;  
    }
    footer em {
        color: #ffffff;
        font-size: 0.8rem;
    }
    footer ul {
        list-style: none;
        width: 100%;
        display: flex;
        gap: 0.2rem;
        flex-direction: column;
        align-items: center;
    }
    footer li a {
        display: block;
        text-decoration: none;
        color: #ebf3ff;
        padding: 0.5rem;
        border-radius: 0.3rem;
        border: 0.05rem solid gray;
        background-color: #00071ca8;
    }
    #version {
        position: absolute;
        bottom: 0;
        right: 0;
        padding: 0.15rem 0.3rem;
        font-size: 0.6rem;
        color: gray;
    }
/* footer - END */

/* disconnect div - START */
    #disconnect_div {
        position: absolute;
        background-color: #000000e7;
        border-radius: 0.4rem;
        width: 100%;
        height: 100%;
        top: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        color: white;
        padding: 0.5rem;
    }
    #att_number::before {
        content: "Attempt: ";
    }
    #att_number::after {
        content: "/5";
    }
    #reload_btn {
        display: flex;
        height: 3rem;
        width: 100%;
        max-width: 20rem;
        background-color: #0070ff;
        border: gray;
        color: white;
        border-radius: 0.4rem;
        justify-content: center;
        align-items: center;
    }
/* disconnect div - END */

@media (max-width: 600px) {
    header {
        display: none;
    }
    #theme_btn {
        display: grid;
    }
    #initial_view {
        background-color: rgba(0, 0, 0, 0);
        box-shadow: none;
    }
    h1 {
        text-align: center;
        color: rgb(64 75 102);
        font-size: 1.2rem;
    }
    .game-idea-p {
        color: rgb(64 75 102);
        width: 15rem;
    }
    #start_form input {
        border: 0.2rem solid orange;
    }
}
@media (max-width: 400px) {
    html {
        font-size: 5vw;
    }
}