/* Reset podstawowy */

@font-face {
    font-family: 'IQOS';
    src: url('../fonts/IQOS-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IQOS';
    src: url('../fonts/IQOS-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IQOS';
    src: url('../fonts/IQOS-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    width: 100%;
    height: 100%;
    font-family: 'IQOS', Arial, sans-serif;
    overflow: hidden;
}

/* Kontrola widoczności przez atrybut hidden */
.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}
.view:not([hidden]) {
    display: block;
}

/* Stacking context dla ekranów */
#screensaver {
    z-index: 30;
}
#start-screen,
#quiz-screen,
#result-screen {
    position: relative;  /* nowy kontekst warstw */
    z-index: 20;
}

/* Wspólny styl tła */
.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 0;  /* zawsze najniższy w swoim kontekscie */
}
/* Wideo wygaszacz */
#screensaver video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Ekran startowy */
#start-screen .background {
    z-index: 0;
}
#start-screen .lang-switch {
    position: absolute;
    top: 1vh;
    right: 1vh;
    display: flex;
    gap: 1vh;
    z-index: 21;
    justify-content: flex-end;
}
#start-screen .lang-btn {
    cursor: pointer;
    width: 3vh;
}
#start-screen .start-btn {
    font-family: 'IQOS', Arial, sans-serif;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4vh 8vw;
    font-size: 15vw;
    font-weight:700;
    background: rgba(224, 53, 139, 0);
    color: #fff;
    border: 0vh solid #fff;
    border-radius: 1vh;
    cursor: pointer;
    z-index: 21;
    text-shadow: 0.1vw 0.1vw 3vw rgba(0, 0, 0, 0.8);
}

/* Quiz */
#quiz-screen .background {
    z-index: 0;
}
#quiz-screen {
    padding: 2vh;
}
#quiz-screen .question-container {
    position: relative;
    z-index: 1;
    width: 80%;
    margin: 0 auto;
    padding: 2vh;
    /*background: rgba(0, 0, 0, 0.4);*/
    border-radius: 1vh;
    text-align: left;
}
#quiz-screen h1,
#quiz-screen h2,
#quiz-screen h3 {
    color: #fff;
    text-shadow: 0.1vw 0.1vw 0.8vw rgba(0,0,0,0.8);
    margin-bottom: 1vh;
}
#quiz-screen h1 {
    font-size: 5vw;
}
#quiz-screen h2 {
    font-size: 3.5vw;
    margin-bottom: 2vh;
    font-weight:400;
}
#quiz-screen h3 {
    font-size: 4vw;
    font-weight:400;
}
.answers-container {
    display: flex;
    flex-direction: column;
    gap: 1.5vh;
    width: 100%;
    margin: 0 auto;
}
.answer-btn {
    font-family: 'IQOS', Arial, sans-serif;

    width: 100%;
    padding: 2vh;
    background: rgb(173 53 224 / 57%);
    color: #fff;
    border: 0.1vh solid #fff;
    border-radius: 2vh;
    text-align: left;
    font-size: 2.5vw;
    cursor: pointer;
}
.answer-btn span.letter {
    font-family: 'IQOS', Arial, sans-serif;

    font-weight: bold;
    margin-right: 0.5vw;
}

/* Wyniki */
#result-screen .background {
    z-index: 0;
}
#result-screen > :not(.background) {
    position: relative;
    z-index: 1;
}

#result-screen {
    padding: 2vh;
    text-align: center;
}
#result-screen h1 {
    color: #fff;
    font-size: 4vw;
    margin-bottom: 2vh;
}
#answers-html {
    width: 80%;
    margin: 0 auto 2vh;
}
#score-time p {
    font-size: 6.5vw;
    color: #fff;
    margin: 1vh 0;
    font-weight: 700;
}
#result-screen .restart-btn {
    font-family: 'IQOS', Arial, sans-serif;
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 1vh 4vw;
    font-size: 2.5vw;
    background: rgba(224, 53, 139, 0.7);
    color: #fff;
    border: 0.1vh solid #fff;
    border-radius: 1vh;
    cursor: pointer;
    z-index: 21;
}


/* Przycisk wyboru języka */
.lang-btn {
    cursor: pointer;
    width: 5%;
    transition: transform 0.2s ease-in-out;
}

/* Wyróżnienie wybranego języka: powiększenie o 30% */
.lang-btn.selected {
    transform: scale(1.3);
}


#loading-screen {
    display:flex;
    align-items:center;
    justify-content:center;
    background:#000;
}
.progress-container {
    width:80vw;
    height:2vh;
    background:rgba(255,255,255,0.2);
    border-radius:1vh;
    overflow:hidden;
}
#progress-bar {
    width:0;
    height:100%;
    background:#e0358b;
    transition:width .2s;
}

.correct{
    color: white;
    font-weight: 700;
    font-size: 8vw;
}

.answers-list{
    color: white;
    text-align: left;
    margin-top: 3em;
    font-size:3vw;
}
ol.answers-list p {
    margin-bottom: 1.0em;
    font-size:2.8vw;
}