body {
background-image: url("images/1.png");
background-repeat: repeat;
background-size: 150px auto;
background-position: top left;
text-align: center;
}

/* Center the melting text on the page */
.melting-text-container {
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    padding-top: 40px;
    align-items: center;
    margin: 0;
    overflow: hidden;
    font-family: 'Times New Roman', Times, serif;
}

/* The main text */
.melting-text {
    font-size: 6rem;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    display: inline-block;

    background: linear-gradient(90deg, #ff6600, yellow, #ff6600);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;

    animation: melt 3s infinite ease-in-out;
}

/* Dripping layers */
.melting-text::before,
.melting-text::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    width: 110%;
    height: 110%;
    background: linear-gradient(90deg, #ff6f61, #ffbd44, #ff6f61);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    pointer-events: none;
    z-index: -1;
    animation: drip 3s infinite ease-in-out;
}

.melting-text::after {
    filter: blur(10px);
    opacity: 0.5;
}

/* Gentle melting movement */
@keyframes melt {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(15px);
    }
}

@keyframes drip {
    0%, 100% {
        transform: scaleY(1);
        opacity: 0.4;
    }
    50% {
        transform: scaleY(1.4);
        opacity: 0.7;
    }
}

p{
    font-size: 30pt;
    text-shadow:
        0 0 5px #ff6600,
        0 0 10px #ff6600;
}

.shadow-dance-text {
    font-size: 4rem;
    color:floralwhite;
    text-shadow: 5px 5px 0 #ff005e, 10px 10px 0 #00d4ff;
    animation: shadow-dance 2s infinite;
}

@keyframes shadow-dance {
    0%, 100% {
        text-shadow: 5px 5px 0 #ff005e, 10px 10px 0 #00d4ff;
    }
    50% {
        text-shadow: -5px -5px 0 #00d4ff, -10px -10px 0 #ff005e;
    }
}


/* Welcome screen */
#welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;

    background: #121212;
    color: white;
    text-align: center;
}

/* Hide elements when the hidden attribute is present */
[hidden] {
    display: none !important;
}

#welcome-screen h1 {
    font-size: 3rem;
    margin: 0;
}

#welcome-screen p {
    font-size: 1.5rem;
}

#enter-button {
    padding: 15px 30px;
    border: 2px solid #ff6600;
    border-radius: 30px;
    background: #ff6600;
    color: white;

    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

#enter-button:hover {
    background: #e65c00;
    transform: scale(1.05);
}
