* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: system-ui;
  color: #555;
  background-color: #f7f7f7;
  min-height: 100vh;
}

#name {
  color: #7e0e55;
  font-size: 40px;
  padding: 20px 20px 5px 20px;
  font-weight: bold;
  text-align: center;
}

.desc {
  font-size: 18px;
  text-align: center;
}

@media (max-width: 768px) {
  .desc {
    font-size: 16px;
  }
  .country {
    font-size: 1.5rem;
  }
}

.platypi {
  font-family: "Platypi", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.carter-one-regular {
  font-family: "Carter One", system-ui;
  font-weight: 200;
  font-style: normal;
}

.container {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.inputContainer {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  align-content: center;
  justify-content: center;
  margin: 10px auto;
}

#searchBox {
  position: relative;
  width: 100%;
  max-width: 500px;
  /* min-height: 180px; */
  background: whitesmoke;
  color: #333;
  padding: 14px;
  margin: 20px 10px;
  outline: none;
  border-radius: 5px;
}

#btn {
  width: fit-content;
  position: absolute;
  bottom: 21px;
  right: 11px;
  justify-content: center;
  margin-top: 10px;
  cursor: pointer;
  background: #7e0e55;
  color: white;
  padding: 14px 30px;
  border: none;
}

.countries {
  /* margin-bottom: 8rem; */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 50px;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 1s;
  margin-bottom: 30px;
}

.country {
  background-color: #fff;
  box-shadow: 0 2rem 5rem 1rem rgba(0, 0, 0, 0.1);
  font-size: 1.8rem;
  width: 30rem;
  border-radius: 0.7rem;
  margin: 0 3rem;
  /* overflow: hidden; */
}

.neighbour::before {
  content: "Neighbour country";
  width: 100%;
  position: absolute;
  top: -4rem;

  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #888;
}

.neighbour {
  transform: scale(0.8) translateY(1rem);
  margin-left: 0;
}

.country__img {
  width: 30rem;
  height: 17rem;
  object-fit: cover;
  background-color: #eee;
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
}

.country__data {
  padding: 2.5rem 3.75rem 3rem 3.75rem;
}

.country__name {
  font-size: 2.7rem;
  margin-bottom: 0.7rem;
}

.country__region {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: #888;
}

.country__row:not(:last-child) {
  margin-bottom: 1rem;
}

.country__row span {
  display: inline-block;
  margin-right: 2rem;
  font-size: 2.4rem;
}

.btn-country {
  border: none;
  font-size: 2rem;
  padding: 2rem 5rem;
  border-radius: 0.7rem;
  color: white;
  background-color: orangered;
  cursor: pointer;
}

.images {
  display: flex;
}

.images img {
  display: block;
  width: 80rem;
  margin: 4rem;
}

.images img.parallel {
  width: 40rem;
  margin: 2rem;
  border: 3rem solid white;
  box-shadow: 0 2rem 5rem 1rem rgba(0, 0, 0, 0.1);
}
