/* game-vocabulary-attack.css */

.game-v-attack-container {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #0f172a;
    color: white;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
}

.game-header {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.9);
    z-index: 100;
    border-bottom: 1px solid #334155;
}

.game-stats {
    display: flex;
    gap: 20px;
    font-size: 18px;
    font-weight: bold;
}

.game-canvas {
    position: relative;
    width: 100%;
    flex: 1; /* Ambil sisa ruang tengah */
    background: #0f172a;
    z-index: 10;
    overflow: hidden;
}

.vocab-word {
    position: absolute;
    background: #20263b;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    white-space: nowrap;
    font-size: 20px;
    font-weight: bold;
    cursor: default;
    transition: transform 0.1s linear;
}

.vocab-word .original {
    color: #77c9f8;
    margin-bottom: 5px;
    text-align: center;
}

.vocab-word .hint {
    font-size: 14px;
    color: #94a3b8;
    text-align: center;
}

.vocab-word.target {
    border-color: #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    transform: scale(1.1);
}

.game-footer {
    position: relative;
    width: 100%;
    height: 200px;
    background: #1e293b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    z-index: 100;
    border-top: 2px solid #3b82f6;
}

.input-area {
    width: 100%;
    max-width: 500px;
    margin-bottom: 10px;
}

.input-area input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 25px;
    border: 2px solid #3b82f6;
    background: #0f172a;
    color: white;
    font-size: 18px;
    text-align: center;
    outline: none;
}

.input-area input:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.virtual-keyboard {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    width: 100%;
    max-width: 600px;
}

.key {
    background: #334155;
    color: white;
    border: none;
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    user-select: none;
}

.key:active {
    background: #475569;
    transform: translateY(2px);
}

/* Game Over Overlay */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.game-overlay.active {
    display: flex;
}

.game-overlay h2 {
    font-size: 48px;
    color: #ef4444;
    margin-bottom: 20px;
}

.btn-restart {
    background: url('astra-assets/tombol-kayu.png') no-repeat center center;
    background-size: contain;
    width: 200px;
    height: 60px;
    border: none;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-restart:hover {
    transform: scale(1.05);
}
