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

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: white;
}

body.body {
  color: #111;
  font-family: "Michroma", Arial, sans-serif;
  margin: 0;
  padding: 0;
}

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

body.dark-mode a {
  text-decoration: none;
  color: black;
}
/* copy of header style
#my_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 100;
  background: #f6f8f7;
  background: linear-gradient(135deg, #f6f8f7, #5c5c5c);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
  */
#my_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  z-index: 100;

  background: linear-gradient(135deg, #f6f8f7, #5c5c5c);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-hidden {
  transform: translateY(-100%);
}

.homepage-header-container {
  background: #f6f8f7;
  background: linear-gradient(135deg, #f6f8f7, #5c5c5c);
  transition: transform 0.3s ease;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-title-container {
  position: relative;
}

.dcs-button {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 2rem;
  padding: 0.3rem 1rem;
  border-radius: 0.25rem;
  background-color: rgb(211, 211, 211);
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1rem;
  color: white;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
}
.dcs-button:hover {
  background-color: white;
}

.site-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  color: black;
  letter-spacing: 0.1rem;
}
@media (max-width: 639px) {
  .site-title {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
  }
  .dcs-button {
    font-size: 0.5rem;
    padding: 0.2rem 0.6rem;
    margin-left: 1rem;
    letter-spacing: 0.05rem;
  }
}
.the-game-link {
  text-align: center;
  padding-top: 5rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 400;
}
.the-game-link button {
  background-color: rgb(211, 211, 211);
  border: none;
  border-radius: 0.55rem;
  padding: 0.5rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  color: white;
}
.the-game-link button:active {
  transform: scale(0.95);
}

@media (min-width: 769px) {
  .hide-on-desktop {
    display: none !important;
  }
}
.legal-text {
  margin-inline: auto;
  width: 400px;
}

.legal-text input[type="text"],
.legal-text input[type="email"] {
  text-align: left;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.25rem;
  border: 1px solid grey;
  width: 100%;
  font-size: 0.75rem;
  font-family: "Michroma", Arial, sans-serif;
}

input[type="submit"] {
  text-align: left;
  border: none;
  background-color: rgb(211, 211, 211);
  border-radius: 3px;
}

.legal-text button {
  background-color: rgb(211, 211, 211);
  border: none;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-family: "Michroma", Arial, sans-serif;
  color: black;
  font-size: 0.65rem;
  display: block;
  margin-inline: auto;
}

.legal-text button:active {
  transform: scale(0.95);
}

.legal-text button:hover {
  background-color: rgba(211, 211, 211, 0.6);
}

.message {
  text-align: left;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  width: 100%;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  border: 1px solid grey;
  font-family: "Michroma", Arial, sans-serif;
}

@media (max-width: 639px) {
  .message {
    font-size: 16px;
    transform: scale(0.6);
    transform-origin: top center;
    margin-bottom: -40px;
  }
}
@media (max-width: 639px) {
  .legal-text input[type="text"] {
    font-size: 16px;
    transform: scale(0.6);
    transform-origin: top center;
    margin-bottom: -20px;
  }
}
@media (max-width: 639px) {
  .legal-text input[type="email"] {
    font-size: 16px;
    transform: scale(0.6);
    transform-origin: top center;
    margin-bottom: -20px;
  }
}
.legal-container {
  display: block;
  max-width: 1100px;
  padding-inline: 2rem;
  margin-top: 6rem;
  margin-inline: auto;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  text-align: center;
}

.full-height {
  height: 100%;
}

.main {
  max-width: auto;
  min-height: 100vh;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  flex-direction: column;
  background: white;
}

.homepage {
  padding-top: 1.5rem;
}

.car-page {
  max-width: auto;
  height: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 5rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: white;
}

@media (max-width: 639px) {
  .car-page {
    padding-top: 5rem;
  }
}
.main-title {
  width: 100%;
  margin: 0;
  font-weight: 400;
  font-size: 2.25rem;
  color: #f8fafc;
  padding: 0.5rem 0;
  text-align: center;
  box-sizing: border-box;
}
.main-title a {
  text-decoration: none;
  color: inherit;
}

.section-title {
  font-size: 0.65rem;
  font-weight: 400;
  text-align: center;
  margin: 0;
  color: black;
  margin-top: 0.75rem;
}
@media (max-width: 639px) {
  .section-title {
    margin-top: 0.5rem;
  }
}

.country-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.5rem;
  justify-items: center;
}

