*{
    padding: 0;
    margin:0;
    box-sizing:border-box;
    font-family: "Poppins",sans-serif;
} 

body{
    background-image: url("giphy.gif");
}
.container{
    background-color: rgb(3, 7, 60);
    width: 80vw;
    max-width: 37em;
    padding: 3em 2.5em;
    position: absolute ;
    transform: translate(-50%,-50%);
    top:50%;
    left: 50%;
    border-radius: 0.6em ;
   box-shadow: 0 1.25em 1.8em rgba(7, 41, 123, 0.25);
}
.heading{
    font-family: "Lucida Sans Typewriter";
    color: whitesmoke;
    margin: 6% 35%;
    font-size: 80px;
    box-decoration-break: slice;
    letter-spacing: 25px;
}
input{
    box-sizing: border-box;
    border-radius: 0.6em;
    background-color: rgb(246, 251, 249);
}
.search-wrapper{
    display:grid;
    grid-template-columns: 9fr 3fr;
    gap:2.25em;
}

.search-wrapper button{
    font-size: 1em;
    background-color: #3d64e6;
    color: white;
    padding: 0.8em ;
    border-radius: 2em;
    opacity: 1;
    transition: 0.3s;
    
}
button:hover{
    background-color:#2b5b7d;
    color: #fff;
    opacity: 1;

}
.search-wrapper input{
    font-style: italic;
    font-size: 16px;
    border: none;
    border-bottom: 2px solid rgb(29, 68, 176);
    outline: none;
    color: #222a43;
}
#result{
    margin-top: 1.25em;
}
.container .flag-img{
    display: block;
    width: 45%;
    min-width: 7.5em;
    margin: 1.8em auto 1.2em auto;
}

.container h2{
    font-weight: 600;
    color: #222a43;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.8em;

}
.data-wrapper{
    margin-bottom: 1em;
    letter-spacing: 0.3px;
}

.container h4{
    display: inline;
    font-weight: 500;
    color: #222a43;
}
.container span{
    color: #5d6274;
}
p{  
    font-weight: 400;
    color: #5d6274;
    margin-left: 40%;
    margin-top: 5.2%;
    letter-spacing: 3px;
}

.container h3{
    text-align: center;
    font-size: 1.2em;
    font-weight: 400;
    color: #c30b0b;
}
#loading{
    height: 100px;
    width: 100px;
    margin: 0 auto;
    border-top: 5px solid #292929;
    border-right: 5px solid #efefef;
    border-bottom: 5px solid #efefef;
    border-left: 5px solid #3e199c;
    border-radius: 100px;
    animation: spinRight 800ms linear infinite;;
    visibility: hidden;
    
}

@keyframes spinRight {
    from {transform:rotate(360deg);}
    to {transform:rotate(0deg);}
  }
#loading.display{
    visibility: visible;
}

