/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--background);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    height: 100vh;
}

/* Variables for light and dark mode */
:root {
    --background: #f0f0f0;
    --text-color: #333;
    --nav-background: #ffffff;
    --nav-text-color: #333;
    --accent-color: #6200ea;
}

body.dark-mode {
    --background: #121212;
    --text-color: #ffffff;
    --nav-background: #333333;
    --nav-text-color: #ffffff;
    --accent-color: #bb86fc;
}

#GMT {
    font-family: 'Candara', sans-serif;
    text-align: center;
    font-weight: 900;
    color: var(--text-color);
    text-decoration: underline;
    margin: 20px 0;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

nav {
    text-align: center;
    font-family: 'Roboto Mono', monospace;
    font-size: 20px;
    border-radius: 25px;
    background-color: var(--nav-background);
    padding: 10px;
    margin: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    color: var(--nav-text-color);
}

nav a {
    color: inherit;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

nav a:hover {
    background-color: var(--accent-color);
    color: white;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    padding: 5px;
}

.search-container input {
    font-size: 16px;
    padding: 5px;
    border: none;
    outline: none;
    display: none;
}

.search-container .search-icon,
.search-container .clear-icon {
    cursor: pointer;
    margin: 0 5px;
}

.search-container .clear-icon {
    display: none;
}

main {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 80%;
    max-width: 1200px;
}

.game-item {
    background-color: var(--nav-background);
    border: 1px solid grey;
    border-radius: 15px;
    margin: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    transition: transform 0.3s;
}

.game-item:hover {
    transform: scale(1.05);
}

.game-item img {
    width: 100%;
    border-bottom: 1px solid grey;
}

.game-info {
    padding: 15px;
    text-align: center;
}

.game-info h2 {
    margin: 10px 0;
}

.game-info p {
    color: var(--text-color);
    margin: 10px 0;
}

.game-info a {
    color: var(--accent-color);
    text-decoration: none;
}

footer {
    margin-top: auto;
    text-align: center;
    font-family: 'Candara', sans-serif;
    color: var(--text-color);
    font-weight: 200;
    font-size: 20px;
    padding: 20px;
}

/* Dark mode toggle */
.dark-mode-toggle {
    background: var(--nav-background);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Wavy background */
body::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 200px;
    top: 0;
    left: 0;
    background: url('path/to/wavy-pattern.svg') repeat-x;
    z-index: -1;
}

/* Media queries for mobile compatibility */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
    }

    nav a, .dark-mode-toggle {
        margin: 5px 0;
    }

    .game-item {
        width: 90%;
    }

    main {
        width: 100%;
    }
    /* Info bar styles */
.info-bar {
    background-color: #2196F3;
    color: white;
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
    width: 80%;
    max-width: 1200px;
}

.info-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.info-bar a:hover {
    text-decoration: underline;
}
    /* Download page styles */
.game-download {
    text-align: center;
    padding: 20px;
    background-color: var(--nav-background);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 80%;
    max-width: 800px;
    margin: 20px auto;
}

.game-download h2 {
    margin-bottom: 10px;
}

.game-download p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.download-button {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.download-button:hover {
    background-color: darken(var(--accent-color), 10%);
}

.screenshots {
    margin-top: 20px;
}

.screenshot-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-container img {
    max-width: 100%;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
}
