body {
    background-color: #0d1b45;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.game-container {
    width: 90%;
    max-width: 800px;
}

.question-box {
    background: #1a3c8a;
    border: 3px solid #f1c40f;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    perspective: 1000px;
}

.card {
    background-color: #2c3e50;
    border: 2px solid #fff;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card.flipped {
    background-color: #3498db; /* لون عند كشف الإجابة */
    border-color: #f1c40f;
}

.card-content {
    display: flex;
    justify-content: space-between;
    width: 90%;
}

.points {
    background: #f1c40f;
    color: black;
    padding: 2px 8px;
    border-radius: 5px;
}

.controls {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
}

.team input {
    width: 60px;
    padding: 5px;
    font-size: 18px;
    text-align: center;
}

button {
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

.errors button {
    background-color: #e74c3c;
    color: white;
}

.next-btn {
    background-color: #27ae60;
    color: white;
}
