
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* MAIN WEBSITE */
html {
    font-size: 18px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #333333;
    font-size: 18px;
    line-height: 1.6;
}

/* CONTAINERS */
.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}

/* HEADER */
.header {
    background: #f3f5f7;
    border-bottom: 1px solid #d5dce3;
    padding: 30px 0;
}

.header .container {
    max-width: none;
    margin: 0;
    padding: 0 25px;
    text-align: left;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .logo {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.brand h1,
.header h1 {
    color: #244d78;
    font-size: 36px;
    margin: 0;
}

.brand h1 {
    position: relative;
    top: -5px;
}

.header p {
    color: #666666;
    margin-top: 8px;
}

/* NAVIGATION */
.navigation {
    background: #315c85;
}

.navigation .container {
    display: flex;
    flex-wrap: wrap;
}

.navigation a {
    color: white;
    text-decoration: none;
    padding: 17px 23px;
    display: block;
    font-size: 17px;
}

.navigation a:hover {
    background: #244765;
}

/* MAIN CONTENT */
main {
    padding-top: 40px;
    padding-bottom: 50px;
}

section {
    margin-bottom: 45px;
}

h2 {
    color: #244d78;
    font-size: 30px;
    margin-bottom: 18px;
}

h3 {
    color: #315c85;
    font-size: 22px;
    margin-bottom: 10px;
}

p {
    font-size: 18px;
    line-height: 1.6;
}

.welcome p,
section p {
    line-height: 1.7;
    color: #555555;
}

/* GAME AND RESOURCE GRIDS */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    width: 100%;
    margin-top: 30px;
    align-items: stretch;
}

/* HOMEPAGE CARDS */
.card {
    width: 100%;
    min-height: 180px;
    padding: 25px;
    background: white;
    border: 1px solid #d5dce3;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* GAME CARDS */
.game-card {
    width: 100%;
    min-height: 300px;
    padding: 16px;
    background: white;
    border: 1px solid #d5dce3;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.game-card img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.game-card h3 {
    margin-bottom: 10px;
}

.game-card p {
    color: #555555;
    margin-bottom: 14px;
}

.game-card a {
    display: inline-block;
    background: #315c85;
    color: white;
    padding: 10px 18px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

.game-card a:hover {
    background: #244765;
}

/* COLORS */
.geometry {
    color: #315c85;
}

.thelaunguage,
.welcometo,
.names {
    color: #000000;
}

/* FOOTER */
footer {
    background: #f3f5f7;
    border-top: 1px solid #dddddd;
    text-align: center;
    padding: 30px;
    color: #666666;
    font-size: 16px;
}

/* TABLET */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE */
@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 25px;
    }
}
/* HOW TO USE BUTTON */
.help-button {
    display: block;
    margin: 10px auto;
    padding: 12px 24px;
    background: white;
    color: #315c85;
    border: 2px solid #315c85;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.help-button:hover {
    background: #315c85;
    color: white;
}

/* HELP POPUP */
.help-panel {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 30px 15px;
    overflow-y: auto;
}

.help-content {
    position: relative;
    max-width: 600px;
    margin: 60px auto;
    padding: 35px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
}

.help-content h2 {
    margin-bottom: 20px;
}

.help-content h3 {
    margin-top: 18px;
}

.help-content p {
    margin-top: 5px;
    color: #555;
}

.close-help {
    position: absolute;
    top: 10px;
    right: 18px;
    border: none;
    background: none;
    font-size: 32px;
    cursor: pointer;
}