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

body {
  width: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 1.4rem;
  line-height: 2.2rem;
  display: flex;
}

input {
  width: 100%;
  height: 2rem;
  padding: 0 0.5rem;
  margin: 0 1.4rem;
  line-height: 1.5rem;
  font-size: 1.1rem;
  border: none;
  outline: none;
  background-color: transparent;
  text-align: center;
  border-radius: 0;
}

input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.icon1 {
  position: absolute;
  width: 35px;
  height: 35px;
  right: 0;
  margin-right: 1rem;
  opacity: 1;
}

.icon2 {
  position: absolute;
  width: 35px;
  height: 35px;
  right: 0;
  margin-right: calc(2rem + 35px);
  opacity: 1;
}

article {
  width: 100%;
  font-size: 0.8rem;
}

.results > div {
  display: flex;
  padding: 0.5rem 0.5rem;
  border: 1px solid #ffffff85;
}

.contents {
  margin: 0 0.5rem;
  line-height: 1.2rem;
}

.contents a {
  text-decoration: none;
  color: #ffffffc2;
}

.undefined {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

footer {
  width: 100%;
  text-align: center;
  margin: 0.6rem 0 0.4rem;
  font-size: 0.7rem;
}

/* Smartphone */
@media (max-width: 500px) {
  header {
    padding: 1rem 1rem;
    font-size: 0.9rem;
    line-height: 1rem;
  }

  input {
    height: 1rem;
    margin: 0 0 0 0.8rem;
    line-height: 1rem;
    font-size: 0.8rem;
  }

  .icon1,
  .icon2 {
    width: 23px;
    height: 23px;
  }

  .icon2 {
    margin-right: calc(2rem + 23px);
  }

  .results > a {
    display: block;
  }

  .contents {
    margin: 0.5rem 0.5rem 0;
  }
}
