/* Reset styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1b2838;
    color: white;
}

/* Light Mode Styles */
body.light-mode {
    background-color: #f0f0f0;
    color: #333;
}

/* Header Styling */
header {
    background-color: #171a21;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between; /* Space out the elements */
    align-items: center;
    width: 100%;
}

/* Logo Styling */
nav {
    display: flex;
    align-items: center;
    width: 100%;
}

/* Navigation Links Styling */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0 auto; /* Center the nav links */
    padding: 0;
}

nav img {
    height: 50px;
    margin-right: 20px;
    /* Ensure logo doesn't stretch and stays at a fixed size */
}

/* Navigation Links */
nav ul li {
    display: inline;
}

nav ul li a,
.user a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
}

nav ul li a.active {
    background: #00b7e3;
}

/* User Section - Sign In and Join */
.user {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Pushes Sign In and Join buttons to the right */
}
.user a {
    background: white;
    color: black;
    border: 1px solid white;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
}

.user a:hover {
    background: #00b7e3;
    color: white;
    border-color: #00b7e3;
}
/* Light/Dark Mode Toggle Container */
.toggle-container {
    margin-left: 30px; /* Push it away from Join button */
    display: flex;
    align-items: center;
}

/* Light/Dark Mode Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: #ccc;
    border-radius: 50px;
    transition: 0.4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    border-radius: 50%;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
}

input:checked + .slider {
    background-color: #00b7e3;
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: #0f1116;
}

.hero.light-mode {
    background: #ffffff;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 15px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 15px;
    font-size: 1.1em;
    color: #ddd;
}

.hero.light-mode h1 {
    color: #333;
}

.hero.light-mode p {
    color: #333;
}

/* Why Steam Section */
.why-steam {
    padding: 50px 20px;
    background-color: #262a32;
    text-align: center;
}

.why-steam.light-mode {
    background-color: #f9f9f9;
}

.why-steam h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #ffffff;
}

.why-steam.light-mode h2 {
    color: #333;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    background: #2a2e36;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.feature h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.feature p {
    color: #ddd;
}

.feature.light-mode {
    background: #f9f9f9;
}

.feature.light-mode h3 {
    color: #333;
}

.feature.light-mode p {
    color: #333;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #00b7e3;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0088b3;
}

/* Featured Games Section */
.featured-games {
    padding: 50px 20px;
    background-color: #262a32;
}

.featured-games.light-mode {
    background-color: #f9f9f9;
}

.featured-games h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.featured-games.light-mode h2 {
    color: #333;
}

.game-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    background-color: #2a2e36;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.game-card img {
    max-width: 100%;
    border-radius: 10px;
}

/* Footer Styling */
footer {
    background: #1b2838;
    color: white;
    padding: 20px;
    text-align: center;
}

footer.light-mode {
    background: #fff;
    color: #333;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-content img {
    max-width: 50px;
    height: auto;
}

footer p {
    font-size: 0.9em;
    max-width: 600px;
    margin: 0 auto;
    color: #ddd;
}

footer.light-mode p {
    color: #333;
}
