  .hidden{
    display: none;
  }
  #loadingScreen{
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-color: #F3F8FF;
    z-index: 10;
    display: flex;
    justify-content: center; 
    align-items: center;
  }
    .loading{
    position: absolute;
    background-color: #6746D8;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-top: 5px solid #34CC6B;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    z-index: 11;
}

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

@keyframes fadeinfadeout {
    0%   { opacity: 0; } /* Inicio: invisible */
    15%  { opacity: 1; } /* Mitad: totalmente visible */
    80% { opacity: 1; } /* Final: invisible nuevamente */
    100% { opacity: 0; }
}

@keyframes fadein {
    0% { opacity: 0; }
    20% { opacity: 1; }
    100% { opacity: 1; }
  
}

@keyframes fadeout {
    0% { opacity: 1; }
    25% { opacity: 1; }
    100% { opacity: 0; }
}
#darkener.fadingIn{
    animation: fadein 0.8s linear;
}

#globalContainer.fadingIn{
    animation: fadein 0.8s linear;
}

#darkener.fadeout{
    animation: fadeout 0.5s linear;
}

.fadeinfadeout.firework{
    animation: fadeinfadeout 1.6s linear;
}

.firework {
  top: 0;
  left: 0;
  will-change: transform, opacity;
  backface-visibility: hidden;
  image-rendering: crisp-edges;
  object-fit: fill;
}
.firework-container {
  z-index: 9999;
}
#AnimationWrapper
{
    pointer-events: none;
    z-index: 30;
    top: 15%;
    bottom: 40%;
    right: 20%;
    left: 15%;  
    position: fixed;
}
.greenAnimation{
    position: absolute;
    display: none;
}

.redAnimation{
    width: 20%;
    position: absolute;
    display: none;
}

.fadeinfadeout.redAnimation{
    animation: fadeinfadeout 2s infinite;
}

body {
    margin: 0px;
    width: 100%;
    height: 100vh;
    background-color: #F3F8FF;
    overflow: hidden;

}

#darkener {
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    pointer-events: default;
    z-index: 20;
}

#categorieCompleteWrapper{
    border-radius: 2vh;
    width: 50vw;
    height: 65vh;
    display: flex;
    gap: 0px;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    background-color: #D9D9D9;
    padding-left: 1%;
    padding-right: 1%;
    border: 10px solid #321200;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.5);
}
#categorieCompleteTextWrapper{
    height: 20%;
}
#categorieCompleteText{
    font-family: 'Biryani', sans-serif;
    font-weight: 'bold';
    letter-spacing: 0.05em;
    font-size: 4vw;
    margin: 1px;
    text-align: center;
    height: 100%;
}


#feedbackWrapper{
    border-radius: 0.4vh;
    height: 60%;
    width: 100%;
    display: flex;
    flex-direction: row;
    border-top: #9B84EB 6px solid;
    border-bottom: #9B84EB 6px solid;
    position: relative; /* Mantener relative aquí para posicionar la imagen dentro */
}

#feedbackTextWrapper{
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 80%;
    height: 100%;

}

.feedbackTextContainer{
    border-radius: 10px;
    background-color: #97bcb4 ;
    height: 15%;
    width: 90%;
    display: flex;
    gap: 2%;
    align-items: center;
    padding-left: 3%;
}

.feedbackTitle{
    font-size: 1.8vw;
}

.feedbackText{
    font-size: 1.3vw;
    padding-top: 1%;
}

#feedbackImage{
    height: 90%;
    width: 30%;
    aspect-ratio: 1/1;
    object-fit: contain;
}

#finalButtonsWrapper{
    height: 20%;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8vw;
    z-index: 11;
}

.finalButton{
height: 50%;
width: 25%;
border-radius: 1vh ;
border: none;
margin: 2%;
z-index: 12;
font-size: large;
box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
font-weight: bold;

}

.finalButton:active{
    box-shadow: none;
    transform: translate(2px, 2px);
    outline: none;
}


