/* styles.css */
body {
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    min-height: 100vh; /* Full viewport height */
    margin: 0;
  }
  
  #gameCanvas {
    border: 2px solid #fff;
    margin-top: 50px;
    left:50%;
    top:50%;
    transform: 50% 0%;
  }
  #answerInput {
    margin-top: 20px;
    font-size: 24px;
    padding: 10px;
  }

  #colorWheelContainer {

    position:absolute;
    right: 15px;
    bottom: 10px;

  }

  /* --------------------------------------- Game complete pop-up ---------------------------------------- */

.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scrolling if needed */
    background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* Centered vertically and horizontally */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px; /* Maximum width */
    text-align: center;
    border-radius: 10px;
  }
  
  /* Modal Text */
  .modal-content h2 {
    color: #333;
    margin-bottom: 20px;
  }
  
  .modal-content p {
    font-size: 18px;
    color: #555;
  }
  
  /* Exit Button */
  #exitButton {
    background-color: #ff4c4c;
    color: white;
    padding: 15px 25px;
    margin-top: 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
  }
  
  #exitButton:hover {
    background-color: #e04444;
  }
  
    /* ------------------------------------ End Game complete pop-up ---------------------------------------- */

    .menu {
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px 20px;
        border-radius: 30px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        font-size: 20px;
        font-weight: bold;
        color: #424242;
        z-index: 3;
        user-select:none;
    }

    .menu-modal {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-60%, -50%);
        background: #ffffff;
        padding: 30px;
        border-radius: 15px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        display: none;
        z-index: 11;
    }

    .menu-modal a {
        padding: 5px;
        text-decoration: none;
        color:#424242;
        font-family: 'Baloo 2', cursive;
        font-weight: bold;
    }

    .menu-modal a:hover{
        color:#fbc02d;
    }

    .nwg {
        position: absolute;
        transform: translate(-50%, 0%);
        top: 15px;
        left: 50%;
        background: rgba(255, 255, 255, 0.957);
        padding: 15px 20px;
        border-radius: 30px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        font-size: 20px;
        font-weight: bold;
        color: #424242;
        z-index: 3;
    }

    .nwg a {
        color: linear-gradient(to bottom, #ffeb3b, #fbc02d);
        background: linear-gradient(to right, #ff7e5f, #feb47b);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
        text-decoration: none; /* Optional: Remove underline */
        font-size: 2em; /* Optional: Adjust text size */
        font-weight: bold; /* Optional: Make the text bold */
    }
    
    #gameArea {
      display: flex;
      margin-top: 10vh;
    }

    #gameArea.below-canvas {
      flex-direction: column;
    }

    #canvasContainer {

      position: relative;

    }

    #playArea{
      display: flex;
      flex-direction: column;
    }

    .popped-table {
        position: absolute;
        top: 15px;
        right: 30px;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px;
        border-radius: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        /* z-index: 3; */
        width: 350px;
    }
    .popped-table h3 {
        margin-top: 0;
        font-size: 22px;
        color: #616161;
    }
    .popped-table table {
        width: 100%;
        border-collapse: collapse;
    }
    .popped-table th,
    .popped-table td {
        padding: 8px;
        text-align: center;
        border-bottom: 1px solid #ccc;
    }
    .popped-table tr:hover {
        background-color: #f1f8e9;
    }
    .popped-table th {
        background-color: #e0f2f1;
        color: #424242;
    }

    /* added for moving table on small screens */
    .popped-table.below-canvas {
      position: relative; /* or relative */
      margin-top: 20px;
      width: 96%;
      max-width: 96%;
      right: 0px;
    }

    /* styles.css */

/* Position the difficulty selector */
#difficultySelect {
    position: absolute;
    top: 25px;
    left: 150px;
    font-size: 18px;
    padding: 5px;
    z-index: 1000; /* Make sure it appears above other elements */
  }
  
  /* Adjust the body to be relative if necessary */
  body {
    position: relative;
    margin: 0;
    padding: 0;
    background-color: #333;
    /* Existing styles... */
  }
  