body {
    font-family: 'Fredoka One', cursive;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background: linear-gradient(135deg, #ff9d6c, #ff5e62);
    color: #333;
}

.game-container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
}

h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ff5e62;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.slot-machine {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    perspective: 1000px;
}

.reel {
    font-size: 60px;
    background-color: #f8f8f8;
    border: 3px solid #ff9d6c;
    border-radius: 15px;
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s;
}

.reel.spin {
    animation: spin 0.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(360deg); }
}

.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.btn {
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    padding: 12px 24px;
    margin: 0 10px;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.spin-btn {
    background-color: #4CAF50;
    color: white;
}

.reset-btn {
    background-color: #f44336;
    color: white;
}

.rules-btn {
    background-color: #2196F3;
    color: white;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.info {
    margin-top: 20px;
}

.balance {
    font-size: 24px;
    color: #4CAF50;
}

.message {
    font-size: 20px;
    font-weight: bold;
    min-height: 30px;
    margin-top: 10px;
}

@media (max-width: 500px) {
    .game-container {
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    .reel {
        font-size: 40px;
        padding: 15px;
    }

    .btn {
        font-size: 16px;
        padding: 10px 20px;
    }
}