/* Base styles for Password Checker Game */

:root {
    --White: white;
    --CISPA-Blue-Shades-Dark-Blue: #002864;
    --CISPA-Blue-Shades-Blue-20: #D5ECF6;
    --CISPA-Cyan: #00B4D8;
}

body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #00c8ff;
    overflow: hidden;
}

/* Game container with fixed 1920x1080 aspect ratio, scaled to fit viewport */
.game-container {
    position: relative;
    width: 100vw;
    height: 56.25vw; /* 1080/1920 = 0.5625 = 56.25% */
    max-height: 100vh;
    max-width: 177.78vh; /* 1920/1080 = 1.7778 = 177.78% */
    background-image: url("../images/background.svg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Language toggle button - absolute position top right within game container */
.language-toggle-wrapper {
    position: absolute;
    top: 5.56%;
    right: 4.38%;
    width: 6.98%;
    height: 7.96%;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.language-toggle-wrapper svg {
    width: 100%;
    height: 100%;
}

.language-toggle-wrapper:hover {
    transform: scale(1.05);
}

.language-toggle-wrapper svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Active state - swap colors */
.language-toggle-wrapper[data-lang="en"] .lang-de-bg {
    fill: var(--CISPA-Blue-Shades-Blue-20);
}

.language-toggle-wrapper[data-lang="en"] .lang-de-text {
    fill: var(--CISPA-Blue-Shades-Dark-Blue);
}

.language-toggle-wrapper[data-lang="en"] .lang-en-bg {
    fill: var(--CISPA-Blue-Shades-Dark-Blue);
}

.language-toggle-wrapper[data-lang="en"] .lang-en-text {
    fill: var(--White);
}

.screen-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

.screen-header {
    border-bottom: 2px solid #0dcaf0;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.screen-title {
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.screen-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.debug-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0dcaf0;
}

.password-display {
    background: #fff3cd;
    padding: 20px;
    border-radius: 4px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    border: 2px solid #ffc107;
}

.question-item {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.result-box {
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.result-box.correct {
    background: #d1e7dd;
    border: 2px solid #198754;
}

.result-box.incorrect {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.btn-next {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: white;
}

.btn-next:hover {
    background-color: #0bb8cc;
    border-color: #0bb8cc;
    color: white;
}

/* ── Shared action button (replaces all image-based submit/continue buttons) ── */
.action-button {
    position: absolute;
    bottom: 5.68%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    width: min(45.21vw, 80.37vh);
    height: min(4.17vw, 7.41vh);
    padding: 0 min(1.56vw, 2.78vh);
    justify-content: center;
    align-items: center;
    background: white;
    border: min(0.31vw, 0.56vh) solid #EB3300;
    border-radius: min(1.04vw, 1.85vh);
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #EB3300;
    text-align: center;
    font-family: Montserrat;
    font-size: min(1.67vw, 2.97vh);
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: min(0.083vw, 0.148vh);
    text-transform: uppercase;
    box-sizing: border-box;
    z-index: 10;
}

.action-button:hover {
    transform: translateX(-50%) scale(1.05);
}

.action-button.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.action-button.disabled:hover {
    transform: translateX(-50%);
}

/* Placeholder boxes for design elements */
.design-placeholder {
    border: 2px dashed #ccc;
    padding: 20px;
    text-align: center;
    color: #999;
    margin: 15px 0;
    background: #fafafa;
}
