﻿* {margin:0; padding:0; box-sizing:border-box;}

/* Full background */
body {
  font-family: 'Merriweather', serif;
  color: #fff;
  line-height: 1.7;
  background: url('../mm/bookshelf.jpg')
              center/cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Main scroll area */
main-contents {
  flex: 1;
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 1.2rem;
  background: rgba(0,0,0,0.65);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  overflow: auto;
}

main-contents p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.disclaimer {
  font-size: 0.9rem;
  color: #ddd;
  border-left: 3px solid #f79533;
  padding-left: 1rem;
  margin-top: 2rem;
}


/* Language Selector */
#langselector {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  font-family: 'Open Sans', sans-serif;
  z-index: 1100;
}
    
/* Sticky header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 51, 102, 0.7); /* dark navy */
  backdrop-filter: blur(6px);         /* frosted glass effect */
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  padding: 0.8rem 1rem 0.3rem; /* tighter so nav can sit below */
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Navigation strip inside header */
nav {
  background: rgba(247, 149, 51, 0.85); /* warm orange accent */
  backdrop-filter: blur(6px);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0;
}

nav li {
  margin: 0.3rem 1rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  transition: color 0.3s;
}

nav a:hover {
  color: #003366; /* contrast navy on hover */
}

/* Sticky footer with frosted effect */
footer {
  position: sticky;
  bottom: 0;
  background: rgba(0, 51, 102, 0.7);
  backdrop-filter: blur(6px);
  text-align: center;
  font-size: 0.9rem;
  padding: 0.8rem;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.4);
}
    
footer a {
  color: #f79533;
  text-decoration: none;
}


/* Mobile Layout */
@media (max-width: 480px) {
  body {
    padding: 10px;
  }
  
  header {
    position: static; /* Remove sticky positioning */
    font-size: 1.2rem; /* Further reduced font size */
  }
  
  footer {
    position: static; /* Remove sticky positioning */
    font-size: 0.75rem; /* Reduced font size */
  }
  
  #langselector {
    top: 0.3rem;
    right: 0.3rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.85rem;
  }
  
}
