* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

/* Nav bar styles */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  z-index: 100;
  padding: 1.2rem 0;
}

.navbar-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.navbar-content input {
  padding: 0.7rem 1.2rem;
  width: 22rem;
  font-size: 1.6rem;
  border: 1px solid #ddd;
  border-radius: 2rem;
  outline: none;
  transition: border 0.2s;
}

.navbar-content input:focus {
  border: 1.5px solid #888;
}

.navbar-content button {
  padding: 0.7rem 2rem;
  font-size: 1.6rem;
  border-radius: 2rem;
  border: none;
  background: linear-gradient(90deg, #4f8cff 0%, #235390 100%);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(79,140,255,0.08);
  transition: background 0.2s, transform 0.1s;
}

.navbar-content button:hover {
  background: linear-gradient(90deg, #235390 0%, #4f8cff 100%);
  transform: translateY(-2px) scale(1.04);
}

body {
  font-family: system-ui, sans-serif;
  color: #555;
  background-color: #f7f7f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

h1 {
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  font-size: 3rem;
  color: #235390;
  letter-spacing: 1px;
  text-align: center;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.countries {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
  width: 100%;
  min-height: 20vh;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 1s;
  justify-items: center;
  align-items: stretch;
}

.country {
  background-color: #fff;
  box-shadow: 0 2rem 5rem 1rem rgba(0, 0, 0, 0.08);
  font-size: 1.8rem;
  width: 100%;
  max-width: 30rem;
  border-radius: 1.2rem;
  margin: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
}

.country:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 4rem 8rem 2rem rgba(79,140,255,0.10);
}

.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: 100%;
  height: 17rem;
  object-fit: cover;
  background-color: #eee;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
}

.country__data {
  padding: 2.5rem 2.5rem 2rem 2.5rem;
}

.country__name {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
  color: #235390;
  font-weight: 700;
}

.country__region {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  color: #888;
}

.country__row:not(:last-child) {
  margin-bottom: 0.7rem;
}

.country__row span {
  display: inline-block;
  margin-right: 1.2rem;
  font-size: 2rem;
}

.country__data a {
  color: #235390;
  text-decoration: underline;
  font-size: 1.5rem;
  transition: color 0.2s;
}

.country__data a:hover {
  color: #4f8cff;
}

@media (max-width: 900px) {
  .navbar-content {
    max-width: 98vw;
  }
  .container {
    max-width: 98vw;
  }
  .countries {
    gap: 1rem;
  }
  .country {
    width: 90vw;
  }
}

@media (max-width: 600px) {
  .navbar-content input {
    width: 10rem;
    font-size: 1.2rem;
  }
  .navbar-content button {
    font-size: 1.2rem;
    padding: 0.4rem 1.2rem;
  }
  h1 {
    font-size: 2rem;
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
  }
  .country {
    width: 98vw;
    font-size: 1.1rem;
  }
  .country__img {
    height: 22vw;
    min-height: 90px;
    max-height: 180px;
    margin-bottom: 0.5rem;
    border-top-left-radius: 1.2rem;
    border-top-right-radius: 1.2rem;
    object-fit: cover;
    background-color: #eee;
    display: block;
  }
  .country__data {
    padding: 1.2rem 1.2rem 1rem 1.2rem;
  }
}

/* Remove modal styles */
.modal, .modal-content, .modal.show, .close {
  display: none !important;
}