* {
    user-select: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    padding-top: 7vh;
}

#SelectContainer {
    position: relative;
    width: 90vw;
    height: auto;
    background: var(--bg-glass);
    border: 0.3vw solid var(--card-border);
    border-radius: 4vw;
    box-shadow: var(--card-shadow);
    padding: 5vh 5vw;
    text-align: center;
    margin-top: 17vh;
}

.option-group {
    margin-bottom: 2vh;
}

.option-group h2 {
    font-size: 5vw;
    color: var(--text-secondary);
    margin-bottom: 2vh;
    line-height: 1.3;
}

.order-options{
    display: flex;
    justify-content: center;
    gap: 3vw;
    flex-wrap: wrap;
}

.order-options label {
    font-size: 4vw;
    background: var(--input-bg);
    border: 0.3vw solid var(--input-border);
    border-radius: 2vw;
    padding: 1vh 4vw;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    flex: 0 0 auto; 
    min-width: 55vw;
}

.order-options label:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--accent-primary);
    transform: translateY(-0.5vh);
}

.order-options input[type="radio"] {
    display: none;
}

.LevelSelectors {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1vh;
}

.LevelSelectors:empty {
    display: none;
}

.order-options label:has(input[type="radio"]:checked) {
    background: var(--btn-secondary-hover) !important;
    border-color: var(--accent-primary) !important;
    color: var(--accent-primary) !important;
    font-weight: 600;
    box-shadow: 0 0 1.5vw rgba(0, 217, 232, 0.3);
    transform: translateY(-0.3vh);
}

.button-container {
    display: flex;
    flex-direction: row;
    gap: 5vw;
    justify-content: center;
    align-items: center;
    margin-top: 2vh;
    flex-wrap: wrap;
}

#StartBtn {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 2vw;
    padding: 1.7vh 5vw;
    font-size: 4vw;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: var(--btn-primary-shadow);
    flex: 1;
    min-width: 30vw;
}

#StartBtn:hover {
    background: var(--btn-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 2vh 4vh rgba(0, 217, 232, 0.4);
}

#ContinueBtn {
    background: var(--btn-success-bg);
    color: var(--btn-success-text);
    border: 0.3vw solid rgba(16, 185, 129, 0.3);
    border-radius: 2vw;
    padding: 1.6vh 5vw;
    font-size: 4vw;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 1vh 3vh rgba(16, 185, 129, 0.3);
    flex: 1;
    min-width: 30vw;
}

#ContinueBtn:hover {
    background: var(--btn-success-hover);
    transform: scale(1.05);
    box-shadow: 0 2vh 4vh rgba(16, 185, 129, 0.5);
}

.hidden {
    display: none !important;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(1.5vw);
    padding: 3vh 5vw;
}

.modal-content {
    background: var(--bg-glass);
    border: 0.3vw solid var(--card-border);
    border-radius: 4vw;
    padding: 5vh 4vw;
    max-width: 85vw;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.modal-content h3 {
    color: var(--text-secondary);
    font-size: 5.5vw;
    margin-bottom: 1vh;
    line-height: 1.3;
}

.modal-content p {
    color: var(--text-primary);
    font-size: 4vw;
    line-height: 1.6;
    margin-bottom: 2vh;
}

.modal-buttons {
    display: flex;
    flex-direction: row;
    gap: 2vh;
    justify-content: center;
    align-items: center;
}

.btn-confirm {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border: none;
    border-radius: 2vw;
    padding: 1.5vh 1vw;
    font-size: 4.5vw;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: var(--btn-primary-shadow);
    width: 100%;
}

.btn-confirm:hover {
    background: var(--btn-primary-hover);
    transform: scale(1.05);
    box-shadow: 0 2vh 4vh rgba(0, 217, 232, 0.4);
}

.btn-cancel {
    background: var(--btn-danger-bg);
    color: var(--btn-danger-text);
    border: none;
    border-radius: 2vw;
    padding: 1.5vh 1vw;
    font-size: 4.5vw;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 1vh 3vh rgba(239, 68, 68, 0.3);
    width: 100%;
}

.btn-cancel:hover {
    background: var(--btn-danger-hover);
    transform: scale(1.05);
    box-shadow: 0 2vh 4vh rgba(239, 68, 68, 0.4);
}

.swap-lang-btn {
    background: var(--btn-secondary-bg);
    border: 0.3vw solid var(--btn-secondary-border);
    border-radius: 2vw;
    width: 12vw;
    height: 9vw;
    font-size: 6vw;
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-lang-btn:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--accent-primary);
}

.swap-lang-btn:active {
    transform: scale(0.95);
}

.custom-dropdown {
  width: 50vw !important;
}

