@import url("https://fonts.googleapis.com/css2?family=Luckiest+Guy&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Quicksand:wght@300..700&family=Rubik+Doodle+Shadow&display=swap");

* {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: Quicksand, sans-serif;
}

.bg-home {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: url("../images/wall-1.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(5px);
  z-index: -2;
  pointer-events: none;
}

.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(171, 239, 253, 0.3);
  z-index: -1;
  pointer-events: none;
}

.newsletterContainer {
  background-color: #ffedfa;
  position: relative;
  z-index: 0;
}

/********************************  Nav Menu  ********************************/

#navigation-bar nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fcbfc7;
  padding: 1.5rem 4rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 2rem auto;
}

.home #navigation-bar nav {
  background-color: #fcbfc7;
}

.characters #navigation-bar nav,
.episodes #navigation-bar nav,
.quotes #navigation-bar nav,
.newsletter #navigation-bar nav {
  background-color: #fcbfc7;
}

#menu-container ul.menu {
  display: flex;
  list-style: none;
  gap: 5rem !important;
  margin: 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

#menu-container ul.menu li.menu-item a {
  text-decoration: none;
  color: #434242;
  font-weight: bold;
  transition: color 0.3s ease;
}

#menu-container ul.menu li.menu-item a:hover {
  color: #00a4fc;
}

#menu-container ul.menu li.menu-item.active a {
  color: #00a4fc !important;
  font-weight: bold !important;
  pointer-events: none;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 0.5;
  cursor: pointer;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.logo .top-text,
.logo .bottom-text {
  font-size: 2rem;
  font-family: "Luckiest Guy", cursive;
  font-weight: 550;
  color: #f8db27;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  -webkit-text-stroke: 1.5px #0392dd;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.logo:hover {
  transform: scale(1.15);
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}

/********************************  Main Section  ********************************/

#info-box {
  background-color: #ffedf3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 3rem auto 0 auto;
  max-width: 1200px;
  min-height: 450px;
  position: relative;
}

#textContent {
  flex: 1;
  max-width: 550px;
}

#textContent h1 {
  font-size: 2.5rem;
  margin-bottom: 2.3rem;
  font-family: "Quicksand", sans-serif;
  color: #434242;
}

#textContent p {
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 2.3rem;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #434242;
}

#Btns {
  display: flex;
  gap: 1.3rem;
  margin-top: 1.5rem;
  margin-left: -5px;
}

.svg-btn {
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s ease;
}

#image {
  flex: 1;
  display: flex;
  justify-content: center;
}

#image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.rotationButton {
  position: absolute;
  right: 1.5rem;
  top: 100%;
  transform: translateY(-50%);
  z-index: 10;
}

.rotationButton button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #ffda03;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #434242;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.rotationButton button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  color: #ffedf3;
  background-color: #0392dd;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  25% {
    transform: scale(1.15);
  }
  50% {
    transform: scale(0.9);
  }
  75% {
    transform: scale(1.1);
  }
}

.rotationButton button {
  animation: heartbeat 1.5s infinite ease-in-out;
  transform-origin: center;
}

.border-svg {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
  pointer-events: none;
}

.border-svg circle {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: spin 2s linear infinite;
}

/********************************  Newsletter Section  ********************************/

.flip-card-back {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  gap: 5rem;
  flex-wrap: wrap;
  height: 100%;
  box-sizing: border-box;
}

.flip-card-back .newsletter {
  flex: 2;
  width: 100%;
  max-width: 700px;
  background-color: white;
  color: #434242;
  padding: 1rem 2rem;
  border-radius: 18px;
}

.flip-card-back .newsletter h2 {
  font-size: 2.3rem;
  margin-bottom: 2.5rem;
  font-family: "Quicksand", sans-serif;
}

.flip-card-back .newsletter p {
  font-size: 1.02rem;
  line-height: 1.9;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #434242;
  margin-bottom: 1.6rem;
}

.newsletter-input-wrapper {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.6rem;
  align-items: center;
}

.newsletter-input-wrapper input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 3px solid #0392dd;
  border-radius: 8px;
  outline: none;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.newsletter-input-wrapper #subBtn {
  flex: 0 0 240px;
}

#subscribeIMG {
  flex: 0 0 300px;
  display: flex;
  justify-content: center;
}

#subscribeIMG img {
  max-width: 200%;
  height: auto;
  margin-right: 6.5rem;
}

/******************************** Popup Section  ********************************/