@media (min-width: 640px) {
  .country-card-list {
    grid-template-columns: repeat(4, 1fr);
    max-width: 600px;
  }
}
@media (min-width: 768px) {
  .country-card-list {
    grid-template-columns: repeat(6, 1fr);
    max-width: 800px;
  }
}
@media (min-width: 1024px) {
  .country-card-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    max-width: 896px;
    margin: 0 auto;
    gap: 2rem;
    padding: 1rem 0;
    justify-items: center;
  }
}
.card-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  margin: 0 auto;
  max-width: 400px;
  width: 100%;
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.5rem;
  justify-items: center;
}
@media (min-width: 640px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1rem;
    max-width: 600px;
  }
}
@media (min-width: 768px) {
  .card-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.5rem;
    max-width: 800px;
  }
}
@media (min-width: 1024px) {
  .card-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1096px;
    margin: 0 auto;
    padding: 1rem 0;
    justify-items: center;
  }
}

.card {
  width: 100%;
  max-width: 250px;
  margin-top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 0.5rem;
  background: rgba(220, 220, 220, 0.4);
  padding: 0.5rem 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(211, 211, 211, 0.6);
}
.card:active {
  transform: scale(0.99);
  box-shadow: 0 0 5px gray;
}
.card:hover {
  background-color: rgba(211, 211, 211, 0.6);
}
@media (min-width: 1024px) {
  .card {
    max-width: 250px;
    width: 100%;
    margin: 0;
  }
}

.card-img {
  border-radius: 0.375rem;
  width: 100%;
  display: block;
  object-fit: cover;
}

