
@import url('https://fonts.googleapis.com/css2?family=Signika:wght@300..700&display=swap');
:root{
    --color-primero:#ffffff;
    --color-segundo:#D8DFE8;
    --color-tercero: #fca311;
    --color-cuarto: #e5e5e5;
    --font : 'Signika';
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
    text-decoration: none;
}

body{
    
    width: 100%;
    background-color: var(--color-tercero);
}

.loader{
    
    background-color: rgb(20, 20, 20);
    width: 100%;
    height: 100vh;
    position: fixed;
    opacity: 0.9;

}
.loader-loading{
    margin: 25vh auto;
    
    width: 10rem ;
    height: 10rem;
    border-radius: 50%;
    border: solid 0.5rem rgb(12, 12, 12);
    border-top: dashed 0.5rem rgb(247, 241, 241);
    animation-name: loading;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    
}
@keyframes loading {
    0%{transform: rotate(0deg);}
    100%{transform: rotate(360deg);}
}



main{
    height: auto;
}

.noticias{
    width: 60%;
    margin:auto;

}
.noticias-resumenes{
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    gap: 2rem;
    
    flex-wrap: wrap;
    align-items: center;
}
.noticias-buscador{
    display: flex;
    border-bottom : solid 1px black;
    padding: 1rem 1rem 0;
    font-weight: 600;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}
.noticias-buscador input[type="date"]{
    border: none;
    padding: 0.4rem;
    background-color: var(--color-cuarto);
    font-weight: 700;
    border-radius: 10px;
}
.noticias-buscador input[type="submit"]{
    padding: 0.5rem;
    font-weight: 700;
    border-radius: 1rem;
    background-color: transparent;
    border: 1px solid black;
}

input[type="submit"]:hover{
    background-color: var(--color-cuarto);
    outline: 1.5px solid black;
    cursor: pointer;
}
input[type="submit"]:active{
    background-color: transparent;
}


.error{
    
    width: 80%;
    height:40vh;
    padding: 1rem 0;
    margin: 22vh auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    

}
.error p{
    margin-top: .5rem;
    font-weight: 800;
    text-shadow: 1px 1px 15px black;
}
.error img{
    animation-name: caida;
    animation-duration: 1s;
    animation-direction: alternate;
    animation-iteration-count: infinite;
    

}
@keyframes caida{
    0%{
        transform: translateY(-5%);

    }
    100%{transform:translateY(3%);}


}


.resumen{
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background-color: var(--color-segundo);
    border-radius: 1rem;
    width: 40%;
    height: 25vh;
    box-shadow: 0 0 20px 0 rgb(68, 66, 66);
    
    text-align: center;
    font-weight: 400;
    padding:1rem;
    
    flex-grow: 1;
}
.resumen p{
   
    overflow:auto;
    word-wrap:break-word;
}
.resumen a{
    list-style: none;
    text-decoration: none;
    margin: 0.5rem;
    color:black;
    font-weight: 600;
    border-radius: 10px;
    border: solid black; 
}
.resumen a:hover{
    border-color: var(--color-tercero);
    transition: all 0.4s;
}

.resumen:hover {
    box-shadow: 0 2px 12px black;
}

footer{
    margin: 0;
    width:100%;
    padding: 2rem;
    background-color: black;
    color: var(--color-primero);
   
}

footer a{
    color:var(--color-tercero);
}

@media(max-width:1000px){
    .resumen{
        height: 15dvh;
    }
} 

@media(max-width:550px){
    .noticias{
        width:80%
    }
    .resumen{
        width:100%;
        height: auto;
    }
    section{
        flex-direction: column;
        justify-content: space-between;
    }
}



@media ( max-width : 350px){
    body{
        font-size: 0.7rem;
    }
    .container{
        width:80%
    }
    .resumen{
        width:100%;
        height: auto;
    }
    section{
    
        flex-direction: column;
        flex-wrap: None;
        
    }
}



