Files
PacCrypt-Webapp/static/css/styles.css
T
2025-05-01 20:59:46 -10:00

640 lines
12 KiB
CSS

/* ===== Global Reset ===== */
* {
box-sizing: border-box;
margin: 3px;
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: 40px !important;
}
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: 0;
gap: 0;
}
/* ===== 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;
max-width: 725px;
width: 100%;
}
/* ===== Inputs, Textareas, Selects ===== */
input,
textarea,
select,
input[type="file"] {
width: 80%;
max-width: 500px;
padding: 12px 20px;
border: 1px solid #00ff99;
border-radius: 8px;
background-color: #2c2f33;
color: #00ff99;
font-size: 1em;
text-align: left;
transition: 0.3s;
}
select {
text-align: center;
}
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 10px 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: nowrap;
justify-content: center;
gap: 15px;
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: auto;
min-width: 225px;
max-width: 300px;
}
button:hover {
background-color: #00ff99;
color: #121212;
box-shadow: 0 0 10px rgba(0, 255, 153, 0.4);
}
.danger-button {
background-color: #5f3131;
box-shadow: 0 0 20px rgba(185, 0, 0, 0.4);
}
.danger-button:hover {
background-color: #ff0000;
color: #121212;
box-shadow: 0 0 40px rgb(255, 0, 0);
}
/* ===== Toggle Switch Styling ===== */
.toggle-container {
display: flex;
align-items: center;
justify-content: center;
gap: 12px;
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: 22px;
width: 22px;
background-color: #00ff99;
border-radius: 50%;
transition: .4s;
transform: translateX(2px);
position: absolute;
left: auto;
bottom: auto;
}
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);
width: 100%;
max-width: 800px;
margin-top: 40px;
}
footer a {
color: #00ff99;
text-decoration: none;
}
footer a:hover {
color: #ff0066;
}
/* ===== Responsive Design ===== */
@media (max-width: 600px) {
input,
textarea,
select,
#input-text,
#output-text {
width: 100%;
max-width: 90%;
}
}
/* ===== Copy Feedback Message ===== */
.copy-feedback, #shared-link-feedback {
background-color: #2c2f33;
padding: 6px 12px;
margin-top: 6px;
border-radius: 6px;
color: #00ff99;
font-size: 0.9em;
display: none;
opacity: 0;
text-align: center;
max-width: 500px;
margin-left: auto;
margin-right: auto;
transition: opacity 0.3s ease;
}
.copy-feedback.show, #shared-link-feedback.show {
display: block;
opacity: 1;
}
.share-link-container {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
margin-top: 12px;
margin-bottom: 12px;
}
#share-link {
display: block;
background-color: #2c2f33;
padding: 8px 16px;
border-radius: 6px;
color: #00ff99;
font-size: 0.9em;
text-align: center;
max-width: 720px;
width: 100%;
word-break: break-all;
text-decoration: none;
transition: all 0.3s ease;
}
#share-link:hover {
color: #00cc77;
background-color: #36393f;
}
/* ===== Form Styling ===== */
form {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
}
form input {
width: 80%;
max-width: 500px;
text-align: left;
}
/* ===== Section Card Styling ===== */
section.card {
display: flex;
flex-direction: column;
align-items: center;
}
/* ===== Pacman Game Styling ===== */
#pacmanCanvas {
background-color: black;
display: block;
border: 2px solid #00ff99;
border-radius: 12px;
max-width: 700px;
width: 100%;
aspect-ratio: 4/3;
object-fit: contain;
}
#pacman-section {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
margin-bottom: 25px;
max-width: 725px;
width: 100%;
}
.pacman-wrapper {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
padding: 0;
margin: 0;
}
/* ===== Utility Classes ===== */
.hidden {
display: none !important;
}
/* ===== Section Spacing ===== */
#password-generator-section {
margin-bottom: 25px;
}
#encoding-section {
margin-bottom: 25px;
}
/* Pickup page sections */
#pickup-section {
margin-bottom: 25px;
}
#security-notice-section {
margin-bottom: 25px;
}
/* ===== File Input Section ===== */
#encoding-section #file-section {
display: none;
}
#encoding-section #file-section:not(.hidden) {
display: flex;
}
/* Ensure PacCrypt sharing file uploader is always visible */
#sharing-section #file-section {
display: flex;
}
/* Mobile-friendly download button */
.download-btn {
width: 100%;
padding: 12px;
font-size: 16px;
cursor: pointer;
background-color: var(--primary-color);
color: white;
border: none;
border-radius: 4px;
transition: background-color 0.3s;
}
.download-btn:hover {
background-color: var(--primary-hover);
}
/* Mobile form adjustments */
.pickup-form {
max-width: 100%;
margin: 0 auto;
}
.pickup-form input[type="password"] {
width: 100%;
padding: 12px;
margin-bottom: 10px;
font-size: 16px;
border: 1px solid var(--border-color);
border-radius: 4px;
background-color: var(--input-bg);
color: var(--text-color);
}
/* Mobile-specific styles */
@media (max-width: 768px) {
.download-btn {
padding: 15px;
font-size: 18px;
}
.pickup-form input[type="password"] {
padding: 15px;
font-size: 18px;
}
}
/* ===== Admin Section Styling ===== */
#sitemap-section,
#password-change-section,
#server-update-section,
#server-status-section,
#server-logs-section,
#system-settings-section {
margin-bottom: 25px;
padding: 25px;
background-color: #1e1e1e;
border-radius: 12px;
box-shadow: 0 0 15px rgba(0, 255, 153, 0.4);
}
.sitemap-header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 15px 0;
}
.sitemap-header h3 {
color: #00ff99;
margin: 0;
}
.collapse-btn {
background: none;
border: none;
color: #00ff99;
font-size: 1.2em;
cursor: pointer;
padding: 5px 10px;
transition: transform 0.3s ease;
}
.collapse-btn:hover {
transform: scale(1.1);
}
.sitemap-content {
transition: all 0.3s ease;
margin-bottom: 15px;
}
#sitemap-section ul,
#server-status-section ul {
list-style: none;
padding-left: 0;
margin-top: 15px;
}
#sitemap-section li,
#server-status-section li {
margin-bottom: 10px;
padding: 8px;
background-color: #2c2f33;
border-radius: 6px;
color: #00ff99;
}
#server-logs-section button {
margin-bottom: 15px;
width: 100%;
max-width: 300px;
}
#logLoader {
color: #00ff99;
text-align: center;
padding: 10px;
}
#logContainer {
background-color: #2c2f33;
color: #00ff99;
padding: 15px;
border-radius: 8px;
max-height: 400px;
overflow-y: auto;
font-family: monospace;
white-space: pre-wrap;
}
#system-settings-section {
margin-bottom: unset !important;
padding: 25px;
background-color: #1e1e1e;
border-radius: 12px;
box-shadow: 0 0 15px rgba(0, 255, 153, 0.4);
}
/* ===== Mobile Responsive Adjustments ===== */
@media (max-width: 768px) {
#sitemap-section,
#password-change-section,
#server-update-section,
#server-status-section,
#server-logs-section,
#system-settings-section {
padding: 20px;
margin-bottom: 20px;
}
#sitemap-section li,
#server-status-section li {
font-size: 0.9em;
padding: 6px;
}
#logContainer {
font-size: 0.9em;
padding: 10px;
}
}