/* Base Mobile-First Styles */
body {
  background-color: #fdfaf0;
  display: flex;
  justify-content: center;
  padding: 20px 10px; /* Reduced padding for small screens */
  font-family: "Georgia", serif;
  color: #8b4513;
  margin: 0;
}

.md-container {
  width: 100%;
  max-width: 800px;
  text-align: center;
  /* Thinner border on mobile to save space */
  border: 8px solid #c05d38;
  padding: 30px 15px;
  box-sizing: border-box; /* Ensures padding doesn't break width */

  background-image: url("/assets/data/facts-imgs/background.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
  background-position: top center;
}

.highlight-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px; /* Adds space between buttons */
  align-items: center;
}

.custom-info {
  background-color: #f4ece1;
  border-left: 5px solid #c05d38;
  padding: 15px;
  margin: 20px 0;
  font-style: italic;
  text-align: left;
  font-size: 1rem;
}

.md-h1 {
  font-size: 1.8rem; /* Scaled down for mobile */
  font-weight: normal;
  color: #c05d38;
  margin-bottom: 20px;
  text-transform: lowercase;
  line-height: 1.2;
}

.md-p {
  line-height: 1.5;
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
}

.md-img {
  max-width: 100%;
  height: auto;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.md-hr {
  border: 0;
  height: 1px;
  background: #c05d38;
  margin: 30px auto;
  width: 70%; /* Wider line on mobile for visual balance */
}

/* Tablet and Desktop Enhancements */
@media (min-width: 768px) {
  body {
    padding: 40px 20px;
  }

  .md-container {
    border: 15px solid #c05d38;
    padding: 60px;
  }

  .md-h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
  }

  .md-p {
    font-size: 1.2rem;
    margin-bottom: 30px;
  }

  .custom-info {
    padding: 20px;
    font-size: 1.1rem;
  }

  .md-hr {
    width: 50%;
  }
}

/* Custom Block for Sources */
.custom-block.custom-sources {
  font-size: 0.85rem;
  margin-top: 40px;
  opacity: 0.8;
}

.custom-sources ul {
  list-style: none;
  padding: 0;
}

.custom-sources a {
  color: #c05d38;
  text-decoration: none;
}
