@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&family=Roboto+Mono:wght@400;700&display=swap');

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Roboto Mono', monospace;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    overflow-x: hidden; /* Prevent horizontal scroll from aggressive animations */
}

.container {
    background-color: #2c2c2c;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(255, 0, 255, 0.5), 0 0 25px rgba(0, 255, 255, 0.5);
    border: 2px solid #ff00ff;
    max-width: 700px;
    width: 90%;
}

header {
    margin-bottom: 25px;
    border-bottom: 2px dashed #00ffff;
    padding-bottom: 15px;
}

#logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

h1 {
    font-family: 'Comic Neue', cursive;
    color: #00ff00;
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #ff00ff;
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% {
    text-shadow:
      0 0 4px #00ff00,
      0 0 11px #00ff00,
      0 0 19px #00ff00,
      0 0 40px #ff00ff,
      0 0 80px #ff00ff,
      0 0 90px #ff00ff,
      0 0 100px #ff00ff,
      0 0 150px #ff00ff;
  }
  20%, 24%, 55% {        
    text-shadow: none;
  }
}

header p {
    color: #00ffff;
    font-size: 0.9em;
}

.translator-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-section, .output-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
    color: #ff00ff;
    font-size: 1.1em;
    text-align: left;
}

textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #00ffff;
    background-color: #333;
    color: #e0e0e0;
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
    resize: vertical;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.7), inset 0 0 10px rgba(0, 255, 0, 0.5);
}

#translate-btn {
    padding: 12px 20px;
    background-color: #00ff00;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-family: 'Comic Neue', cursive;
    font-size: 1.3em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

#translate-btn:hover {
    background-color: #ff00ff;
    color: #fff;
    box-shadow: 0 0 15px #ff00ff, 0 0 30px #ff00ff, 0 0 5px #fff;
    transform: scale(1.05) rotate(-2deg);
}

#translate-btn:active {
    transform: scale(0.98) rotate(1deg);
}

#brainrot-text {
    background-color: #252525;
    border-color: #ff00ff;
    box-shadow: inset 0 0 10px rgba(255, 0, 255, 0.3);
}

footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px dashed #00ffff;
    font-size: 0.8em;
    color: #aaa;
}

footer p {
    font-family: 'Comic Neue', cursive;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

