secretadmin / style.css
shashankadari's picture
Upload 5 files
f409414 verified
Raw History Blame Contribute Delete
13.6 kB
:root {
--primary-color: #D42426;
--secondary-color: #165B33;
--accent-color: #F8B229;
--bg-gradient: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
--glass-bg: rgba(255, 255, 255, 0.1);
--glass-border: rgba(255, 255, 255, 0.2);
--text-color: #ffffff;
--shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Poppins', sans-serif;
background: var(--bg-gradient);
background-size: 400% 400%;
animation: gradientBG 15s ease infinite;
color: var(--text-color);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
overflow-x: hidden;
}
@keyframes gradientBG {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
.container {
width: 100%;
max-width: 900px;
padding: 20px;
z-index: 10;
}
.card {
background: var(--glass-bg);
backdrop-filter: blur(10px);
-webkit-backdrop-filter: blur(10px);
border-radius: 20px;
border: 1px solid var(--glass-border);
padding: 40px;
box-shadow: var(--shadow);
text-align: center;
transition: transform 0.3s ease;
}
.card-header h1 {
font-family: 'Mountains of Christmas', cursive;
font-size: 3rem;
margin-bottom: 10px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.subtitle {
font-size: 1.1rem;
opacity: 0.9;
margin-bottom: 30px;
}
/* Forms */
.input-group {
margin-bottom: 20px;
text-align: left;
}
.input-group label {
display: block;
margin-bottom: 8px;
font-weight: 600;
font-size: 0.9rem;
}
input,
textarea,
select {
width: 100%;
padding: 12px 15px;
border-radius: 10px;
border: none;
background: rgba(255, 255, 255, 0.9);
font-family: inherit;
font-size: 1rem;
outline: none;
transition: box-shadow 0.3s;
}
input:focus,
textarea:focus,
select:focus {
box-shadow: 0 0 0 3px var(--accent-color);
}
/* Buttons */
button {
cursor: pointer;
border: none;
font-family: inherit;
font-weight: 600;
transition: transform 0.2s, filter 0.2s;
}
button:active {
transform: scale(0.98);
}
.btn-primary {
width: 100%;
padding: 15px;
border-radius: 10px;
background: var(--primary-color);
color: white;
font-size: 1.1rem;
position: relative;
overflow: hidden;
}
.btn-secondary {
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 10px 20px;
border-radius: 8px;
}
.btn-secondary:hover {
background: rgba(255, 255, 255, 0.3);
}
.btn-danger {
background: #ff4444;
color: white;
padding: 5px 10px;
border-radius: 5px;
}
.btn-success {
background: var(--secondary-color);
color: white;
width: 100%;
padding: 15px;
border-radius: 10px;
font-size: 1.1rem;
}
.btn-success:disabled {
background: #555;
cursor: not-allowed;
opacity: 0.7;
}
.btn-sm {
width: auto;
padding: 8px 16px;
font-size: 0.9rem;
}
/* Admin Panel */
.admin-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
text-align: left;
}
@media (max-width: 768px) {
.admin-grid {
grid-template-columns: 1fr;
}
}
.admin-panel {
background: rgba(0, 0, 0, 0.2);
padding: 20px;
border-radius: 15px;
}
.admin-panel h3 {
margin-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding-bottom: 10px;
}
.row {
display: flex;
gap: 10px;
}
.scrollable-list {
max-height: 200px;
overflow-y: auto;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 10px;
list-style: none;
margin-bottom: 10px;
}
.scrollable-list li {
padding: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
}
.control-box {
background: rgba(255, 255, 255, 0.05);
padding: 15px;
border-radius: 10px;
margin-bottom: 15px;
}
.timer-display {
font-size: 2.5rem;
font-weight: 700;
text-align: center;
margin: 10px 0;
font-family: monospace;
color: var(--accent-color);
}
.info-text {
font-size: 0.85rem;
opacity: 0.8;
margin-bottom: 10px;
}
/* Dashboard */
.row-between {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.alert-box {
background: rgba(248, 178, 41, 0.2);
border: 1px solid var(--accent-color);
padding: 15px;
border-radius: 10px;
margin-bottom: 20px;
}
.snowflake-spinner {
font-size: 4rem;
animation: spin 3s linear infinite;
margin-bottom: 20px;
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
/* Tabs */
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding-bottom: 10px;
}
.tab-btn {
background: transparent;
color: rgba(255, 255, 255, 0.6);
padding: 10px 20px;
font-size: 1rem;
border-bottom: 2px solid transparent;
border-radius: 0;
}
.tab-btn.active {
color: white;
border-bottom: 2px solid var(--accent-color);
}
.tab-content {
display: none;
animation: fadeIn 0.5s;
}
.tab-content.active {
display: block;
}
/* Gift Box */
.gift-box {
width: 150px;
height: 150px;
background: var(--primary-color);
margin: 40px auto;
position: relative;
cursor: pointer;
transition: transform 0.3s;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.gift-box:hover {
transform: scale(1.05) rotate(2deg);
}
.gift-box::before {
/* Ribbon Vertical */
content: '';
position: absolute;
width: 30px;
height: 100%;
background: var(--accent-color);
left: 50%;
transform: translateX(-50%);
}
.gift-box::after {
/* Ribbon Horizontal */
content: '';
position: absolute;
height: 30px;
width: 100%;
background: var(--accent-color);
top: 50%;
transform: translateY(-50%);
}
.lid {
position: absolute;
width: 170px;
height: 40px;
background: #b21f1f;
top: -20px;
left: -10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 2;
}
.lid::before {
content: '';
position: absolute;
width: 30px;
height: 100%;
background: var(--accent-color);
left: 50%;
transform: translateX(-50%);
}
.gift-open .lid {
transform: translateY(-60px) rotate(-10deg);
opacity: 0;
transition: all 0.5s ease;
}
.gift-open {
background: transparent;
box-shadow: none;
}
.gift-open::before,
.gift-open::after {
opacity: 0;
}
/* Reveal Card */
.reveal-card {
background: white;
color: #333;
padding: 30px;
border-radius: 15px;
margin-top: 20px;
animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-label {
font-size: 0.9rem;
margin-bottom: 15px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding-bottom: 10px;
}
.row {
display: flex;
gap: 10px;
}
.scrollable-list {
max-height: 200px;
overflow-y: auto;
background: rgba(255, 255, 255, 0.1);
border-radius: 8px;
padding: 10px;
list-style: none;
margin-bottom: 10px;
}
.scrollable-list li {
padding: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
font-size: 0.9rem;
}
.control-box {
background: rgba(255, 255, 255, 0.05);
padding: 15px;
border-radius: 10px;
margin-bottom: 15px;
}
.timer-display {
font-size: 2.5rem;
font-weight: 700;
text-align: center;
margin: 10px 0;
font-family: monospace;
color: var(--accent-color);
}
.info-text {
font-size: 0.85rem;
opacity: 0.8;
margin-bottom: 10px;
}
/* Dashboard */
.row-between {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.alert-box {
background: rgba(248, 178, 41, 0.2);
border: 1px solid var(--accent-color);
padding: 15px;
border-radius: 10px;
margin-bottom: 20px;
}
.snowflake-spinner {
font-size: 4rem;
animation: spin 3s linear infinite;
margin-bottom: 20px;
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
/* Tabs */
.tabs {
display: flex;
gap: 10px;
margin-bottom: 20px;
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding-bottom: 10px;
}
.tab-btn {
background: transparent;
color: rgba(255, 255, 255, 0.6);
padding: 10px 20px;
font-size: 1rem;
border-bottom: 2px solid transparent;
border-radius: 0;
}
.tab-btn.active {
color: white;
border-bottom: 2px solid var(--accent-color);
}
.tab-content {
display: none;
animation: fadeIn 0.5s;
}
.tab-content.active {
display: block;
}
/* Gift Box */
.gift-box {
width: 150px;
height: 150px;
background: var(--primary-color);
margin: 40px auto;
position: relative;
cursor: pointer;
transition: transform 0.3s;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
.gift-box:hover {
transform: scale(1.05) rotate(2deg);
}
.gift-box::before {
/* Ribbon Vertical */
content: '';
position: absolute;
width: 30px;
height: 100%;
background: var(--accent-color);
left: 50%;
transform: translateX(-50%);
}
.gift-box::after {
/* Ribbon Horizontal */
content: '';
position: absolute;
height: 30px;
width: 100%;
background: var(--accent-color);
top: 50%;
transform: translateY(-50%);
}
.lid {
position: absolute;
width: 170px;
height: 40px;
background: #b21f1f;
top: -20px;
left: -10px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
z-index: 2;
}
.lid::before {
content: '';
position: absolute;
width: 30px;
height: 100%;
background: var(--accent-color);
left: 50%;
transform: translateX(-50%);
}
.gift-open .lid {
transform: translateY(-60px) rotate(-10deg);
opacity: 0;
transition: all 0.5s ease;
}
.gift-open {
background: transparent;
box-shadow: none;
}
.gift-open::before,
.gift-open::after {
opacity: 0;
}
/* Reveal Card */
.reveal-card {
background: white;
color: #333;
padding: 30px;
border-radius: 15px;
margin-top: 20px;
animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal-label {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
color: #666;
}
.giftee-name {
font-family: 'Mountains of Christmas', cursive;
font-size: 3.5rem;
color: var(--primary-color);
margin: 10px 0;
}
.clues-box {
text-align: left;
background: #f5f5f5;
color: #333;
padding: 15px;
border-radius: 10px;
margin-top: 20px;
}
.clues-box ul {
list-style: none;
margin-top: 10px;
}
.clues-box li {
margin-bottom: 8px;
padding-bottom: 8px;
border-bottom: 1px solid #ddd;
}
/* Utilities */
.hidden {
display: none !important;
}
.fade-in {
animation: fadeIn 0.5s ease-in;
}
.error-msg {
color: #ffcccc;
background: rgba(255, 0, 0, 0.2);
padding: 10px;
border-radius: 5px;
margin-top: 10px;
}
.success-msg {
color: #ccffcc;
background: rgba(0, 255, 0, 0.2);
padding: 10px;
border-radius: 5px;
margin-top: 10px;
}
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes popIn {
from {
transform: scale(0.8);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
25% {
transform: translateX(-5px);
}
75% {
transform: translateX(5px);
}
}
/* Snow & Confetti */
.snow-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 1;
}
.snowflake {
position: absolute;
top: -10px;
background: white;
border-radius: 50%;
opacity: 0.8;
animation: fall linear infinite;
}
@keyframes fall {
to {
transform: translateY(100vh);
}
}
#confetti-canvas {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
z-index: 100;
}
/* Modal */
.modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
animation: fadeIn 0.3s;
}
.modal-content {
width: 90%;
max-width: 400px;
padding: 30px;
}
.modal-content h2 {
margin-bottom: 15px;
color: var(--accent-color);
}