:root {
  --background-color: #ffd6d6;
  --secondary-background-color: #fff78c;
  --accent-color: #707edd;
  --accent-color-transparent: #707fdda8;
  --primary-color: #ffa4a4;
  --primary-color-transparent: #ffa4a471;
  --alt-primary-color: #fff78c;
  --secondary-color: #ffc973;
  --header-color: #ef91b7;
  --alt-card-background: #f1c572;
}

/*div {
  outline: black 1px solid;
}*/

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: "Sniglet", Arial, Helvetica, sans-serif;
  font-size: 120%;
  background-color: var(--background-color);
}

.header {
  position: sticky;
  top: 0;
  overflow: hidden;
  z-index: 100;
  background-color: var(--secondary-color);
  padding: 0.5rem 0.3rem;
}

.header a {
  font-family: "Baloo Bhai", Arial, Helvetica, sans-serif;
  font-weight: bold;
  float: left;
  color: black;
  text-align: center;
  padding: 0.4rem 0.8rem;
  margin: 0 0.3rem;
  text-decoration: none;
  font-size: 1.3rem; 
  line-height: 1.6rem;
  border-radius: 0.3rem;
  transition: background-color 0.2s;
}

.header a.logo {
  display: flex;
  align-items: center;
  font-family: Luckybones, Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent-color);
  padding: 0;
}

.header a.logo img {
  max-height: 3rem;
  margin-right: 1rem;
}

.header a:hover:not(.logo){
  background-color: var(--accent-color-transparent);
  transition: background-color 0.2s;
}

.header a.active {
  background-color: var(--accent-color);
  color: white;
}

.header-right {
  float: right;
}

.content {
  display: flex;
  flex-direction: column;
  min-height: 87vh;
  animation: transitionIn 0.5s;
}

.primary-background {
  background-color: var(--background-color);
  padding: 2% 10%;
}

.secondary-background {
  background-color: var(--background-color);
  padding: 2% 10%;
}

p {
  font-size: 1.3rem;
}

.highlight {
  color: #dd921b !important;
}

h1 {
  color: #ef91b7;
  font-family: "Baloo Bhai", Arial, Helvetica, sans-serif;
  margin: 0.5rem 0 !important;
}

h2 {
  color: #ef91b7;
  font-family: Luckybones, Arial, Helvetica, sans-serif;
}

.indent {
  padding: 0 2rem;
}

.img-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 4rem;
  margin: 0.5rem 0;
  margin-bottom: 2rem;
  padding: 0 2rem;
}

.overview {
  flex: 60%;
  align-self: flex-start;
}

.overview p {
  margin: 0;
}

.main-image img{
  max-width: 15rem;
  height: auto;
  object-fit: cover;
  vertical-align: middle;
  border-radius: 0.4rem;
  transition: opacity 0.3s;
}

.center {
  text-align: center;
}

.info-cards {
  display: flex;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 2rem 2rem;
  margin: 2rem 0;
}

.card {
  display: flex;
  flex-direction: column;
  max-width: 18rem;
  background-color: #fff78c;
  border-radius: 0.4rem;
  padding: 0.5rem;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
  transition: all 0.5s;
}

.card:hover {
  box-shadow: 0 1rem 1.2rem 0 rgba(0, 0, 0, 0.2), 0 1.1rem 1.9rem 0 rgba(0, 0, 0, 0.19);
  transition: box-shadow 0.5s;
  filter: none;
}

.card:hover img {
  filter: none;
  transition: filter 0.5s;
}

.alt-background {
  background-color: var(--primary-color);
}

.alt-background .card-title {
  color: var(--accent-color) !important;
}

.card .card-title {
  color: #ef91b7;
  font-family: "Luckybones";
  font-weight: bold;
  text-align: center;
  margin: 0.5rem;
}

.card img {
  max-width: 8rem;
  height: auto;
  margin: auto;
  filter: grayscale(95%);
  transition: filter 0.5s;
  pointer-events: none;
  border-radius: 0.3rem;
}

.card .card-description {
  text-align: center;
  margin: 0.5rem;
}

.card .card-subheading {
  text-align: center;
  margin: 0.2rem;
  text-decoration: underline;
}

.card button {
  font-family: "Baloo Bhai";
  font-weight: bold;
  color: white;
  background-color: #ef91b7;
  border-radius: 0.3rem;
  border: 0.2rem solid transparent;
  height: 2rem;
  cursor: pointer;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
  transition: box-shadow 0.5s, border-color 0.5s, background-color 0.2s;
}

.card button a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  width: 100%;
  height: 100%;
}

.card button:hover {
  box-shadow: 0 1rem 1.2rem 0 rgba(0, 0, 0, 0.2), 0 1.1rem 1.9rem 0 rgba(0, 0, 0, 0.19);
  transition: box-shadow 0.5s, border-color 0.5s, background-color 0.2s;
  border-color: white;
}

