/* ----------------------------------
Global Styles
---------------------------------------- */

body {
    margin: 0;
    font-family:Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #333;
}

h1,h2 {
    margin: 0;
    padding: 10px 0;
    text-align: center;

}

/* ----------------------------------
Navigation Bar
------------------------------------- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2a9d8f;
    padding: 10px 20px;
    color: white;
}

.logo {
    font-size: 1.6rem;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* -----------------------------------------
Game Layout
------------------------------------------- */

.game-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
    text-align: center;
}

.discard-section,
.hand-section {
    margin-bottom: 30px
}


/* -------------------------------------
Card Styling
--------------------------------------- */

.card-slot,
.card {
    width: 99px;
    height: 130px;
    border-radius: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
    margin: 10px;
    background: #ccc; 
}

/* Colour classes */
.red { background: #e63946; }
.blue { background:#457b9d ; }
.green { background: #2a9d8f; }
.yellow { background: #e9c46a; color: #333; }

/* ---------------------
Draw button
------------------------- */

.draw-button {
    padding: 12px 25px;
    font-size: 1.2rem;
    background: #1d3557;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.draw-button:hover {
    background: #274c77;


}


.reset-button {
    padding: 12px 25px;
    font-size: 1.2rem;
    background: #e63946;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.reset-button:hover {
    background: #b71c1c;
}

/* --------------------------------
Rules Section
-------------------------------- */

.rules-container {
    background: white;
    padding: 20px;
    margin: 40px auto;
    max-width: 700px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.rules-container {
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

/* ----------------------------
Responsive Layout
------------------------------ */

@media (max-width: 600px) {
    .nav-links {
        flex-direction: column;
        gap: 10px
    }

    .card-slot,
    .card {
        width: 70px;
        height: 100px;
        font-size: 1.5rem;
    }
}