/* Reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: #1f1c2c;
    color: #ffffff;
    font-family: Arial, sans-serif;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  /* Styles for headings and containers */
  h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #ffe7c4;
  }
  
  .container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
  }
  
  /* Mode selection styling */
  .mode-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #1f1c2c;
  }
  
  .mode-selection h2 {
    color: #ffe7c4;
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .mode-selection button {
    padding: 1rem 2rem;
    font-size: 1.25rem;
    color: #ffffff;
    background-color: #ff6f91;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    margin: 0.5rem;
    transition: background-color 0.3s;
  }
  
  .mode-selection button:hover {
    background-color: #ff2e63;
  }
  
  /* Game styling */
  .game-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .game {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  
  .box {
    height: 8rem;
    width: 8rem;
    font-size: 4rem;
    color: #ffffff;
    background-color: #6a0572;
    border: 2px solid #ffe7c4;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .box:hover {
    background-color: #ff6f91;
    transform: scale(1.1);
  }
  
  .box:disabled {
    background-color: #ab83a1;
    cursor: not-allowed;
  }
  
  #reset-btn, #new-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    color: #ffffff;
    background-color: #ff6f91;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 2rem;
  }
  
  #reset-btn:hover, #new-btn:hover {
    background-color: #ff2e63;
  }
  
  /* Endgame message container */
  .msg-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    color: #ffe7c4;
  }
  
  #msg {
    font-size: 2.5rem;
  }
  
  .hide {
    display: none;
  }
  
  /* Responsive styling */
  @media (max-width: 768px) {
    h1 {
      font-size: 2rem;
    }
  
    .box {
      height: 6rem;
      width: 6rem;
      font-size: 3rem;
    }
  }
  
  @media (max-width: 480px) {
    .box {
      height: 4rem;
      width: 4rem;
      font-size: 2rem;
    }
  
    .mode-selection button, #reset-btn, #new-btn {
      padding: 0.5rem 1rem;
      font-size: 1rem;
    }
  
    .msg-container {
      font-size: 1.5rem;
    }
  }  