adventskalender/2025/css/popup.css hinzugefügt

This commit is contained in:
2025-11-05 17:32:16 +00:00
parent aedccbb1bf
commit d27cd26b5e

View File

@@ -0,0 +1,92 @@
/* Bratonien Adventskalender 2025 Popup Design (hell & festlich) */
#popup-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(247, 243, 232, 0.88); /* leicht gold-creamiger Schleier */
backdrop-filter: blur(6px) brightness(1.05);
-webkit-backdrop-filter: blur(6px) brightness(1.05);
display: none;
align-items: center;
justify-content: center;
z-index: 9999;
}
#popup-overlay.active {
display: flex;
animation: fadeIn 0.3s ease;
}
#popup-box {
background: linear-gradient(
180deg,
color-mix(in srgb, var(--ci-creamwhite) 80%, white),
color-mix(in srgb, var(--ci-gold) 15%, #fff9e6)
);
border: 2px solid var(--ci-gold);
border-radius: 16px;
box-shadow:
0 0 20px color-mix(in srgb, var(--ci-gold) 40%, transparent),
inset 0 0 10px rgba(255, 255, 255, 0.4);
max-width: 640px;
width: 90%;
max-height: 85%;
overflow-y: auto;
padding: 2.5rem 2rem;
color: #333;
text-align: center;
animation: popIn 0.35s ease;
position: relative;
}
#popup-close {
position: absolute;
top: 12px;
right: 16px;
background: transparent;
border: none;
font-size: 2rem;
color: var(--ci-gold);
cursor: pointer;
transition: transform 0.2s ease, color 0.2s ease;
}
#popup-close:hover {
transform: scale(1.2);
color: color-mix(in srgb, var(--ci-blue) 35%, var(--ci-gold));
}
#popup-content {
margin-top: 1rem;
font-family: "Bratonien2025", cursive;
font-size: 1.3rem;
line-height: 1.6;
}
/* === Animationen === */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes popIn {
0% { transform: scale(0.9); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
/* === Mobile Anpassung === */
@media (max-width: 600px) {
#popup-box {
width: 92%;
padding: 1.8rem 1.4rem;
font-size: 1rem;
}
#popup-close {
font-size: 1.6rem;
}
}