* {
  box-sizing: border-box;
}
.loading-gif {
  border-radius: 15px;
  width: 900px;
  height: 667px;
}
.opacity {
  opacity: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat";
}

p {
  margin: 0;
  padding: 0;
}

.popup {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 900px;
  height: 667px;
  transform: translate(-50%, -50%) scale(0);
  transition: 200ms ease-in-out;
  border-radius: 25px;
  z-index: 5;
}

.popup.active {
  transform: translate(-50%, -50%) scale(1);
}

#overlay {
  position: fixed;
  opacity: 0;
  transition: 200ms ease-in-out;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

#overlay.active {
  opacity: 1;
  pointer-events: all;
}

.content-wrapper {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, 0.4fr);
  grid-template-rows: repeat(7, 0.3fr);
  gap: 15px;
  padding: 15px;

  font-family: Arial, sans-serif;
}
h2 {
  font-size: 24px;
  background: linear-gradient(
    45deg,
    #745cf2 15%,
    #ff27c4 48%,
    #ffaa24 87%,
    #ffaa24
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-buttons {
  width: 50%;
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(3, 0.35fr);
  grid-template-rows: repeat(3, 0.4fr);
  align-content: center;
  justify-content: center;
  align-items: start;
}

.animated-button-panel {
  padding: 3px;
}

.animated-button {
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: bold;
  color: white;
  background-image: linear-gradient(
    45deg,
    #745cf2 15%,
    #ff27c4 48%,
    #ffaa24 87%,
    #ffaa24
  );
  background-size: cover;
  transform: perspective(500px) rotateX(0deg) rotateY(0deg);
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.close-img {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  right: 1%;
  top: 6%;
  border-radius: 50%;
  position: absolute;
  background: darkgray;
  color: white;
  cursor: pointer;
}

@media (min-width: 701px) and (max-width: 900px) {
  .popup,
  .loading-gif {
    width: 700px;
    height: 560px;
  }
}

@media (max-width: 700px) {
  .popup {
    width: 360px;
    height: 708px;
  }
  .content-wrapper {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .loading-gif {
    width: 360px;
    height: 708px;
  }

  .section-buttons {
    width: 90%;
  }

  h2 {
    font-size: 18px;
  }
  .close-img {
    display: none;
  }
}

/* New Style */
.page-background {
  position: fixed;
  width: 100%;
  height: 100vh;
}

.page-background img {
  width: 100%;
  height: 100%;
}

.main-container {
  display: flex;
  padding-top: 3%;
  padding-bottom: 3%;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.quizzes-container {
  display: grid;
  width: 90%;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(7, 0.3fr);
  gap: 5%;
}

@media (max-width: 769px) {
  .quizzes-container {
    grid-auto-flow: unset;
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.section {
  cursor: pointer;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0px 2px 14px 0px rgba(0, 0, 0, 0.1);
  background-image: url("/images/page/dots.png");
  align-items: center;
  background-size: contain;
  transition: 0.2s ease;
}
.section:hover {
  transform: scale(1.07);
}

.quiz-header {
  padding: 4%;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
}

.section-logo {
  width: 55px;
  height: 55px;
}

.section-name {
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
  background: linear-gradient(
    270deg,
    #ffaa24 -42.44%,
    #ff27c4 33.83%,
    #745cf2 98.8%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  color: var(--gray-gray-800, #1f2937);
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
}

.quiz-buttons-container {
  width: 100%;
  height: 100%;
  display: grid;
  /* grid-auto-flow: column; */
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  /* grid-template-rows: repeat(2, minmax(55px, 1fr)); */
  background-image: url("/images/page/dots.png");
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 3% 4% 3% 3%;
}

.quiz-button {
  height: 50px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  margin-bottom: 10px;
  margin-right: 10px;
  align-items: center;
  gap: 16px;
  border-radius: 8px;
  background: #745cf2;
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  text-transform: capitalize;
  border: none;
  transition: background 0.3s ease;
}

.quiz-button:hover {
  background: #6b4ce0;
}
