:root {
    --primaryColor: #eeeeee;
    --secondaryColor: #ffbd39;
    --thirdColor: #deddda;
    --fourthColor: #ffc45f;
    --fifthyColor: #f7f7f7;

    --dmSans: "DM Sans", sans-serif;
}

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

body {
    background-color: var(--primaryColor);
}

/* Estilos para el container, paises y graficas */

h2 {
    font-size: 4rem;
    font-weight: 100;
    text-align: center;
    margin: 20px 0;
    color: var(--secondaryColor);
}

#countries {
    font-size: 1.5rem;
    font-weight: 100;
    text-align: center;
    margin: 20px 0;
}

hr {
    margin: 20px 0;
    color: var(--thirdColor);
}

.graph-buttons {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.name,
.capital,
.population,
.goGraph,
.btnpopulation,
.btnlanguages {
    font-size: 1.2rem;
    font-weight: 100;
    padding: 10px 20px;
    margin: 0 10px;
    border: 1px solid var(--thirdColor);
    border-radius: 15px;
    background-color: var(--secondaryColor);
    cursor: pointer;
    width: 10rem;
}

.name:hover,
.capital:hover,
.population:hover,
.goGraph:hover,
.btnpopulation:hover,
.btnlanguages:hover {
    background-color: var(--fourthColor);
}

h4 {
    font-size: 1rem;
    font-weight: 100;
    text-align: center;
    margin: 20px 0;
}
canvas {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.countries {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.countries p {
    width: 240px;
    height: 250px;
    padding: 10px;
    margin: 3px;
    background-color: var(--fifthyColor);
    word-wrap: break-word;
}

.countries p span {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--secondaryColor);
    word-wrap: break-word;
}

.countries img {
    width: 120px;
    height: 80px;
}

.btn-subir {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--secondaryColor);
    color: white;
    cursor: pointer;
    border-radius: 30px;
    padding: 10px;
    font-size: 30px;
    width: 4rem;
}

.btn-subir:hover {
    background-color: var(--fourthColor);
}

/* searchBar estilo y su animacion */

.searchContainer {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.buttons {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}
button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

input[type="text"] {
    width: 200px;
    border-radius: 10px;
    border: 1px solid var(--thirdColor);
    padding: 10px 15px;
    height: 25px;
    -webkit-transition: width 0.6s ease-in-out;
    transition: width 0.6s ease-in-out;
}

input[type="text"]:focus {
    width: 30%;
}

/* Estilos para el footer */

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    background-color: var(--secondaryColor);
    color: #fff;
}
