@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap");

* {
  box-sizing: border-box;
  font-family: "Rubik", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: #006A71 #f5f5f5;
}

.background-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ebebeb;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.5; 
  z-index: -1; 
}

.parallax-bg {
  position: relative;
  z-index: 1;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.quizCard {
  background-color: #d6fdff !important;
  border: 1px solid #000 !important;
}

.quiz-question {
  color: #144D50 !important;
}

#skipButton {
  background-color: transparent !important;
  color: #144D50 !important;
  border: 1px solid #144D50 !important;
  transition: all 0.2s ease-in-out !important;
}

#skipButton:hover {
  background-color: #ebf6f7 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px #e5fbfc !important;
}

#skipButton:active {
  transform: translateY(1px) !important;
  box-shadow: 0 0 2px rgba(75, 52, 141, 0.2) !important;
}

.rubik {
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* Unified scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
  background-color: #f5f5f5;
}

::-webkit-scrollbar-track {
  background-color: #f5f5f5;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background-color: #3a96f8;
  border: 2px solid #f5f5f5;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #1e70bf;
}

::-webkit-scrollbar-thumb:active {
  background-color: #0f3d5e;
}

@media (min-height: 900px) {
  .maincontainer2 {
    background-size: cover;
    height: 88vh;
    padding-top: 2rem;
  }
  .maincontainer3 {
    background-size: cover;
    height: 87vh;
  }
}

@media (min-height: 700px) and (min-width: 800px) {
  .maincontainer3 {
    background-size: cover;
    padding-top: 2rem;
  }
}

@media (min-height: 1000px) and (min-width: 1024px) {
  .main-content {
    height: 75rem;
  }
}

@media (min-height: 1000px) and (min-width: 1250px) {
  .maincontainer3 {
    background-size: cover;
    height: 87vh;
    padding-top: 9rem;
  }
}

footer {
  flex-shrink: 0;
}

.mobile-menu {
  left: -200%;
  transition: 0.5s;
  z-index: 200;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul li ul {
  display: none;
}

.mobile-menu ul li:hover ul {
  display: block;
}

@media screen and (max-width: 768px) {
  #custom-scrollbar {
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
}

@media screen and (min-width: 769px) {
  #custom-scrollbar {
    overflow-x: hidden;
  }
}

/* Additional styles for table responsiveness */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 8px;
  text-align: left;
}

@media screen and (max-width: 768px) {
  th, td {
    font-size: 14px;
    padding: 6px;
  }
}

.ad-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem 0;
}

.ad-text {
  font-size: 0.58rem;
  color: rgba(0, 0, 0, 0.6);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.loader-container {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}
.loader-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 1rem;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}
.loader-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #105155;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  color: #144D50;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.loader-progress {
  background: linear-gradient(to right, #006A71, #48A6A7);
  animation: progressWidth 3s ease-in-out forwards;
  width: 0%;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.col-div {
    background-color: #E5E5E5;
  }