#nextCategoryButton{
    background-color: #34CC6B;
}

#nextCategoryButton:hover{
    background-color: #54EC8B;
}
#mainMenuButton{
    background-color: #CC3434;

}
#mainMenuButton:hover{
    background-color: #EC4444;
}



#happyAstronautWrapper .happyAstronaut {
    height: 100%;
    object-fit: contain;      /* Preserve aspect ratio */
    object-position: bottom right; /* Stick to bottom-right */
    display: block;           /* Remove inline gap */
}

/* Wrapper styling (unchanged but cleaned up) */
#happyAstronautWrapper{
    pointer-events: none;
    z-index: 10;
    bottom: 0%;
    right: 0%;
    position: fixed;
    height: 55%;
    aspect-ratio: 1/1;
}

#confusedAstronautWrapper{
    pointer-events: none;
    z-index: 10;
    bottom: 0%;
    left: 0%;
    position: fixed;
    height: 55%;
    aspect-ratio: 1/1;
}
#confusedAstronautWrapper .confusedAstronaut {
    height: 100%;
    object-fit: contain;      /* Preserve aspect ratio */
    object-position: bottom left; /* Stick to bottom-right */
    display: block;           /* Remove inline gap */
}

#wrapper{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    
}
#topcircles{
    position: fixed;
    top: 0px;
    left: 0px;
    width: 15%;
    aspect-ratio: 1/1;

}
.hamburguerMenu{
    position: fixed;
    top: 0px;
    right: 0px;
    height: 10%;
    aspect-ratio: 1/1;
    display: none;
}
.bottomLimit{
    height: 100px;
    width: 100%;
    background-color: #F3F8FF;

}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
#word{
    font-family: "Kristen ITC";
    font-size: 18vh;
    margin: 0px;
    text-align: center;

}

.visualStimulus{
    width: 100vh;
}


.soundButtonImg{
    position: static;
    width: 100%;
    height: 100%;
}

.buttons{
    position: fixed;
    bottom: 0px;
    left: 0px;
    width: 100%;
    display: none;
    justify-content: space-evenly;
    align-items: center;
    padding-bottom: 5%;

}
.results{

    width:  30vw;
    aspect-ratio: 5/1;
    border-radius: 10px;
    margin-block-end: -3vh;
    opacity: 0.85
}

#warning{
    background-color: #FF4E24;
}
#check{
    background-color: #34CC6B;
}
.progressBarContainer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 8%;
    left: calc(50% - 15vw);

}


progress {
    width: 30vw;
    border: none;
    border-radius: 10px;
  }
  
  /* Estilos específicos por navegador */
  progress::-webkit-progress-bar {
    background-color: #D9D9D9    ;
    border-radius: 10px;

  }
  
  progress::-webkit-progress-value {
    background-color: #70FF5D;
    border-radius: 10px;

  }
  
  progress::-moz-progress-bar {
    background-color: #70FF5D;
    border-radius: 10px;
  }

  .progressBarText{
    font-family: "Arial";
    font-weight: bold;
    font-size: 2vh;
    margin: 1px;
    padding-left: 2%;
  }

  .clickable{
    cursor: pointer;
  }

  .arrowsContainer{
    display: none;
    justify-content: space-between;
    position:absolute;
    top: 50%;
    width: 100%; 
  }
  .arrowLeft{
    margin-left: 5vw;
    height: 4vh;
    aspect-ratio: 1/1;
  }
  .arrowRight{
    margin-right: 5vw;
    height: 4vh;
    aspect-ratio: 1/1;
  }

@font-face {
  font-family: 'Biryani';
  src: url('../../src/fonts/Biryani/Biryani-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Biryani';
  src: url('../../src/fonts/Biryani/Biryani-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Kristen ITC';
  src: url('../../src/fonts/KristenITC/ITCKRIST.TTF') format('truetype');
  font-weight: 500;
  font-style: normal;
}



