/* General Styles */
body {
    background: #121212;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header img {
    width: auto;
    height: 8vw;
}

header p {
    font-size: 1.2em;
    margin-top: 10px;
}

.auth-section {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.user-info span {
    font-weight: 500;
    color: #e0e0e0;
}

.login-prompt {
    display: block;
}

.login-btn, .logout-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-size: 14px;
}

.login-btn:hover, .logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.logout-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.games {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.game-card {
    background: #1e1e1e;
    border: 0.5vh solid #333;
    border-radius: 1vh;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    width: 40%; /* Desktop width */
}

.game-card:hover {
    transform: scale(1.02);
}

.game-card img {
    width: 100%;
    border-radius: 0.5vh;
    margin-bottom: 15px;
}

.game-card h2 {
    color: #ffffff;
    margin-bottom: 10px;
}

.game-card p {
    margin-bottom: 20px;
    font-size: 1em;
}

.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.buttons a, .buttons button {
    padding: 10px 20px;
    background: #444;
    color: #e0e0e0;
    text-decoration: none;
    border: 0.3vh solid #555;
    border-radius: 0.5vh;
    transition: background 0.2s;
    cursor: pointer;
}

.buttons a:hover, .buttons button:hover {
    background: #555;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .game-card {
        width: 80%; /* Mobile width */
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #1e1e1e;
    padding: 20px;
    border: 0.5vh solid #333;
    border-radius: 1vh;
    width: 80%;
    max-width: 500px;
    text-align: center;
}

.modal h2 {
    margin-bottom: 15px;
    color: #ffffff;
}

.modal p {
    font-size: 1em;
    color: #e0e0e0;
}

.modal button {
    margin-top: 20px;
    padding: 10px 20px;
    background: #444;
    border: none;
    border-radius: 0.5vh;
    color: #e0e0e0;
    cursor: pointer;
}

.modal button:hover {
    background: #555;
}