/* VARIABLES */

:root{
    --margen: 5px;
}

body{
    overflow: auto;
}

.portada{
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00161E;
    height: 300px;
}

.backdrop{
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.backdrop h1{
    color: white;
    z-index: 2;
}

/* OPCIONES DE NOTICIAS */

.options{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-left: var(--margen);
    margin-right: var(--margen);
    margin-bottom: 20px;
    gap: 10px;
}

.options div{
    padding: .3em;
    cursor: pointer;
    transition: background-color .1s linear 0s;
    border-radius: 5px
}
.options div:hover{
    background-color: #05ADEA;
}

.focus{
    background-color: #007aa7;    
}

/* MAIN */

#pagination{
    display: flex;
    justify-content: center;
    padding: 0 0 20em 0;
}

.botonNoticias{
    padding: 0.7em 5em;
    font-size: 1.2em;
    font-weight: 500;
    background-color: #0EB1E8;
    border: none;
}

.botonNoticias:hover{
    cursor: pointer;
    filter: brightness(1.5);
}

.pagIndicador{
    padding: 0.7em 5em;
    font-size: 1.2em;
    font-weight: 500;
}



/* TEMA CLARO */
.tema-claro .navar *{
    fill: white;
    animation: changeColoronLightMode linear forwards;
    animation-timeline: scroll(root);
    animation-range: 250px 300px;
}
.tema-claro .navar a svg:hover path{
    animation: changeColoronLightModeHover .3s linear both;
}
.tema-claro .navar .tema:hover path{
    animation: changeColoronLightModeHover .3s linear both;
}
.tema-claro .navar a .scroll:hover path{
    animation: changeColoronLightModeHovero .3s linear both;
}
.tema-claro .navar .scroll:hover path{
    animation: changeColoronLightModeHovero .3s linear both;
}
.tema-claro .noticia{
    background-color: white;
    color: black;
}
.tema-claro .options *{
    color: black;
}

.tema-claro .icon-socials{
    fill: white;
}
.tema-claro .userNoticia:hover{
    filter: contrast(150%);
    box-shadow: 4px 10px 12px rgba(0, 0, 0, 0.5);
}

/* TEMA OSCURO */

.tema-oscuro .noticia{
    background-color: black;
    color: white;
}
.tema-oscuro .backdrop{
    backdrop-filter: blur(10px);  background-color: rgba(0, 0, 0, 0.5);
}
.tema-oscuro .options *{
    color: white;
}
.tema-oscuro .card{
    box-shadow: 0px -2px 4px rgba(255, 255, 255, 0.2);
    transition: box-shadow .6s linear 0ms,
    filter .2s linear 0ms,
    scale .2s linear 0ms;
}
.tema-oscuro .card:hover{
    box-shadow: 0px 0px 4px rgba(255, 255, 255, 0.4);
    filter: contrast(150%);
}
.tema-oscuro .card *{
    color: white;
}
.tema-oscuro .card .typenews{
    color: #05ADEA;
}
.tema-oscuro .card .datenews{
    color: gray;
}
.tema-oscuro .logoutNoticia{
    color: white;
}
.tema-oscuro .logoutNoticia:hover{
    color: #05ADEA;
}
.tema-oscuro .userNoticia{
    box-shadow: inset -1px -1px 0px 1px rgba(148, 143, 143, 0.722);
    transition: box-shadow .4s linear 0ms,
    filter .6s linear 0ms;
}
.tema-oscuro .userNoticia:hover{
    box-shadow: inset 0px 0px 0px 1px rgba(148, 143, 143, 1);
    filter: contrast(150%);
}

@keyframes changeColoronLightMode {
    to{
        fill: black;
    }
}
@keyframes changeColoronLightModeHover {
    from{
        fill: white;
    }
    to{
        fill: #05ADEA;
    }
}
@keyframes changeColoronLightModeHovero {
    from{
        fill: black;
    }
    to{
        fill: #05ADEA;
    }
}
