/*@import url("https://use.typekit.net/igu0exu.css");*/
@import url("https://use.typekit.net/vfb2qfv.css");

/* @font-face {
  font-family: 'Minion Pro';
  src: url('/exhibits/wwii/fonts/MinionPro-Regular.otf') format("opentype");
  font-weight: normal;
  font-style: normal;
} */

:root {
  --background: #ddd;
  --text: #222;
  --darkblue: #2F5363;
  --purple: #5B1860;
  --yellow: #EEB111;
  --orange: #C65537;
  --body: 'trade-gothic-next', sans-serif;
  --header: 'Abolition', sans-serif;
  --transition: .2s ease-in-out;
  --radius: 5px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
}

* {
  max-width: 100vw;
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--background);
  /* or any background color you prefer */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* Make sure it's on top of everything */
  transition: opacity 0.5s ease-out;
  /* Fade-out transition */
  opacity: 1;
  /* Fully visible */
}

/* Hide the preloader once the page has fully loaded */
body.loaded #preloader {
  opacity: 0;
  /* Fade out */
  pointer-events: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--background);
  padding: 0;
  margin: 0;
  height: 100%;
  font-family: var(--body);
  font-size: 18px;
  transition: .3s;
  color: var(--text);
}

html::-webkit-scrollbar {
  width: 16px;
  border-radius: 1000px !important;
}

html::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 1000px !important;
  /* box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); */
}

html::-webkit-scrollbar-thumb {
  background: #555;
  border: 4px solid var(--background);
  border-radius: 1000px !important;
}

body {
  overflow-y: scroll;
}

a {
  color: var(--darkblue);
}

/* Fade-out effect for the page content */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

body.fade-out {}

/* Ensure that the content remains hidden after transition */
body.fade-out * {
  transition: opacity 0.3s ease-out;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--header);
  text-transform: uppercase;
  margin: 0;
  font-weight: 500;
  line-height: 1;
}

h2 {
  font-size: 2em;
}

hr {
  width: 100%;
  margin: 1rem 0;
}

button {
  border: none;
  border-radius: 99px;
  padding: .75rem 1.5rem;
  /* font-family: var(--header); */
  font-weight: 700;
  /* font-size: 1.2em; */
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
}

.banner {
  width: 100%;
}

.banner img {
  width: 100%;
}

nav {
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  top: 0;
  padding: 1rem 2rem;
  z-index: 999;
  background: var(--darkblue);
  color: white;
  /* font-family: var(--header); */
  /* font-size: 1.5em; */
  transition: var(--transition);
}

nav #main-nav {
  display: flex;
  margin: 0;
}

nav #mobile-nav {
  display: none;
}

#mobile-menu {
  position: absolute;
  background: white;
  height: 100%;
  width: 100%;
  z-index: 999;
  top: 0;
}

#mobile-menu {
  font-size: 1.5em;
  display: flex;
}

#mobile-menu a {
  font-weight: bold;
  color: black;
  text-decoration: none;
}

#mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: .5rem 0;
  list-style-type: none;
  padding-left: 0;
}

#mobile-menu>ul {
  height: 100%;
  display: flex;
  justify-content: center;
  width: fit-content;
  margin: auto;
}

#mobile-menu ul ul {
  padding-left: 2rem !important;
}

#mobile-menu #close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5em;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

nav.scrolled {
  background: white;
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--box-shadow);
  width: calc(100vw - 2rem);
  margin: .5rem;
  padding: .5rem 2rem;
}

nav.scrolled a {
  color: var(--text);
}

nav.scrolled a.current {
  background-color: rgba(0, 0, 0, .1);
  color: var(--text);
}

nav #logo {
  width: 200px;
}

nav.scrolled #logo {
  width: 150px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: .5rem;
  border-radius: var(--radius);
  transition: var(--transition);
}

nav.scrolled a {
  padding: .5rem .75rem;
}

nav .right a:hover {
  background: var(--orange);
  color: white;
}

a.current {
  background: rgba(255, 255, 255, .1);
  color: white;
}

nav .right {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  align-items: flex-end;
}

nav.scrolled .right {
  gap: 0;
}

