body {
    font-family: Arial, sans-serif;
    background: #f4f4f4;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }

  *, *::before, *::after {
    box-sizing: border-box;
  }

  #container {
    background: #fff;
    padding: 20px 30px 30px 30px; /* Extra bottom space for controls */
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
  }
  h1 {
    color: #333;
    font-size: 1.2rem;
  }
  label, select, p {
    font-size: 1rem;
    margin: 10px 0;
  }
  select, input[type="range"] {
    padding: 5px;
    border: 1px solid #ccc;
    font-size: inherit;
    max-width: 100%;
    flex: 1;
  }

  #selectionRow {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 10px;
    gap: 10px;
    max-height: 40px;
  }
  #dropdownContainer {
    display: flex;
    justify-content: right;
    justify-items: right;
    align-items: center;
    height: 40px;
    flex: 1 1 365px;         /* let it share row space with #info */
    border: 1px solid #ccc;
    padding: 6px 8px;
    gap: 18px;
    
  }
  #countrySelect {
    margin: 0px;
    height: 100%;
    text-align: left;
    max-width: 220px;
  }
  /* Fixed info panel placed to the right of the dropdown */
  #info {
    display: flex;
    flex: 0 0 365px;         /* let it share row space with #dropdownContainer */
    justify-content: left;
    justify-items: center;
    align-items: center;
    height: auto;
    overflow-y: hidden;
    border: 1px solid #ccc;
    background: #fff;
    padding: 0px 8px;
  }
  /* Additional instructions in a separate info box */
  #info2 {
    height: auto;  
    overflow-y:hidden;
    padding: 5px;
    border: 1px solid #ccc;
    background: #fff;
    margin-bottom: 10px;
    font-size: 0.6rem;
  }
  /* Bottom controls container: shares space between volume and channels */
  #bottomControls {
    display: flex;
    justify-content: space-between;
    gap: 10px; 
    margin-top: 10px; 
    width: 100%;
  }
  .controlBox {
    flex: 1;
    background: rgba(255,255,255,0.95);
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  #volumeControl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  #channelControl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  /* Map container style */
  #map {
    width: 100%;
    margin-top: 10px;
    border: 1px solid #ccc;
    max-width: 800px;
    box-sizing: border-box;
  }
  footer {
    text-align: center;
    font-size: 0.6rem;
    max-width: 800px;
    width: 100%;
    margin-top: 10px;
  }
  /* Start Audio button style */
  #startButton {
    width: 100%;
    padding: 8px 16px;
    font-size: 0.7rem;
    cursor: pointer;
    border: 1px solid #ccc;
    color: #ffffff;
    background: #000000;
  }

  @media (max-width: 600px){
    #container{
      max-width: 90%;
    }

    #selectionRow {
        display: inline-block;
      flex-direction: column;   /* Stack the dropdown and the info box vertically */
      align-items: stretch;     /* Let them expand the full container width */
      width: 100%;
      box-sizing: border-box;
      gap: 5px;
    }

    #dropdownContainer {
      max-width: 100%;
      display: block;
      height: auto;
    }

    #countrySelect{
        max-width: 100%;
    }

    #info {
      flex: 1 0 auto;
      height: 40px;
      width: 100%;
    }

    #info2 {
      height: auto;
    }

    br{
      line-height: 28px;
    }

    #bottomControls {
      flex-direction: column;  /* Stack the volume and channel controls */
      align-items: stretch; 
      max-width: 100%;
      box-sizing: border-box;
    }

    .controlBox {
      width: 100%;
    }

    #volumeControl input[type="range"] {
      width: 80%;  /* Adjust percentage as needed */
      max-width: 200px; /* Optional: set an absolute maximum */
    }


  }