/* Background animated rainbow gradient with stars */ body { font-family: Arial, sans-serif; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; height: 100vh; background: linear-gradient(45deg, red, orange, yellow, green, blue, indigo, violet); background-size: 400% 400%; animation: rainbowAnimation 5s ease infinite; color: #fff; /* White text for contrast */ position: relative; overflow: hidden; /* Hide anything outside the body */ } /* Create a starry background */ body::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: url('https://www.transparenttextures.com/patterns/stardust.png'); /* Star pattern */ opacity: 0.5; /* Transparent stars */ z-index: -1; /* Place it behind the content */ animation: moveStars 100s linear infinite; /* Animate stars */ } /* Define the rainbow animation */ @keyframes rainbowAnimation { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } } /* Define the star movement animation */ @keyframes moveStars { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } } /* Dark-themed container */ .container { background-color: rgba(20, 20, 20, 0.9); /* Dark background with slight transparency */ padding: 40px; /* Increased padding for a bigger container */ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4); width: 85%; /* Adjusted width to be a little bigger */ max-width: 700px; /* Increased max-width for more space */ border-radius: 10px; backdrop-filter: blur(10px); /* Optional: adds a slight blur effect */ display: flex; flex-direction: column; justify-content: center; align-items: center; } /* Heading style */ h1 { text-align: center; color: #fff; /* White heading */ } /* Textarea with a dark theme */ textarea { width: 100%; padding: 10px; margin-bottom: 15px; border-radius: 5px; border: 1px solid #444; /* Dark border */ background-color: #333; /* Dark background */ color: #fff; /* White text */ font-size: 16px; resize: none; /* Prevent resizing */ height: 60px; /* Increased height for bigger text area */ } /* Button with dark theme */ button { width: 100%; padding: 10px; background-color: #4CAF50; /* Green button */ color: white; border: none; border-radius: 5px; font-size: 16px; cursor: pointer; } button:hover { background-color: #45a049; } /* Output container */ #outputContainer { margin-top: 20px; padding: 10px; background-color: #444; /* Darker background for output */ border-radius: 5px; height: 60px; /* Increased height for bigger output container */ width: 100%; /* Ensure it fills the width of the container */ overflow-y: auto; /* Enable scrolling if content exceeds container height */ } h2 { margin-top: 0; color: #fff; /* White text for subheadings */ } #outputText { color: #ddd; /* Light gray text for the output */ font-size: 18px; white-space: pre-wrap; height: 100%; /* Make it fill the height of the output container */ overflow-y: auto; /* Enable scrolling if content exceeds container height */ } /* Center the container vertically and horizontally */ html, body { height: 100%; display: flex; justify-content: center; align-items: center; }