:root {
  --bg: #0e0e0e;
  --mist: rgba(255, 255, 255, 0.04);
  --text: #dddddd;
  --accent: #c5bfa4;
}

@font-face {
  font-family: 'PR Viking';
  src: url('/static/fonts/PRViking.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.viking-font {
  font-family: 'PR Viking', serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image: url('/static/images/background.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text);
  font-family: 'Crimson Text', serif;
}


#countdown {
  font-size: 1.75rem;
  line-height: 1.6;
  letter-spacing: 1px;
}

.unit {
  display: inline-block;
  margin: 0 10px;
  font-weight: bold;
}

.footer {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #aaa;
}

.glassycontainer {
  background: var(--mist);
  backdrop-filter: blur(4px);
  border: 1px solid #2f2f2f;
  border-radius: 10px;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 2rem 4rem 2rem 2rem;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

h1 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: #8cbbe9;
  text-decoration: underline;
}

.footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #aaa;
}
/* Accordion styles */
.accordion-item {
  margin-bottom: 0.5rem;
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  text-align: left;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  color: var(--accent);
  font-weight: bold;
  border-radius: 0.5rem;
  border: 1px solid #2f2f2f;
  cursor: pointer;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  gap: 1rem;
}
.accordion-header:focus {
  outline: 2px solid var(--accent);
}
.accordion-content {
  padding: 1rem;
  background: rgba(0, 0, 0, 0.4); 
  backdrop-filter: blur(6px);
  color: var(--text);
  border-radius: 0.5rem;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
  margin-bottom: 1rem;
}
.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--accent);
}

/* Icon rotates if the adjacent content is visible */
.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}
.toc-link {
  color: var(--accent);
  text-decoration: underline;
}
.toc-link:hover {
  text-decoration: none;
}
th.asc::after {
  content: " ▲";
}
th.desc::after {
  content: " ▼";
}

.poem-flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width:768px;
  font-family: 'Cormorant Garamond', serif;
}

.poem-stanza {
  max-width: 768px;
  font-size: 1.1rem;
  padding: 0 4.5rem;
  line-height:60%;
  white-space: pre-wrap;
}

.poem-stanza.left {
  align-self: flex-start;
  text-align: left;
  margin-bottom: -2rem;
}

.poem-stanza.right {
  align-self: flex-end;
  text-align: right;
  margin-top: -2rem;
}

.poem-stanza.force-right {
  text-align: right;
}

.poem-stanza.center {
  align-self: center;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom:2rem;
}

@media (max-width: 768px) {
  .poem-flow-container {
    gap: 1rem;
    width: 100%;
  }

  .poem-stanza,
  .poem-stanza.left,
  .poem-stanza.right {
    align-self: flex-start;
    text-align: left;
    margin-top: 2;
    margin-bottom: 0;
    padding: 0 1rem;
    line-height: 60%;
  }

  .poem-stanza.center {
    text-align: center;
    align-self: center;
    margin-bottom: 4rem;
  }
}

#copyright-overlay {
  backdrop-filter: blur(6px);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  padding: 1.5rem;
  width: 240px;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.contact-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
}

.contact-card h2 {
  margin: 0.5rem 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-card .email,
.contact-card .phone {
  color: #8cbbe9;
  display: block;
  margin-top: 0.5rem;
}