nav .right .title {
  font-size: 1.2em;
  font-style: oblique;
  margin: 0;
  font-family: var(--header);
  font-weight: 400;
  font-size: 1.5em;
  letter-spacing: 1.5px;
}

nav.scrolled .right .title {
  font-size: 1.1em;
}

nav .right>ul {
  display: flex;
  gap: .25rem;
  list-style-type: none;
  padding: 0;
  font-weight: 700;
}

nav ul li {
  position: relative;
}

nav ul li a {
  text-decoration: none;
  display: block;
}

/* Dropdown styles */
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu li {
  width: 200px;
}

.submenu li a {
  padding: 10px;
  display: block;
  text-decoration: none;
  color: black !important;
  background-color: white;
}

/* Show the submenu on hover */
.dropdown:hover .submenu {
  display: block;
}

/* Optional: Dropdown item hover effects */
.submenu li a:hover {
  background-color: #eee;
}

main {
  margin-top: 122px;
  line-height: 1.5;
  padding-bottom: 10vh;
}

section:not(.hero) {
  width: 1200px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

section.hero {
  background: var(--darkblue);
  display: flex;
  height: calc(100vh - 122px);
  position: relative;
}

#mobile-hero-img {
  display: none;
  padding-bottom: 56.25%;
  background: url('/exhibits/wwii/img/images/web-wwii-hero.jpg');
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
}

section.hero .text h1 {
  font-size: 5em;
  margin: 0;
}

section.hero .text h1 .small {
  font-size: .4em;
  letter-spacing: 5px;
}

section.hero .text h1 span {
  font-size: .62em;
  display: block;
}

section.hero>.text {
  flex-basis: 50%;
  min-width: 50%;
  max-width: 50%;
}

section.hero>.blank {
  flex-basis: 50%;
  min-width: 50%;
  max-width: 50%;
}

section.hero .text button {
  background: var(--orange);
  color: white;
  width: 60px;
  height: 60px;
  font-size: 1.7rem;
  margin-top: 20px;
  padding: 0;
  font-weight: 800;
}

section.hero .text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem;
  padding-right: 15rem;
  background: rgb(13, 70, 106);
  background: linear-gradient(90deg, #2F5363 0%, rgba(47, 83, 99, .7) 85%, rgba(47, 83, 99, 0) 100%);
  color: white;
}

section.hero {
  background-image: url('/exhibits/wwii/img/images/web-wwii-hero.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

section.img-text-overlap {
  padding: 8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1200px;
}

section.img-text-overlap>* {
  flex-basis: 50%;
  min-width: 50%;
  max-width: 50%;
}

section.img-text-overlap img {
  max-width: 100%;
}

section.img-text-overlap div.text {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  height: fit-content;
  padding: 3rem;
  background: white;
  z-index: 1;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--box-shadow);
}

section.img-text-overlap.img-left div.text {
  margin-left: -10%;
}

section.img-text-overlap.img-right div.text {
  margin-right: -10%;
}

section.img-text-overlap div.text h2 {
  margin: 0;
  color: var(--darkblue);
}

section.img-text-overlap button {
  background: var(--orange);
  color: white;
  width: fit-content;
}

section.img-text-overlap button:hover {
  color: white;
  background: var(--text);
  transform: scale(1.1);
}

.bounce {
  animation: bounce 2s infinite;
}

.bounce:hover {
  animation: none;
  transform: scale(1.1);
  /* Optional: scale up the element on hover */
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-20px);
  }

  90% {
    transform: translateY(-10px);
  }
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 2rem;
}

/*Collections*/
.collection {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
}

.collection>* {
  flex: 1;
}

.collection__img {
  border-radius: var(--radius);
  padding-bottom: 50%;
  background-color: black;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.collection__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
}

.collection__content h3 {
  color: var(--darkblue);
}

.collection__content h4 {
  font-family: trade-gothic-next, sans-serif;
  font-weight: 700;
  /* font-style: oblique; */
}

.collection__content__scroll {
  max-height: 300px;
  overflow-y: auto;
  margin: 1rem auto;
  padding-right: 1rem;
}

.collection__content__scroll::-webkit-scrollbar {
  width: 16px;
  border-radius: 1000px !important;
}

.collection__content__scroll::-webkit-scrollbar-track {
  background: var(--background);
  border-radius: 1000px !important;
  /* box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3); */
}

