.ourgames {
    background-color: #1c1c1c;
    min-height: calc(100vh - 82px);
    padding: 6rem 2rem 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ourgames h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: #ffffff;
}

.ourgames .subtitle {
    font-size: 1.2rem;
    color: #cccccc;
    font-weight: 700;
    margin-bottom: 3rem;
}

.games-container {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.game-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    background: none; 
    border: none;   
    box-shadow: none;
    padding: 1rem 0;
    text-align: left;
}

.game-divider {
    width: 80%;
    height: 1px;
    background-color: #2d2d2d;
    margin: 0.5rem 0;
}

.game-card,
.game-divider {
    opacity: 0;
    transform: translateY(30px);
}

.game-card.appear,
.game-divider.appear {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-icon {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    margin-right: 2rem;
    flex-shrink: 0;
}

.game-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.game-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.game-caption {
    font-size: 1rem;
    color: #aaaaaa;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.roblox-btn {
    display: inline-block;
    width: auto;          
    background-color: #e44343;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.roblox-btn:hover {
    transform: scale(1.05);
}

.roblox-btn:active {
    transform: scale(.95);
}

@media (max-width: 600px) {
    .game-card {
        flex-direction: column;
        text-align: center;
    }

    .game-icon {
        margin-right: 0;
        margin-bottom: 1.5rem;
    }

    .game-info {
        align-items: center;
    }
}