body {
  font-family: "Open Sans", sans-serif;
  background-color: #fdfaf3;
  color: #111;
  margin: 0;
  padding: 0;
}

header {
  background-color: #b30000;
  color: white;
  padding: 20px;
  text-align: center;
  font-family: "Caveat", cursive;
}

h1 {
  font-size: 2.5em;
  margin: 0;
  text-shadow: 2px 2px #fff0f0;
}

.dalok-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  background-color: #fff5f5;
  border-radius: 0 0 10px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.dalok-menu a {
  text-decoration: none;
  padding: 8px 14px;
  border: 2px solid #b30000;
  color: #b30000;
  background-color: white;
  border-radius: 10px;
  font-weight: bold;
  white-space: nowrap;
  transition: all 0.3s;
  scroll-snap-align: start;
}

.dalok-menu a:hover {
  background-color: #006400;
  color: white;
  border-color: #004000;
}

main {
  padding: 16px;
  max-width: 800px;
  margin: auto;
  width: 100%;
  box-sizing: border-box;
}

.dal {
  background-color: white;
  border-left: 6px solid #b30000;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

h2 {
  font-family: "Caveat", cursive;
  color: #006400;
  font-size: 1.8em;
  line-height: 1.4;
  margin-top: 0;
}

pre {
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 1em;
}

footer {
  text-align: center;
  background-color: #b30000;
  color: white;
  padding: 16px;
  font-size: 0.9em;
}

.note {
  font-size: 0.9em;
  font-style: italic;
  margin-top: 2em;
  text-align: center;
}

.vers p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1em;
  white-space: pre-wrap;
}

.vers .alcim {
  font-style: italic;
  font-weight: bold;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #444;
}

/* Responsive YouTube videos */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Small devices */
@media (max-width: 768px) {
  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.4em;
  }

  pre,
  .vers p {
    font-size: 0.95em;
  }

  .dalok-menu a {
    padding: 6px 10px;
    font-size: 0.9em;
    border-radius: 6px;
  }
}
