dok/public/css/building.css
2026-03-12 15:28:06 +00:00

232 lines
3.2 KiB
CSS

body {
margin: 0;
height: 100vh;
font-family: "Cinzel", serif;
color: #2b1b0f;
}
/* =========================
Progress Bar
========================= */
.progress-bar {
width: 100%;
height: 12px;
background: #5b3a1f;
border: 1px solid #8b6a3c;
margin-top: 8px;
}
.progress-fill {
height: 100%;
background: linear-gradient(#3cff3c, #1ea01e);
box-shadow: 0 0 6px #3cff3c;
}
/* =========================
Popup Fenster
========================= */
.building-popup {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 460px;
background: url("/images/parchment.png") center / cover no-repeat;
border: 4px solid #6b4b2a;
border-radius: 10px;
box-shadow:
0 0 40px rgba(0, 0, 0, 0.9),
inset 0 0 25px rgba(0, 0, 0, 0.5);
display: none;
z-index: 1000;
animation: popupFade 0.25s ease;
}
/* =========================
Popup Header
========================= */
.popup-header {
padding: 14px;
font-family: "Tangerine", serif;
font-size: 36px;
background: linear-gradient(#6b4b2a, #3c2414);
border-bottom: 2px solid #8b6a3c;
display: flex;
justify-content: space-between;
color: #f0d9a6;
text-shadow: 0 2px 4px black;
}
.popup-header span {
cursor: pointer;
}
/* =========================
Tabs
========================= */
.popup-tabs {
display: flex;
border-bottom: 2px solid #8b6a3c;
}
.popup-tabs button {
flex: 1;
padding: 10px;
font-family: "Cinzel", serif;
font-weight: bold;
background: linear-gradient(#5c3b20, #3a2513);
border: 1px solid #8b6a3c;
color: #e7d9b4;
cursor: pointer;
transition: 0.2s;
}
.popup-tabs button:hover {
background: linear-gradient(#8b6a3c, #5c3b20);
}
.popup-tabs button.active {
background: linear-gradient(#d4b97a, #9c7a3a);
color: #2b1b0f;
}
/* =========================
Popup Inhalt
========================= */
.popup-content {
padding: 20px;
font-family: "Cinzel", serif;
font-size: 20px;
line-height: 1.6;
letter-spacing: 0.5px;
background: rgba(255, 255, 255, 0.08);
border-radius: 6px;
color: #2b1b0f;
}
/* Titel im Inhalt */
.popup-content h3 {
font-family: "Tangerine", serif;
font-size: 32px;
color: #3b2412;
margin-top: 0;
}
/* Text */
.popup-content p {
color: #3a2413;
}
/* =========================
Tab Inhalte
========================= */
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* =========================
Buttons
========================= */
.popup-content button {
margin-top: 10px;
background: linear-gradient(#7a5a2a, #caa24b);
border: 1px solid #e0c67b;
padding: 10px 18px;
color: #1a1206;
font-weight: bold;
font-family: "Cinzel", serif;
cursor: pointer;
transition: 0.2s;
}
.popup-content button:hover {
transform: scale(1.05);
box-shadow:
0 0 10px #ffd66b,
0 0 25px #caa24b;
}
/* =========================
Animation
========================= */
@keyframes popupFade {
from {
opacity: 0;
transform: translate(-50%, -40%);
}
to {
opacity: 1;
transform: translate(-50%, -50%);
}
}
/* =========================
Popup Titel
========================= */
#popup-title {
font-weight: bold;
}