/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
   HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */
.site-title {
  font-family: "Molle", cursive;
  font-size: 80px;
  color: #766BFD;
  margin: 0;

  position: absolute;
  top: 20px;
  left: 50vw;
  transform: translateX(-50%);

  white-space: nowrap;
  z-index: 5;
}
.home-subtitle {
  font-family: "Story Script", cursive;
  font-size: 28px;
  color: #766BFD;

  position: absolute;
  top: 115px;
  left: 50vw;
  transform: translateX(-50%);

  text-align: center;
  white-space: nowrap;
  z-index: 5;
}
header {
  height: 130px;
  position: relative;
  display: flex;
  align-items: center;
}
body {
  background-color: #AFF5FE;
  color: #766BFD;
  font-family: "Molle", cursive;
}
.album-title {
  font-family: "Molle", cursive;
  font-size: 38px;
  color: #766BFD;
  margin-left: 20px;
  margin-bottom: 15px;
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: transparent;
}

.album-title:hover {
  background-color: #8adcf0;
  color: #5b50e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.dropbtn {
  background-color: #e8df8d;
  color: #f4a26a;
  font-size: 28px;
  font-family: "Molle", cursive;
  border: none;
  border-radius: 20px;
  padding: 12px 40px;
  cursor: pointer;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff8d6;
  min-width: 220px;
  border-radius: 15px;
  z-index: 20;
}
.dropdown-content a {
  color: #f4a26a;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f7efb4;
}

.dropdown:hover .dropdown-content {
  display: block;
}
.dropdown {
  position: relative;
  display: inline-block;
  z-index: 10;
}

/* Submenu container */
.submenu {
  position: relative;
}

/* The hidden country list */
.submenu-content {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #fff8d6;
  min-width: 220px;
  border-radius: 15px;
  z-index: 30;
}

/* Show countries when hovering About */
.submenu:hover .submenu-content {
  display: block;
}

/* Country link styling */
.submenu-content a {
  color: #f4a26a;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.submenu-content a:hover {
  background-color: #f7efb4;
}

.film-strip {
  display: flex;
  gap: 20px;
  background-color: #222;
  padding: 25px;
  border-top: 15px dotted #111;
  border-bottom: 15px dotted #111;
  width: max-content;
  box-sizing: border-box;

  animation-duration: 10s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

.film-window {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  margin-bottom: 50px;
}

.film-frame {
  flex: 0 0 auto;
  background-color: black;
  padding: 10px;
  width: 180px;
  height: 130px;

  position: relative;
  overflow: visible;
}

.film-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);

  transition: transform 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.film-frame img:hover {
  transform: scale(1.15);
  z-index: 20;
}
.hover-left,
.hover-right {
  position: absolute;
  top: 0;
  width: 20%;
  height: 100%;
  z-index: 3;
  cursor: pointer;
}

.hover-left {
  left: 0;
}

.hover-right {
  right: 0;
}
/* Canada page only - larger film roll */

.country-album .large-frame {
  width: 350px;
  height: 250px;
}

.country-album .film-window {
  width: 100%;
  margin: 0 auto;
}

.country-album .film-strip {
  margin-top: 20px;
  gap: 25px;
}
.country-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-family: "Story Script", cursive;
  font-size: 24px;
  color: #766BFD;
}
.country-page-header {
  height: 50px;
}
.country-title-container {
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

.country-title {
  font-family: "Molle", cursive;
  font-size: 80px;
  color: #766BFD;
  margin: 0;

  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  white-space: nowrap;
  z-index: 5;
}


/* ---------- IMAGE POPUP PREVIEW ---------- */

.film-frame img {
  transition: transform 0.3s ease;
  cursor: pointer;
  display: block;
}

/* Full-screen image popup */

.image-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 99999;
}
.image-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.3s ease;

  z-index: 99999;
}

.image-popup.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.popup-image-container {
  position: relative;
}

.popup-image-container img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.popup-book-button {
  position: absolute;
  bottom: 20px;
  right: 20px;

  width: 55px;
  height: 55px;

  border: none;
  border-radius: 50%;

  background: #fff8d6;
  font-size: 28px;
  cursor: pointer;

  display: none;

  justify-content: center;
  align-items: center;

  z-index: 100;
}

body {
  cursor: url("Images/cursor.png"), auto;
}

/* Background overlay */

.book-popup {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.4);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 9999;
}


/* Open book */

.book {
  display: flex;

  width: 80vw;
  height: 70vh;

  perspective: 1500px;

  animation: openBook 0.6s ease;
}


.book-page {
  width: 50%;
  height: 100%;
  background: #fff8d6;
  padding: 50px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Story Script", cursive;
}


/* Left image page */

.left-page img {

  width: 90%;
  height: 90%;

  object-fit: cover;

  transform: scaleX(-1);
}


/* Right text page */

.right-page p {
  font-family: "Story Script", cursive;
  font-size: 28px;
  line-height: 1.5;
  color: #766BFD;
}


/* Opening animation */

@keyframes openBook {

from {
  transform: rotateY(-40deg) scale(0.7);
  opacity: 0;
}

to {
  transform: rotateY(0deg) scale(1);
  opacity: 1;
}
}
/* ABOUT PAGE */

.about-page {

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;

  max-width: 1000px;
  margin: 40px auto;

}


.about-image img {

  width: 500px;
  height: 650px;

  object-fit: cover;

  border-radius: 30px;

  border: 10px solid #fff8d6;

  filter: grayscale(100%);

}


.about-text {

  max-width: 450px;

  color: #766BFD;

  font-family: "Story Script", cursive;

  font-size: 24px;

  line-height: 1.5;

}


.about-text h2 {

  font-family: "Molle", cursive;

  font-size: 50px;

  margin-top: 0;

}
.about-background {
  background-color: #F6B08C;
}
body.about-page {
  background-color: #F6A08A;
  color: #5B3A70;
}

.explore-page {
  background-color: #CFF3D8;
}

/* ---------------- MOBILE VERSION ---------------- */

@media (max-width: 600px) {

.hover-left,
.hover-right {
  display: none;
}
  /* Header */
  header {
    height: 140px;
  }

  /* Main title */
  .site-title {
    position: relative;
    font-size: 45px;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Subtitle */
  .home-subtitle {
    font-size: 18px;
    top: 90px;
    width: 90%;
    white-space: normal;
  }


  /* Explore button */
  .dropbtn {
    font-size: 18px;
    padding: 8px 20px;
  }


  /* Dropdown */
  .dropdown-content {
    min-width: 180px;
  }


  /* Album titles */
  .album-title {
    font-size: 28px;
    margin-left: 10px;
  }


  /* Film rolls */
.film-window {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.film-strip {
  width: max-content;
  gap: 10px;
  padding: 15px;
  touch-action: pan-x;
}

.film-frame {
  width: 120px;
  height: 90px;
  padding: 6px;
}

.film-frame img {
  pointer-events: none;
}


  /* Country page titles */
  .country-title {
    font-size: 45px;
  }


  /* Descriptions */
  .country-description {
    font-size: 18px;
    padding: 0 20px;
  }


  /* Enlarged image popup */
  .popup-image-container img {
    max-width: 95vw;
    max-height: 70vh;
  }


  /* Book */
  .book {
    width: 95vw;
    height: 70vh;
    flex-direction: column;
  }

  .book-page {
    width: 100%;
    height: 50%;
    padding: 20px;
  }


  .right-page p {
    font-size: 18px;
  }


  /* About page */
  .about-page {
    padding: 20px;
  }

  .about-image img {
    width: 90%;
    height: auto;
  }

}
