/* Solitaire Game Styles */

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-canvas {
    max-width: 100%;
    max-height: 100%;
}

/* Card pile highlights */
.pile-highlight {
    box-shadow: 0 0 20px rgba(32, 201, 151, 0.8);
}

/* Win animation */
@keyframes card-fly {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.card-fly-animation {
    animation: card-fly 2s ease-out forwards;
}

/* Difficulty selection modal */
.difficulty-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(22, 33, 62, 0.98);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(111, 66, 193, 0.5);
    text-align: center;
    z-index: 200;
}

.difficulty-modal h3 {
    color: #fff;
    margin-bottom: 20px;
}

.difficulty-btn {
    display: block;
    width: 200px;
    margin: 10px auto;
    padding: 12px 24px;
    background: linear-gradient(135deg, #6f42c1, #5a32a3);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.difficulty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.5);
}

.difficulty-btn.easy {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.difficulty-btn.medium {
    background: linear-gradient(135deg, #ffc107, #d39e00);
    color: #1a1a2e;
}

.difficulty-btn.hard {
    background: linear-gradient(135deg, #dc3545, #c82333);
}
