:root {
  --primary: #5d488a;
  --secondary: #bdafdc;
  --light-1: #f0eaff;
  --light-3: #dbcbff;
  --hover-1: #21163d;
  --hover-2: #cd73c6;

  --maxw: 1500px;
}


::-webkit-scrollbar {
  display: none;
}

* {
  box-sizing: border-box;
}

html {
  background: url('../assets/image/background-pink.png') no-repeat top center fixed;
  background-size: cover;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

body {
  background: transparent;
  height: 100%;
  color: var(--primary);
  background-color: var(--hover-1);
  line-height: 1.6;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1rem;
  font-family: 'Nunito', sans-serif;
}

.grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

/* links */
a {
  color: var(--hover-2);
}

.header a h1,
a:hover {
  opacity: .9;
}

.pink-box a {
  color: var(--secondary);
  font-weight: bold;
  text-decoration: none;
}

/* Menubar */
.header {
  top: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../assets/image/background-purple.png');
  margin: 0 auto 50px auto;
  padding: 10px;
}

.header a {
  padding: 10px 10px;
  color: var(--secondary);
  text-decoration: none;
}

/* footer */
.footer {
  padding: 50px;
  color: var(--secondary);
  font-size: 1rem;
  text-align: center;
  margin-top: 40px;
  background: url('../assets/image/background-purple.png');
}

/* carousel */
.carousel {
  position: relative;
  max-width: 800px;
  height: auto;
  overflow: hidden;
  margin: 40px auto;
}

.image-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.image-container img {
  width: 100%;
  flex-shrink: 0;
  height: auto;
  object-fit: contain;
}

.btn {
  position: absolute;
  top: 50%;
  background: var(--light-3);
  color: var(--hover-1);
  padding: 10px;
  cursor: pointer;
  border: none;
  opacity: 80%;

}

.btn.prev {
  left: 10px;
}

.btn.next {
  right: 10px;
}

.pink-box {
  padding: 15px;
  border-radius: 10px;
  border: 5px dotted;
  text-align: center;
  background-color: rgba(48, 9, 44, 0.5);
  margin: 40px auto 40px auto;
  width: 70%;
}

.pink-box img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* comics */
.comic-card {
  border: 2px dotted var(--primary);
  padding: 1rem;
  color: var(--light-1);
  background-color: var(--hover-1);
  border-radius: 10px;
  text-align: center;
}

.comic-card img {
  width: 100%;
  max-width: 90%;
  max-height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 20px;
}

.comic-card h3 {
  color: var(--hover-2);
  text-transform: uppercase;
  font-size: 1.5rem;
}

.comic-card p {
  color: var(--secondary);
  font-size: 1rem;
}

.comic-card a {
  color: var(--hover-2);
  font-weight: bold;
}

/*qna*/
.qna-container {
  max-width: 70%;
  margin: 0 auto;
}

.qna {
  border-radius: 10px;
  margin: 20px 0;
  position: relative;
  padding: 10px;
  overflow: hidden;
  transition: 0.3s ease;
  color: var(--light-3);
  font-size: 1rem;
  border: 5px double var(--light-3);
  background-color: rgba(48, 9, 44, 0.5);
}

.qna h2 {
  margin: 0 10px 0 0;
  font-size: 1.9rem;
  color: var(--light-3);
  text-align: center;

}

.qna-answer {
  display: none;
  margin: 5px;
  padding: 10px;
  color: var(--light-3);
  border: none;
  border-radius: 10px;
  text-align: center;
}

.qna.active .qna-answer {
  display: block;
}

.qna-toggle {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  font-size: 30px;
  position: absolute;
  top: 20px;
  right: 10px;
  color: var(--light-3);
}

.qna.active {
  display: block;
  color: var(--hover-2);
}

.qna.active .fa-chevron-down {
  transform: rotate(180deg)
}

.qna img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.qna p,
.qna h3 {
  text-align: center;
}

hr {
  border: 1px double var(--primary);
  margin: 20px 0;
}

.section-cut {
  border: 5px dashed var(--light-3);
}

.qna h3 {
  font-size: 1.5rem;
}

/*EXPANDING CARDS*/
.panels {
  display: flex;
  width: 100%;
  background-color: rgba(48, 9, 44, 0.5);
  border: 5px double var(--light-3);
}

.panel {
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  border-radius: 10px;
  cursor: pointer;
  flex: 0.5;
  margin: 1px;
  position: relative;
  transition: flex 0.5s ease-in;
}

.panel.active {
  flex: 15;
}

.panel h3 {
  font-size: 2rem;
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  opacity: 0;
  transition: opacity 0.3s ease-in;
}

.panel.active h3 {
  opacity: 1;
}

/*Misc*/
.button {
  padding: 5px 5px;
  font-size: 1.2rem;
  cursor: pointer;
  background: var(--hover-2);
  color: var(--light-1);
  border: none;
  margin: 20px auto;
  display: block;
  border-radius: 5px;
}

.button:hover {
  background: var(--primary);
}


#gototopbtn {
  position: fixed;
  bottom: 10px;
  right: 20px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid var(--hover-1);
  border-radius: 50px;
  z-index: 99;
  cursor: pointer;
  background-color: var(--primary);
  color: var(--light-1);
}

#gototopbtn:hover {
  font-weight: bold;
  background-color: var(--hover-2);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header {
    flex-direction: column;
    text-align: center;
  }

  .carousel {
    max-width: 100%;
  }

  .qna-container {
    max-width: 90%;
  }

  .comic-card {
    font-size: 0.9rem;
  }

  .comic-card h3 {
    font-size: 1.2rem;
  }

  .pink-box {
    width: 90%;
  }
}

/*Random Facts*/
#fact {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.fact {
  border-radius: 5px;
  padding: 1rem 2rem;
  margin: 0.5rem;
  font-size: 1.5rem;
}

.color1 {
  background-color: var(--hover-2);
  color: var(--light-1);
  border: none;
}

.color2 {
  background-color: var(--primary);
  color: var(--light-1);
  border: none;
}

.color3 {
  background-color: var(--hover-1);
  color: var(--light-1);
  border: none;
}