/* Coin Flip Specific Styles */

.coin-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.coin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.coin {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    transform-style: preserve-3d;
    transition: transform 1s ease-in;
    cursor: pointer;
}

.coin div {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    font-size: 1.5rem;
    backface-visibility: hidden;
    user-select: none;
}

.heads {
    background: linear-gradient(45deg, #d4af37, #f9d423);
    transform: rotateY(0deg);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.tails {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
    transform: rotateY(180deg);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.coin.animate-flip {
    animation: flip 3s forwards;
}

@keyframes flip {
    0% {
        transform: rotateY(0);
    }
    100% {
        transform: rotateY(1800deg);
    }
}

.result-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

#result-text {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    min-height: 1.5rem;
}

#stats {
    font-size: 1rem;
    color: #666;
}

.controls {
    display: flex;
    gap: 1rem;
}

.controls button {
    min-width: 120px;
}

.sound-control {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}

.sound-control label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.sound-control input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .coin {
        width: 120px;
        height: 120px;
    }
    
    .controls {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .coin {
        width: 100px;
        height: 100px;
        font-size: 1.2rem;
    }
    
    .coin-container {
        padding: 1.5rem;
    }
}
