@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    /* yatay ortalama */
    align-items: center;
    /* dikey ortalama */
    background-color: #fff;
    font-family: "Inter", sans-serif;
    overflow-y: hidden;
    overflow-x: hidden;
    background-image: url(../img/bg.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    position: relative;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.loader .text {
    position: absolute;
    display: flex;
    align-items: center;
    text-align: center;
    bottom: 15px;
    color: #b6b6b6;
    font-weight: 600;
}


.loader .img img {
    max-width: 200px;
    pointer-events: none;
    animation: loader-ani infinite alternate 5.8s;
}

@keyframes loader-ani {
    0% {
        transform: scale(0.4);
        opacity: 0.7;
    }

    50% {

        opacity: 0.9;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.games {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0 auto;

}


.games div {
    background-color: rgba(255, 255, 255, 0.918);
    padding: 40px;
    border-radius: 16px;
    width: 600px;
    height: 400px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

#start-games {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

#start-games h1 {
    margin-bottom: 16px;
    font-size: 24px;
    color: #333;
}

#start-games p {
    margin-bottom: 24px;
    font-size: 16px;

}

#start-games button {
    background-color: #1a6e00;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    outline: none;
}

#start-games button:hover {
    background-color: #0fb300;
}

#info-games {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

#info-games h1 {
    margin-bottom: 16px;
    font-size: 24px;
    color: #333;
}

#info-games p {
    margin-bottom: 24px;
    font-size: 16px;

}

#info-games button {
    background-color: #1a6e00;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#info-games button:hover {
    background-color: #0fb300;
}

#game {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1px;

}

#game p {
    position: absolute;
    top: 25px;
}

#game #score {
    position: absolute;
    top: 25px;
    right: 25px;
}

#game #kelime {
    font-size: 1.5rem;
    font-weight: 900;
}

#game .answers {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 1rem;
}

.answers button {
    background-color: #ffcc00;
    color: #333;
    font-size: 20px;
    padding: 12px 24px;
    margin: 10px;
    border: 3px solid #ff9900;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 6px #cc8800;
    transition: all 0.2s ease-in-out;
    font-family: "Inter", sans-serif;
}

.answers button:hover {
    background-color: #ffe066;
    box-shadow: 0 4px #aa7700;
    transform: scale(1.05);
}

.answers button:active {
    box-shadow: 0 2px #aa7700;
    transform: translateY(2px);
}

.feedback {
    position: fixed;
    top: -340px;
    left: -660px;
    width: 100vw;
    height: 140vh;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 64px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 1.2s ease-in-out;

    pointer-events: none;
    user-select: none;
}

.feedback.dogru {
    position: fixed;
    top: -340px;
    left: -660px;
    width: 100vw;
    height: 140vh;

    color: white;
    font-size: 64px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 1.2s ease-in-out;

    pointer-events: none;
    user-select: none;
    background-color: rgba(0, 200, 0, 0.8);
    font-family: "Inter", sans-serif;
}

.feedback.yanlis {
    position: fixed;
    top: -340px;
    left: -660px;
    width: 100vw;
    height: 140vh;

    color: white;
    font-size: 64px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeInOut 1.2s ease-in-out;

    pointer-events: none;
    user-select: none;
    background-color: rgba(200, 0, 0, 0.8);
    font-family: "Inter", sans-serif;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    30% {
        opacity: 1;
        transform: scale(1);
    }

    70% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

.confetti {
    position: fixed;
    top: -10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: red;
    z-index: 9999;
    opacity: 0.9;
    pointer-events: none;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Mobilde uyarı overlay’i gizli başlasın */
.wait {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Üstte görünsün */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    /* Metin taşarsa kaydır */
}

.wait h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.wait span {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
}

.wait p {
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.4;

}

/* 768px ve altındaki ekranlarda */
@media screen and (max-width: 768px) {
    .wait {
        display: flex;
        /* Flex ile ortala */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

}