body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
    cursor: url('https://cdn.jsdelivr.net/gh/Onedaycat/cursor/cursors/kitty.cur'), auto; 
    animation: lightBackground 10s infinite alternate;
}

/* Light background animation with 4-5 colors */
@keyframes lightBackground {
    0% {
        background: linear-gradient(135deg, #ff9a9e, #fad0c4, #ffb3ba, #ff6f61, #ff8c42);
    }
    25% {
        background: linear-gradient(135deg, #a1c4fd, #c2e9fb, #f9f871, #ff6f61, #ffc75f);
    }
    50% {
        background: linear-gradient(135deg, #ff6f91, #ff9671, #f9f871, #a1c4fd, #fbc2eb);
    }
    75% {
        background: linear-gradient(135deg, #a1c4fd, #ffb3ba, #f9f871, #ff6f61, #fad0c4);
    }
    100% {
        background: linear-gradient(135deg, #ff9a9e, #fad0c4, #ffb3ba, #ff6f61, #ff8c42);
    }
}

.container {
    background: #120707;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 400px;
    animation: scaleUp 0.5s ease-out;
}

h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fbc2eb, #a18cd1, #fbc2eb, #fad0c4);
    background-clip: text;
    color: transparent;
    animation: gradientFlow 6s infinite linear;
    text-shadow: 0 0 10px rgba(255, 154, 158, 0.6),
                 0 0 20px rgba(250, 208, 196, 0.5), 
                 0 0 30px rgba(251, 194, 235, 0.4);
    transition: transform 0.3s ease;
} 

h1:hover {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(255, 154, 158, 0.8),
                 0 0 25px rgba(250, 208, 196, 0.7), 
                 0 0 40px rgba(251, 194, 235, 0.6);
}  

@keyframes gradientFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}

input {
    padding: 10px;
    margin: 10px 0;
    width: 100%;
    border: 2px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    outline: none;
    background: linear-gradient(90deg, #ff6f91, #ff9671, #ffc75f, #f9f871);
    background-size: 400% 400%;
    color: #ffffff;
    transition: box-shadow 0.3s ease, background-position 2s ease;
    animation: gradientAnimation 3s infinite linear;
}

input:focus {
    background-position: right center;
    box-shadow: 0 0 20px 5px rgba(255, 195, 95, 0.8);
    transition: box-shadow 0.5s ease, background-position 0.5s ease;
}

@keyframes gradientAnimation {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}

button {
    padding: 12px 20px;
    background: linear-gradient(90deg, #ff6f61, #ff8c42, #ff6f61);
    color: #ffffff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(255, 111, 97, 0.4);
    animation: buttonPulse 2s infinite ease-in-out;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.6);
}

@keyframes buttonPulse {
    0% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.05);
    }
    100% {
      transform: scale(1);
    }
}

#result {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, #a1c4fd, #c2e9fb, #a1c4fd);
    box-shadow: 0 4px 15px rgba(161, 196, 253, 0.6);
    animation: resultGlow 3s infinite alternate ease-in-out;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

@keyframes resultGlow {
    0% {
      box-shadow: 0 4px 15px rgba(161, 196, 253, 0.6);
    }
    100% {
      box-shadow: 0 8px 30px rgba(161, 196, 253, 0.8);
    }
}

#result.show {
    opacity: 1;
    transform: scale(1);
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.4;
    pointer-events: none;
    animation: moveParticles 20s infinite linear;
}

.emoji {
    position: relative;
    display: inline-block;
    font-size: 50px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
}

.emoji.happy .tears,
.emoji.sad .tear {
    position: absolute;
    background: #78d1e1;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    animation: laughTears 1.2s infinite;
}

.emoji.sad .tear {
    height: 12px;
}

@keyframes laughTears {
    0%, 100% {
      transform: translateY(-5px);
      opacity: 1;
    }
    50% {
      transform: translateY(10px);
      opacity: 0.5;
    }
}

@keyframes scaleUp {
    0% {
      transform: scale(0.8);
    }
    100% {
      transform: scale(1);
    }
}

@keyframes moveParticles {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
}

body.day-mode {
    background: #fff;
    color: #333;
}

body.night-mode {
    background: #333;
    color: #fff;
}

h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #ff6f61;
    animation: typing 3s steps(30) 1s forwards, colorShift 6s infinite linear;
    text-shadow: 0 0 10px rgba(255, 111, 97, 0.7);
}

@keyframes typing {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
}

@keyframes colorShift {
    0% { color: #ff6f61; }
    25% { color: #ff8c42; }
    50% { color: #ffc75f; }
    75% { color: #f9f871; }
    100% { color: #ff6f61; }
}

button {
    padding: 12px 20px;
    background: linear-gradient(90deg, #ff6f61, #ff8c42);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 3s ease-in-out infinite alternate;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 111, 97, 0.7);
}

@keyframes float {
    0% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-8px);
    }
    100% {
      transform: translateY(0);
    }
}
