.main-categories {
  opacity: 0;
  height: 66vh;
  max-width: 1550px;
  margin: 6% 0 5% 10%;
  color: var(--secondary-color);
  display: grid;
  grid-template-columns: repeat(auto-fill, 195px);
  gap: 1rem 4rem;
  overflow-y: auto;
  transition: opacity 1s ease-in-out;
  transition: 0.8s;
}

.cards-info {
  width: 90%;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cards-text {
  font-size: 18px;
  margin-left: 10px;
}

.cards-score {
  color: #FFBCA2;
}

.cards-pict {
  opacity: 0;
  width: 195px;
  height: 239px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-image: url(./views/img/min/0.jpg);
  cursor: pointer;
  border-radius: 15px;
  transition: opacity 1s ease-in-out;
  transition: 0.8s;
}

.cards-pict-pass {
  background-color: #FFBCA2;
  background-blend-mode: luminosity;
}

.cards-pict:hover {
  transform: scale(1.05);
}

@media (max-width: 420px) {
  .main-categories {
    margin: 30% 0 0 2%;
    grid-template-columns: repeat(auto-fill, 145px);
    gap: 1rem 1rem;
  }
    
  .cards-text {
    font-size: 12px;
  }

  .cards-pict {
    width: 145px;
    height: 164px;
  }
}

/*-----------------Cards Pict------------------------*/

.quiz-block {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  height: 80%;
  color: var(--secondary-color);
  background-color: #000;
  padding: 2%;
}

.quiz-timeline {
  width: 80%;
  height: 3px;
  margin: 1% auto 1% auto;
  background: linear-gradient(to right, #FFBCA2 0%, #FFBCA2 40%, #A4A4A4 40%, #A4A4A4 100%);
}

.quiz-timer {
  text-align:right;
  margin-right: 10%;
  color: #FFBCA2;
}

.quiz-count {
  text-align: center;
  color: #FFBCA2;
}

.quiz-text {
  font-size: 22px;
  text-align: center;
}

.quiz-pict{
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 400px);
  justify-content: center;
  gap: 3% 3%;
  padding: 1% 0 3% 0;
  margin: 0 auto;
}

.quiz-pict-item {
  width: 400px;
  height: 280px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  border-radius: 15px;
  transition: 0.8s;
}

.quiz-pict-item:hover {
  transform: scale(1.04);
}

@media (max-width: 420px) {
  
  .quiz-timeline {
    margin: 5% auto 2% auto;
  }
  .quiz-text {
    font-size: 18px;
  }
  
  .quiz-count {
    margin-top: -4%;
  }
  
  .quiz-pict{
    height: 90%;
    padding: 2% 0 0 0;
    grid-template-columns: repeat(auto-fill, 145px);
    gap: 1% 3%;
  }

  .quiz-pict-item {
    width: 145px;
    height: 164px;
  }
}

/*-----------------Alert------------------------*/

.popup-overlay {
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #000;
  position: fixed;
  opacity: 0.5;
  z-index: 10;
  display: none;
}

.popup-cont{
  width: 60%;
  color: #000;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px #000;
  border-radius: 10px;
  position: absolute;
  margin: 40px 0 0 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  text-align: center;
  display: none;
  position: fixed;
}

.popup-pict {
  margin: 10px auto 10px auto;
  width: 80%;
  height: 40vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  border-radius: 15px;
  transition: 0.8s;
}

.popup-box {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.icono-true {  /* icono-checkCircle */
  width: 60px;
  height: 60px;
  scale: 2;
  border: none;
  color: #000;
  background-color: #3DDA69;
  top: -50px;
  left: 13%;
  position: absolute;
}

.icono-false { /* icono-crossCircle */
  width: 60px;
  height: 60px;
  scale: 2;
  border: none;
  color: #fff;
  background-color: #FF7E7E;
  top: -50px;
  left: 13%;
  position: absolute;
}

.popup-item-name {
  font-size: 28px;
}

.popup-item-text {
  font-size: 20px;
}

.close-popup-btn {
  padding: 0;
  width: 200px;
  height: 50px;
  background: pink;
  font-size: 20px;
  color: #000;
  margin: 5px auto 10px auto;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 00.8s;
}
.close-popup-btn:hover {
  transform: scale(1.05);
}

.display-block {
  display: block;
}

@media (max-width: 420px) {
  .popup-cont{
    width: 80%;
  }
    
  .popup-item-name {
    font-size: 18px;
  }

  .popup-item-text {
    font-size: 14px;
  }

}