* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial;
  color: #442497;
}

a .primary {
  color: #442497;
  text-decoration: none;
}

a .primary:hover {
  color: #8f7cc1;
}

a .secondary {
  color: #442497;
  text-decoration: none;
}

a .secondary:hover {
  color: #8f7cc1;
}

a {
  text-decoration: none;
}

.credits-desktop {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

.credits-desktop,
.credits-mobile {
  font-family: Otto-Regular !important;
  opacity: 40%;
  font-size: 8px !important;
  letter-spacing: 0.35px;
}

.credits-desktop a,
.credits-mobile a {
  font-family: Otto-Regular !important;
}

.credits-mobile {
  margin-bottom: 20px;
}

/* Case 1: Navigation and contact links */
.panel-right ul a,
.contact a,
#mobileMenuNav ul a {
  color: #442497;
  text-decoration: none;
}

.panel-right ul a:hover,
.contact a:hover,
#mobileMenuNav ul a:hover {
  color: #8f7cc1;
}

/* Case 2: Content links */
.bio a,
.element-title a,
.information a {
  color: #442497;
  text-decoration: none;
}

.bio a:hover,
.element-title a:hover,
.information a:hover {
  color: #8f7cc1;
}

p::selection,
div::selection {
  color: #442497;
  background-color: #dad3ea;
}

.title a {
  color: #442497;
}

@font-face {
  font-family: Otto-Regular;
  src: url("/assets/fonts/ABCOtto-Regular.woff2");
}

@font-face {
  font-family: Otto-Italic;
  src: url("/assets/fonts/ABCOtto-RegularItalic.woff2");
}

body {
  background: linear-gradient(white, #d9d3ea);
  min-height: 100vh;
  min-height: 100dvh;
  background-attachment: fixed;
}

.container {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100vw;
  overflow: hidden;
}

.panel-left {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 50%;
  padding: 10px;
  overflow-y: auto;
}

.title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.contact {
  width: 100%;
}

.contact div,
.contact a,
.contact p {
  font-family: Otto-Regular !important;
  font-size: 15px;
  line-height: 20px;
}

.homepage .panel-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
  padding: 10px;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
}

.section .panel-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  width: 50%;
  padding: 10px;
  overflow-y: auto;
  height: 100vh;
  height: 100dvh;
}

.panel-right ul {
  list-style-type: none;
  text-align: center;
}

.panel-right ul > li {
  margin: 20px 0;
}

button {
  border: none;
}

.homepage .title {
  z-index: 200;
}

.bio p,
.bio p a {
  font-family: Otto-Regular;
  font-size: 20px;
  line-height: 25px;
}

.bio p em {
  font-family: Otto-Italic;
}

.information p a {
  font-family: Otto-Regular;
}

.element-title p > em,
.information p > em {
  font-family: Otto-Italic;
}

.element-title p a {
  font-family: Otto-Regular;
}

.element-title-no-info {
  border-bottom: 1px dashed #442497;
  padding-bottom: 3px;
}

.section-title,
.title,
.panel-right ul,
#mobileMenuNav ul li a {
  font-weight: bold;
  font-size: 15px !important;
  text-transform: uppercase;
}

.element {
  margin-top: 25px;
  text-align: left;
  width: 100%;
}

.last-element {
  margin-bottom: 25px;
}

.year {
  margin-top: 50px;
  border: 1px solid #442497;
  border-radius: 20px;
  padding: 2px 10px 2px 10px;
  font-family: Arial;
  font-size: 12px;
  letter-spacing: 1.5px;
}

.location {
  font-size: 12px;
  letter-spacing: 1.5px;
  padding-bottom: 3px;
}

.element-title p {
  font-family: Otto-Regular;
  font-size: 20px;
  line-height: 25px;
  border-top: 1px dashed #442497;
  padding-top: 3px;
}

.information p {
  font-family: Otto-Regular;
}

.information {
  font-size: 12px;
  letter-spacing: 1.5px;
  border-bottom: 1px dashed #442497;
  padding-bottom: 3px;
}

.section-hover-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 75%;
  max-height: 75%;
  width: auto;
  height: auto;
  object-fit: contain;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.section-hover-img.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav {
  display: none;
}

/* Default States */
.mobile-nav {
  display: none;
}

.close-nav.desktop-only {
  display: none;
}

#mobileMenuNav {
  display: none;
}

.mobile-element-img {
  display: block;
  max-height: 250px;
  width: 100%;
  height: 250px;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  margin-bottom: 10px;
}

.mobile-element-img-border {
  display: none;
}

.mobile-x {
  display: none;
}

