@keyframes showAviso {
    0% {
        top: -16px;
        opacity: 0%;
    }

    100% {
        top: 5%;
        opacity: 100%;
    }
    
}

@keyframes showSectionUpwards{
    0%
    { 
        max-height: 0px;
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }

    100%
    { 
        max-height: 1000px;
        clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
    }
}

@keyframes hideSectionDownwards {
    0%
    { 
        max-height: 1000px;
        clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 0);
    }

    100%
    { 
        max-height: 0px;
        clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
    }
}

@keyframes compressAndShowButtonPrimeraVez {
    0%
    { 
        max-width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        background-color: #3A683D;
    }

    25%
    {
        max-width: 0%;
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }

    75%
    {
        max-width: 0%;
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    

    100%
    { 
        max-width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        background-color: rgba(147, 192, 31, 1);
    }
}

@keyframes compressAndShowButton {
    0%
    { 
        max-width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        background-color: rgba(147, 192, 31, 1);
    }

    25%
    {
        max-width: 0%;
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }

    75%
    {
        max-width: 0%;
        clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    }
    

    100%
    { 
        max-width: 100%;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
        background-color: rgba(147, 192, 31, 1);
    }
}

@keyframes selectedOption {
    0%
    { 
        transform: scale(1);
        background-color: transparent;
        color: black;
    }

    100%
    { 
        transform: scale(1.05);
        background-color: rgba(147, 192, 31, 1);
        color: black;
    }
}

@keyframes deselectedOption {
    0%
    { 
        transform: scale(1.05);
        background-color: rgba(147, 192, 31, 1);
        color: black;
    }
    
    100%
    { 
        transform: scale(1);
        background-color: transparent;
        color: black;
    }

}

@keyframes nuevoRegistroTabla {
    0%
    { 
        opacity: 0;
    }

    100%
    { 
        opacity: 1;
    }
    
}

@keyframes floatingArrowL {
    0%
    { 
        transform: translateX(0px);
    }

    50%
    { 
        transform: translateX(-10px);
    }

    100%
    { 
        transform: translateX(0px);
    }
}

@keyframes floatingArrowR{
    0%
    { 
        transform: translateX(0px);
    }

    50%
    { 
        transform: translateX(10px);
    }

    100%
    { 
        transform: translateX(0px);
    }
}

.seccionVisible {
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%);
    animation: showSectionDownwards 0.6s cubic-bezier(0.7, 0, 1, 1) forwards;
    margin-bottom: 30px;
    padding: 16px;
    overflow: auto;
}

.seccionNoVisible {
    clip-path: polygon(0 0, 100% 0%, 100% 0, 0 0);
    animation: hideSectionUpwards 0.2s linear forwards;
    margin-bottom: 0px;
    padding: 0px;
    /*display: none; /* Added to avoid being considered in overflow */
    overflow: hidden;
}

.seccionNoVisible.primeraVez{
    max-height: 0px;
    clip-path: polygon(0 0, 100% 0%, 100% 0, 0 0);
    margin-bottom: 0px;
    animation: none;
    padding: 0px;
    overflow: hidden;
}

.archivoSubidaSeleccionado.primeraVez{
    animation: compressAndShowButtonPrimeraVez 1.5s cubic-bezier(1, 0, 0, 1) forwards;
}

.archivoSubidaSeleccionadoAnimacion{
    animation: compressAndShowButton 1.5s cubic-bezier(1, 0, 0, 1) forwards;
}

.archivoSubidaSeleccionado{
    background-color: rgba(147, 192, 31, 1);
    padding: 16px;
    cursor: pointer;
    color: black;
    text-wrap: nowrap;
}

.archivoSubidaOriginal, .opcionIndividuoArea
{
    background: #3A683D;
    padding: 16px;
    cursor: pointer;
    color: white;
    text-wrap: nowrap;
    animation-fill-mode: forwards;
}

.opcionIndividuoArea.seleccionada, .opcionRespuestaArchivo.seleccionada
{
    animation: selectedOption 0.5s linear forwards;
}

.opcionIndividuoArea, .opcionRespuestaArchivo, .opcionGestionUsuarios
{
    animation: deselectedOption 0.5s linear forwards;
    background: transparent;
    padding: 16px;
    cursor: pointer;
    color: black;
    text-wrap: nowrap;
    animation-fill-mode: forwards;
    border: 2px solid #3A683D;
}

.opcionIndividuoArea.primeraVez, .opcionRespuestaArchivo.primeraVez
{
    animation: none;
}

#elegirReceptor.oculto
{
    animation: hideSectionUpwards 0.2s linear forwards;
}

#elegirReceptor
{
    animation: showSectionDownwards 0.2s linear forwards;
}

#elegirReceptor.primeraVez
{
    animation: none;
}

tbody#tablaReceptoresAniadidos tr
{
    animation: nuevoRegistroTabla 0.5s linear forwards;
}

.classArrowL
{
    animation: floatingArrowL 2s ease-in-out infinite;
}

.classArrowR
{
    animation: floatingArrowR 2s ease-in-out infinite;
}

.opcionGestionUsuarios
{
    background: transparent;
    padding: 16px;
    cursor: pointer;
    color: black;
    text-wrap: nowrap;
    animation-fill-mode: forwards;
    border: 2px solid #3A683D;
}

.opcionGestionUsuarios.seleccionada
{
    animation: selectedOption 0.5s linear forwards;
}

.opcionGestionUsuarios.primeraVez
{
    animation: none;
}

.avisoDesactivado
{
    max-height: 0px;
    overflow: hidden;
    border-width: 0px;
    animation: none;
}

.avisoActivado
{
    max-height: 1000px;
    overflow: visible;
    border-width: 2px;
    animation: showAviso 0.5s linear forwards;
}