@import url("//fonts.googleapis.com/earlyaccess/hanna.css");
@import url("./loader.css");

:root {
  --main-color: #1c1c1f;
  --sub-color: #31313c;
  --sub2-color: #9190a3;
  --sub3-color: #5383e8;
  --sub-font: "Hanna", sans-serif;
  --red-color: #e84055;
  --blue-color: #3153cd;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--main-color);
  color: white;
}

body::-webkit-scrollbar {
  display: none;
}

.container {
  max-width: 1080px;
  width: 95%;
  margin: 0 auto;
}


header {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  background-color: var(--main-color);

  .container {
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
  }

  h1 {
    font-size: 20px;

    a {
      text-decoration: none;
      color: white;
    }
  }
}

header nav {
  display: flex;
  align-items: center;
  gap: 15px;

  a {
    position: relative;
    font-size: 15px;
    color: white;
    text-decoration: none;
    padding: 5px 10px;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      transition: 0.3s ease;
      width: 0%;
      height: 1px;
      background-color: white;
    }

    &:hover::after {
      width: 100%;
    }
  }
}

header .search {
  position: absolute;
  top: 70px;
  left: 0;
  background: #5383e8;
  width: 100%;
  padding: 10px 0;

  .container {
    max-width: 1080px;
  }

  .box {
    display: flex;
    position: relative;
    background: white;
    border-radius: 5px;
    width: 100%;
    max-width: 700px;
    justify-content: space-between;
    align-items: center;
    height: 40px;
    overflow: hidden;
    padding-right: 10px;

    #searchInput {
      width: 80%;
      color: #5383e8;
      font-size: 14px;
      width: 100%;
      padding: 10px;
      border: 0;
      outline: none;
    }

    .selectBox {
      background-color: #ecf2ff;
      height: 100%;
      padding-left: 10px;
      padding-right: 10px;
      display: flex;
      align-items: center;

      select {
        color: #5383e8;
        font-size: 13px;
        padding: 3px;
        background-color: #ecf2ff;
        outline: none;
        border: none;
      }
    }

    p {
      font-size: 18px;
      font-weight: bold;
      color: #5383e8;
    }

    #ggTextBtn2 {
      cursor: pointer;
      transition: color 0.2s ease;
    }

    #ggTextBtn2:hover {
      color: #3153cd;
    }
  }
}

#multiSearchModal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.864);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 998;
}

#multiSearchModal .content {
  max-width: 1200px;
  width: 90%;
  height: 90%;
  max-height: 500px;
  background-color: var(--main-color);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#multiSearchModal #closeMultiSearchModal {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px;
  color: white;
  background-color: var(--sub-color);
  border-radius: 8px;
  border: none;
  transition: 0.3s ease;
  cursor: pointer;
}

#multiSearchModal #closeMultiSearchModal:hover {
  background-color: #444452;
}

#multiSearchModal .title {
  text-align: center;
  color: white;
  font-size: 23px;
  margin-top: 20px;
}

#multiSearchModal .items {
  width: 100%;
  margin-top: 20px;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  overflow-y: auto;
  gap: 20px;
}

#multiSearchModal .item {
  width: 90%;
  max-width: 200px;
  height: 240px;
  background-color: var(--sub-color);
  padding: 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

#multiSearchModal .item:hover {
  background-color: #393946;
}

#multiSearchModal .itemHeader {
  display: flex;
  align-items: center;
}

#multiSearchModal .itemHeader .champion {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 10px;
}

#multiSearchModal .itemHeader .info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

#multiSearchModal .itemHeader .info p {
  display: flex;
  align-items: center;
  color: var(--sub2-color);
  font-size: 14px;
}

#multiSearchModal .itemHeader .info .roles {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

#multiSearchModal .info2 {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

#multiSearchModal .info2 h3 {
  color: var(--sub2-color);
  font-size: 13px;
  margin-bottom: 5px;
}

#multiSearchModal .info2 p {
  font-size: 13px;
}

#multiSearchModal .tier {
  text-align: center;
}

#multiSearchModal .tierImage {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

#multiSearchModal .mostChampions {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  margin-top: 20px;
}

#multiSearchModal .mostChampion {
  width: 33%;
  text-align: center;
}

#multiSearchModal .mostChampion .champion {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

#multiSearchModal .mostChampion p {
  color: var(--sub2-color);
  font-size: 12px;
  margin-top: 3px;
}

#multiSearchModal .empty {
  color: var(--sub2-color);
  margin-top: 80px;
}

.riot-disclaimer {
  width: min(1180px, calc(100% - 32px));
  margin: 48px auto 24px;
  padding: 14px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.riot-disclaimer p {
  color: #777786;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}