.card-title {
  padding-top: 0.3rem;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 400;
  color: black;
  margin: 0;
}
@media (max-width: 639px) {
  .card-title {
    font-size: 0.5rem;
  }
}
.car-image {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

.overlay-copyright {
  text-align: center;
  font-size: 0.5rem;
  padding-top: 2rem;
  color: black;
}
@media (max-width: 639px) {
  .overlay-copyright {
    padding-bottom: 1rem;
  }
}

.copyright {
  text-align: center;
  font-size: 0.5rem;
  padding-bottom: 1rem;
  padding-top: 1rem;
  color: black;
}
@media (max-width: 639px) {
  .copyright {
    padding-top: 0.5rem;
  }
}

.space {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.about-container {
  display: block;
  max-width: 1100px;
  padding-inline: 2rem;
  margin-top: 6rem;
  margin-inline: auto;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  text-align: center;
}
.contact-container {
  display: block;
  max-width: 1100px;
  padding-inline: 2rem;
  margin-top: 6rem;
  margin-inline: auto;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  text-align: center;
}

.top10-section {
  display: flex;
  text-align: center;
  gap: 2.5rem;
  justify-content: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
}

@media (max-width: 639px) {
  .top10-section {
    font-size: 0.75rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 1.5rem;
  }
}
.top10-button {
  background-color: rgba(220, 220, 220, 0.4);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(211, 211, 211, 0.6);
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-family: "Michroma", Arial, sans-serif;
  color: black;
  font-size: 0.6rem;
  width: 65px;
}
@media (max-width: 639px) {
  .top10-button {
    font-size: 0.5rem;
    width: 60px;
  }
}
.top10-button:active {
  transform: scale(0.95);
}

.top10-button:hover {
  background-color: rgba(211, 211, 211, 0.6);
}

.example-card {
  border: 0.25px solid lightgrey;
  border-radius: 0.4rem;
  justify-self: end;
}

.example-card .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 639px) {
  .example-card {
    display: none !important;
  }
}
.description {
  margin-top: 1rem;
  padding-left: 2rem;
  justify-self: start;
}
.description .appstore-image {
  display: block;
  margin-top: 1rem;
  margin-inline: auto;
  text-align: center;
  height: auto;
}
@media (max-width: 639px) {
  .description {
    display: block;
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.subheading {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.65rem;
}

.appstore {
  font-size: 0.65rem;
}

@media (max-width: 639px) {
  .appstore {
    display: block;
    text-align: center;
  }
}
.card-images {
  display: grid;
  grid-template-columns: auto;
  width: 80%;
  justify-content: center;
  margin-inline: auto;
  margin-top: 2rem;
  margin-bottom: 2rem;
  column-gap: 4rem;
}
.card-images .img {
  width: 100%;
  height: auto;
}

.qr-code {
  display: block;
  margin-top: 1rem;
  margin-inline: auto;
  text-align: center;
  height: auto;
}

@media (max-width: 640px) {
  .qr-code {
    display: block;
    text-align: center;
  }
}
@media (max-width: 639px) {
  .qr-code img {
    width: 25%;
    height: auto;
  }
}
.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 639px) {
  .icon {
    width: 50%;
  }
}
.search-section {
  display: flex;
  justify-content: center;
  margin: 1rem 0 2rem;
}

@media (max-width: 639px) {
  .search-section {
    margin: 1rem 0 0.5rem;
  }
}
.search-field-wrap {
  width: min(100%, 260px);
  position: relative;
}

.car-search-input {
  width: 100%;
  border: 1px solid lightgrey;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  text-align: center;
  background: white;
  outline: none;
}

.car-search-input:focus {
  border-color: rgb(211, 211, 211);
  box-shadow: 0 0 0 2px rgba(211, 211, 211, 0.2);
}

.search-field-wrap input:hover {
  background: white;
}

@media (max-width: 639px) {
  .car-search-input {
    font-size: 16px;
    transform: scale(0.6);
    transform-origin: top center;
    margin-bottom: -8px;
  }
}
.car-search-results {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  width: 100%;
  display: none;
  background: white;
  border: 1px solid lightgrey;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  z-index: 10;
  max-height: min(220px, 100vh - 140px);
  overflow-y: auto;
  overflow-x: hidden;
}

.car-search-results.visible {
  display: block;
}

.car-search-results {
  text-transform: lowercase;
}

.search-result-item {
  display: block;
  padding: 0.6rem 0.8rem;
  font-size: 0.65rem;
  color: black;
  text-decoration: none;
  border-bottom: 1px solid #f0f0f0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.active {
  background: #f7f7f7;
}

.search-result-empty {
  padding: 0.6rem 0.8rem;
  font-size: 0.65rem;
  color: gray;
}

.icon-section {
  display: flex;
  text-align: center;
  justify-content: center;
  font-size: 0.75rem;
}

@media (max-width: 639px) {
  .icon-section .icon {
    width: 24px;
  }
  .copyright-icon {
    width: 14px;
  }
}
.info-section {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem auto 1rem;
  font-size: 0.55rem;
  gap: 2rem;
  width: fit-content;
}

@media (max-width: 639px) {
  .info-section {
    margin-top: 0.75rem;
    gap: 1.5rem;
    font-size: 0.5rem;
  }
}
/* car page */
.car-container {
  position: relative;
  display: block;
  margin-top: 6rem;
  border: 4px solid white;
  border-radius: 5px;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  background: transparent;
  overflow: visible;
  isolation: isolate;
  max-width: 1000px;
  margin-inline: auto;
}
@media (max-width: 639px) {
  .car-container {
    margin-top: 5rem;
  }
}
.car-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(220, 220, 220, 0.4);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}
.car-container > * {
  position: relative;
  z-index: 1;
}
.car-container img {
  padding: 0.5rem;
  max-width: 950px;
  width: 100%;
}

.car-name {
  color: black;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.875rem;
  padding-top: 0.5rem;
  font-weight: 400;
}

@media (max-width: 639px) {
  .car-name {
    font-size: 0.75rem;
    font-weight: 600;
  }
}
.statblock-mobile {
  display: grid;
  list-style: none;
  margin: 0 auto;
  font-family: "Michroma", Arial, sans-serif;
  max-width: 100%;
  width: min(340px, 100%);
}

.statblock-mobile li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  padding: 0.3rem 0.5rem;
  width: 100%;
}

.stat-label {
  color: black;
  font-weight: 500;
  font-size: 0.6rem;
  text-align: left;
  white-space: nowrap;
}

.stat-value {
  color: black;
  font-weight: 500;
  font-size: 0.6rem;
  text-align: right;
  min-width: 0;
  word-break: break-word;
  white-space: normal;
}

.statblock-desktop {
  display: none;
  margin-inline: auto;
  max-width: 1100px;
  font-family: "Michroma", Arial, sans-serif;
}
@media (min-width: 641px) {
  .statblock-desktop {
    display: block;
  }
}

@media (min-width: 641px) {
  .statblock-mobile {
    display: none;
  }
}
.statblock-row {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  padding: 0.2rem 2rem;
  text-align: center;
  gap: 0;
  list-style: none;
  margin: 0;
}

.statblock-labels {
  color: grey;
  font-weight: 500;
  font-size: 0.5rem;
}

.statblock-values {
  color: black;
  font-weight: 600;
  font-size: 0.5rem;
}

