/* General Body Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #ffe882; /* Darker background */
    color: #e0e0e0; /* Lighter text for contrast */
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 720px;
    width: 100%;
    background-color: #f9c74f; /* Solid dark-bluish grey */
    box-shadow: 0 8px 32px 0 rgba(118, 118, 255, 0.37); /* Soft blue neon glow */
    border: 4px double rgba(118, 118, 255, 0.4); /* Double line border */
    border-radius: 0; /* Sharp corners */
    margin: 20px auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header Styles */
header {
    background-color: #f3722c; /* Soft blue */
    color: #ffffff;
    text-align: center;
    padding: 20px 25px;
    font-size: 2.5em;
    font-weight: 900; /* Bolder font */
    text-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    letter-spacing: 2px;
    border-bottom: 2px solid #b3b3ff;
    border-top: 2px solid #b3b3ff;
}

/* Main Content Styles */
main {
    padding: 25px;
    flex-grow: 1;
}

/* Game Module Styles */
.game-module {
    margin-bottom: 40px;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid;
    transition: all 0.3s ease-in-out;
}

.game-module h2 {
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    font-size: 1.8em;
    font-weight: 700;
    letter-spacing: 1px;
    text-align: center;
    border-bottom: 2px solid;
    border-top: 2px solid;
    padding-top: 15px;
}

/* Unique Module Colors & Borders */
.module-1 {
    border-color: #fff3bf; /* Magenta */
    box-shadow: 0 0 15px #fff3bf;
}
.module-1 h2 { color: #fff3bf; border-bottom-color: #fff3bf; }

.module-2 {
    border-color: #f9844a; /* Lime Green */
    box-shadow: 0 0 15px #f9844a;
}
.module-2 h2 { color: #f9844a; border-bottom-color: #f9844a; }

.module-3 {
    border-color: #f8961e; /* Yellow */
    box-shadow: 0 0 15px #f8961e;
}
.module-3 h2 { color: #f8961e; border-bottom-color: #f8961e; }

.module-4 {
    border-color: #43aa8b; /* OrangeRed */
    box-shadow: 0 0 15px #43aa8b;
}
.module-4 h2 { color: #43aa8b; border-bottom-color: #43aa8b; }

/* Game Card Grid */
.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* Game Card Styles */
.game-card {
    display: block;
    background: #2c2c2c;
    border-radius: 0; /* Sharp corners */
    overflow: hidden;
    text-decoration: none;
    border: 1px solid #444;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    border: 1px solid #f3722c;
    box-shadow: 0 0 15px rgba(118, 118, 255, 0.5);
}

.game-card img {
    width: 100%;
    height: 120px; /* Taller images */
    object-fit: cover;
    display: block;
    border-bottom: 2px solid #f3722c; /* Soft blue separator */
}

.game-card p {
    color: #f0f0f0;
    padding: 15px 10px;
    margin: 0;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer Styles */
footer {
    background-color: #f3722c; /* Soft blue */
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 1em;
    font-weight: bold;
    border-top: 2px solid #b3b3ff;
    border-bottom: 2px solid #b3b3ff;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .game-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .game-module h2 {
        font-size: 1.5em;
    }
    header {
        font-size: 2em;
    }
}