/*
######################
####  Map Styles  ####
######################
*/

#map {
    height: 98.4vh;
    width: 99.5vw;
    padding: 0;
    margin: 0;
  }

/*
###  ATTRIBUTE   ###
*/
.leaflet-control-attribution {
  background-color: seashell!important;
  color: black; /* Change text color for better contrast */
}
.leaflet-control-attribution a {
  color: rgb(46, 46, 255);  /* Adjust text color */
  }

      /*
  ###   Zoom Control   ###
  */
.leaflet-bar a {
    background-color: seashell;
    border-bottom: 1px solid #ccc;
    color: black;
    display: block;
    text-align: center;
    text-decoration: none;
    height: 26px;
    width: 26px;
    line-height: 26px;
    font-size: 18px;
}
.leaflet-bar a:hover {
    background-color: rgb(193, 185, 180);
    color: black;
    text-decoration: none;
}
.leaflet-bar a.leaflet-disabled {
    background-color: seashell;
    color: rgb(181, 180, 180);
    text-decoration: none;
}



/*
####  Marker Popup Styles  ####
*/

/* inside the popup */
  .popup-content {
    /* width: 284px; */
    width: 100%;
  }
  .leaflet-popup-content-wrapper{
    background-color: rgba(255, 245, 238, 0.9);
    opacity: 1;
  }

  /* outside the popup */
  .leaflet-popup-content {
    max-width: 400px; /* Default is 300px up to 300px*/
    max-height: 425px; /* Default is 300px up to 600px*/
    overflow: auto;
    overflow-x: hidden;
    scrollbar-width: thin;

  }
  .title{
    font-size: 20px;
    display: block;
  }
  .company{
    font-size: 18px;
    display: block;
  }
  .image-button{
    display: inline;
  }
  .image{
    height:75px;
    display: inline;
    margin: auto;
  }

  .year{
    display: block;
    font-size: 14px;
    margin: 0px;
    padding: 2%;
  }
  .description{
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    list-style-position: inside;
    /* width: 100%; */
  }
  .each_discrpt{
    font-size: 12.5px;
    margin: 0 0 0 0px;
    padding: 0 0 0.4em 7em;
    /* width: 17em; */
    text-indent: -7em;
    list-style-type: none;
    white-space: pre-wrap;

  }
  .each_discrpt_li{
    font-size: 12.5px;
    margin: 0 0 0 0px;
    padding: 0 0 0.4em 7em;
    text-indent: -1.3em;
    /* width: 17em; */

  }


a:visited {
  color: purple;
  background-color: transparent;
  text-decoration: none;
}

a:hover {
  color: blue;
  background-color: transparent;
  text-decoration: underline;
}



  @media (prefers-color-scheme: dark) {
    .leaflet-popup-content-wrapper{
      background-color: rgb(83, 81, 81, 0.9);
    }
    .title{
      color: seashell;
    }
  .company{
    color: seashell;
    }
  .year{
  color: seashell;
  }
  .description{
  color: seashell;
  }
  a:link {
    color: rgb(255, 221, 154);
  }
  a:visited {
  color: orangered;
}
a:hover {
  color: yellow;
}
/*
####   The Attribute   ####
*/

.leaflet-control-attribution {
    color: seashell;
    background: rgb(57, 54, 50)!important;       /* Background color */
  }

    /*
  ###   Zoom Control   ###
  */
.leaflet-bar a {
    background-color: rgb(57, 54, 50);
    color: seashell;
}
.leaflet-bar a:hover {
    background-color: rgb(6, 6, 5);
    color: seashell;
    text-decoration: none;
}
.leaflet-bar a.leaflet-disabled {
    background-color: rgb(117, 115, 115);
    color: rgb(174, 168, 163);
    text-decoration: none;
}



}




/*
********************************
****    Regional Control    ****
********************************
  Open up when the carsol hovers on
*/
    .custom-control {
      position: relative;
    }
    .custom-control label {
      display: block;
      margin: 3px 0;
    }
    .custom-control-hover {
      background: seashell;
      border-radius: 4px;
      padding: 5px;
      font-size: 10px;
      box-shadow: 0 0 5px rgba(0,0,0,0.3);
      cursor:auto;
      overflow: auto;
      font-size: 15px;

    }
    .custom-content {
      display: none;
      overflow: hidden;
      margin-top: 5px;
      height: 465px;
    }

    .custom-control:hover .custom-content {
      display: block;
      background: seashell;
    }

    .question {
      background-color: rgba(248, 246, 245, 0);
      color: black;
      cursor: pointer;
      border: none;
      text-decoration:none;
      width: 40px;
    }
    .question::after{
      content: "\1F4A1";
      font-size: 15px;
      margin-left: 4px;
    }


    .layconContent {
      background: seashell;
      border-radius: 4px;
      padding: 5px;
      font-size: 10px;
      box-shadow: 0 0 5px rgba(0,0,0,0.3);
      cursor:auto;
      overflow: auto;
      font-size: 15px;
      margin: 3px 0;
    }


  @media (prefers-color-scheme: dark) {
       .custom-control-hover {
        background-color: rgb(57, 54, 50);
        color: seashell;
        box-shadow: 0 0 5px rgba(0,0,0,0.3);
       }
      .custom-control:hover .custom-content {
        background-color: rgb(57, 54, 50);
        color: seashell;
      }
      .layconContent {
        background: rgb(57, 54, 50);
        color: seashell;
      }

  }

  
  @media (max-width: 768px) and (orientation:portrait) {
  /* Adjust styles for better readability in landscape mode */
  #map {
      height: 85vh;
      width: 99.5Vw;
      padding: 0;
      margin: 0;
    }
    .leaflet-popup-content {
    overflow-x: auto;
    max-width: 45vw;

  }
  .company{
    font-size: 16px;
    display: block;
  }
  .image-button{
    display: inline;
  }

  .year{
    display: block;
    font-size: 14px;
    margin: 0px;
    padding: 2%;
  }
  .each_discrpt{
    font-size: 12px;

  }
  .each_discrpt_li{
    font-size: 12px;
  }

}
@media (max-height: 768px) and (orientation:landscape) {
  /* Adjust styles for better readability in landscape mode */
  #map {
      height: 80vh;
      width: 99.5vw;
      padding: 0;
      margin: 0;
    }
      .leaflet-popup-content {
    overflow-x: auto;
    max-height: 60vh; /* Default is 300px up to 600px*/
    max-width: 45vw; /* Default is 300px up to 600px*/
  }  .company{
    font-size: 16px;
    display: block;
  }
  .image-button{
    display: inline;
  }

  .year{
    display: block;
    font-size: 14px;
    margin: 0px;
    padding: 2%;
  }
  .each_discrpt{
    font-size: 12px;

  }
  .each_discrpt_li{
    font-size: 12px;
  }

  .custom-content {
      height: 30vh;
  }




}
