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

html, body, input, button, div, p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Singulier', sans-serif;
}

/* PODSTAWOWE */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow: hidden;
    color: #fff;
}

html, body {
    background: url('bckgr.png') center center / cover no-repeat fixed;
}

/* Ukrywanie */
.hidden {
    display: none !important;
}

/* Powitalny */
#welcomeScreen {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    /*padding-top: 30vh;*/
    background-color: #000;
}
#welcomeScreen input {
    width: 130%;
    padding: 1vh;
    font-size: 2vh;
    border: 0.2vh solid #ccc;
    border-radius: 1vh;
    margin-bottom: 3vh;
}
#welcomeScreen img {
    width: 100%;
    height:100%;
    cursor: pointer;
}

/* Ekran gry */
#gameScreen {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Plansza */
.game-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5vh;
    width: 60vw;
    aspect-ratio: 9/16;
    margin: 17vh auto 0;
}
.card {
    width: 100%;
    aspect-ratio: 10/21;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    cursor: pointer;
}
.card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
}
.card.flipped {
    transform: rotateY(180deg);
}
.card .front {
    transform: rotateY(180deg);
    z-index: 2;
}
.card .back {
    z-index: 1;
}

/* Podsumowanie, licznik, reset */
#timerDisplay {
    font-size: 4vh;
    margin-top: 2vh;
}
.summary {
    font-size: 2vh;
    margin-top: 5vh;
    text-align: center;
}
.reset-button {
    width: 30vw;
    position: absolute;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
}

/* Logo */
.logo {
    position: absolute;
    top: 3vh;
    left: 50%;
    transform: translateX(-50%);
    width: 8vw;
    cursor: default;
}

/* Div z gratulacjami */
.reward {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64vw;
    height: 68vh;
    background-color: rgba(0,0,0,0.9);
    border: 0.2vw solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    text-align: center;
    border-radius: 5vw;
    z-index: 1000;
}

/* ——————————————————————————————— */
/* Poprawki dla formularza startowego */
/* ——————————————————————————————— */

#startForm {
    /* powtarza twoje ustawienia z #welcomeScreen */
    display: flex;
    flex-direction: column;
    align-items: center;
}

#startForm button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

#startForm button img {
    /* dokładnie to samo, co wcześniej miałeś w #welcomeScreen img */
    width: 35vw;
    height: auto;
    display: block;
}

h1{
    font-size:2.4vh;
}
p{
    font-size:1.4vh;
    margin-bottom: 1.4vh;
}

/* Wyjmij z flow i ułóż w prawym górnym rogu */
.lang-switch {
    position: absolute;   /* poza normalnym układem */
    top: 1vh;
    right: 1vh;
    display: flex;
    gap: 1vh;
    z-index: 1000;        /* na wierzchu */
}

/* Przyciski języka */
.lang-switch .lang-btn {
    width: 3vh;
    height: auto;
    cursor: pointer;
}

.lang-btn.selected {
    transform: scale(1.3);  /* skaluj 130% */
}


.start-btn {
    font-family: 'IQOS', Arial, sans-serif;
    padding: 4vh 8vw;
    font-size: 15vw;
    font-weight: 700;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 1vh;
    cursor: pointer;
    z-index: 21;
}

.start-btn {
    font-family: 'IQOS', Arial, sans-serif;
    position: absolute;
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 4vh 8vw;
    font-size: 15vw;
    font-weight: 700;
    background: transparent;
    color: #ffffff00;
    border: none;
    border-radius: 1vh;
    cursor: pointer;
    z-index: 21;
}

    /* Glow tylko do tekstu – biały, mocniejszy */
/*    text-shadow:
        0 0 0.4vw rgba(255, 255, 255, 0.5),
        0 0 1.2vw rgba(255, 255, 255, 0.4),
        0 0 2vw   rgba(255, 255, 255, 0.3);
    animation: glow-text 1.5s ease-in-out infinite alternate;
}*/
/*
@keyframes glow-text {
    from {
        text-shadow:
            0 0 0.4vw rgba(255, 255, 255, 0.5),
            0 0 1.2vw rgba(255, 255, 255, 0.4),
            0 0 2vw   rgba(255, 255, 255, 0.3);
    }
    to {
        text-shadow:
            0 0 2vw   rgba(255, 255, 255, 0.8),
            0 0 4vw   rgba(255, 255, 255, 0.6),
            0 0 6vw   rgba(255, 255, 255, 0.4);
    }
}*/