

.instructions {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
}

.coin-container {
    perspective: 1000px;
    margin: 2rem auto;
    width: 150px;
    height: 150px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease-out;
}

.coin .front,
.coin .back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.coin .front {
    background-color: #e74c3c;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" font-size="40" text-anchor="middle" dominant-baseline="middle" fill="white">Y</text></svg>');
    background-position: center;
    background-repeat: no-repeat;
}

.coin .back {
    background-color: #3498db;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="50%" y="50%" font-size="40" text-anchor="middle" dominant-baseline="middle" fill="white">T</text></svg>');
    background-position: center;
    background-repeat: no-repeat;
    transform: rotateY(180deg);
}

.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.choice-buttons button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

#heads-button {
    background-color: #e74c3c;
    color: white;
}

#heads-button:hover {
    background-color: #c0392b;
}

#tails-button {
    background-color: #3498db;
    color: white;
}

#tails-button:hover {
    background-color: #2980b9;
}

.choice-buttons button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#result {
    font-size: 1.2rem;
    font-weight: bold;
    min-height: 1.8rem;
    margin: 1.5rem 0;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    gap: 1rem;
}

.stat-box {
    flex: 1;
    background-color: #ecf0f1;
    padding: 1rem;
    border-radius: 5px;
}

.stat-box h3 {
    margin-top: 0;
    font-size: 1rem;
    color: #7f8c8d;
}

.stat-box p {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0.5rem 0 0;
    color: #2c3e50;
}

@keyframes flip {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(1800deg);
    }
}

.flipping {
    animation: flip 2s cubic-bezier(0.4, 2.5, 0.6, 0.5) forwards;
}

.correct {
    color: #27ae60 !important;
}

.wrong {
    color: #e74c3c !important;
}