@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700&display=swap');

html, body {
  text-align: center;
}

body {
  font-family: 'Libre Baskerville', serif;
  margin:0; padding:0; background:#fdf6e3; color:#3e2723;
}

.dp-nav-bar {
  position:fixed; top:0; left:0; right:0;
  height:56px; background:#fbf8f0;
  border-bottom:1px solid #e0dcd3;
  display:flex; align-items:center; padding:0 1rem;
  z-index:1030;
}
.dp-menu-btn, .dp-editor-btn {
  background:#5d4037!important; border:none!important; color:#fff!important;
}
.dp-menu-btn { margin-right:1rem; }
.dp-nav-title {
  flex:1; text-align:center;
  font-family:'Cinzel Decorative',cursive; font-size:1.5rem;
}
.dp-body-offset { padding-top:56px; }

/* offcanvas dropdown tweaks */
.offcanvas-start { top:56px!important; height:calc(100% - 56px)!important; }

.card-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 6rem !important;
    text-align: justify;
    /* optional hyphenation for nicer breaks */
    hyphens: auto;
}

.navbar-custom {
  background-color: #550000;
  border-bottom: 1px solid #330000;
  height: 56px;    /* enforce exact bar height */
  padding: 0;      /* remove Bootstrap’s default top/bottom padding */
}

/* logo drop-shadow that respects transparency */
.navbar-custom .navbar-brand img {
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0));
}

/* Harry-Potter–style title, matching the logo more closely */
.fancy {
  background: linear-gradient(90deg, #b28e1d 0%, #f4e38c 50%, #8f6f11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 56px;
  text-align: center;
}

/* ↓ This keeps it looking good on smaller screens */
/* On small screens like iPhones */
@media (max-width: 576px) {
  .fancy {
    font-size: 1.15rem;
    line-height: 1;
    letter-spacing: -0.3px;
    padding-top: 2px;
  }
}

.hourglass {
  display: inline-block;
  position: relative;
  height: 60vw;
  margin-bottom: 1.5em;
  /* carve-out top & bottom */
  --fill-bottom: 13.33%;
  --fill-top:    27.78%;
}



.hourglass img.hg-back,
.hourglass img.hg-front {
  display: block;
  height: 100%;
  width: auto;
  position: relative;
  z-index: 1;
}

.hourglass .hg-fill {
  position: absolute;
  left: 0;
  bottom: var(--fill-bottom);
  width: 100%;
  /* build a “window” then fill pct of it */
  height: calc(
    (100% - var(--fill-bottom) - var(--fill-top))
    * var(--fill-pct) / 100
  );
  background-color: var(--hg-color);
  z-index: 2;
  pointer-events: none;
}

.hourglass img.hg-front {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
}

.hourglass .hg-label {
  position: absolute;
  bottom: -1.2em;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  white-space: nowrap;
  z-index: 4;
}

.session-art {
  height: 42vw;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
}

/* Darker house row backgrounds */
tr.house-gryffindor > td,
tr.house-gryffindor > th {
  background-color: #8B0000 !important; /* Dark red */
  color: #FFD700 !important;            /* Gold */
}

tr.house-hufflepuff > td,
tr.house-hufflepuff > th {
  background-color: #fcbf00 !important;
  color: #000 !important;
}

tr.house-ravenclaw > td,
tr.house-ravenclaw > th {
  background-color: #003366 !important; /* Very dark blue */
  color: #C3891D !important;            /* vibrant bronze */
}

tr.house-slytherin > td,
tr.house-slytherin > th {
  background-color: #004D00 !important; /* Deep green */
  color: #C0C0C0 !important;            /* Silver */
}

/* Keep form-controls on those rows white for readability */
tr.house-gryffindor select,
tr.house-hufflepuff select,
tr.house-ravenclaw select,
tr.house-slytherin select,
tr.house-gryffindor input,
tr.house-hufflepuff input,
tr.house-ravenclaw input,
tr.house-slytherin input {
  background-color: #ffffff !important;
  color: #000000 !important;
}

.navbar-collapse,
.navbar .dropdown {
  overflow: visible !important;
}

/* Make dropdown scrollable when too tall (e.g. on phones) */
.scrollable-menu {
  max-height: 300px;    /* or whatever height fits your design */
  overflow-y: auto;
}

/* Optional: if you want a bit of padding inside the scroll area */
.scrollable-menu .dropdown-item {
  padding-top: .5rem;
  padding-bottom: .5rem;
}
