@import url("https://fonts.googleapis.com/css2?family=Bitter&family=Poppins&display=swap");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}
body {
  background: #2a7b9b;
  background: linear-gradient(
    90deg,
    rgba(42, 123, 155, 1) 0%,
    rgba(87, 199, 182, 1) 50%
  );
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.container {
  width: 30%;
  background-color: #fff;
  box-shadow: 0px 0px 7px rgba(0, 0, 0, 0.24);
  border-radius: 6px;
  padding: 20px 10px;
}
.search-box {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}
.search-box input {
  width: 75%;
  border: none;
  outline: none;
  font-size: 16px;
  border-bottom: 1px solid rgb(74, 74, 248);
  height: 40px;
  padding: 10px;
}
.search-box button {
  width: 23%;
  border: none;
  height: 40px;
  background-color: rgb(74, 74, 248);
  color: #fff;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
}
.search-box button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.result {
  display: none;
  margin-top: 10px;
}
.result.active {
  display: block;
}
.image {
  width: 40%;
  max-height: 150px;
  overflow: hidden;
  margin: 16px auto;
}
.image img {
  width: 100%;
  object-fit: contain;
  object-position: center;
  border: 1px solid lightgrey;
}
#country_name {
  font-size: 20px;
  color: #333;
  text-transform: uppercase;
  text-align: center;
  margin: 10px 0;
  letter-spacing: 1px;
  display: block;
}
.details {
  width: 100%;
  margin-top: 18px;
}
.details p {
  font-size: 14px;
  color: #000;
  font-weight: 600;
  margin: 18px;
  letter-spacing: 1px;
}
.details p span {
  font-size: 14px;
  color: #333;
  letter-spacing: 1px;
}
@media (max-width: 480px) {
  .container {
    width: 90%;
  }
  .image {
    width: 70%;
  }
  .search-box input {
    width: 70%;
  }
  .search-box button {
    width: 28%;
  }
}
