@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: #000;
    color: #0f0;
    line-height: 1.6;
}

header {
    background-color: #111;
    padding: 1rem;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px #f00;
}

nav ul {
    list-style-type: none;
}

nav ul li {
    display: inline;
    margin: 0 1rem;
}

nav ul li a {
    color: #0f0;
    text-decoration: none;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff0;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    margin-bottom: 3rem;
    border: 2px solid #0f0;
    padding: 1rem;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px #00f;
}

.oyun-listesi {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.oyun {
    background-color: #222;
    padding: 1rem;
    text-align: center;
    border: 1px solid #0f0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.oyun:hover {
    background-color: #333;
}

form {
    display: flex;
    flex-direction: column;
}

input, textarea, button {
    margin-bottom: 1rem;
    padding: 0.5rem;
    font-family: inherit;
    background-color: #111;
    color: #0f0;
    border: 1px solid #0f0;
}

button {
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0f0;
    color: #000;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #111;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5rem;
    }

    nav ul li {
        display: block;
        margin: 0.5rem 0;
    }

    .oyun-listesi {
        grid-template-columns: 1fr;
    }
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.game-container {
    background-color: #222;
    border: 1px solid #0f0;
    overflow: hidden;
}

.game {
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.game:hover {
    background-color: #333;
}

.game-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: #111;
    padding: 0 1rem;
}

.game-details.active {
    max-height: 80%;
    padding: 1rem;
}

.game-details p {
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.game-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #0f0;
    color: #000;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.game-link:hover {
    background-color: #00f;
    color: #fff;
}

.logo-title {
    display: flex;
    align-items: center;
}

.logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.game-logo {
    width: 16px;
    height: 16px;
    margin-right: 5px;
    vertical-align: middle;
}
