/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    color: #333;
}

a {
    text-decoration: none;
    color: #0275d8;
}

a:hover {
    color: #014c8c;
}

/* Header and navigation */
header {
    margin-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: bold;
    padding: 5px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #0275d8;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* Game grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.game-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.game-thumb {
    height: 150px;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.05);
}

.game-info {
    padding: 15px;
}

.game-info h2 {
    margin-bottom: 5px;
    font-size: 1.2rem;
    color: #333;
}

.game-info p {
    color: #6c757d;
    font-size: 0.9rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.info-link {
    display: block;
    text-align: center;
    background: #f0f0f0;
    padding: 8px 5px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.info-link:hover {
    background-color: #e2e6ea;
}

/* Game container */
.game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-top: 20px;
}

/* Info page */
.info-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 20px;
}

.info-container h1 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.description {
    margin-bottom: 20px;
    line-height: 1.7;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.tag {
    display: inline-block;
    background-color: #e9ecef;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #495057;
}

/* Footer */
footer {
    margin-top: 40px;
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    body {
        padding: 10px;
    }
} 