@import url('https://fonts.googleapis.com/css2?family=Inria+Serif&family=Lato:ital,wght@1,300&family=Poppins:ital@0;1&family=Quattrocento&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #3d64e6;
}

.container {
    background-color: #fff;
    width: 80vw;
    padding: 3em 2.5em;
    position: absolute;
    transform:  translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 0.62em;
    box-shadow: 0 1.25em 1.8em rgba(8, 21, 65, 01.25);
}

.search-wrapper {
    display: grid;
    grid-template-columns: 9fr 3fr;
    gap: 1.25em;
}

.search-wrapper button {
    font-size: 1em;
    background-color: #3d64e6;
    color: #fff;
    padding: 0.8em 0;
    border: none;
    border-radius: 1.6em;
    cursor: pointer;
}

.search-wrapper button:hover {
    background-color: rgb(145, 195, 253);
}

.search-wrapper input {
    font-size: 1em;
    padding: 0 0.62em;
    border: none;
    border-bottom: 2px solid #3d64e6;
    outline: none;
    color: #222a43
}

#result {
    margin-top: 1.25em;
}

.container .flag-img {
    display: block;
    width: 30%;
    min-width: 7.5em;
    margin: 1.8em auto 1.2em auto;
}

.container h2 {
    font-weight: bold;
    color: #222a43;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px; /*To have space with the letter*/
    margin-bottom: 1.8em;
} 

.data-wrapper {
    margin-bottom: 1em;
    letter-spacing: 0.3px;
}

.container h4 {
    display: inline;
    font-weight: 5000;
    color: #222a43;
}

.container span {
    color: #5d6274;
}

.container h3 {
    text-align: center;
    font-size: 1.2em;
    font-weight: 400;
    color: crimson;
}

@media screen and (max-width: 800px) {

    body {
        background-color: rgb(19, 185, 227);
    }

    .search-wrapper button {
        font-size: 0.7em;
        background-color: rgb(19, 185, 227);
        color: #fff;
        padding: 0.8em 0;
        border: none;
        border-radius: 1.6em;
        cursor: pointer;
    }

    .search-wrapper input {
        font-size: 0.6em;
        padding: 0 0.62em;
        border: none;
        border-bottom: 2px solid rgb(19, 185, 227);
        outline: none;
        color: #000
    }
    
}

@media screen and (max-width: 700px) {

    body {
        background-color: rgb(19, 185, 227);
    }

    .search-wrapper button {
        font-size: 0.7em;
        background-color: rgb(19, 185, 227);
        color: #fff;
        padding: 0.8em 0;
        border: none;
        border-radius: 1.6em;
        cursor: pointer;
    }

    .search-wrapper input {
        font-size: 0.6em;
        padding: 0 0.62em;
        border: none;
        border-bottom: 2px solid rgb(19, 185, 227);
        outline: none;
        color: #000
    }
    
}
