/* Reset & Global Styles */
body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: #000;
    color: white;
    /*height: 100vh;*/
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.5s ease-in-out;
}

/* Main container to center elements */
.container {
    width: 80%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Input & Result Box - Now perfectly matched */
textarea, #resultBox {
    width: 100%;
    border-radius: 5px;
    color: white;
    text-align: center;
    resize: none; /* Prevent manual resizing */
    font-weight: bold;
    white-space: pre-wrap;
    padding-top: 10px;
}

/* Fixed Height */
textarea {
    min-height: 150px;
    font-size: 18px;
   box-shadow: 0px 0px 20px rgba(255, 255, 255, 0.5);
    border: 2px solid white; /* Ensure same border for both */
    background: rgba(255, 255, 255, 0.1);
 }

#resultBox {
    min-height: 80px;
    font-size: 24px;
    display: flex; /* Centers text */
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    background-color: transparent;
}

/* Button */
button {
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 10px 20px;
}

button:hover {
    background-color: #218838;
}

/* Rainbow animation (without yellow & green) */
@keyframes rainbowPulse {
    0% { background-color: #000000; }
    12.5% { background-color: #1a0033; }
    25% { background-color: #330066; }
    37.5% { background-color: #4d0099; }
    50% { background-color: #6600cc; }
    62.5% { background-color: #330099; }
    75% { background-color: #0000cc; }
    87.5% { background-color: #000099; }
    100% { background-color: #000066; }
}

/* Fire animation */
@keyframes firePulse {
    0% { background-color: #ff4500; }
    33% { background-color: #ff8c00; }
    66% { background-color: #ff6347; }
    100% { background-color: #ff4500; }
}

/* Apply animations */
.rainbow-bg {
    animation: rainbowPulse 1.5s infinite;
}

.fire-bg {
    animation: firePulse 1.5s infinite;
}
