header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333;
    color: white;
    padding: 10px 10px; /* updated padding */
    border-radius: 10px;
  }
  
  .left h1 {
    font-size: 20px; /* updated font-size */
    margin: 0;
  }
  
  .right {
    display: flex;
    align-items: center;
    margin-right: 10%;
  }
  
  .score-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    border: 2px solid white;
    border-radius: 10px;
  }
  
  .score-main {
    font-size: 28px; /* updated font-size */
    font-weight: bold;
    margin-right: 10px;
  }
  
  .score {
    font-size: 16px; /* updated font-size */
    margin: 5px 10px;
  }
  
  .score-box hr {
    border: 1px solid white;
    height: 100%;
    margin: 0 10px;
  }
  

/*  Timer */

#timer-container {
    width: 100%;
    height: 50px;
    background-color: #e82d2d;
    position: relative;
    border-radius: 10px;
  }
  
  #timer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: #4caf50;
    border-radius: 10px;
  }
  
  #timer-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  
  #timer-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background-color: transparent;
    z-index: 10;
  }

/*  Map */
#map-container{
    position: absolute;
    /*top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/
    width: 95vw;
    height: 450px;
    border: 5px solid black;
    border-radius: 20px;
    z-index: 1;
    margin-top: 5px;
  }
  
  #mapid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 450px;
    background-color: #f2f2f2;
    border-radius: 15px;
  }

/* Modals */


.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
  
/* Game Modal */
  .modal-content {
    background-color: rgba(181, 172, 172, 0.703);
    padding: 20px;
    border-radius: 10px;
  }
  
  .modal-content p {
    margin-bottom: 10px;
  }
  
  .modal-score {
    font-size: 24px;
    font-weight: bold;
  }

/* Start Modal */

  .start-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(197, 190, 190, 0.429);;
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 100;
  }
  .modal-content-start {
      background-color: white;
      padding: 20px;
      border-radius: 10px;
  }

  .start-message {
    font-size: 24px;
    font-weight: bold;
  }

/* Level Modal */
  
    .level-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(95, 99, 106, 0.213);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 99;
    }
    .modal-content-level {
        background-color: rgb(157, 151, 151);
        padding: 20px;
        border-radius: 10px;
    }
  
    .level-message {
      font-size: 24px;
      font-weight: bold;
    }

/*  Game Over Modal */

  .game-over-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 100;
  }
  
  .modal-content-gameover {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
  }
  
  .game-over-message {
    font-size: 24px;
    font-weight: bold;
  }

/* Buttons */
  .buttons {
    display: block;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .button {
    font-size: 24px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 470px;
  }

  .button:hover {
    background-color: #2980b9;
  }
  
  
  