/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0; /* Removes default margin */
    padding: 0; /* Removes default padding */
    width: 100%; /* Ensures the body takes full width */
    height: 100%; /* Ensures the body takes full height */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
}

/* Hero Section */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    color: #000;
    padding: 0;
}

.hero .logo {
    width: 100%; /* Makes the logo span the full width of its container */
    max-width: 960px; /* Ensures the logo doesn't get too large */
    height: auto; /* Maintains the aspect ratio */
    display: block; /* Ensures proper alignment */
    margin: 0 auto; /* Centers the logo */
}

.hero h1 {
    font-size: 2.5rem;
}

/* Navbar */
.navbar {
    background: #444;
    color: #fff;
    padding: 10px 0;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 15px;
}

.navbar a {
    color: #fff;
    text-decoration: none;
}

/* Sections */
.section {
    padding: 40px 0;
}

.section h2 {
    margin-bottom: 20px;
    font-size: 2rem;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
}

.games-list {
    display: flex; /* Enables horizontal layout */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 20px; /* Adds space between items */
    justify-content: center; /* Centers the items */
    margin-top: 20px;
}

.game {
    flex: 1 1 calc(33.333% - 20px); /* 3 items per row with spacing */
    max-width: calc(33.333% - 20px); /* Ensures items don't grow too large */
    text-align: center; /* Centers text inside each game card */
    background: #f9f9f9; /* Optional: Adds a background to each game card */
    padding: 10px;
    border: 1px solid #ddd; /* Optional: Adds a border */
    border-radius: 8px; /* Optional: Rounds the corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Optional: Adds shadow */
}

.game img {
    width: 100%; /* Makes the image fill the container */
    height: auto; /* Maintains aspect ratio */
    border-radius: 4px; /* Optional: Rounds the image corners */
}

.game h3 {
    margin-top: 10px;
    font-size: 1.2rem;
    color: #333;
}

.game p {
    font-size: 0.9rem;
    color: #666;
}