@import url('./../../global.css');


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: fixed;

  z-index: -1;
}

.container-quizz {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 1.8rem;
  width: 100%;
  min-height: 85vh;
}

.container>img {
  filter: brightness(35%);
  pointer-events: none;
}

#level-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.5rem 0 0;
}

#level-header > span {
  font-size: 1rem;
  font-weight: 600;
  margin-left: -1rem;
  min-width: 3.5rem;
}

#level-content {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

#question {
  font-size: 1.5rem;
  text-align: center;
}

#level-buttons {
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  gap: 1rem;
  width: 100%;
  padding: 0;
}

#level-buttons.hidden {
  display: none;
}

#level-buttons li {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 100%;

  background: #000000AF;
  border: 0.2rem solid var(--primary-color);
  border-radius: 50rem;

  padding: .563rem 2rem;
  cursor: pointer;
}

.rate-point { 
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);

  background: transparent;
  border: none;

  box-shadow: none;
  padding: 0;
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
}

.rate-point:hover {
  background: var(--primary-color); 
  border: 0.2rem solid var(--white);
  transform: scale(1.075);
  cursor: pointer;
}

#level-buttons li span {
  color: var(--white);
  font-size: 1.125rem;
  text-align: center;
  width: 100%;
  cursor: pointer;
}

#level-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 160px;
}

#level-loader.hidden {
  display: none;
}

.spinner {
  display: inline-block;
  width: 60px;
  height: 60px;
  background-color: transparent;
  
  border: 5px solid;
  border-radius: 50%;
  border-color: var(--white) transparent transparent transparent;
  animation: spin 1100ms linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#percentage-bar {
  display: flex;
  width: 85%;
  height: 1.15rem;
  border: .125rem solid var(--gray-600);
  border-radius: 50rem;
  box-shadow: inset 0.01rem 0.07rem 0.2rem 0.001rem var(--dark);
  overflow: hidden;
}

#percentage-bar--filled {
  position: relative; 
  display: inline-block;
  width: 0%;
  height: 100%;
  border: 0.2rem solid transparent;
  border-radius: 50rem;
  overflow: hidden;
  transition: 700ms ease-out;
}

#percentage-bar--filled::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
}

#percentage-current {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-500);
  position: relative;
  right: 2.5rem;
}

footer {
  padding: 1rem;
}

footer,
footer a {
  font-size: 1rem;
  text-align: center;
  color: #696969;
}