@use "./media.scss" as *;

@include media-query(blue) {
  .content-grid {
    --content-max-width: 640px;
  }
  #testModesNotice {
    font-size: 0.8rem;
  }
  .page404 {
    .content {
      grid-template-columns: 300px;
      grid-auto-flow: unset;
      gap: 1rem;
    }
  }
  .pageTest {
    #liveStatsTextTop,
    #liveStatsTextBottom {
      font-size: 5rem;
    }
    #result .wrapper {
      grid-template-columns: 1fr;
      grid-template-areas:
        "stats" "chart"
        "morestats";
      .stats {
        grid-template-columns: 1fr 1fr;
        grid-template-areas: "wpm acc";
        justify-items: center;
      }
      .stats.morestats {
        gap: 1rem;
        justify-items: start;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
      }
    }
  }
  .pageAccount {
    .triplegroup.stats {
      .title {
        font-size: 0.75rem;
      }
      .val {
        font-size: 1.5rem;
      }
    }
    .group.estimatedWordsTyped {
      .val {
        font-size: 2rem;
      }
    }
    .group.history table thead td:nth-child(7),
    .group.history table tbody td:nth-child(7) {
      display: none;
    }
    .group.filterButtons {
      grid-template-columns: 1fr;
    }
  }
  .pageAccountSettings {
    .main {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
      .tabs {
        padding: 0;
        display: grid;
        grid-auto-flow: row;
        button {
          justify-content: center;
          padding: 1em 0.5em;
        }
      }
    }
  }

  .pageSettings {
    .accountSettingsNotice {
      button {
        grid-column: -1/1;
      }
    }
    .section {
      grid-template-columns: 1fr;
      grid-template-areas:
        "title"
        "text" "buttons";

      &.themes {
        grid-template-columns: 1fr 1fr;
        gap: 1em;
        .tabContainer .tabContent.customTheme {
          .customThemeInputs {
            grid-template-columns: 1fr;
            .customThemeInput {
              grid-template-columns: 1fr 1fr;
            }
          }
          .customThemeButtons {
            grid-template-columns: 1fr;
          }
        }
      }
    }
    .section[data-config-name="fontFamily"] {
      grid-template-areas:
        "title"
        "text"
        "tabs"
        "buttons";
      .topRight {
        grid-area: tabs;
        align-self: start;
      }
    }
  }

  .pageFriends {
    .content .friends table,
    .content .pendingRequests table {
      font-size: 0.75rem;
    }
  }
}
@media (pointer: coarse) and (max-width: 778px) {
  #restartTestButton {
    display: block !important;
  }
}