.photo-credit {
  font-size: 0.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  text-align: center;
  color: rgb(27, 27, 27);
  font-family: "Michroma", Arial, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.license-info {
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    width 0.3s ease;
  white-space: nowrap;
  text-align: left;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  width: 0;
  overflow: hidden;
}

.license-info.visible {
  visibility: visible;
  opacity: 1;
  width: auto;
}
.center {
  display: flex;
  padding-top: 0.75rem;
  justify-content: center;
  align-items: center;
  color: red;
}

.copyright-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.copyright-icon {
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1;
  color: inherit;
}

.credit-symbol {
  font-size: 0.7rem;
  line-height: 1;
  color: inherit;
  display: inline-block;
  transform: translateY(0.05em);
}

.about-section {
  text-align: center;
  padding-top: 1rem;
  font-size: 0.75rem;
}
@media (max-width: 639px) {
  .about-section {
    font-size: 0.75rem;
    padding-bottom: 1rem;
  }
}
.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 10rem;
  gap: 4rem;
  border: 1px solid rgba(211, 211, 211, 0.6);
  /*border-radius: 2rem;*/
  background: linear-gradient(135deg, #f6f8f7, #5c5c5c);
  width: 1024px;
  height: 1024px;
  margin-inline: auto;
}
/* game page demo app container */

.the-game {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 700px;

  max-width: 1100px;

  padding-inline: 2rem;
  padding-bottom: 2rem;

  margin: 0 auto;

  position: relative;
  top: 100px;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
}
@media (max-width: 639px) {
  .the-game {
    display: block;
    padding-inline: 1rem;
    padding-bottom: 2rem;
    margin: 0 auto;
    top: 60px;
  }

  .app-container {
    display: none;
  }
  .description {
    padding-top: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.app-container {
  width: 340px;
  height: 700px;

  margin: 0 auto;

  box-sizing: border-box;

  border: 1px solid #ccc;
  border-radius: 6px;

  overflow: hidden;

  background: rgba(220, 220, 220, 0.2);

  display: flex;
  flex-direction: column;
}
.app-header {
  background: linear-gradient(135deg, #f6f8f7, #5c5c5c);
  height: 3rem;
}
.app-header h2 {
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.875rem;
  text-align: center;
  padding-top: 0.75rem;
}
.app-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.app-page {
  display: none;
}

.app-nav {
  height: 62px;
  min-height: 62px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: space-around;

  border-top: 1px solid #ccc;
  background: #fafafa;

  box-sizing: border-box;
}

.nav-button {
  border: none;
  background: transparent;

  cursor: pointer;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.55rem;
}

.nav-button img {
  width: 22px;
  height: 22px;
}

.play-button {
  padding: 0.7rem 1.3rem;

  border-radius: 6px;

  background: #0965bd;
  color: white;

  font-size: 0.75rem;
  letter-spacing: 0.08rem;
}

.app-page.active {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}
#car-name {
  text-align: center;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;

  font-weight: 400;
}
.car-image {
  width: 100%;
  max-width: 256px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 0.25rem;
}
.car-card {
  width: calc(100% - 40px);
  max-width: 294px;

  margin: 60px auto 0;
  padding: 10px 10px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;

  box-sizing: border-box;
}
.car-card h3,
.car-card .car-image,
.car-card .car-stats {
  transition: opacity 0.2s ease;
}

.car-card.fade-out-content h3,
.car-card.fade-out-content .car-image,
.car-card.fade-out-content .car-stats {
  opacity: 0;
}

.car-card h3 {
  margin: 0 0 10px;

  text-align: center;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
}
.car-stats {
  width: 100%;
  margin-top: 8px;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.55rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 20px;
  padding: 2px 12px;
  box-sizing: border-box;
}

.stat-row:nth-child(even) {
  background-color: #f5f6f8;
}

.stat-row span:first-child {
  text-align: left;
}

.stat-row span:last-child {
  text-align: right;
}
.refresh-button {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  margin-inline: auto;
  margin-top: 1.5rem;

  padding: 0;

  color: white;
  background: rgba(128, 128, 128, 0.8);

  border: none;
  border-radius: 50%;

  cursor: pointer;
}
.refresh-button svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}
@media (max-width: 639px) {
  .app-container {
    display: none !important;
  }

  .the-game {
    display: block;
    grid-template-columns: none;
    grid-template-rows: none;
  }
}
/* ============================
   STATISTICS PAGE
   ============================ */

#statistics-page {
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.page-title {
  margin: 0 0 1.5rem;

  text-align: center;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
}

/* Statistics table */

.stats-table {
  width: 100%;
  border:
    1px,
    solid lightgrey;
  background: white;
  border-radius: 0.25rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.55rem;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: white;
  align-items: center;
  min-height: 28px;
  text-align: center;
}

.stats-header {
  font-weight: 600;
  background-color: rgba(220, 220, 220, 0.4);
}

/* Statistics options */

.stats-options {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 2rem 1rem;

  margin-top: 3rem;
}

.stats-option {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  padding: 0;

  border: none;
  background: transparent;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.5rem;

  cursor: pointer;
}

.stats-option svg {
  width: 30px;
  height: 30px;

  stroke-width: 1.5;
}

.stats-option span {
  text-align: center;
}

/* ============================
   FRIENDS PAGE
   ============================ */

#friends-page {
  padding: 1.5rem 1rem;
  box-sizing: border-box;
}

.friends-table {
  width: 100%;
  border:
    1px,
    solid lightgrey;
  background: white;
  border-radius: 0.25rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.55rem;
}

.friends-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 28px;
  text-align: center;
}

