@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
body {
    background: linear-gradient(270deg, #ff0000, #ffa500, #ffff00, #008000, #0000ff, #800080);
    background-size: 1200% 1200%;
    animation: gradientShift 10s ease-in-out infinite;
    margin: 100px 100px 100px 100px;
}

#container {
    width: 1300px;
    height: 500px;
    display: flex;
    align-items: center;
    margin: 10px 10px 10px 10px;
    border: 2px solid #000;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-family: 'Inter';
    opacity: 1;
    animation: fadeIn 1.2s linear;
}

#fadeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    opacity: 0;
    flex-direction: column;
}

#fadeContainer a {
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: color 0.3s ease;
}

#gamepin {
    font-size: 24px;
    color: #333;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    cursor: default;
}

#joinbtn {
    border-radius: 6px;
    padding: 10px 30px;
    border: #7ac829 2px solid;
    background-color: transparent;
    cursor: default;
    position: relative;
    top: 20px;
}

#joinbtn:hover {
    background-color: #7ab829;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#title {
    font-size: 48px;
    color: #333;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
    font-weight: bold;
    margin: 0;
    position: relative;
}

.play-page #title {
    animation: titleMove 1.8s ease-in-out;
    position: relative;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 0.25;
    }
    50% {
        opacity: 0.5;
    }
    75% {
        opacity: 0.75;
    }
    100% {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes titleMove {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-50px);
    }
    100% {
        transform: translateY(-200px);
    }
}
body:not(.play-page) #title {
    animation: none !important;
    position: static !important;
}