/* ==========================================================================
   Global dark mode base
   ========================================================================== */
html, body, #myBody {
  margin: 0;
  padding: 0;
  height: 100vh;
  background-color: #0a0a1f !important;   /* very dark navy-black */
  color: #f0f0f0 !important;
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}

/* Main container */
#myDiv, .myDiv {
  background-color: #111122;              /* slightly raised dark panel */
  color: #f0f0f0;
  padding: 1.5rem 2rem;
  margin: 1rem auto;
  max-width: 95vw;
  max-height: 88vh;
  border-radius: 12px;
  box-sizing: border-box;
  text-align: center;
  overflow-y: auto;                       /* scroll if content is long */
}

/* Title / exhibit number */
h1, #exhibitNum {
  color: #d4a017;                         /* gold/bronze museum accent */
  margin: 0.5rem 0 1.5rem;
  font-size: 2.5rem;
}

/* ==========================================================================
   Flag + Description row
   ========================================================================== */
.flag-text-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  margin: 1.5rem 0 2.5rem;
  padding: 1.5rem 2rem;
  background-color: #0f0f23;              /* dark container background */
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.flag-imgxx {
  height: 6rem;                           /* ~96px – good kiosk size */
  width: auto;
  flex-shrink: 0;
  border-radius: 0.4rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Flag inside the text block – same max-height rule */
.flag-img {
  height: auto;
  max-height: 400px;                  /* allows upscale if tiny, cap if huge */
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 0.4rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.description {
  flex: 1;
  min-width: 280px;
  font-size: 1.85rem;
  line-height: 1.52;
  color: #f0f0f0;
  text-align: justify;
  background-color: #111122;              /* ensures text area is dark */
  padding: 1rem 1.5rem;
  border-radius: 8px;
}

.description p {
  margin: 0 0 1.1em 0;
}

.description strong,
.description b {
  color: #ffcc66;                         /* warm gold for emphasis */
  font-weight: 700;
  background: rgba(255, 204, 102, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}

.description ul {
  padding-left: 1.8rem;
  margin: 1em 0;
}

.description li {
  margin-bottom: 0.6em;
}

/* ==========================================================================
   Main exhibit image
   ========================================================================== */

* Main exhibit image – max 400px height, upscale small images */
.itemPicture {
  display: block;
  max-width: 100%;                    /* fills available width */
  height: auto;                       /* preserves aspect ratio */
  margin: 1.5rem auto 0;
  border: 2px solid #333355;
  border-radius: 10px;
  padding: 8px;
  background-color: #1a1a2e;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  object-fit: contain;
}   

/* ==========================================================================
   Buttons
   ========================================================================== */
.backbutton {
  transition-duration: 0.4s;
  background-color: #c94c4c;              /* softer salmon/red */
  color: white;
  border: 2px solid #4CAF58;
  padding: 12px 28px;
  font-size: 1.3rem;
  margin: 16px 4px;
  cursor: pointer;
  border-radius: 8px;
}

.backbutton:hover {
  background-color: #4CAF58;
  color: white;
}

.actionbutton,
.casebutton,
.button {
  transition-duration: 0.4s;
  background-color: #2c3e50;              /* dark slate – better dark mode fit */
  color: #e0e0ff;
  border: 2px solid #4CAF58;
  padding: 10px 24px;
  font-size: 1.2rem;
  margin: 16px 4px;
  cursor: pointer;
  border-radius: 8px;
}

.actionbutton:hover,
.casebutton:hover,
.button:hover {
  background-color: #4CAF58;
  color: white;
}

/* ==========================================================================
   Media queries / small adjustments
   ========================================================================== */
@media (max-width: 900px) {
  .flag-img {
    height: 5rem;
  }
  .description {
    font-size: 1.65rem;
  }
}