@media (max-width: 769px) {
  /* Mobile Navigation */

  .credits-desktop {
    display: none;
  }

  .mobile-nav {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 15px;
    background: none;
    border: none;
    padding: 0;
    z-index: 201;
    cursor: pointer;
  }
  .mobile-nav span,
  .mobile-nav::before,
  .mobile-nav::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #442497;
    transition: all 0.2s;
  }
  .mobile-nav::before {
    top: 0;
  }
  .mobile-nav span {
    top: 50%;
    transform: translateY(-50%);
  }
  .mobile-nav::after {
    bottom: 0;
  }
  body.mobile-menu-open .mobile-nav {
    height: 20px;
  }
  body.mobile-menu-open .mobile-nav::before {
    top: 9px;
    transform: rotate(45deg);
  }
  body.mobile-menu-open .mobile-nav span {
    opacity: 0;
  }
  body.mobile-menu-open .mobile-nav::after {
    bottom: 9px;
    transform: rotate(-45deg);
  }

  /* Mobile Menu */
  #mobileMenuNav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(white, #d9d3ea);
    z-index: 150;
  }
  body.mobile-menu-open #mobileMenuNav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }
  body:not(.mobile-menu-open) #mobileMenuNav {
    display: none;
  }

  /* Title in Mobile Menu */
  #mobileMenuNav .title {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin-top: 10px;
  }

  /* Bio and Contact Visibility */
  .bio,
  .contact {
    display: block;
  }
  body.mobile-menu-open .bio,
  body.mobile-menu-open .contact {
    display: none;
  }
  body:not(.mobile-menu-open) .bio,
  body:not(.mobile-menu-open) .contact {
    display: block;
  }

  /* Mobile Menu List */
  #mobileMenuNav ul {
    list-style: none;
    padding-bottom: 20px;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
  }
  #mobileMenuNav ul li {
    margin: 20px 0;
  }
  #mobileMenuNav ul li a {
    font-size: 20px;
    text-decoration: none;
    color: #442497;
  }

  /* Panel Layout */
  .homepage .panel-right {
    display: none !important;
  }
  .homepage .panel-left {
    width: 100% !important;
  }
  .section .panel-left {
    display: none;
  }
  .section .panel-right {
    width: 100%;
  }
  .panel-left :nth-child(1) {
    order: 3;
  }
  .panel-left :nth-child(3) {
    margin-top: auto;
    order: 2;
    padding-bottom: 10px;
  }

  /* Title */
  .title {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    order: 0;
    text-align: center;
    align-items: center;
  }

  /* Contact */
  .contact :nth-child(3) {
    display: none;
  }

  /* Close Button */
  .close-nav {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    z-index: 201;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
  }
  .close-nav::before,
  .close-nav::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #442497;
  }
  .close-nav::before {
    transform: rotate(45deg);
  }
  .close-nav::after {
    transform: rotate(-45deg);
  }

  /* Mobile Element Image */
  .mobile-element-img {
    display: block;
    max-height: 250px;
    width: 100%;
    height: 250px;
    background-size: contain;
    background-position: left center;
    background-repeat: no-repeat;
    margin-bottom: 10px;
  }

  .mobile-element-img-border {
    display: block;
    width: 100%;
    height: 1px;
    border-top: 1px dashed #442497;
    margin-bottom: 10px;
  }

  /* Mobile X Button */
  .mobile-x {
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    z-index: 201;
    cursor: pointer;
    padding: 0;
    text-indent: -9999px;
  }
  .mobile-x span,
  .mobile-x::before,
  .mobile-x::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #442497;
    transition: all 0.2s;
  }
  .mobile-x::before {
    top: 9px;
    transform: rotate(45deg);
  }
  .mobile-x span {
    opacity: 0;
  }
  .mobile-x::after {
    bottom: 9px;
    transform: rotate(-45deg);
  }
  .last-element {
    margin-bottom: 100px;
  }
}

@media (min-width: 770px) {
  /* Desktop Navigation */
  .close-nav.desktop-only {
    display: block;
    position: fixed;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    z-index: 201;
    cursor: pointer;
    padding: 0;
    text-indent: -9999px;
  }
  .close-nav.desktop-only::before,
  .close-nav.desktop-only::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #442497;
  }
  .close-nav.desktop-only::before {
    transform: rotate(45deg);
  }
  .close-nav.desktop-only::after {
    transform: rotate(-45deg);
  }

  /* Mobile Menu */
  #mobileMenuNav {
    display: none !important;
  }

  /* Section Hover Image */
  .section-hover-img {
    opacity: 0;
    display: block;
  }
  .element[data-img]:hover ~ .section-hover-img[data-img] {
    opacity: 1;
  }

  /* Panel Left */
  .panel-left {
    position: relative;
  }

  /* Mobile Element Image */
  .mobile-element-img {
    display: none !important;
  }

  /* Mobile X Button */
  .mobile-x {
    display: none !important;
  }
}

html,
body {
  overscroll-behavior: none; /* Prevent scroll chaining (default to parent) */
  overflow-y: auto; /* Allow vertical scroll */
  height: 100%;
}
