body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0d0d0d;
    color: white;
}

header {
    text-align: center;
    padding: 1em;
    background-color: #1a1a1a;
}

header input, header select {
    padding: 8px;
    margin: 5px;
    border-radius: 5px;
    border: none;
    background: #333;
    color: white;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background-color: #1f1f1f;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.5s forwards;
}

.card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.card-content {
    padding: 10px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card h3 {
    font-size: 18px;
    margin: 0 0 5px 0;
}

.card p {
    font-size: 14px;
    color: #ccc;
    margin: 0 0 8px 0;
    flex-grow: 1;
}

.author {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background: #333;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 5px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a1a1a;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    border-radius: 8px;
    overflow-y: auto;
    max-height: 90%;
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.screenshots img {
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

.download-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px;
    background: #ff5722;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #1a1a1a;
    margin-top: 20px;
}

footer .socials {
    margin-bottom: 5px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
