
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  background-color: #1e1e1e !important;
}

body {
  background-color: #1e1e1e;
  font-family: Arial, sans-serif;
  color: white;

  margin: 0 !important;
  padding: 0 !important;
  padding-top: 50px !important;

  text-align: center;
  overflow-x: hidden !important;

  background-size: cover;
  background-position: center;
}


/* =========================
   NAV BAR
========================= */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;

  background-color: #1e1e1e;
  padding: 10px 20px;

  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-logo {
  height: 50px;
  width: auto;
}

.nav-buttons {
  display: flex;
  gap: 10px;
  flex: 1;
  justify-content: center;
}

.nav a button {
  padding: 10px 20px;
  font-size: 16px;

  color: white;
  cursor: pointer;

  background-color: #353535;
  border: none;
  border-radius: 0;

  transition: background-color 0.3s ease;
}

.nav a button:hover {
  background-color: #ff6c20;
}


/* =========================
   LOGO / HERO SECTION
========================= */

.logo {
  margin-top: 0;
  padding: 80px 20px;
  background: #1e1e1e;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Background image layer */
.logo::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../Backgrounds/LibraryBooks.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

/* Dark overlay */
.logo::before {
  content: '';
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

/* Foreground content */
.logo > * {
  position: relative;
  z-index: 2;
}

.logo img,
.logo p {
  position: relative;
  z-index: 2;
}

.logo p {
  color: white !important;
  text-shadow: 8px 8px 15px rgba(0,0,0,0.8);

  font-family: 'Old Standard TT', serif;
  font-size: 50px;
  font-weight: 1000;

  margin: 10px 0 0 0;
}


/* =========================
   GREY SECTION LAYOUT
========================= */

.grey-section {
  background-color: #1e1e1e;
  padding: 20px 0;
  margin: 0;
}

.grey-section-content {
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}


/* =========================
   TEXT COLUMN
========================= */

.text-column {
  flex: 0 0 50%;
  min-width: 200px;

  padding: 15px;
  margin: 10px;

  text-align: center;
  background-color: #353535;
  border-radius: 0;
}

.text-column h1 {
  font-family: 'Old Standard TT', serif;
  font-size: 50px;
  font-weight: 1000;

  margin: 0 0 10px 0;
}

.text-column h3,
.text-column p {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  margin: 0;
}


/* =========================
   IMAGE COLUMN
========================= */

.image-column {
  flex: 0 0 50%;
  min-width: 200px;
  padding: 10px;
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  margin-bottom: 10px;
  position: relative;
}

.image-row img {
  max-width: 200px;
  height: 100px;
  margin: 25px;

  transition: transform 0.2s;
}

.image-row img:hover {
  transform: scale(1.05);
}


/* =========================
   PLATE HOVER INFO
========================= */

.plate-container {
  position: relative;
  display: inline-block;

  margin: 0;
  padding-bottom: 0;

  transition: padding-bottom 0s ease;
}

.plate-container:hover {
  padding-bottom: 500px;
  margin-bottom: -550px;
}

.plate-main {
  max-width: 200px;
  height: 100px;

  cursor: pointer;
  border-radius: 0;
  box-shadow: 0 0 0 rgba(0,0,0,0.2);

  transition: transform 0.2s;
}

.plate-main:hover {
  transform: scale(1.05);
}

.plate-hover-info {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  width: 450px;
  max-width: 90vw;

  background: #b7b6b6;
  border: 2px solid #ff6c20;
  border-radius: 10px;
  padding: 20px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;

  z-index: 9999 !important;
  pointer-events: none;

  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.plate-container:hover .plate-hover-info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}


/* Right-edge fix */
.plate-container.right-edge .plate-hover-info {
  left: auto;
  right: 5%;
  transform: translateX(0%);
}

.plate-container.right-edge:hover .plate-hover-info {
  right: 0;
  left: auto;
}


/* =========================
   MOBILE RESPONSIVE
========================= */

@media (max-width: 768px) {
  .grey-section-content {
    flex-wrap: wrap;
  }

  .text-column,
  .image-column {
    flex: 0 0 100%;
  }

  .image-row {
    flex-direction: column;
    align-items: center;
  }

  .image-row img {
    margin: 15px 0;
  }

  .plate-hover-info {
    width: 90vw;
  }
}




body,
.grey-section,
.grey-section-content,
.image-column,
.image-row {
  overflow-x: hidden !important;
}

/* ──────────────────────────────────────────────
   JDAC Theme – triggered by "Hello World 123" + Enter
─────────────────────────────────────────────── */
body.theme-jdac {
    background-image: url('../Backgrounds/JDACbackground.jpg') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff !important;
    transition: background-image 1.2s ease, color 0.8s ease;
}

/* Nav bar styling for JDAC */
body.theme-jdac .nav {
    background-color: #ff00ff !important; /* dark navy example */
    box-shadow: 0 4px 14px rgba(13, 27, 42, 0.6) !important;
}

body.theme-jdac .nav a button {
    background-color: #ff00ff !important;
    color: #e0e1dd !important;
}

body.theme-jdac .nav a button:hover {
    background-color: #778da9 !important;
}

/* Logo section (middle) */
body.theme-jdac .logo {
    background-image: url("../Backgrounds/JDACbackground.jpg") !important;
}

body.theme-jdac .logo::before {
    background: rgba(0, 0, 0, 0.55) !important; /* stronger overlay */
}

/* Text & sections */
body.theme-jdac .grey-section,
body.theme-jdac .text-column {
    background-color: #1b263b !important;
    color: #e0e1dd !important;
}

/* Hover boxes */
body.theme-jdac .plate-hover-info {
    background: #415a77 !important;
    border-color: #778da9 !important;
    color: #e0e1dd !important;
}