/* Root colors - Default English */
:root {
  --color-primary: #800000; /* Deep Maroon */
  --color-accent: #ffd700; /* Gold */
  --color-support: #f4e1c1; /* Sandstone Beige */
  --color-bg: rgb(249, 240, 227); /* Off-white */
  --color-text-dark: #3b1f1f; /* Darker maroon for text */
  --color-text-light: #5a2a2a; /* Lighter maroon for secondary text */
}

/* body */
* {
  box-sizing: border-box;
}
body {
  font-family: "Philosopher", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: var(--color-accent);
  outline: none;
}

/* Header */
.header {
  background-color: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 4px 10px rgba(128, 0, 0, 0.5);
  gap: 0.25rem;
}

.una-row {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--color-support);
  text-align: center;
  margin-top: -0.5rem;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: flex;
}

.logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--color-accent);
  object-fit: cover;
}

.title-column {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main-title {
  font-family: "Cinzel", serif;
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-accent);
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  text-align: center;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: var(--color-support);
  line-height: 1.5;
}
.glow {
  animation: glow 2s infinite alternate;
}
@keyframes glow {
  from {
    text-shadow:
      0 0 10px var(--color-accent),
      0 0 20px var(--color-accent);
  }
  to {
    text-shadow:
      0 0 20px var(--color-accent),
      0 0 40px var(--color-accent);
  }
}

/* Navigation */
nav {
  background-color: var(--color-support);
  border-bottom: 3px solid var(--color-primary);
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}
.nav-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 0.5rem;
  max-width: 1200px;
  width: 100%;
  padding: 0 1rem;
  line-height: 1;
}
.nav-buttons a,
.nav-buttons button {
  background-color: var(--color-primary);
  color: var(--color-bg);
  border: none;
  padding: 0.5rem 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(128, 0, 0, 0.7);
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
  /* Always center text vertically and horizontally */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-height: 40px;
  flex: 1 0 115px;
  max-width: 115px;
}
.nav-buttons a:hover,
.nav-buttons button:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: 0 0 15px var(--color-accent);
  outline: none;
}

/* Language switch button */
.lang-switch img {
  filter: invert(100%);
  height: 20px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
}

/* Content */
.content {
  max-width: 1200px;
  margin: 1rem auto 0rem auto;
  padding: 0.5rem 1rem;
  background-color: var(--color-support);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(128, 0, 0, 0.15);
  color: var(--color-text-dark);
}
.content h3 {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  margin: 0rem;
  padding: 1rem;
  font-weight: bold;
  font-size: 1.4rem;
}
.content p {
  margin-bottom: 1rem;
  text-align: justify;
  font-weight: normal;
}
/* .content p:last-of-type {
  margin-bottom: 0;
} */
.content strong {
  color: var(--color-primary);
}

/* Splash container and items */
.splash-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 1rem 0;
  width: 100%;
  padding: 0;
}

/* Collapse splash containers with no visible items (all items are display:none) */
.splash-container:not(:has(.splash-item[style*="display: flex"])) {
  display: none;
  margin: 0;
  padding: 0;
  height: 0;
}

.splash-item {
  background: var(--color-bg);
  border-radius: 15px;
  padding: 1.5rem;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  flex: 1 1 300px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  color: var(--color-text-dark);
  text-align: left;
}
.splash-item:hover,
.splash-item:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(128, 0, 0, 0.3);
  outline: none;
}

.splash-item.full-width {
  flex-basis: 100%; /* Span entire width */
}
.splash-item h3 {
  font-family: "Cinzel", serif;
  color: var(--color-primary);
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
  padding: 0 0 0.5rem 0;
  font-weight: bold;
  font-size: 1.4rem;
}
.splash-item h2 {
  margin: 0;
  padding-bottom: 1rem;
  font-weight: bold;
  font-size: 1.3rem;
}
.splash-item p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-text-light);
}
.splash-item li {
  color: var(--color-text-light);
}
.splash-btn {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 0.6em 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: left;
  box-shadow: 0 0 10px rgba(128, 0, 0, 0.7);
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  align-self: flex-start;
}
.splash-btn:focus {
  color: var(--color-bg);
}
.splash-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 0 15px var(--color-accent);
  outline: none;
}
/* Disabled state */
.splash-btn.disabled {
  pointer-events: none; /* disables clicking */
  opacity: 0.5; /* faded look */
  cursor: not-allowed; /* disabled cursor */
}

/* Icon images */
.icon-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.qr-code {
  margin: 0 auto;
  display: block;
  background: var(--color-bg);
  padding: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(128, 0, 0, 0.3);
}

/* Gallery */
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  color: var(--color-text-dark);
}

/* Action buttons */
#record-action {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

#record-action::before {
  content: "Stream:";
  font-weight: bold;
}

button {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  text-align: left;
  align-self: flex-start;
}

button:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

@media (max-width: 480px) {
  .header {
    padding: 0.5rem 1rem 0.5rem 1rem;
  }
  .main-title {
    font-size: 1.5rem;
  }
  .subtitle {
    font-size: 0.9rem;
  }

  .nav-buttons a,
  .nav-buttons button {
    font-size: 0.9rem;
  }
  .splash-item {
    width: 100%;
  }
}