@media (min-width: 768px) {
    body {
        padding: 10vh 0 2vh 0;
    }

    .swap-lang-btn {
        width: 6vw;
        font-size: 3vw;
        border-radius: 1vw;
        border-width: 0.15vw;
    }

    #SelectContainer {
        width: 75vw;
        height: 45vh;
        padding: 4vh 4vw;
        border-radius: 2vw;
        border-width: 0.15vw;
    }

    .option-group {
        margin-bottom: 3.5vh;
    }

    .option-group h2 {
        font-size: 2.5vw;
        margin-bottom: 2vh;
    }

    .order-options {
        gap: 1vw;
    }

    .order-options label {
        font-size: 1.8vw;
        padding: 1.5vh 1vw;
        border-radius: 1vw;
        border-width: 0.15vw;
        min-width: 15vw;
    }

    .LevelSelectors {
        flex-direction: row;
        gap: 2vw;
        margin-top: 2vh;
        justify-content: center;
    }

    #ToLabel {
        font-size: 2.2vw;
        margin: 0;
    }

    .swap-lang-btn {
        height: 5vw;
    }    

    .button-container {
        gap: 2vw;
        margin-top: 3.5vh;
    }

    #StartBtn {
        padding: 2vh 4vw;
        font-size: 2.2vw;
        border-radius: 1vw;
        min-width: 22vw;
    }

    #ContinueBtn {
        padding: 1.8vh 4vw;
        font-size: 2vw;
        border-radius: 1vw;
        border-width: 0.15vw;
        min-width: 22vw;
        margin-right: 5vh;
    }

    .modal-content {
        max-width: 55vw;
        padding: 4vh 4vw;
        border-radius: 2vw;
        border-width: 0.15vw;
    }

    .modal-content h3 {
        font-size: 2.8vw;
        margin-bottom: 2.5vh;
    }

    .modal-content p {
        font-size: 2vw;
        margin-bottom: 3vh;
    }

    .modal-buttons {
        flex-direction: row;
        gap: 2vw;
    }

    .btn-confirm,
    .btn-cancel {
        padding: 1.8vh 1vw;
        font-size: 2vw;
        border-radius: 1vw;
        width: auto;
        min-width: 18vw;
        max-width: none;
    }

    .custom-dropdown {
      width: 20vw !important;
    }    
}

@media (min-width: 1024px), (orientation: landscape) {
    body {
        overflow: hidden;
        padding: 8vh 0 2vh 0;
    }

    .swap-lang-btn {
        width: 3vw;
        height: 2.7vw;
        font-size: 2vw;
        border-radius: 0.6vw;
        border-width: 0.08vw;
    }

    #SelectContainer {
        width: 50vw;
        padding: 2vh 2vw;
        border-radius: 1.2vw;
        border-width: 0.08vw;
        margin-top: 20vh;
    }

    .option-group {
        margin-bottom: 5vh;
    }

    .option-group h2 {
        font-size: 1.6vw;
        margin-bottom: 2vh;
    }

    .order-options {
        gap: 1vw;
    }

    .order-options label {
        font-size: 1.2vw;
        padding: 1.2vh 1vw;
        border-radius: 0.6vw;
        border-width: 0.08vw;
        min-width: 10vw;
    }

    .order-options label:hover {
        transform: translateY(-0.3vh);
    }

    .LevelSelectors {
        gap: 1.5vw;
        justify-content: center;
    }

    .lang-selector-row {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .lang-selector-row .LevelSelectors {
        display: flex;
        flex-direction: row;
        gap: 1.5vw;
        align-items: center;
    }

    .lang-select {
        padding: 1vh 1.8vw;
        font-size: 1.3vw !important;
        width: 12vw !important;
        height: 4.5vh;
    }

    .lang-select option {
        font-size: 0.9vw;
        padding: 1.5vh 0vw;
    }

    .button-container {
        gap: 2.5vw;
    }

    #StartBtn {
        padding: 1.6vh 2.5vw;
        font-size: 1.5vw;
        border-radius: 0.6vw;
        min-width: 15vw;
    }

    #StartBtn:hover {
        box-shadow: 0 1.2vh 2.5vh rgba(0, 217, 232, 0.4);
    }

    #ContinueBtn {
        padding: 1.5vh 2.5vw;
        font-size: 1.5vw;
        border-radius: 0.6vw;
        min-width: 15vw;
        margin-right: 3vw;
    }

    #ContinueBtn:hover {
        box-shadow: 0 1.2vh 2.5vh rgba(16, 185, 129, 0.5);
    }

    .modal {
        backdrop-filter: blur(0.6vw);
    }

    .modal-content {
        max-width: 35vw;
        padding: 4vh 2.5vw;
        border-radius: 1.2vw;
        border-width: 0.08vw;
    }

    .modal-content h3 {
        font-size: 1.6vw;
        margin-bottom: 2vh;
    }

    .modal-content p {
        font-size: 1.2vw;
        margin-bottom: 3vh;
    }

    .modal-buttons {
        gap: 1.5vw;
    }

    .btn-confirm,
    .btn-cancel {
        padding: 1.5vh 1vw;
        font-size: 1.3vw;
        border-radius: 0.6vw;
        min-width: 10vw;
    }

    .btn-confirm:hover,
    .btn-cancel:hover {
        box-shadow: 0 1.2vh 2.5vh rgba(0, 217, 232, 0.4);
    }

    .btn-cancel:hover {
        box-shadow: 0 1.2vh 2.5vh rgba(239, 68, 68, 0.4);
    }

    .custom-dropdown {
      width: 13.5vw !important;
    }        
}

@media (orientation: landscape) and (hover: none) and (pointer: coarse) {
    html, body {
        overflow: auto;
    }
}