/* ===== Global Reset ===== */ * { box-sizing: border-box; margin: 0; padding: 0; } /* ===== Body ===== */ body { font-family: 'Poppins', sans-serif; background-color: #121212; color: #00ff99; display: flex; flex-direction: column; min-height: 100vh; justify-content: center; align-items: center; padding: 20px; } /* ===== Header ===== */ header { text-align: center; padding: 25px; background-color: #1c1c1c; border-radius: 12px; box-shadow: 0 0 15px rgba(0, 255, 153, 0.4); width: 100%; max-width: 800px; margin-bottom: 30px; } header h1 { font-size: 2.8em; color: #00ff99; margin-bottom: 8px; } header p { font-size: 1.2em; } /* ===== Main Layout ===== */ main { flex: 1; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 800px; padding: 20px; gap: 30px; } /* ===== Card Styling ===== */ .card { background-color: #1e1e1e; padding: 25px; width: 100%; border-radius: 12px; box-shadow: 0 0 15px rgba(0, 255, 153, 0.4); text-align: center; } /* ===== Form Group Styling ===== */ .form-group { display: flex !important; flex-direction: column; align-items: center; gap: 0px; width: 100%; } /* ===== Inputs, Textareas, Selects ===== */ input, textarea, select, input[type="file"] { width: 80%; max-width: 500px; padding: 12px 20px; border: 2px solid #00ff99; border-radius: 8px; background-color: #2c2f33; color: #00ff99; font-size: 1em; text-align: center; transition: 0.3s; margin:10px auto; } textarea { min-height: 140px; resize: none; } input[type="password"] { min-height: 50px; } input[type="file"] { border: 2px dashed #00ff99; cursor: pointer; } input[type="file"]::file-selector-button { background-color: #00ff99; color: #121212; border: none; padding: 8px 15px; border-radius: 6px; cursor: pointer; transition: 0.3s; } input[type="file"]::file-selector-button:hover { background-color: #00cc77; } /* ===== Focus Effects ===== */ input:focus, textarea:focus, select:focus { outline: none; box-shadow: 0 0 8px rgba(0, 255, 153, 0.8); } /* ===== Textareas Specific Widths ===== */ #input-text, #output-text { width: 80%; max-width: 500px; height: 140px; } /* ===== Button Group Styling ===== */ .button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin: 10px auto; width: 100%; } button { padding: 10px 20px; border: 0px solid #00ff99; border-radius: 8px; background-color: #2c2f33; color: #00ff99; font-size: 1em; cursor: pointer; transition: 0.3s; width: 100%; max-width: 200px; /* margin: 10px auto; */ } button:hover { background-color: #00ff99; color: #121212; } /* ===== Toggle Switch Styling ===== */ .toggle-container { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 10px; width: 100%; } /* Make sure the switch aligns well */ .switch { position: relative; display: flex; align-items: center; /* <-- Ensures vertical centering */ justify-content: center; width: 70px; height: 34px; } /* Hide the checkbox */ .switch input { opacity: 0; width: 0; height: 0; } /* The slider */ .slider { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background-color: #2c2f33; border: 2px solid #00ff99; border-radius: 34px; transition: .4s; display: flex; align-items: center; } /* The circle knob */ .slider::before { content: ""; height: 26px; width: 26px; background-color: #00ff99; border-radius: 50%; transition: .4s; transform: translateX(4px); position: absolute; left: 0px; bottom: 2.5px; } input:checked + .slider::before { transform: translateX(36px); } /* Toggle Labels */ .labels { position: relative; width: 100px; display: flex; justify-content: space-between; font-size: 0.9em; color: #00ff99; margin-top: 5px; } .labels::before, .labels::after { content: attr(data-on); width: 50%; text-align: center; } .labels::after { content: attr(data-off); } /* ===== Toast Notifications ===== */ .toast { visibility: hidden; width: 80%; max-width: 500px; min-height: 50px; background-color: #333; color: #00ff99; text-align: center; border-radius: 8px; padding: 14px; margin: 10px auto 0 auto; font-size: 1em; display: flex; align-items: center; justify-content: center; } .toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; } @keyframes fadein { from { opacity: 0; } to { opacity: 1; } } @keyframes fadeout { from { opacity: 1; } to { opacity: 0; } } /* ===== Footer ===== */ footer { text-align: center; padding: 25px; background-color: #1c1c1c; color: #00ff99; border-radius: 12px; box-shadow: 0 0 15px rgba(0, 255, 153, 0.4); margin-top: 30px; width: 100%; max-width: 800px; } footer a { color: #00ff99; text-decoration: none; } footer a:hover { color: #ff0066; } /* ===== Responsive Tweaks ===== */ @media (max-width: 600px) { input, textarea, select, #input-text, #output-text { width: 100%; max-width: 90%; } } /* ===== Copy Feedback Message ===== */ .copy-feedback { background-color: #2a2a2a; border: 1px solid #00ff99; padding: 6px 12px; margin-top: 6px; border-radius: 6px; color: #00ff99; font-size: 0.9em; opacity: 0; transition: opacity 0.3s ease; text-align: center; max-width: 300px; margin-left: auto; margin-right: auto; } .copy-feedback.show { opacity: 1; } .hidden { display: none !important; } form { width: 100%; display: flex; flex-direction: column; align-items: center; } form input, form button { width: 80%; max-width: 500px; margin-bottom: 12px; text-align: center; } section.card { display: flex; flex-direction: column; align-items: center; } .copy-feedback.show { display: block; width: fit-content; margin-top: 10px; padding: 6px 12px; background-color: #2a2a2a; color: #00ff99; border: 1px solid #00ff99; border-radius: 6px; } #logContainer { white-space: pre-wrap; /* Wrap long lines */ word-wrap: break-word; /* Break long words if needed */ overflow-wrap: anywhere; /* Ensures long strings don't overflow */ background: black; color: lime; padding: 10px; border-radius: 8px; max-height: 400px; overflow-y: auto; width: 100%; box-sizing: border-box; } #pacmanCanvas { background-color: black; display: block; margin: auto; border: 2px solid #00ff99; border-radius: 12px; align-items: center; justify-content: center; } #pacman-section { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 20px; display: block; margin: auto; border: 2px solid #00ff99; border-radius: 12px; } .pacman-wrapper { display: flex; justify-content: center; align-items: center; width: 100%; } /* ===== Utility: Hidden Class ===== */ .hidden { display: none !important; }