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

html, body {
    height: 100%;
    overflow: hidden; /* 🚫 no scroll */
}

body {
    background: linear-gradient(to right, #F49BAB 50%, #1B3C53 50%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;   /* center all content */
    gap: 8vh;                  /* small gap between header, cards, footer */
    padding: 1vh 0;
}

/* ---------- HEADER ---------- */
.header {
    text-align: center;
    margin: 0;  /* no big margin */
    color:#EEEDE7;
}

.header h1 {
    font-size: 2.2rem;  /* reduced font */
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h4 {
    font-size: 1rem;
    font-weight: bold;
    opacity: 0.9;
    margin-top: 0.3rem;
}

/* ---------- GAME CARDS ---------- */
.game-container {
    display: flex;
    justify-content: space-around; 
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;    
    width: 100%;
}

.game-card {
    background: #BCECE0;
    border-radius: 20px;
    padding: 15px;  /* smaller padding */
    width: 220px;   /* reduced size */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

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

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.game-card:hover::before {
    left: 100%;
}

.game-icon {
    font-size: 3rem;  /* reduced size */
    margin-bottom: 15px;
    display: block;
}

.tic-tac-toe-card .game-icon {
    color: #F49BAB ;
}

.snake-card .game-icon {
    color:#1B3C53 ;
}

.game-card h2 {
    font-size: 1.4rem;  /* reduced */
    margin-bottom: 10px;
    color: #333;
}

.game-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.play-button {
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    display: inline-block;
    color: white;
}

.play-button.left{
    background-color: #F49BAB;
}

.play-button.right{
    background-color:#1B3C53;
}

.play-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ---------- FOOTER ---------- */
.footer {
    margin: 0;  /* closer to cards */
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    body{
        gap: 2vh;                  
    }
    .game-container {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .game-card {
        width: 200px;
        padding: 12px;
    }
}

