@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');
@import '../css/variables.css';

html {
  background-color: var(--blue);
}

body {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
  font-weight: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
}

.container {
  width: 90vw;
  max-width: 500px;
}

.search {
  width: 100%;
  font-size: 2.8em;
  border-radius: 3px;
  box-sizing: border-box;
  border: 3px solid #EFEFEF;
  outline: none;
  padding: 10px 20px;
}

.search:focus, .search:active {
  outline: none;
  border: 5px solid #EFEFEF;
}

.list {
  margin: 3px 0;
  padding: 0 30px;
  font-size: 1.4em;
  text-transform: capitalize;
}

ul li {
  list-style: none;
}

.city {
  margin: 0;
  padding: 10px 20px;
  transition: background 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.14);
}

.city:nth-of-type(odd) {
  transform: perspective(100px) rotateX(-3deg) translateY(1px);
  background: linear-gradient(to top, #ffffff 0%,#EFEFEF 100%);
}

.city:nth-of-type(even) {
  transform: perspective(100px) rotateX(3deg) translateY(0px);
  background: linear-gradient(to bottom, #ffffff 0%,#EFEFEF 100%);
}

.population {
  font-size: 0.8em;
}

.hl {
  background-color: var(--yellow);
}