/* Global Styles */
body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Gamja Flower', cursive, sans-serif;
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

.main-title {
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    font-weight: bold;
}

/* Card Styles */
.game-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

.option-card {
    position: relative;
}

.option-card .img-container {
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
}

.option-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.option-card:hover img {
    transform: scale(1.1);
}

/* Overlay for selection effect */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.option-card:active .overlay {
    opacity: 1;
}

/* VS Badge */
.vs-badge {
    width: 80px;
    height: 80px;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

/* Buttons */
.btn-game {
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.btn-game:hover {
    transform: scale(1.05);
}

.btn-game:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Winner Card */
.winner-card .card-img-top {
    height: 400px;
    object-fit: cover;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .option-card .img-container {
        height: 200px;
    }
    
    .vs-badge {
        width: 60px;
        height: 60px;
        margin: 10px auto;
    }
    
    .vs-badge span {
        font-size: 1.5rem;
    }

    .display-1 {
        font-size: 3rem;
    }
}
