@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    font-size: 62.5%;
    font-family: 'Roboto', sans-serif;
}
.header-main {
    background-image: url('https://image.freepik.com/vector-gratis/banner-medico-celulas-virus-abstractos-diseno-globo_1048-12607.jpg');
    background-size: cover;
    background-position: center;
    height: 250px;    
}
.header-logo {
    width: 100%;
    height: 180px;
    display: grid;
    align-content: center;
    justify-content: end;
}
.header-nav {
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
    /* background-color: rgba(255, 255, 255, 0.5); */
    text-align: center;
}
.header-logo a{
    font-size: 4rem;
    text-decoration: none;
    color: white;
    display: inline-block;
    margin: 0 auto;
    background-color: #0b1b44;
    padding: 5px 10px;
    border-radius: 5px;
}
.header-nav a{
    text-decoration: none;
    color: #0b1b44;
    font-size: 1.6rem;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
}

.loading {
    margin: 25px 0;
    text-align: center;
    font-size: 1.6rem;

}

.countries {
    background-color: #dfe7fc;
    display: grid;
    grid-template-areas: 
        "description description description"
        "search search search"
        ;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 15px;
    column-gap: 5px;
    padding: 25px 0;
}

.countries p{
    grid-area: description;
    text-align: center;
    font-size: 1.4rem;
    padding: 20px 10px;
}
.countries .country-item {
    justify-self: center;
}
.countries .country-item a {
    color: #0b1b44;
}

.countries .countries__search{
    justify-self: center;
    grid-area: search;
}
.countries .countries__search input {
    font-size: 1.4rem;
    padding: 10px;
    border-radius: 10px;
    border: none;
    color: #0b1b44;
}
.countries .countries__search button {
    background-color: #0b1b44;
    font-size: 1.2rem;
    padding: 10px;
    color: white;
    border-radius: 10px;
    border: none;
}
.countries .countries__search input:focus {
    outline: none;
}
.countries .countries__search button:focus {
    outline: none;
    color: #0b1b44;
    background-color: #dfe7fc;
    font-weight: bold;
    border: 2px solid #0b1b44;
}
.countries-inner {
    background-color: #dfe7fc;
    width: 100%;
    height: 100vh;
}
.countries-card h2{
    font-size: 2.5rem;
    padding-top: 50px;
    padding-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #0b1b44;
}
.countries-card .fecha{
    padding: 5px;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 3px;
    background-color: #0b1b44;
    color: #dfe7fc;
}
.countries-card .fecha::before {
    content: 'Fecha reporte: ';
}
.countries-card .countries__details{
    text-align: center;
    font-size: 1.6rem;
    margin: 15px 0;
}

.countries-card .countries__details:nth-child(1) h3{
    color: rgb(32, 34, 177);
    font-size: 2rem;
}

.countries-card .countries__details:nth-child(2) h3{
    color: rgb(177, 32, 32);
    font-size: 2rem;
}
.countries-card .countries__details:nth-child(3) h3{
    color: rgb(32, 177, 56);
    font-size: 2rem;
}
.countries-card .countries__details:nth-child(4) h3{
    color: rgb(143, 32, 177);
    font-size: 2rem;
}


.error404 {
    background-color: #dfe7fc;
    width: 100%;
    height: 100vh;
}
.error404 h2 {
    font-size: 2.6rem;
    color: rgb(145, 25, 25);
    text-align: center;
    padding-top: 50px;
    padding-bottom: 50px;
}