.friends-header {
  font-weight: 600;
  background: rgba(220, 220, 220, 0.4);
}

/* Friends options */

.friends-options {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 1rem;

  margin-top: 3rem;
}

.friends-option {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 0.5rem;

  padding: 0;

  border: none;
  background: transparent;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.5rem;

  cursor: pointer;
}

.friends-option svg {
  width: 30px;
  height: 30px;

  stroke-width: 1.5;
}

.friends-option span {
  text-align: center;
}

/* ============================
   PROFILE PAGE
   ============================ */

#profile-page {
  position: relative;

  padding: 1.5rem 1rem;

  box-sizing: border-box;
}

/* Moon / dark mode button */

.theme-toggle {
  position: absolute;

  top: 0.75rem;
  right: 0.75rem;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 2rem;
  height: 2rem;

  padding: 0;

  border: none;
  background: transparent;

  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;

  stroke-width: 1.5;
}

/* Profile content */

.profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;
}

/* Avatar */

.profile-avatar {
  width: 80px;
  height: 80px;

  border-radius: 50%;

  overflow: hidden;

  margin-top: 1rem;
}

.profile-avatar img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

/* Username */

.profile-name {
  margin: 0.75rem 0 1.5rem;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;

  color: #65aee8;

  text-align: center;
}

/* Profile links */

.profile-links {
  width: 100%;
}

.profile-link {
  display: block;

  width: 100%;

  padding: 0.75rem 0;

  border: none;
  border-bottom: 1px solid #ddd;

  background: transparent;

  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.55rem;

  text-align: center;

  cursor: pointer;
}

.profile-link:first-child {
  border-top: 1px solid #ddd;
}
/* ============================
   PLAY PAGE
   ============================ */

#play-page {
  position: relative;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  align-items: center;
}

/* Page heading */

.play-title {
  margin: 0;
  text-align: center;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
}

/* Category buttons */

.game-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 200px;
  margin-top: 2rem;
}

.game-category {
  min-height: 32px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

/* Selected category */

.game-category.selected {
  background: #0965bd;
  border-color: #0965bd;
  color: white;
}

/* Start button */

.start-game-button {
  margin-top: 2rem;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  background: #0965bd;
  color: white;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.08rem;
  cursor: pointer;
}

/* Disabled start button */

.start-game-button:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}
.play-notes {
  margin-top: 1rem;
  font-family: "Michroma", Arial, sans-serif;
  font-size: 0.55rem;
  text-align: center;
  color: #888;
}
/* ============================
   APP DARK MODE
   ============================ */

.app-container.dark-mode {
  background: #1c1c1c;
  color: #f5f5f5;
}
.app-container.dark-mode .app-header {
  color: black;
}

.app-container.dark-mode .app-nav {
  background: #242424;
  border-top-color: #444;
}

.app-container.dark-mode .nav-button {
  color: #f5f5f5;
}

.app-container.dark-mode .car-card {
  background: #292929;
  border-color: #444;
}

.app-container.dark-mode .car-stats .stat-row:nth-child(even) {
  background-color: #333;
}

.app-container.dark-mode .friends-table {
  background: #292929;
  border-color: #444;
}
.app-container.dark-mode .stats-table {
  background: #292929;
  border-color: #444;
}

.app-container.dark-mode .friends-row {
  background-color: #292929;
}
.app-container.dark-mode .stats-row {
  background-color: #292929;
}

.app-container.dark-mode .stats-header,
.app-container.dark-mode .friends-header {
  background-color: #444;
}

.app-container.dark-mode .profile-link {
  color: #f5f5f5;
  border-color: #444;
}

.app-container.dark-mode .theme-toggle {
  color: #f5f5f5;
}

.app-container.dark-mode .stats-option,
.app-container.dark-mode .friends-option {
  color: #f5f5f5;
}
.app-container.dark-mode .play-notes {
  color: white;
}
