@import "style.css";

.main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 30px 10px;
}

.main__search {
  padding: 0 100px;
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.main__search input {
  width: 280px;
}

.main__content {
  width: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.main__content-data {
  width: 100%;
  flex-basis: 640px;
}

.countries {
  height: 100%;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  column-gap: 80px;
  row-gap: 30px;
  justify-content: center;
  align-content: center;
}

.country {
  display: inline-block;
  width: 250px;
  height: 300px;
  border-radius: 4px;

  cursor: pointer;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  box-shadow: var(--box-shadow);
  transform: scale(1);

  transition: background var(--transition-time), border var(--transition-time),
    box-shadow var(--transition-time),
    transform var(--transition-time) ease-in-out;

  display: flex;
  flex-direction: column;
}

.country:hover {
  box-shadow: var(--box-shadow-hover);
  transform: scale(1.02);
}

.country img {
  height: 50%;
  object-fit: cover;
}

.country h4 {
  padding: 20px 10px 10px 10px;
}

.country p {
  font-size: 14px;
  padding: 4px 10px;
}

.country p span {
  font-weight: 500;
}

.country h4,
.country p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#paginator {
  display: flex;
  gap: 10px;
}

#paginator button {
  border: 1px solid var(--border-color);
  font-size: 16px;
  width: 34px;
  max-width: 50px;
  height: 28px;
}
