input {
  margin: 5px;
  -webkit-appearance: none;
  border-radius: 0;
}

.wrapper {
  margin: 170px auto 0;
  width: 590px;
  text-align: center;
}

.wrapper img {
  cursor: pointer;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 20px;
  text-align: right;
}

.header > li {
  display: inline-block;
  margin: 0 7px;
  font-size: 13px;
  list-style-type: none;
  text-decoration: underline;
  cursor: pointer;
}

.header > li:hover {
  color: #0000cc;
}

.search {
  display: flex;
  align-items: center;
  margin-top: 50px;
  width: 100%;
  font-size: 0;
}

input {
  width: calc(100% - 100px);
  height: 36px;
  padding: 5px;
  border: 1px solid #b6b6b6;
  border-right: none;
  box-sizing: border-box;
  outline: none;
  font: 16px/18px Monaco, monospace, Consolas;
  color: #555;
}

input:hover,
input:focus {
  border: 1px solid #4791ff;
  border-right: none;
}

.button {
  display: inline-block;
  width: 100px;
  height: 36px;
  letter-spacing: 2px;
  line-height: 36px;
  color: #fff;
  border: none;
  font-size: 15px;
  background: #3385ff;
  cursor: pointer;
  user-select: none;
}

.small {
  width: 60px;
  height: 30px;
  line-height: 30px;
  font-size: 13px;
  text-align: center;
}

.button:hover {
  background: #3177f3;
  box-shadow: 1px 1px 1px #ccc;
}

.button:active {
  background: #3075dc;
}

.content {
  display: none;
  padding: 20px;
  margin-top: 80px;
  height: 100px;
  color: #666;
  text-align: left;
  background: #f5f7f9;
  box-sizing: border-box;
}

.info {
  font-size: 20px;
  color: red;
}

.meta {
  font-size: 10px;
  color: #999;
}

.footer {
  position: fixed;
  right: 0;
  bottom: 40px;
  left: 0;
  text-align: center;
  color: #999;
  font-size: 12px;
}

a {
  color: #999;
}

/* animation */
.loading {
  display: none;
  width: 80px;
  height: 40px;
  margin: 0 auto;
  margin-top: 170px;
}
.loading span {
  display: inline-block;
  width: 8px;
  height: 100%;
  border-radius: 4px;
  background: lightgreen;
  animation: load 1s ease infinite;
}
@keyframes load {
  0%,
  100% {
    height: 40px;
    background: lightgreen;
  }
  50% {
    height: 70px;
    margin: -15px 0;
    background: lightblue;
  }
}
.loading span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading span:nth-child(3) {
  animation-delay: 0.4s;
}
.loading span:nth-child(4) {
  animation-delay: 0.6s;
}
.loading span:nth-child(5) {
  animation-delay: 0.8s;
}

/* flex */
@media screen and (max-width: 1440px) {
  .wrapper {
    margin: 100px auto 0;
  }

  .content {
    margin-top: 50px;
  }

  .loading {
    margin-top: 120px;
  }
}

@media screen and (max-width: 800px) {
  .header {
    display: none;
  }

  .wrapper {
    margin-top: 50px;
    width: 100%;
  }

  .wrapper img {
    height: 160px;
    cursor: pointer;
  }

  .loading {
    margin-top: 160px;
  }

  .content {
    margin-top: 55px;
    height: 100px;
  }

  .footer {
    bottom: 0;
    padding: 0 4px;
  }

  .footer a {
    display: none;
  }
}