.collection__content__scroll::-webkit-scrollbar-thumb {
  background: #555;
  border: 4px solid var(--background);
  border-radius: 1000px !important;
}

.collection__content h3 {
  font-size: 2em;
  margin-bottom: 1rem;
}

.collection button {
  background: var(--orange);
  color: white;
}

.collection button:hover {
  background: black;
  color: white;
  transform: scale(1.1);
}

.sub-collection {
  padding: 2rem 0;
}

.sub-collection h5 {
  font-size: 1.2em;
}

@media screen and (max-width: 1400px) {
  section.hero>.text {
    flex-basis: 75%;
    min-width: 75%;
    max-width: 75%;
  }

  section.hero>.blank {
    flex-basis: 25%;
    min-width: 25%;
    max-width: 25%;
  }
}

/* Tablet View (max-width: 1024px) */
@media (max-width: 1700px) {
  main {
    margin-top: 88px !important;
  }

  h1 {
    font-size: 5em !important;
  }

  nav .title {
    display: none;
  }

  nav #main-nav {
    display: none;
  }

  nav #mobile-nav {
    display: block;
  }

  #mobile-nav {
    font-size: 1.5em;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
  }

  nav {
    padding: 0.75rem 1.5rem;
  }

  nav.scrolled {
    padding: 0.25rem 1.5rem;
  }

  nav #logo {
    width: 150px;
  }

  nav.scrolled #logo {
    width: 120px;
  }

  nav .right {
    gap: 0.25rem;
  }

  nav .right>ul {
    flex-direction: column;
    align-items: flex-end;
  }

  #mobile-hero-img {
    display: block;
  }

  section {
    max-width: 100%;
  }

  section.hero {
    height: fit-content;
  }

  section.hero>.text {
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 2rem;
  }

  section.hero {
    width: 100%;
    background: var(--darkblue);
  }


  section.hero .blank {
    display: none;
  }


  section.hero .text h1 {
    font-size: 3em;
  }

  section.hero .text h1 .small {
    font-size: 0.4em;
  }

  section.hero .text {
    padding: 4rem;
  }

  section.hero .img {
    display: none;
    /* Hide image on smaller screens */
  }

  section.img-text-overlap {
    flex-direction: column;
    padding: 4rem 1rem;
  }

  section.img-text-overlap>* {
    min-width: 100%;
    max-width: 100%;
  }

  section.img-text-overlap div.text {
    margin: 0;
  }

  section.img-text-overlap {
    flex-direction: column;
    padding: 2rem 1rem;
  }

  section.img-text-overlap.img-right {
    flex-direction: column-reverse;
  }

  section.img-text-overlap.img-left div.text {
    margin-left: 0;
  }

  section.img-text-overlap.img-right div.text {
    margin-right: 0;
  }

  section:not(.hero) {
    padding: 2rem 1rem;
  }

  .collection {
    flex-direction: column;
  }

  .collection__img {
    padding-bottom: 100%;
  }

  .collection__content {
    padding: 1.5rem;
  }
}

/* Mobile View (max-width: 768px) */
@media (max-width: 768px) {

  main {
    margin-top: 68px !important;
  }

  h1 {
    font-size: 6em !important;
  }

  nav {
    padding: 0.5rem 1rem;
  }

  nav.scrolled {
    padding: 0.25rem 1rem;
    width: calc(100vw - 1rem);
  }

  nav #logo {
    width: 120px;
  }

  nav.scrolled #logo {
    width: 100px;
  }

  nav .right {
    gap: 0;
  }

  nav .right>ul {
    flex-direction: column;
    align-items: flex-end;
  }

  section.hero .text h1 {
    font-size: 2em;
  }

  section.hero .text h1 .small {
    font-size: 0.3em;
  }

  section.hero .text {
    padding: 2rem;
  }


  section.img-text-overlap>* {
    min-width: 100%;
    max-width: 100%;
  }

  section.img-text-overlap div.text {
    margin: 0;
  }

  section:not(.hero) {
    width: 100%;
    padding: 1.5rem 1rem;
  }

  .collection {
    flex-direction: column;
  }

  .collection__img {
    padding-bottom: 100%;
  }

  .collection__content {
    padding: 1rem;
  }

  button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
}