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

  @font-face {
    font-family: 'True North';
    src: url('/static/fonts/tnorth-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

  body, button, .stat-label, .stat-value, .stat-value2, .title {
      font-family: 'True North', sans-serif;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: rgb(17, 24, 39);
    min-height: 100vh;
    padding: 1rem;
  }
  
  p{
    color: white;
    position: absolute;
    left: 50%;
    bottom: 0rem;
    transform: translate(-25%, -50%);
    font-size: 0.875rem;
    transition: all 0.8s;
  }

  a{
    color: white;
    text-decoration: none;
    
  }
  
  a:hover p {
  letter-spacing: 0.2em;
  font-size: 1rem;
  }

  .container {
    max-width: 64rem;
    margin: 0 auto;
  }
  
  .header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  img {
  width: 3rem;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .play-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .title {
    color: white;
    font-size: 1.875rem;
    font-weight: bold;
  }
  
  .stats {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    justify-content: flex-end;
  }
  
  .stat {
    text-align: center;
  }
  
  .stat-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-label-inside {
    font-size: 0.75rem;
    color: white;
  }
  
  .stat-value {
    aspect-ratio: 2/1;
    min-width: 7rem;
    padding: 0.25rem;
    font-size: 2rem;
    border-radius: 0.375rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .stat-value2 {
    aspect-ratio: 3/1;
    min-width: 9rem;
    padding: 0.25rem;
    font-size: 2rem;
    border-radius: 0.375rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Game board styles */
  .game-board {
    display: flex;
    gap: 0.5rem;
  }
  
  .side-labels {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .label {
    width: 2rem;
    height: 100%;
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
  }
  
  .label span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
  }
  
  .grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
  }
  
  .grid button {
    aspect-ratio: 2/1;
    border: 3px solid transparent;
    border-radius: 0.375rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: default;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d7e4ec;
  
  }
  
  .heads-section {
      display: flex;
      gap: 0.5rem;
      align-items: start;
  }

  .tails-section {
      display: flex;
      gap: 0.5rem;
      align-items: start;
      padding-top: 1rem;
  }


  #gameGrid {
    display: flex;
    flex-direction: column;
  }
/* .grid button:hover {
    opacity: 0.9;
  }
*/
  
/*  .grid button.active {
    border-color: rgb(34, 197, 94);
    box-shadow: 0 0 20px 7px rgb(34 197 94 / 50%);
  }
*/  
  .red { color: rgb(239, 68, 68); }
  .blue { color: rgb(59, 130, 246); }
  .pink { color: rgb(236, 72, 153); }
  
  .red-bg.chosen { background-color: rgb(220, 38, 38); }
  .blue-bg.chosen { background-color: rgb(37, 99, 235); }
  .pink-bg.chosen { background-color: rgb(219, 39, 119); }
  .green-bg.chosen { background-color: rgb(22, 163, 74); }
  .yellow-bg.chosen { background-color: rgb(234, 179, 8); }
  .purple-bg.chosen { background-color: rgb(168, 85, 247); }
  .orange-bg.chosen { background-color: rgb(249, 115, 22); }
  .light-blue-bg.chosen { background-color: rgb(147, 197, 253); }
  .deep-purple-bg.chosen { background-color: rgb(107, 33, 168); }

@media (max-width:900px) {
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  @font-face {
    font-family: 'True North';
    src: url('/static/fonts/tnorth-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
  }

  body, button, .stat-label, .stat-value, .stat-value2, .title {
      font-family: 'True North', sans-serif;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: rgb(17, 24, 39);
    min-height: 100vh;
    padding: 1rem;
  }
  
  p{
    color: white;
    position: absolute;
    left: 50%;
    bottom: 0rem;
    transform: translate(-25%, -50%);
    font-size: 0.875rem;
    transition: all 0.8s;
  }

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

  a:hover p {
  letter-spacing: 0.2em;
  font-size: 1rem;
  }

  .container {
    max-width: 64rem;
    margin: 0 auto;
  }
  
  .header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  img {
  width: 3rem;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .play-icon {
    width: 2rem;
    height: 2rem;
  }
  
  .title {
    color: white;
    font-size: 1.875rem;
    font-weight: bold;
  }
  
  .stats {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    justify-content: flex-end;
  }
  
  .stat {
    text-align: center;
  }
  
  .stat-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
  }
  
  .stat-label-inside {
    font-size: 0.75rem;
    color: white;
  }
  
  .stat-value {
    aspect-ratio: 2/1;
    min-width: 6rem;
    padding: 0.25rem;
    font-size: 2rem;
    border-radius: 0.375rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .stat-value2 {
    aspect-ratio: 3/1;
    min-width: 6rem;
    padding: 0.25rem;
    font-size: 1.57rem;
    border-radius: 0.375rem;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  /* Game board styles */
  .game-board {
    display: flex;
    gap: 0.5rem;
  }
  
  .side-labels {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .label {
    width: 2rem;
    height: 100%;
    border-radius: 0.375rem;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
  }
  
  .label span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    white-space: nowrap;
  }
  
  .grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.5rem;
  }
  
  .grid button {
    aspect-ratio: 2/1;
    border: 3px solid transparent;
    border-radius: 0.375rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: default;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d7e4ec;
  }

  .heads-section {
      display: flex;
      gap: 0.5rem;
      align-items: start;
  }

  .tails-section {
      display: flex;
      gap: 0.5rem;
      align-items: start;
      padding-top: 1rem;
  }

  #gameGrid {
    display: flex;
    flex-direction: column;
  }
/* .grid button:hover {
    opacity: 0.9;
  }
*/
  
/*  .grid button.active {
    border-color: rgb(34, 197, 94);
    box-shadow: 0 0 20px 7px rgb(34 197 94 / 50%);
  }
*/  
  .red { color: rgb(239, 68, 68); }
  .blue { color: rgb(59, 130, 246); }
  .pink { color: rgb(236, 72, 153); }
  
  .red-bg.chosen { background-color: rgb(220, 38, 38); }
  .blue-bg.chosen { background-color: rgb(37, 99, 235); }
  .pink-bg.chosen { background-color: rgb(219, 39, 119); }
  .green-bg.chosen { background-color: rgb(22, 163, 74); }
  .yellow-bg.chosen { background-color: rgb(234, 179, 8); }
  .purple-bg.chosen { background-color: rgb(168, 85, 247); }
  .orange-bg.chosen { background-color: rgb(249, 115, 22); }
  .light-blue-bg.chosen { background-color: rgb(147, 197, 253); }
  .deep-purple-bg.chosen { background-color: rgb(107, 33, 168); }

  
}

  @media (max-width: 500px) {
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      margin-left: -0.1rem;
      
    }
  
    @font-face {
      font-family: 'True North';
      src: url('/static/fonts/tnorth-regular-webfont.woff') format('woff');
      font-weight: normal;
      font-style: normal;
    }
  
    body, button, .stat-label, .stat-value, .stat-value2, .title {
        font-family: 'True North', sans-serif;
    }
  
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: rgb(17, 24, 39);
      min-height: 100vh;
      padding: 1rem;
    }
    
    .container {
      max-width: 64rem;
      margin: 0 auto;
    }
    p{
      bottom: -5rem;
    }
    .header {
      display: inline;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }
    
    img {
    width: 3rem;
    }
  
    .logo {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    
    .play-icon {
      width: 2rem;
      height: 2rem;
    }
    
    .title {
      color: white;
      font-size: 1.875rem;
      font-weight: bold;
    }
    
    .stats {
      flex: 1;
      display: flex;
      align-items: flex-end;
      gap: 0.4rem;
      padding-top: 1rem;
      justify-content: space-between;
    }
    
    .stat {
      text-align: center;
    }
    
    .stat-label {
      font-size: 0.875rem;
      margin-bottom: 0.25rem;
    }
    
    .stat-label-inside {
      font-size: 0.75rem;
      color: white;
    }
    
    .stat-value {
      aspect-ratio: 2/1;
      min-width: 4.66666667rem;
      padding: 0.16666666666rem;
      font-size: 1.33333333333rem;
      border-radius: 0.25rem;
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
  
    .stat-value2 {
      aspect-ratio: 3/1;
      min-width: 6rem;
      font-size: 1.33333333333rem;
      border-radius: 0.25rem;
      color: white;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    
    /* Game board styles */
    .game-board {
      display: flex;
      padding-top: 1rem;
      gap: 0.5rem;
    }
    
    .side-labels {
      display: flex;
      flex-direction: column;
      gap: 1.2rem;
    }
    
    .label {
      width: 1rem;
      height: 100%;
      border-radius: 0.175rem;
      color: white;
      font-size: 0.875rem;
      font-weight: 500;
      position: relative;
    }
    
    .label span {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-90deg);
      white-space: nowrap;
    }
    
    .grid {
      flex: 1;
      display: grid;
      grid-template-columns: repeat(10, 1fr);
      gap: 0.25rem;
    }
    
    .grid button {
      aspect-ratio: 2/1;
      border: 3px solid transparent;
      border-radius: 0.175rem;
      color: white;
      font-size: 0.75rem;
      font-weight: bold;
      cursor: default;
      transition: all 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #d7e4ec;
      width: 2.5rem;
    }
    
    .grid button.gap {
      margin-top: 1rem;
    }
    
  /* .grid button:hover {
      opacity: 0.9;
    }
  */
    
  /*  .grid button.active {
      border-color: rgb(34, 197, 94);
      box-shadow: 0 0 20px 7px rgb(34 197 94 / 50%);
    }
  */  
    .red { color: rgb(239, 68, 68); }
    .blue { color: rgb(59, 130, 246); }
    .pink { color: rgb(236, 72, 153); }
    
    .red-bg.chosen { background-color: rgb(220, 38, 38); }
    .blue-bg.chosen { background-color: rgb(37, 99, 235); }
    .pink-bg.chosen { background-color: rgb(219, 39, 119); }
    .green-bg.chosen { background-color: rgb(22, 163, 74); }
    .yellow-bg.chosen { background-color: rgb(234, 179, 8); }
    .purple-bg.chosen { background-color: rgb(168, 85, 247); }
    .orange-bg.chosen { background-color: rgb(249, 115, 22); }
    .light-blue-bg.chosen { background-color: rgb(147, 197, 253); }
    .deep-purple-bg.chosen { background-color: rgb(107, 33, 168); }
  }