body {
  background: #000;
  line-height: 1.5em;
}

/* Standard modal dialog styles for all pages */
.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-overlay {
  /* Reserved for future overlay-specific styles if needed */
}
.modal-box {
  background-color: white;
  color: #222;
  padding: 2em;
  border-radius: 0.5em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  min-width: 320px;
  max-width: 90vw;
}

/* Modal form elements (shared by all pages) */
.modal-form-input {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.5em;
  box-sizing: border-box;
}
.modal-form-textarea {
  width: 100%;
  margin: 0.5em 0 1em 0;
  padding: 0.5em;
  height: 100px;
  resize: vertical;
  box-sizing: border-box;
}
.modal-form-btns {
  text-align: center;
  margin-top: 1em;
}
.error-message {
  text-align: center;
  color: #f66;
} 

/* Modal  styles */
.modal-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: white;
  color: #222;
  padding: 2em;
  border-radius: 0.5em;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  min-width: 320px;
  max-width: 90vw;
  width: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.modal-content h2 {
  margin-top: 0;
}

.body-no-scroll {
    overflow: hidden !important;
}

/* Navigation button styles for memo and news pages */
.nav-btn {
    background: #444;
    color: #ccc;
    border: 1px solid #666;
    padding: 0.5em 1em;
    margin: 0 0.5em;
    border-radius: 0.3em;
    cursor: pointer;
    font-family: 'garamond', serif;
}

.nav-btn:hover {
    background: #555;
}

.nav-container {
    text-align: center;
    margin-top: 2em;
    margin-bottom: 3em;
}