body {
    font-family: 'Press Start 2P', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-align: center;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
    padding: 20px;
    background-image: url("./thumbnails/pixel-stars.png");
}

.games-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.gameDiv {
    border: 3px solid #4ee827;
    border-radius: 15px;
    background-color: rgba(33, 33, 33, 0.9);
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

.gameDiv:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(78, 232, 39, 0.3);
}

.title {
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #4ee827;
}

.imageDiv {
    margin: 10px 0;
}

.imageDiv img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #4ee827;
}

.desc {
    flex-grow: 1;
    padding: 10px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.button {
    border: 2px solid #44c723;
    border-radius: 25px;
    background-color: #4ee827;
    padding: 10px 25px;
    margin: 15px auto 5px;
    color: #1a1a1a;
    width: max-content;
    font-weight: bold;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background-color: #44c723;
    transform: scale(1.05);
}

a {
    text-decoration: none !important;
}

#header {
    font-size: 3rem;
    margin: 20px 0 40px;
    color: #4ee827;
    text-shadow: 0 0 10px rgba(78, 232, 39, 0.5);
    position: relative;
}

#header::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    background-color: #4ee827;
    margin: 20px auto;
}

@media (max-width: 768px) {
    .games-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        padding: 10px;
    }
    
    body {
        padding: 10px;
    }
    
    #header {
        font-size: 2rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .games-container {
        grid-template-columns: 1fr;
    }
    
    .imageDiv img {
        width: 180px;
        height: 130px;
    }
}

.gameDiv a {
    text-decoration: none;
}