/* @font-face {
  font-family: "Jokerman";
  src: url("../font/jokerman.ttf");
  font-weight: normal;
  font-style: normal;
} */

@font-face {
  font-family: 'Arial Narrow';
  src: url('../font/Arial-Narrow.ttf');
  font-weight: normal;
  font-style: normal;
}

.nav {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  height: 40px;
  /* line-height: 40px; */
  z-index: 90;
  background-color: #fff;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .3);
}

.nav .logo {
  font-size: 17px;
  padding: 0 10px;
  color: #000000;
  user-select: none;
  cursor: pointer;
  /* 
  font-family: "Jokerman";
  letter-spacing: -1px;
   */
  font-family: 'Arial Narrow';
  height: 32px;
  line-height: 32px;
  /*
  background: url(../svg/top-stories-logo.svg) no-repeat;
  background-position: -62px 3px;
  background-size: 80% 80%; */
  
  background-image: url(../img/logo.webp);
  filter:grayscale(100%);
  background-repeat: no-repeat;
  background-position: 4px center;
  background-size: contain;
  background-color: transparent;
}

.nav .logo:hover {
  color: #2B95F6;
}

.nav .logo>span {
  margin-left: 30px;
}

.nav form {
  flex: 2;
}

.nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 5;
  position: relative;
  background-color: #fff;
  text-align: right;
  overflow: auto;
  white-space: nowrap;
}

.nav li {
  display: inline-block;
}

.nav li a {
  line-height: 40px;
  display: block;
  padding: 0 12px;
}

.nav a {
  color: #000000;
}

.nav a.active,
.nav a:hover {
  line-height: 34px;
  color: #2B95F6;
  border-bottom: 3px #2B95F6 solid;
}

.nav .menu {
  box-sizing: border-box;
  display: none;
  width: 32px;
  height: 32px;
  padding: 4px;
  margin: 4px 6px;
  cursor: pointer;

  /* background-image: url('../svg/menu.svg') no-repeat center center; */
  /* background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZvY3VzYWJsZT0iZmFsc2UiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0iI0ZGOTlCMSIgZD0iTTMgMThoMTh2LTJIM3Yyem0wLTVoMTh2LTJIM3Yyem0wLTd2MmgxOFY2SDN6Ij48L3BhdGg+PC9zdmc+'); */
  background: url('../svg/menu.svg');
  background-repeat: no-repeat;
  background-position: center center;

  background-size: 75% 75%;
}

.nav .menu:hover {
  background-color: #eee;
  border-radius: 50%;
}

.nav ul.active li {
  display: inline-block;
}

.nav input[type=search] {
  padding: 1px 12px;
  margin: 0;
  border: 1px #ddd solid;
  border-radius: 16px;
  color: #999;
  line-height: 28px;
  outline: 0;
  width: 100%;
  background-color: #fff;
  resize: none;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.locale>a:hover {
  line-height: 40px;
  border-bottom: 0;
  opacity: 0.75;
}

.locale span{
  display: inline-block;
  margin:5px 0 -5px;
  width: 24px;
  height: 18px;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  background-position: center center;
}

.noscroll {
  overflow: hidden;
  height: 100%;

  /*
  position: fixed;
  top: 0px;
  bottom: 0px;
  left: 0;
  right: 0;
  z-index: -1;
  */

}

@media screen and (max-width: 768px) {
  .nav {
    justify-content: space-between;
  }

  .nav .logo>span {
    display: none;
  }

  .nav .logo {
    width: 20px;
    height: 40px;
    line-height: 40px;
    background-size: 75% 75%;
  }

  .nav .menu {
    display: block;
  }

  .nav ul {
    width: 100%;
    position: absolute;
    top: 40px;
    text-align: center;
  }

  .nav li {
    width: 100%;
    display: none;
    line-height: 40px;
    border-top: 1px #eee solid;
  }

  .nav li:last-child {
    border-bottom: 1px #eee solid;
  }

  .nav ul.active {
    min-height: 100vh;
    animation: expland 0.3s;
  }

  .nav ul.active li {
    display: block;
  }

  .nav ul.active~.menu {
    /* background-image: url('../svg/x.svg'); */
    /* background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZvY3VzYWJsZT0iZmFsc2UiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PGcgaWQ9IngiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDQuMDAwMDAwLCA0LjAwMDAwMCkiIGZpbGw9IiNGRjk5QjEiPjxwb2x5Z29uIGlkPSJQYXRoIiBwb2ludHM9IjE2IDEuNjE3MTQyODYgMTQuMzgyODU3MSAwIDggNi4zODI4NTcxNCAxLjYxNzE0Mjg2IDAgMCAxLjYxNzE0Mjg2IDYuMzgyODU3MTQgOCAwIDE0LjM4Mjg1NzEgMS42MTcxNDI4NiAxNiA4IDkuNjE3MTQyODcgMTQuMzgyODU3MSAxNiAxNiAxNC4zODI4NTcxIDkuNjE3MTQyODcgOCI+PC9wb2x5Z29uPjwvZz48L3N2Zz4='); */
    background: url('../svg/x.svg');
    transform: rotate(360deg);
    animation: rotation 0.3s linear 1
      /* infinite */
    ;
  }

  .nav ul.inactive~.menu {
    transform: rotate(360deg);
    animation: rollback 0.3s linear 1;
  }

  .nav a.active,
  .nav a:hover {
    line-height: 40px;
    border-bottom: 0;
    background-color: #eee;
  }

  @keyframes expland {
    0% {
      opacity: 0;
      transform: translate(0, -800px)
    }

    100% {
      opacity: 1;
      transform: translate(0, 0)
    }
  }

  @keyframes rotation {
    from {
      transform: rotate(0deg);
    }

    to {
      transform: rotate(360deg);
    }
  }

  @keyframes rollback {
    from {
      transform: rotate(360deg);
    }

    to {
      transform: rotate(0deg);
    }
  }
}


input::-webkit-input-placeholder {
  color: #ccc;
}

input::-moz-input-placeholder {
  color: #ccc;
}

input::-ms-input-placeholder {
  color: #ccc;
}