.card button:active {
  background-color: white;
  transition: background-color 0.2s, border 0.2s;
  border: 0.2rem solid transparent;
}

.detail-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.detail-card {
  display: flex;
  flex-direction: column;
}

.alt {
  align-items: end;
}

.detail-card .center {
  color: #ef91b7;
  background-color: #fce8d9;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
}

.detail-card-info .card-description {
  background-color: #fff78c;
  padding: 2rem;
  border-radius: 0.3rem;
  font-size: 1.3rem;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
}

.alt .detail-card-info .card-description {
  background-color: var(--primary-color);
}

.detail-card img {
  max-width: 8rem;
  height: auto;
  pointer-events: none;
  border-radius: 0.3rem;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
}

.detail-card-footer {
  display: flex;
  flex-direction: row;
  margin: 1rem 0;
  gap: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-color: #fce8d9;
  border-radius: 0.3rem;
  padding: 1rem;
  font-size: 1.3rem;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
}

.contact-link {
  display: flex;
  gap: 0.5rem;
  color: var(--accent-color);
}

.social-links {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  font-size: 1.5rem;
  margin: 2rem;
}

.alt-background button {
  background-color: var(--accent-color);
}

table {
  border-collapse: collapse;
  width: 100%;
  box-shadow: 0 0.3rem 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0.4rem 1.2rem 0 rgba(0, 0, 0, 0.19);
}

td, th {
  border: 3px solid var(--primary-color);
  text-align: left;
  padding: 8px;
}

th {
  font-size: 1.3rem;
}

tr:nth-child(even) {
  background-color: var(--primary-color-transparent) !important;
}

.footer {
  font-family: "Baloo Bhai";
  background-color: var(--secondary-color);
  padding: 0.5rem 1rem;
  text-align: left;
  color: black;
}

.footer .copyright {
  padding: 0;
  margin: 0;
  text-align: right;
}

/* ---------- Responsive nav additions (REPLACED) ---------- */

/* keep header horizontal on desktop as before */
.header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  position: sticky; /* already set above, kept for safety */
  top: 0;
  overflow: hidden;
  box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.2), 0 0 1.2rem 0 rgba(0, 0, 0, 0.19);
}

/* make header-right a horizontal flex row by default (keeps existing desktop look) */
.header-right {
  display: flex;
  gap: 1rem;
  margin-left: auto;
  align-items: center;
  float: none; /* using flex layout rather than float now */
}

/* hamburger (hidden on larger screens) */
.menu-icon {
  display: none;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
}

@keyframes transitionIn {
    from {
        opacity: 0;
        transform: rotateX(-30deg);
    }

    to {
        opacity: 1;
        transform: rotateX(0);
    }
}

/* SMALL SCREENS: hide full link group and show hamburger */
/* breakpoint kept as your original 730px */
@media screen and (max-width: 730px) {
  /* stack header content vertically so menu appears under logo */
  .header {
    flex-direction: column;
    align-items: stretch;
    position: sticky; /* for absolute-positioning the icon */
  }

  /* show the hamburger icon (placed outside .header-right in HTML so it remains visible) */
  .menu-icon {
    display: block;
    position: absolute;
    right: 12px;
    top: 12px;
    z-index: 30;
  }

  /* ensure logo takes full width (prevents overlap) and leaves space for icon */
  .header a.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
    padding-right: 3rem; /* prevent title text from sitting under the icon */
    margin-bottom: 0.25rem;
  }

  /* hide the link group until toggled */
  .header-right {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    padding-top: 0.5rem;
  }

  /* when toggled, show vertically stacked links full-width */
  .header-right.responsive {
    display: flex;
    background: transparent;
    gap: 0.2rem;
  }

  .header-right a {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  /* keep spacing consistent with your existing small-screen rules */
  .primary-background {
    padding: 1rem;
  }

  .secondary-background {
    padding: 1rem;
  }

  .info-cards {
    gap: 1rem;
  }

  .img-wrapper {
    gap: 1rem;
  }

  .contact-info {
    font-size: 1rem;
    padding: 0.3rem;
  }

  .content-link {
    overflow-wrap: break-word;
    width: 100%
  }

  .detail-card-footer {
    gap: 0.3rem;
  }
}

/* ---------- end replaced responsive nav additions ---------- */

@font-face {
  font-family: "Luckybones";
  src: url(../fonts/Luckybones-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: "Baloo Bhai";
  src: url(../fonts/BalooBhai2-Regular.ttf);
}

@font-face {
  font-family: "Baloo Bhai";
  src: url(../fonts/BalooBhai2-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: "Sniglet";
  src: url(../fonts/Sniglet-Regular.ttf);
  font-weight: normal;
}
