body {
    margin: 0;
    background-color: #7a628d; /* Even darker background */
    color: #f0f0f0;
    font-family: 'Roboto', sans-serif; /* Changed font */
    line-height: 1.4; /* Further reduced line height */
    font-size: 0.9em; /* Further smaller base font size */
}

.container {
    max-width: 960px; /* Further smaller max-width */
    width: 90%;
    margin: 0 auto;
    padding: 10px; /* Further reduced padding */
}

header {
    background-color: transparent;
    color: #ff99cc; /* Light blue */
    text-align: center; /* Changed to center */
    padding: 1px 0; /* Further reduced padding */
    font-size: 2em; /* Further reduced font size */
    border-bottom: none;
    margin-bottom: 1px; /* Further reduced margin */
    text-shadow: 0 0 8px rgba(102, 204, 255, 0.6);
}

main {
    padding: 0;
}

footer {
    background-color: transparent;
    color: #66ffcc; /* Light green */
    text-align: center;
    padding: 20px 0; /* Further reduced padding */
    margin-top: 40px; /* Further reduced margin */
    font-size: 0.85em; /* Further reduced font size */
    border-top: none;
    text-shadow: 0 0 5px rgba(153, 255, 153, 0.4);
}

footer p {
    margin: 0;
}

footer a {
    color: #ffcc66; /* Even lighter pink */
    text-decoration: none;
}

.game-module {
    margin-bottom: 50px;
    padding: 0;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.game-module h2 {
    margin-top: 0;
    margin-bottom: 25px; /* Further reduced margin */
    padding-bottom: 10px; /* Further reduced padding */
    font-size: 1.6em; /* Further reduced font size */
    text-transform: uppercase;
    letter-spacing: 1px; /* Further reduced letter spacing */
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    text-align: center; /* Added text-align center */
}

/* New Module Colors - using border colors */
.module-1 h2 { border-bottom: none; color: #ffccff; } /* Soft Red */
.module-2 h2 { border-bottom: none; color: #ff99cc; } /* Light Blue */
.module-3 h2 { border-bottom: none; color: #ffdd66; } /* Gold */
.module-4 h2 { border-bottom: none; color: #cc66ff; } /* Lavender */


.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Further reduced minmax size */
    gap: 20px; /* Further reduced gap */
}

@media (max-width: 480px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.game-card {
    display: block;
    background-color: #261616;
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
    border: none; /* Removed border */
    border-left: none; /* Removed border */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.game-card:hover {
    transform: translateY(-3px) scale(1.01); /* Further reduced transform */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5); /* Further reduced shadow */
}

.game-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.game-card p {
    color: #ffffff;
    padding: 10px 15px; /* Further reduced padding */
    margin: 0;
    font-size: 1em; /* Further reduced font size */
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #1e1e1e;
}

/* Styles for other pages like contact, privacy, tos */
main h1, main h2, main h3 {
    color: #ff99cc; /* Light blue */
    text-shadow: 0 0 10px rgba(102, 204, 255, 0.5);
    text-align: center; /* Added text-align center */
}

main p {
    line-height: 1.6; /* Further reduced line height */
    margin-bottom: 1.2em; /* Further reduced margin */
    color: #e8e8e8;
    font-size: 0.95em; /* Further reduced font size */
}

main a {
    color: #ffcc66; /* Even lighter pink */
}
