/* For nav 
   Produced by @zhonger
*/

[v-cloak] {
  display: none;
}

@font-face{font-family:"FZXiJinLJW";src:url(https://cdn.jsdelivr.net/gh/zhonger/nav@main/FZXiJinLJW.TTF) format("truetype")}

body {
  background: #f7f8f9;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  font-family: 'Noto Sans SC', sans-serif;
}

#app {
  margin-top: 100px;
}

#header {
  text-align: center;
  margin: 30px auto;
  font-size: 2.5em;
  min-height: 1.2em;
  font-family: 'FZXiJinLJW';
}

a {
  color: #000;
  text-decoration: none;
}

#search {
  height: 2em;
  /* text-align: center; */
  position: relative;
  display: flex;
  width: 50%;
  padding: 10px 0;
  margin: 0 auto;
}

#search .search-ico{
  width: 24px;
  margin-right: 10px;
  vertical-align: middle;
}

#search .search-ico.active{
  vertical-align: baseline;
  opacity: 0.2;
  filter: grayscale(100%);
}

#search .search-ico.active:hover{
  filter: none;
  opacity: 1;
}

#search .fa {
  padding-right: 10px;
}

#search .search-engine {
  background-color: #fff;
  padding: 8px 18px;
  font-size: 16px;
  border: none;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
  height: 24px;
}

#search .search-content {
  border: none;
  margin: 0;
  padding: 0;
  color: #202124;
  word-wrap: break-word;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  height: 40px;
  width: 100%;
  font-size: 16px;
  font-family: 'Noto Sans SC', sans-serif;
}

#search #search-form {
  display: flex;
  width: 100%;
}

#search .search-button {
  background-color: #fff;
  border: none;
  padding: 8px 18px;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  font-size: 16px;
  height: 24px;
}

#search .search-button:hover {
  color: #1e70bf;
}

#search .search-engine:hover {
  color: #1e70bf;
}

#search-engines .dropdown-content {
  position: absolute;
  background-color: #fff;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  min-width: 150px;
  max-width: 200px;
  left: 0;
  top: 50px;
  display: none;
  float: left;
}

#search-engines .show{
  display: block;
}

#search-engines .dropdown-content a{
  display: block;
  padding: 12px 16px;
  color: black;
}

#search-engines .dropdown-content .icofont{
  padding-right: 10px;
  font-size: 16px;
}

#search-engines .dropdown-content i {
  width: 16px;
}

#search-engines .dropdown-content .ico:hover {
  background-color: #efefef;
  color: #1e70bf;
}

#search-engines .dropdown-content .ico-bing:hover {
  color: #0A8080;
}

#search-engines .dropdown-content .ico-steam:hover {
  color: #15487B;
}

#search-engines .dropdown-content .ico-omega:hover {
  color: #CE443E;
}

#search-engines .dropdown-content .ico-imdb:hover {
  color: #EEC103;
}

main {
  padding: 20px 50px;
}

.bar {
  margin-bottom: 20px;
  padding: 24px 32px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 4px 0 rgb(0,0,0,5%)
}

.title {
  font-size: 1.2em;
  margin-bottom: 10px;
}

.title .title-ico {
  width: 16px;
  padding-right: 10px;
}

.title .icofont {
  padding-right: 5px;
}

.card {
  display: inline-block;
  width: 200px;
  padding-bottom: 5px;
}

.card a:hover {
  color: #1e70bf;
}

.icon {
  vertical-align: middle;
  padding-right: 5px;
}

.icon img{
  width: 16px;
  height: 16px;
}

footer #copyright {
  text-align: center;
  margin-bottom: 30px;
}

footer #copyright a {
  color: #1e70bf;
}

footer #copyright a:hover {
  text-decoration: underline;
}

