
rt url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: linear-gradient(-45deg, #e81cff, #40c9ff, #ff1361, #40c9ff);
    background-size: 400% 400%;
    animation: gradientShift 10s ease infinite;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 2s ease-in-out;
}

/* Background container */
.background {
    width: 60vw;
    height: 60vh;
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.7);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(1);
    animation: bounceIn 1s ease-out forwards;
    position: relative;
    z-index: 2;
    transition: width 1.5s ease-in-out, height 1.5s ease-in-out, border-radius 1.5s ease-in-out, background 1.5s ease-in-out;
}

/* Main Heading - Normal White Text */
main h1 {
    font-size: 50px;
    text-transform: uppercase;
    text-align: center;
    color: white;
    transition: transform 1.5s ease-in-out, font-size 1.5s ease-in-out;
}

/* Click Button */
.links {
    width: 200px;
    height: 60px;
    border: 3px solid red;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 10px red, 0 0 20px red, 0 0 30px red;
    transition: 0.3s;
    margin-top: 20px;
    position: relative;
    z-index: 3;
}

.links:hover {
    box-shadow: 0 0 20px cyan, 0 0 40px cyan, 0 0 60px cyan;
    border-color: cyan;
}

/* When "Click Me" is Clicked */
.expanded {
    animation: none; /* Stops the gradient animation */
}

/* Black Overlay Appears with Smooth Transition */
.expanded .background {
    width: 90vw;
    height: 90vh;
    border-radius: 10px;
    background-color: black;
    transition: background 1s ease-in-out, width 1.5s ease-in-out, height 1.5s ease-in-out;
}

/* Move Text Up */
.expanded main h1 {
    transform: translateY(-5vh);
    font-size: 45px;
}

/* Hide the button after clicking */
.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
}

/* Grid Container for Links */
.link-container {
    display: grid;
    gap: 20px;
    width: 80%;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 20px;
}

/* Clickable Game Links */
.game-link {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none; /* Remove underline */
    transition: transform 0.3s ease, background 0.3s ease;
}

.game-link:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

/* Background Gradient Animation Before Clicking */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Bounce Effect */
@keyframes bounceIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

