@import url("./common.1755635323132.css");

@media (width >= 60em) {
  body {
    background-image: url("/img/background.svg");
    background-repeat: no-repeat;
    background-position: center bottom 42px;
    background-size: 2370px auto;
  }
}

.header > img {
  width: 174px;
  height: 174px;
  margin: 15px 0;

  @media (width >= 60em) {
    width: 315px;
    height: 315px;
    margin: 90px 0;
  }
}

.main-title {
  padding: 0 10px;
  font-size: 14px;
  line-height: 15px;
  opacity: 0.5;

  .main-search + & {
    margin-top: 10px;
  }

  @media (width >= 60em) {
    padding: 0 20px;
    font-size: 21px;
    line-height: 22.5px;

    .main-search + & {
      margin-top: 61px;
    }
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  padding-top: 6px;
}

.card {
  width: 140px;
  margin: 5px;
  border-radius: 25px;

  background: var(--text-background);
  box-shadow: 0 0 4px 0 var(--box-shadow);

  &:is(.index-0, .index-3, .index-4, .index-7) {
    height: 183px;
  }

  &:is(.index-1, .index-2, .index-5, .index-6) {
    height: 225px;
  }

  &:is(.index-2, .index-6) {
    margin-top: -37px;
  }

  &.hidden {
    display: none;
  }

  & > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;

    & > img {
      flex: 1;
      width: 100px;
      height: 100px;

      @media (width >= 60em) {
        width: 130px;
        height: 130px;
      }
    }
  }

  @media (width >= 60em) {
    width: 182px;
    margin: 15px;

    &:is(.index-0, .index-2, .index-5, .index-7) {
      height: 238px;
    }

    &:is(.index-1, .index-3, .index-4, .index-6) {
      height: 293px;
    }

    &.index-2 {
      margin-top: 15px;
    }

    &:is(.index-4, .index-6) {
      margin-top: -40px;
    }
  }
}

.card-title {
  font-size: 16px;
  line-height: 25px;

  @media (width >= 60em) {
    font-size: 20.8px;
    line-height: 33px;
  }
}

.card-info {
  margin: 1px 0 16px;
  font-size: 10px;
  line-height: 15px;

  @media (width >= 60em) {
    margin: 0 0 20px;
    font-size: 13px;
    line-height: 21px;
  }
}

.main-content:not(:has(.card:not(.hidden))) > :is(.main-title, .card-container),
.main-content:has(.card:not(.hidden)) > .noresults {
  display: none;
}
