38230-vm/assets/css/custom.css
2026-02-06 18:51:17 +00:00

294 lines
5.7 KiB
CSS

:root {
--primary-color: #e63946;
--bg-color: #ffe4e6; /* Default Light Pink */
--popup-bg: #ffccd5; /* Default Light Red */
--bg-image: none;
--text-color: #2d3436;
--secondary-text: #636e72;
--border-color: rgba(0,0,0,0.05);
--font-family: 'Inter', system-ui, -apple-system, sans-serif;
--p1-title-color: #e63946;
--p1-title-size: 1.75rem;
--p1-title-font: 'Inter';
--p2-text-color: #e63946;
--p2-text-size: 1.25rem;
--p2-text-font: 'Inter';
--p2-hint-color: #636e72;
--p2-hint-size: 0.85rem;
--p2-hint-font: 'Inter';
--image-radius: 12px;
--yes-btn-color: #e63946;
--no-btn-color: #ffffff;
}
body {
background-color: var(--bg-color);
background-image: var(--bg-image);
background-size: cover;
background-position: center;
background-attachment: fixed;
color: var(--text-color);
font-family: var(--font-family);
margin: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
overflow-x: hidden;
}
.admin-controls {
position: fixed;
top: 1rem;
right: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
z-index: 100;
align-items: flex-end;
}
.control-buttons {
display: flex;
gap: 0.5rem;
}
.admin-controls button {
background: rgba(255, 255, 255, 0.8);
border: none;
border-radius: 50%;
width: 36px;
height: 36px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.2s ease;
color: var(--secondary-text);
}
.admin-controls button:hover {
background: #fff;
color: var(--primary-color);
transform: scale(1.1);
}
.settings-panel {
background: white;
padding: 1rem;
border-radius: 12px;
box-shadow: 0 4px 15px rgba(0,0,0,0.1);
margin-top: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
width: 250px;
max-height: 80vh;
overflow-y: auto;
animation: slideDown 0.3s ease;
}
.settings-tabs {
display: flex;
border-bottom: 1px solid #eee;
margin-bottom: 0.5rem;
}
.tab-btn {
background: none !important;
border: none !important;
border-bottom: 2px solid transparent !important;
border-radius: 0 !important;
padding: 0.5rem !important;
width: auto !important;
height: auto !important;
font-size: 0.8rem !important;
font-weight: 600;
cursor: pointer;
color: var(--secondary-text) !important;
box-shadow: none !important;
}
.tab-btn.active {
border-bottom-color: var(--primary-color) !important;
color: var(--primary-color) !important;
}
.tab-content {
display: none;
flex-direction: column;
gap: 0.75rem;
}
.tab-content.active {
display: flex;
}
@keyframes slideDown {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.settings-group {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.settings-group label {
font-size: 0.75rem;
font-weight: 600;
color: var(--secondary-text);
}
.settings-group input[type="color"],
.settings-group select {
width: 100%;
height: 30px;
border: 1px solid var(--border-color);
border-radius: 4px;
cursor: pointer;
}
.settings-group input[type="range"] {
width: 100%;
}
.settings-group .btn-small {
padding: 4px 8px;
font-size: 0.7rem;
background: #f1f2f6;
border: 1px solid #dfe4ea;
border-radius: 4px;
cursor: pointer;
}
.container {
max-width: 500px;
width: 90%;
text-align: center;
padding: 2.5rem 2rem;
border-radius: 20px;
background: var(--popup-bg);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
transition: all 0.3s ease;
position: relative;
}
h1.p1-title {
font-size: var(--p1-title-size);
font-family: var(--p1-title-font), var(--font-family);
color: var(--p1-title-color);
font-weight: 700;
margin-bottom: 1.5rem;
letter-spacing: -0.5px;
}
.image-preview-container {
width: 100%;
height: auto; min-height: 200px; max-height: 400px;
background-color: rgba(255, 255, 255, 0.5);
border: 2px solid rgba(0,0,0,0.05);
border-radius: var(--image-radius);
margin-bottom: 1.5rem;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
position: relative;
}
.image-preview-container img {
width: 100%;
height: 100%;
object-fit: contain; max-height: 400px;
}
.button-group {
display: grid;
grid-template-columns: 1fr 1fr;
justify-items: center;
align-items: center;
margin-top: 2rem;
position: relative;
min-height: 80px;
}
.btn {
padding: 1.125rem 2.625rem;
font-size: 1.5rem;
font-weight: 600;
border-radius: 12px;
border: none;
cursor: pointer;
transition: transform 0.1s ease, font-size 0.2s ease, background-color 0.2s ease;
white-space: nowrap;
}
.btn:active {
transform: scale(0.9) !important;
}
.btn-yes {
background-color: var(--yes-btn-color);
color: white;
z-index: 10;
box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}
.btn-yes:hover {
filter: brightness(0.9);
}
.btn-no {
background-color: var(--no-btn-color);
color: var(--text-color);
position: relative;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.btn-no:hover {
filter: brightness(0.95);
}
#success-message {
display: none;
animation: fadeIn 0.8s ease forwards;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.success-text {
font-size: var(--p2-text-size);
font-family: var(--p2-text-font), var(--font-family);
color: var(--p2-text-color);
line-height: 1.6;
font-weight: 700;
margin-bottom: 0.5rem;
}
.redirect-hint {
margin-top: 2rem;
font-size: var(--p2-hint-size);
font-family: var(--p2-hint-font), var(--font-family);
color: var(--p2-hint-color);
font-style: italic;
}
#image-input, #bg-image-input {
display: none;
}
hr {
border: none;
border-top: 1px solid #eee;
margin: 0.5rem 0;
}