body {
    margin: 0;
    overflow: hidden;
    background: #ffffff;
    /* Beyaz */
    font-family: 'Arial', sans-serif;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f4;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.stat-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 10px 20px;
    margin-bottom: 5px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}

#gameCanvas {
    background: #ffffff;
    cursor: crosshair;
    border: 2px solid #ccc;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain;
}

/* Soru Penceresi */
.hidden {
    display: none !important;
}

#question-modal {
    position: absolute;
    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: 100;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

/* Zaman Barı */
#timer-container {
    width: 100%;
    height: 15px;
    background: #eee;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

#timer-bar {
    width: 100%;
    height: 100%;
    background: #4CAF50;
    transition: width 1s linear;
}

.option-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    font-size: 1.1rem;
    cursor: pointer;
    border: 2px solid #3498db;
    border-radius: 8px;
    background: white;
    transition: 0.3s;
}

.option-btn:hover {
    background: #3498db;
    color: white;
}

#input-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

#answer-input {
    width: 90%;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #ccc;
    border-radius: 8px;
    text-align: center;
}

.submit-btn {
    width: 90%;
    padding: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    border: none;
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    transition: 0.3s;
    font-weight: bold;
}

.submit-btn:hover {
    background-color: #45a049;
}

/* Özel Uyarı/Bilgi Modal Tasarımı (Native Alert Yerine) */
.alert-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid #f1c40f;
    z-index: 200;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    pointer-events: none;
    /* Mouse ile tıklanmasını/etkileşimini engeller */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.alert-modal.show {
    opacity: 1;
}

.alert-modal .alert-content p {
    margin: 0;
}

/* Yanlış Cevap Titreme Animasyonu */
@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.shake {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

.correct-answer-highlight {
    background-color: #4CAF50 !important;
    color: white !important;
    border-color: #4CAF50 !important;
}

.wrong-answer-highlight {
    background-color: #f44336 !important;
    color: white !important;
    border-color: #f44336 !important;
}