.page-container {
    width: 100vw;
    height: auto;
    min-height: calc(100vh - calc(80px + 344px));
    padding: 5rem;
    box-sizing: border-box;
    margin: 0;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

@media (max-width: 768px) {
    .page-container {
        padding: 2rem;
    }
}

#dataContainer {
    width: 100%;
    height: auto;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1rem;
    justify-content: center;
    align-items: center;
    transition: height 0.3s ease-in-out;
}

.game-card {
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    box-sizing: border-box;
    color:rgb(213, 213, 213);
    border: 1px solid transparent;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.game-card-animated {
    opacity: 0;
    transform: translateY(20px) rotateZ(7deg); /* Move down slightly */
}

/* Animated visible state */
.game-card-animated.visible {
    opacity: 1;
    transform: translateY(0) rotateZ(0); /* Move to the original position */
}

.game-card:hover {
    background-color: #00FF85;
    color: black;
    border-color: #00FF85;
    transform: scale(1.1);
    z-index: 10;
    
}

.game-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background-color: #2f3032;
}

.game-image img,
.game-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-details {
    width: 100%;
    height: auto;
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.game-card .game-details h2 {
    font-size: 1.15rem;
    color: white;
    margin: 0;
    transition: color 0.3s ease-in-out;
}

.game-card.visible:hover .game-details h2 {
    color: black;
}

.game-details h3 {
    font-size: 1rem;
    text-transform: none;
    margin: 0;
    font-weight: 500;
}

.game-details p {
    font-size: 1rem;
    margin: 0.5rem 0 0 0;
}

.page-container button {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    border-radius: 8px;
    background-color: transparent;
    color: #00ff85;
    border: 1px solid #00FF85;
    margin: 3rem auto 0 auto;
}

.page-container button:hover {
    background-color: #00FF85;
    color: black;
    cursor: pointer;
}

.page-container h1 {
    color: white;
    font-size: 3rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
    text-align: center;
}