body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.container {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Horizontal layout for desktop */
}

.classic-version, .modern-version, .coming-soon {
    width: 30%;
    height: 90%;
    position: relative;
    overflow: hidden;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-size: cover;
    background-position: center;
    margin: 0 1%;
    border-radius: 10px;
}

.classic-version::before, .modern-version::before, .coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0; /* Ensure it stays behind text and icons */
}

.classic-version::before {
    background-image: url('https://cdn.stelle.moe/user/card_normal_%2892%29.png_3qJ_20240812053050.png');
}

.modern-version::before {
    background-image: url('https://cdn.stelle.moe/user/PutuPauu-1650854082326691840-01.jpg_cWy_20240812054144.jpg');
}

.coming-soon::before {
    background-image: url('https://cdn.stelle.moe/user/image_%2860%29.png_hB1_20240812060823.png');
    filter: grayscale(100%);
}

.classic-version:hover::before, .modern-version:hover::before, .coming-soon:hover::before {
    opacity: 1; /* Make the background image visible on hover */
}

.classic-version:hover, .modern-version:hover, .coming-soon:hover {
    transform: scale(1.05); /* Slightly increase size on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Add a shadow effect */
}

h2 {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-top: 10px;
    margin-bottom: 10px;
    line-height: 1.2;
    z-index: 1; /* Ensure text stays above the background */
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add shadow to text */
}

.icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
    z-index: 1; /* Ensure icons stay above the background */
    transition: transform 0.3s ease;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); /* Add shadow to icon */
}

.classic-version:hover .icon, .modern-version:hover .icon {
    transform: scale(1.1);
}

.legacy-button {
    margin-top: 15px;
    padding: 10px 25px;
    font-size: 1.1rem;
    color: #fff;
    background-color: #444;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1; /* Ensure button stays above the background */
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5); /* Add shadow to button */
}

.legacy-button:hover {
    background-color: #666;
    transform: scale(1.1);
}

.coming-soon {
    background-color: #444;
    cursor: not-allowed;
}

.coming-soon h2 {
    color: #aaa;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Add shadow to "Coming Soon" text */
}

/* Responsive Design for Mobile Devices */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .classic-version, .modern-version, .coming-soon {
        width: 100%;
        height: auto;
        margin: 15px 0;
        padding: 20px;
        border-radius: 10px;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .classic-version:hover, .modern-version:hover, .coming-soon:hover {
        transform: scale(1.02);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    }

    h2 {
        font-size: 2rem;
    }

    .icon {
        width: 70px;
        height: 70px;
        transition: transform 0.3s ease;
    }

    .legacy-button {
        padding: 10px 20px;
        font-size: 1rem;
        transition: background-color 0.3s ease, transform 0.3s ease;
    }

    .legacy-button:hover {
        transform: scale(1.05);
    }
}