.popup-message {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(50px);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

.popup-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.popup-message.error {
  background-color: #ff4444;
}

.popup-message.success {
  background-color: #78c841;
}

.newsletter-input-wrapper input {
  transition: border-color 0.3s ease;
}

/********************************  Footer Section  ********************************/

footer {
  background-color: #0392dd;
  text-align: center;
  padding: 1rem 1rem;
  font-family: "Poppins", sans-serif;
  color: #0f0e0e;
  margin-top: 3rem;
}

footer .icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

footer .icons a i {
  font-size: 1.3rem;
  color: #ffedfa;
  transition: transform 0.2s ease, color 0.2s ease;
}

footer .icons a i:hover {
  transform: scale(1.2);
  color: #ffd900;
}

footer p {
  margin: 0;
  font-size: 1rem;
  font-weight: 580;
  color: #ffedf3;
}

/*******************************  Responsive Design  ********************************/

#hamburger,
#close-menu {
  all: unset;
  cursor: pointer;
  color: #434242;
  font-size: 1.7rem;
  transition: color 0.3s ease;
  z-index: 10002;
}

#hamburger:hover,
#close-menu:hover {
  color: #0392dd;
}

#menu-container ul.menu {
  display: flex;
  gap: 2rem;
}

#hamburger,
#close-menu {
  display: none;
}

/********************************  Responsive Design Start Here  ********************************/

@media screen and (max-width: 768px) {
  #menu-container ul.menu {
    display: none;
  }

  #hamburger {
    display: block;
    z-index: 10003;
    position: relative;
    top: -0.1rem;
    left: 10rem;
  }

  #close-menu {
    display: none;
    position: fixed;
    top: 3rem;
    right: 5rem;
    font-size: 1.7rem;
    color: #434242;
    cursor: pointer;
    z-index: 10003;
  }

  #dropdown-container {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 35%;
    height: 100vh;
    background-color: #fcbfc7;
    padding: 5rem 2rem 2rem 2rem;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    flex-direction: column;
    overflow-y: auto;
  }

  #dropdown-container.dropdown {
    display: flex;
  }

  #dropdown-container ul.menu {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
    font-weight: bold;
  }

  #dropdown-container ul.menu li.menu-item a {
    text-decoration: none;
    color: #434242;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;
  }

  #dropdown-container ul.menu li.menu-item:not(.active) a:hover {
    color: #0392dd;
  }

  #dropdown-container ul.menu li.menu-item.active a {
    color: #0392dd !important;
    font-weight: bold !important;
    pointer-events: none;
  }

  /********************************  Responsive Design Content  ********************************/

  #info-box {
    padding: 2rem 3rem;
    gap: 3rem;
  }

  #textContent {
    flex: 1;
    max-width: 310px;
  }

  #textContent h1 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    max-width: 330px;
  }

  #textContent p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.3rem;
    width: 330px;
    text-align: left;
  }

  #image img {
    margin-left: 3rem;
    margin-bottom: 3rem;
    margin-right: 3rem;
    max-width: 100%;
    height: 200px;
    border-radius: 6px;
  }

  .svg-btn {
    max-width: 185px;
  }

  #Btns svg text {
    font-size: 1rem;
  }

  .rotationButton {
    right: 2rem;
    top: 130%;
  }

  .rotationButton button {
    font-size: 18px;
  }

  /********************************  Responsive Newsletter Section  ********************************/

  .flip-card-back {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 2rem 0rem;
    gap: 1rem;
    margin-left: -2.7rem;
  }

  .flip-card-back .newsletter {
    flex: 1 1 30%;
    max-width: none;
    padding: 1rem 1.5rem;
    margin-left: 1rem;
  }

  .flip-card-back .newsletter h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .flip-card-back .newsletter p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .newsletter-input-wrapper {
    flex-direction: row;
    gap: 0.8rem;
    align-items: center;
  }

  .newsletter-input-wrapper input {
    max-width: 180px;
    padding: 0.3rem 0.8rem;
    font-size: 0.9rem;
    border: 2px solid #0392dd;
    border-radius: 6px;
  }

  .newsletter-input-wrapper #subBtn {
    flex: 0 0 auto;
  }

  #subscribeIMG {
    flex: 0 0 35%;
    display: flex;
    justify-content: flex-end;
    padding-bottom: 20px !important;
    margin-top: 50px;
    align-self: flex-start;
  }

  #subscribeIMG img {
    max-width: 150%;
    height: 200px;
    margin-right: -30px;
  }
}
