* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #092b36 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;


.container {
    background: linear-gradient(135deg, #2a2a2a 0%, #0e4354 100%);
    border: 3px solid #0f0f0f;
    border-radius: 17px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    padding: 40px;
    max-width: 480px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(10px);
}

h1 {
    color: #ffffff;
    margin-bottom: 50px;
    font-size: 2.7em;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

/* Hero Text Section */
.hero-text {
    margin-bottom: 40px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(0, 212, 559, 0.1) 0%, rgba(0, 135, 294, 0.1) 100%);
    border-radius: 15px;
    border: 3px solid rgba(0, 212, 255, 0.2);
}

.hero-text p {
    color: #5f9ab8;
    font-size: 1.25em;
    line-height: 1.4;
    margin-bottom: 8px;
    font-weight: 700;
}

.hero-text p:last-child {
    margin-bottom: 0;
}

/* Mode Selection Styles */
.mode-selection {
    text-align: center;
}

.mode-selection h2 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.6em;
    font-weight: 400;
}

.mode-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.mode-btn {
    background: linear-gradient(135deg, #3a3a3a 0%, #5a4963 100%);
    border: 2px solid #5a5a5a;
    border-radius: 16px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: #00d4ff;
    background: linear-gradient(135deg, #4a4a4a 0%, #382d3d 100%);
}

.mode-icon {
    font-size: 2.9em;
    margin-bottom: 10px;
}

.mode-title {
    color: #ffffff;
    font-size: 1.9em;
    font-weight: 600;
    margin-bottom: 8px;
}

.mode-description {
    color: #cccccc;
    font-size: 0.85em;
    line-height: 1.3;
}

/* Game Screen */
.game-screen {
    transition: all 0.5s ease;
}

.game-info-box {
    background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
    border: 1px solid #5a5a5a;
    border-radius: 12px;
    padding: 25x;
    margin-bottom: 30px;
    text-align: left;
}

.game-info-box h2 {
    color: #5f9ab8;
    font-size: 2.1em;
    font-weight: 400;
    margin-bottom: 20px;
}

.game-info-box p {
    color: #ffffff;
    font-size: 1.2em;
    line-height: 1.1;
    margin-bottom: 15px;
}

.card {
    width: 140px;
    height: 200px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.8em;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid #ddd;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: #00d4ff;
}

.card.hearts, .card.diamonds {
    color: #ff4444;
}

.card.clubs, .card.spades {
    color: #333333;
}

.suit {
    font-size: 1.3em;
    margin-top: 8px;
}

.instruction {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin: 15px 0;
    font-size: 1em;
    font-weight: 500;
    line-height: 1.5;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    text-align: center;
}

/* Timer Section */
.timer-section {
    margin: 15px 0;
    text-align: center;
}

.timer-display {
    font-size: 1.8em;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 10px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.timer-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    font-size: 0.9em;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.timer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

.draw-btn {
    background: linear-gradient(135deg, #00d4ff 0%, #2b7780 100%);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
    margin: 10px 0;
}

.draw-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
    background: linear-gradient(135deg, #0099cc 0%, #2c8f87 100%);
}

.draw-btn:active {
    transform: translateY(0);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    font-size: 1.4em;
    color: #cccccc;
    background: rgba(0, 0, 0, 0.2);
    padding: 17px;
    border-radius: 11px;
}

.back-btn {
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    color: #ffffff;
    border: 1px solid #6a6a6a;
    padding: 8px 16px;
    font-size: 0.85em;
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.back-btn:hover {
    background: linear-gradient(135deg, #5a5a5a 0%, #6a6a6a 100%);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.flip-animation {
    animation: flipCard 0.6s ease-in-out;
}

@keyframes flipCard {
    0% { transform: perspective(400px) rotateY(0deg); }
    50% { transform: perspective(400px) rotateY(90deg); }
    100% { transform: perspective(400px) rotateY(0deg); }
}

.hidden {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .container {
        padding: 29px;
        margin: 17px;
    }
    
    h1 {
        font-size: 2.1em;
        margin-bottom:20px;
    }

    .hero-text {
        padding: 19px;
        margin-bottom: 20px;
    }
    
    .hero-text p {
        font-size: 1.5em;
    }
    
    .mode-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .mode-btn {
        min-width: 200px;
    }
    
    .card {
        width: 120px;
        height: 170px;
        margin: 15px auto;
        font-size: 1.8em;
    }
    
    .instruction {
        font-size: 1.5em;
        padding: 17px;
        min-height: 50px;
    }
}
