/* STYLE MODAL GENERAL */
.modal_zone{
    background-color: rgba(0, 0, 0, 0.4);

    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal_zone .modal{
    background-color: var(--bg);
    border-radius: 0.8rem;
    box-shadow: 0.8rem 0 1.6rem rgba(0, 0, 0, 0.25);
    color: var(--gray);
    font-size: 1.1rem;
    padding: 1.6rem;
    max-width: 80%;
    min-width: 30%;
    min-height: 25%;

    display : flex;
    flex-direction: column;
    justify-content : center;
    align-items: center;
    gap: 2rem;
}

.modal_button{
    background-color: var(--bg);
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 600;

    border: thick double var(--primary);
    border-radius: 0.4rem;
    cursor: pointer;
    padding: 0.4rem 1.5rem;

    transition: color 1.5s ease-in;
    animation: bounce 4s infinite;
    position: relative;
}

.modal_button::after{
    content: '';
    position: absolute;
    z-index: -1;
    background-color: var(--primary);
    transition: all 1.5s;
    
    width: 0;
    height:100%;
    left: 0;
    top: 0;
}

.modal_button:hover{
    color: var(--white);
}

.modal_button:hover::after{
    width: 100%;
}

.modal_zone[hidden]{
    display: none;
}


/* MODAL RESULT */
.modal_text{
    font-size: 1.8rem;
    text-align: center;
}

.modal_div_buttons{
    display : flex;
    justify-content : center;
    align-items: center;
    gap: 2rem;
}


/* MODAL RULES */
h2{
  color: var(--primary);
}

.sub_rules strong::before{
  content: "";
  display: inline-block;
  margin: 0 .5rem 0 1.8rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.1rem;
}

.sub_rules li:nth-child(1) strong::before{
  background-color: var(--great);
}

.sub_rules li:nth-child(2) strong::before{
  background-color: var(--wrong);
}

.sub_rules li:nth-child(3) strong::before{
  background-color: var(--absent); 
}

.strong_title, ::marker{
  font-size: 1.3rem;
  color: var(--primary);
}

.rules{
    list-style: decimal;
    list-style-position: inside;
}

ol > li{
  padding-bottom: 1rem;
}

@keyframes bounce{
  5%,
  50% {
    transform: scale(1);
  }
  10% {
    transform: scale(1);
  }
  15% {
    transform: scale(1);
  }
  20% {
    transform: scale(1) rotate(-5deg);
  }
  25% {
    transform: scale(1) rotate(5deg);
  }
  30% {
    transform: scale(1) rotate(-3deg);
  }
  35% {
    transform: scale(1) rotate(2deg);
  }
  40% {
    transform: scale(1) rotate(0);
  }
}