body.dark-theme {
  background-color: #2c2c2c;
  color: #f5f5f5;
}

h1 {
  font-weight: bold;
}

header,
footer {
  color: black;
}

.theme-btn {
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
}

.theme-btn:hover {
  transform: scale(1.03);
  transition: background-color 0.3s, transform 0.2s;
}

/*Gallery page style*/
#gallery-title,
#gallery-intro,
#gallery-end {
  text-align: center;
}

.gallery-img {
  height: 200px;
  width: 200px;
}

.gallery-img:hover {
  transform: scale(1.1);
  transition: transform 0.3s;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #ff9e9e;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  background-size: 60%, 60%;
}

.carousel-indicators {
  background-color: #ffb6c1;
  border-radius: 10px;
  bottom: -10px;
  width: 50%
}

.carousel-indicators .active {
  background-color: #ff6b6b;
}

#link-img {
  transition: transform 0.3s;
}

/*Playtime page style*/
#play-title,
#play-intro {
  text-align: center;
}

.instruction-btn {
  border: none;
  cursor: pointer;
}

.instruction-btn:hover {
  transition: background-color 0.3s, transform 0.2s;
  transform: scale(1.03);
}

#play-area {
  position: relative;
  border: 2px dashed lightgray;
  overflow: hidden;
  border-radius: 12px;
}

#cat {
  position: absolute;
  width: 130px;
  cursor: pointer;
  border-radius: 50%;
}

#cat:hover {
  transform: scale(1.05);
  transition: transform 0.2s;
}

.star {
  font-size: 27px;
}

/*Adoption form page style*/
#form-title,
#form-intro,
#form-intro2,
#form-end {
  text-align: center;
}

.faq-item {
  border: 1px solid #ffcbcb;
  border-radius: 10px;
  background-color: #fffdf9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  background-color: #ffcbcb;
  border: 1px solid #ffcbcb;
  ;
  border-radius: 10px 10px 0 0;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

.faq-answer {
  display: none;
  transition: opacity 0.3s ease;
}

.faq-item.open .faq-answer {
  display: block;
  opacity: 1;
}

.popup-content {
  background: #fffaf5;
  padding: 25px 30px;
  border-radius: 15px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  margin: auto;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease;
}

.popup.show .popup-content {
  opacity: 1;
  transform: translateY(0);
}

.popup-btn {
  align-self: auto;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  max-width: 300px;
}

.popup-btn:hover {
  color: white;
  transition: background-color 0.3s, transform 0.2s;
  transform: scale(1.03);
}

.close-btn {
  padding-left: 95%;
  font-size: 2rem;
  cursor: pointer;
}

.popup {
  display: none;
  justify-content: center;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 2000;
  overflow-y: auto;
}

.form-custom {
  max-width: 500px;
  align-items: center;
  background-color: #fffdf9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-control {
  font-size: 0.9em;
  border: 1px solid #b81414;
  border-radius: 6px;
}

form .btn {
  align-self: auto;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

form .btn:hover {
  background-color: rgb(155, 249, 3);
  transition: background-color 0.3s, transform 0.2s;
  transform: scale(1.03);
}

.card {
  background: #fffdf9;
  border: 2px solid #ffcbcb;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  width: 100%;
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
}

.card-img[src] {
  opacity: 1;
  transform: scale(1);
}

.card-title {
  color: #ff6b6b;
}

.card-body {
  font-size: 1em;
}

.card .btn {
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.card .btn:hover {
  background-color: #ff6b6b;
  transition: background-color 0.3s, transform 0.2s;
  transform: scale(1.03);
}

.card:hover {
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 575px) {
  body {
    font-size: 1rem;
    transition: font-size 0.3s ease;
  }

  h1 {
    font-size: 2.4rem !important;
    transition: font-size 0.3s ease;
  }

  nav {
    flex-direction: column;
  }

  #theme-toggle {
    max-width: 50%;
    font-size: 0.8em;
  }

  /* Gallery */
  .gallery-img {
    width: 150px;
    height: 150px;
  }

  #gallery-title {
    font-size: 1.8em;
  }

  /* Playtime */
  #show-instructions {
    max-width: 80%;
    font-size: 1em;
  }

  #play-area {
    width: 90%;
    height: 300px;
  }

  #cat {
    width: 100px;
  }

  .star {
    font-size: 1.6em;
  }

  /* Form */
  #faq {
    max-width: 90%;
  }

  .popup-btn {
    max-width: 80%;
    font-size: 1em;
  }

  .form-custom {
    max-width: 80%;
  }
}

@media (min-width: 576px) and (max-width: 992px) {
  body {
    font-size: 1.1rem;
    transition: font-size 0.3s ease;
  }

  h1 {
    font-size: 2.8rem !important;
    transition: font-size 0.3s ease;
  }

  #theme-toggle {
    max-width: 50%;
    font-size: 0.8em;
  }

  /* Gallery */
  .gallery-img {
    width: 200px;
    height: 200px;
  }

  /* Playtime */
  #show-instructions {
    max-width: 80%;
    font-size: 1em;
  }

  #play-area {
    width: 90%;
    height: 350px;
  }

  #cat {
    width: 110px;
  }

  /* Form */
  #faq {
    max-width: 90%;
  }

  .popup-btn {
    max-width: 80%;
    font-size: 1em;
  }

  form {
    max-width: 80%;
  }
}

@media (min-width: 993px) {
  body {
    font-size: 1.2rem;
    transition: font-size 0.3s ease;
  }

  h1 {
    font-size: 3rem !important;
    transition: font-size 0.3s ease;
  }

  #theme-toggle {
    max-width: 50%;
    font-size: 0.8em;
  }

  /* Gallery */
  .gallery-img {
    width: 250px;
    height: 250px;
  }

  /* Playtime */
  #show-instructions {
    max-width: 80%;
    font-size: 1em;
  }

  #play-area {
    width: 90%;
    height: 400px;
  }

  #cat {
    width: 130px;
  }

  .star {
    font-size: 1.8em;
  }

  /* Form */
  .popup-btn {
    max-width: 80%;
    font-size: 1em;
  }
}