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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1e1f29, #282c34);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
}

.container {
    width: 90%;
    max-width: 1200px;
    background: rgba(40, 44, 61, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 2px;
    padding: 10px;
}

.instructions {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #c0c0c0;
    line-height: 1.6;
    padding: 10px;
}

#start-game {
    background: linear-gradient(135deg, #4caf50, #81c784);
    color: white;
    padding: 15px 15px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#start-game:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Game Board */
#game-board {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    grid-template-rows: repeat(2, 120px);  /* 2 rows, 120px each */
    gap: 15px;
    justify-items: center;
    padding: 15px;
    margin: 0 200px;
}


/* Cards (target your <img> elements directly) */
#game-board img {
    width: 100px;
    height: 130px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    cursor: pointer;
    object-fit: cover;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Hover effect */
#game-board img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

/* Flip effect when showing image (you already add .show class in JS) */
#game-board img.show {
    transform: rotateY(180deg);
}

/* Winner message */
.winner-message {
    margin-top: 30px;
    font-size: 2rem;
    color: #ffd700;
    animation: glow 1.5s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px #ffd700, 0 0 10px #ffd700; }
    to { text-shadow: 0 0 20px #ffea00, 0 0 30px #ffc107; }
}
