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

body {
  background-color: black;
}

.container {
  background-color: #ffffff;
  width: 80vw;
  max-width: 37.5em;
  max-height: 100vh;
  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, 0.25);
}

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

.search-wrapper button {
  font-size: 1em;
  background-color: black;
  color: #ffffff;
  padding: 0.8em 0;
  border: none;
  border-radius: 1.5em;
  width: 100px;
}

@media(max-width:476px){
.search-wrapper{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
}
}

@media(max-width:300px){
  .search-wrapper {
    width: 100%;
  }
  #result{
    font-size: small;
  }

}

@media(max-width:280px)
{
  #country-inp,#search-btn{
    font-size:small;
  }
  #search-btn{
    width:80px;
  }
}

@media(max-width:226px)
{
  .container{
    min-width: 140px;
  }
  #country-inp,#search-btn{
    font-size:x-small;
  }
  #search-btn{
    width:60px;
  }
}

.search-wrapper input {
  font-size: 1em;
  padding: 0 0.62em;
  border: none;
  border-bottom: 2px solid black;
  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;
}

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