#weather {
  margin-top: 50px;
  width: 450px;
  height: 150px;
  font-size: 12px;
  border-radius: 5px;
  background-size: 100%;
  font-family: PingFang SC,Microsoft YaHei,Avenir,Helvetica,Arial,sans-serif;
  color: #fff;
  margin: 10px auto;
  display: none;
}

#weather .info {
  padding: 0.5em 1.5em 0.3em 0.7em;
}

#weather .location {
  width: 60%;
  display: inline-block;
  color: #fff; 
  font-size: 1.2em;
}

#weather .location a {
  color: #fff;
  text-decoration: none;
}

#weather .qweather {
  width: 40%;
  display: inline-block;
  text-align: right;
}

#weather .qweather a{
  color: #fff;
}

#weather .left {
  width: 50%;
  display: block;
  float: left;
  position: relative;
}

#weather .right{
  width: 50%;
  display: block;
  float: right;
  position: relative;
}

#weather .w-now {
  border-right: 1px solid hsla(0,0%,100%,.2);
  height: 102.9px;
  padding: 0.08em 1.3em 0;
}

#weather .w-now .icon {
  display: table-cell;
  float: none;
  height: 80px;
}

#weather .w-now .icon img {
  width: 4em;
  height: 4em;
  margin: 0.7em 1em 0.2em 0;
}

#weather .w-now .content {
  display: table-cell;
  float: none;
  width: 99%;
  height: 80px;
  vertical-align: middle;
}

#weather .w-now .content .tmp {
  font-size: 1.7em;
  padding-top: 0.1em;
}

#weather .w-now .content .txt {
  margin-top: 0.4em;
  font-weight: 200;
}

#weather .w-now .content .txt .aqi {
   display: block;
   float: right;
   font-weight: 400;
}

#weather .w-now .content .txt .aqi:before {
  content: "|";
  padding-right: 5px;
}

#weather .w-now .now-rain div {
  display: table-cell;
}

#weather .w-now .now-rain img {
  width: 1.4em;
}

#weather .w-now .now-rain .rain-txt {
  vertical-align: top;
  font-weight: 300;
  padding-left: 5px;
  display: table-cell;
}

#weather .forecast .item {
  height: 101.9px;
  text-align: center;
  display: table;
  float: left;
  position: relative;
  width: 33.33333333%;
  padding-left: 0;
  font-weight: 300;
  margin: 0;
}

#weather .forecast .item li {
  list-style: none;
  font-weight: 400;
}

#weather .forecast .item img{
  width: 1.8em;
  margin: auto;
  display: table-row;
  padding: 1.2em 0;
  vertical-align: middle;
}

#weather .air-color1{
  color: #94ce6f;
}

#weather .air-color2{
  color: #e4c600;
}

#weather .air-color3{
  color: #94ce6f;
}

#weather .air-color4{
  color: #94ce6f;
}

.loading {
  width: 450px;
  height: 150px;
  line-height: 150px;
  background-color: #efefef;
  font-size: 1.5em;
  font-weight: 500;
  position: absolute;
  margin: 10px auto;
  text-align: center;
  left: 0;
  right: 0;
  z-index: 1;
  display: none;
}

.loading img {
  margin-top: -30px;
}

.isActive {
  display: block!important;
}

#message {
  width: 450px;
  height: 150px;
  line-height: 150px;
  background-color: #efefef;
  font-size: 1.5em;
  font-weight: 500;
  margin: 10px auto;
  text-align: center;
  z-index: 1;
  display: none;
}


@media screen and (max-width: 600px) {
  #app {
    margin-top: 50px;
  }

  #header{
    font-size: 1.2em;
  }

  #search {
    width: 90%;
    padding: 10px 0;
  }

  main {
    padding: 20px 0 0 0;
  }

  .bar{
    border-radius: 0;
    padding: 15px 32px;
  }

  footer #copyright {
    font-size: 0.6em;
  }

  #weather {
    width: auto;
    border-radius: 0;
  }

  .loading {
    width: auto;
  }

  #message {
    width: auto;
  }
}
