/* Ensure html element allows bounce */
html {
  overflow-x: hidden !important;
  background-image: linear-gradient(to bottom, #2d84f8, #1d8718) !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  height: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
  width: 100vw !important;
  overscroll-behavior: contain !important;
}


/* Ensure body can scroll and background stays fixed */
body {
  overflow-y: visible !important;
  overflow-x: hidden !important;
  background-image: url('https://mgnt-app-assets.s3.amazonaws.com/MASHPlus/site/img/bkgr/BackgroundLandscape.scale-100.jpg'), linear-gradient(to bottom, #2d84f8, #1d8718) !important;
  background-attachment: fixed !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  width: 100% !important;
}

/* Remove scroll from mgnt-ui and allow body to scroll naturally */
#mgnt-ui {
  overflow-y: visible !important;
  overflow-x: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

/* Content meta styling for author and date information */
.content-meta {
  margin: 10px 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.4;
}

.content-meta .date {
  display: inline-block;
  margin-right: 15px;
}

.content-meta .author {
  display: inline-block;
  font-style: italic;
}

.content-meta .date::before {
  content: "📅 ";
  margin-right: 5px;
}

.content-meta .author::before {
  content: "✍️ ";
  margin-right: 5px;
}

/* Content area responsive styles */
.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.content header {
  margin-bottom: 30px;
  border-bottom: 2px solid #2d84f8;
  padding-bottom: 20px;
}

.content h1 {
  font-size: 2.5em;
  color: #2d84f8;
  margin-bottom: 10px;
  line-height: 1.2;
}

.content h2 {
  font-size: 1.8em;
  color: #1d8718;
  margin: 25px 0 15px 0;
  line-height: 1.3;
}

.content h3 {
  font-size: 1.4em;
  color: #333;
  margin: 20px 0 10px 0;
  line-height: 1.4;
}

.content p {
  margin-bottom: 15px;
  text-align: justify;
}

.content ul, .content ol {
  margin: 15px 0;
  padding-left: 30px;
}

.content li {
  margin-bottom: 8px;
}

.content a {
  color: #2d84f8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 0.3s ease;
}

.content a:hover {
  border-bottom-color: #2d84f8;
}

.content strong {
  color: #1d8718;
  font-weight: bold;
}

.content em {
  font-style: italic;
  color: #666;
}

.content hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 30px 0;
}

/* Mobile responsive styles */
@media screen and (max-width: 768px) {
  .content {
    padding: 15px;
    margin: 10px;
    border-radius: 6px;
  }
  
  .content h1 {
    font-size: 2em;
  }
  
  .content h2 {
    font-size: 1.5em;
  }
  
  .content h3 {
    font-size: 1.2em;
  }
  
  .content ul, .content ol {
    padding-left: 20px;
  }
}

@media screen and (max-width: 480px) {
  .content {
    padding: 10px;
    margin: 5px;
  }
  
  .content h1 {
    font-size: 1.8em;
  }
  
  .content h2 {
    font-size: 1.3em;
  }
  
  .content h3 {
    font-size: 1.1em;
  }
  
  .content p {
    text-align: left;
  }
  
  .content ul, .content ol {
    padding-left: 15px;
  }
  
  .content-meta {
    font-size: 0.8em;
  }
  
  .content-meta .date,
  .content-meta .author {
    display: block;
    margin-bottom: 5px;
  }
}

/* Main layout responsive adjustments */
@media screen and (max-width: 768px) {
  .main {
    padding: 10px;
  }
  
  #MASH .logo {
    height: 2.5em;
  }
  
  .intro {
    padding: 15px;
  }
  
  .intro h1 {
    font-size: 1.8em;
  }
  
  .intro h2 {
    font-size: 1.3em;
  }
  
  .intro p {
    font-size: 0.95em;
  }
}

@media screen and (max-width: 480px) {
  .main {
    padding: 5px;
  }
  
  #MASH .logo {
    height: 2em;
  }
  
  .intro {
    padding: 10px;
  }
  
  .intro h1 {
    font-size: 1.5em;
  }
  
  .intro h2 {
    font-size: 1.1em;
  }
  
  .intro p {
    font-size: 0.9em;
  }
  
  .sub-pages ul {
    padding-left: 15px;
  }
  
  .sub-pages li {
    margin-bottom: 8px;
  }
}

