header {
  width: 100%;
}

.header-div {
  /* background: transparent linear-gradient(180deg, #0358b5 0%, #0b60bf 100%) 0% 0% no-repeat padding-box;
  background: url(https://images.atmegame.com/img/04.jpg) center top repeat-x;
  border-radius: 0% 0% 900% 900%;
  background: url(https://images.atmegame.com/img/banner0.png) center top repeat-x;
  background: linear-gradient(90deg, #0c1d73 2.76%, #076dee 63.68%) !important; */
}

.top-header {
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.right-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.search {
  height: 34px;
  width: 34px;
  border-radius: 50px;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: #052b89;
}

header .tags-ul {
  width: 100%;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  justify-content: center;
  flex-wrap: wrap;
}

header .tags-ul li {
  width: 9.8%;
  margin-right: 10px;
}

header .tags-ul a {
  font-size: 12px;
  width: 100%;
  height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-radius: 16px;
  transition: .6s;
  cursor: pointer;
  padding: 10px 16px;
  box-sizing: border-box;
  color: #337ab7;
  font-size: 20px;
  font-weight: 500;
}

header .tags-ul a .tag-name {
  margin: 8px 0 0 5px;
}


header .tags-ul li a:hover .tag-name {
  text-decoration: underline;
}

.search-content {
  display: flex;
  background: #eee;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  padding-left: 4px;
  padding-right: 14px;
  margin-bottom: 14px;
  position: relative;
}

.back-icon {
  width: 44px;
  margin-left: 10px;
  cursor: pointer;
  background: #052b89;
  padding: 8px;
  border-radius: 50px;
  height: 44px;
  position: absolute;
  left: -70px
}

.search-input {
  background: #fff;
  border: 0 solid #e3e5e8;
  box-shadow: 0 4px 12px #0000000d;
  border-radius: 90px;
  height: 46px;
  padding: 0 20px;
  font-size: 20px;
  color: #17191c;
  width: calc(100%);
}

.reset-search-btn {
  width: 30px;
  margin-left: 10px;
  cursor: pointer;
  padding: 4px;
  height: 30px;
  position: absolute;
  z-index: 1003;
  right: 24px;
}

.caterioes-nav-container {
  border-radius: 16px;
  position: relative;
  z-index: 1002;
  margin-top: 20px;
}

.caterioes-nav-content {
  margin-bottom: 32px;
  background: #fff;
  padding: 20px 0;
  border-radius: 16px;
  margin-left: 12px;
}

.caterioes-nav-content h2 {
  margin-top: 0;
  margin-left: 12px;
  font-family: 'Arial', sans-serif;
  margin: 10px 0;
}

.caterioes-ul-content {
  width: calc(100% + -0px);
  overflow-x: hidden;
  overflow-y: hidden;
  white-space: nowrap;
  transition: all .2s;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
  position: relative;
  margin-top: 8px;
  margin-bottom: 0;
  -webkit-tap-highlight-color: transparent;
}

.caterioes-ul-content ul {
  -webkit-tap-highlight-color: transparent;
}

.caterioes-nav-content ul {
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  list-style-type: none;
}

.caterioes-nav-content ul li:first-child {
  margin-left: 16px;
}

.caterioes-nav-content ul li {
  margin-right: 16px;
}

.caterioes-nav-content ul li a {
  display: flex;
  flex-direction: column;
  font-size: 10px;
  text-align: center;
}

.caterioes-nav-content ul li a img {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  box-shadow: 0 2px 10px #00000038;
}

.caterioes-nav-content ul li a span {
  vertical-align: top;
  margin-top: 8px;
  font-size: 18px;
  color: #337ab7;
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  header .tags-ul {
    width: auto;
    z-index: 2;
    display: flex;
    list-style-type: none;
    padding: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    flex-direction: row;
    position: relative;
    top: 0;
  }

  header .tags-ul li {
    width: auto;
    float: left;
    margin-bottom: 8px;
    margin-top: 2px;
    height: auto;
  }

  header .tags-ul a {
    padding: 0 12px;
  }
}


.search-modal {
  margin: 0;
  padding: 0;
  position: fixed;
  z-index: 1002;
  width: 82%;
  height: 100%;
  right: 0;
  top: 0;
  background-color: #fff;
}

header .modal-tags-ul {
  width: auto;
  z-index: 2;
  list-style-type: none;
  padding: 0;
  margin: 0 20px;

}

header .modal-tags-ul li {
  width: calc(15% - 3px);
  height: 90px;
}


@media (min-width: 900px) {
  .search-modal {
    max-width: calc(100% - 300px);
    width: calc(100% - 300px);
    left: unset;
    right: 0;
  }
}



/* @media (min-width: 900px) {
  .search-modal:before {
    background: #0c61ed url(https://images.atmegame.com/img/blueBg.png) repeat-y;
  }
} */

.search-modal-content {
  margin: 0;
  padding: 16px 0;
  position: relative;
  z-index: 2;
}



.overlay-content {
  position: fixed;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .75);
  left: 0;
  top: 0;
}

.overlay-content div {
  position: relative
}

.overflowHidden {
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
}

#searchModal {
  display: none;
}

@media only screen and (max-width: 990px) {
  .search-modal {
    overflow: scroll;
  }

  body {
    overflow-x: hidden;
    background-size: auto;
    background-attachment: fixed;
  }


  .caterioes-nav-content ul {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .pc-icon {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  header .modal-tags-ul li {
    width: calc(30% - 3px);

  }

  header .tags-ul a,
  .caterioes-nav-content ul li a span {
    font-size: 14px;
  }

  .back-icon {
    left: 0;
  }

}