#spot-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-width: 800px; /* Väliaikaisesti Desktop-varten*/
    background-color: #333;
    text-align: center;
}

#spot-modal .modal-content{
    padding: 20px 20px 20px 20px;;
}
.light-mode #spot-modal {
    background-color: #dddddd;
}

#spot-modal .modal-content {
    background-color: #333;
    color: white;
}
.light-mode #spot-modal .modal-content {
    background-color: #dddddd;
    color: black;
}

#spot-modal h2{
    margin: 4px;
}

#spot-modal .recommendation-meter-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0px auto;
    width: 400px;
    padding: 8px;
    border-radius: 8px;
    transition: 0.3s background-color;
    position: relative; /* To tooltiptext*/
}

#spot-modal .recommendation-meter-container:hover {
    background-color: rgb(40, 40, 40);
}

.light-mode #spot-modal .recommendation-meter-container:hover {
    background-color: rgb(190, 190, 190);
}

#spot-modal .recommendation-meter-container .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: rgb(40, 40, 40);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1100;
  }

  .light-mode #spot-modal .recommendation-meter-container .tooltiptext {
    background-color: rgb(190, 190, 190);
    color: #000000;
  }
  #spot-modal .recommendation-meter-container .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgb(40, 40, 40) transparent transparent transparent;
  }

  .light-mode #spot-modal .recommendation-meter-container .tooltiptext::after {
    
    border-color: rgb(190, 190, 190) transparent transparent transparent;
  }
  
  #spot-modal .recommendation-meter-container:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
  }

@media (max-width: 768px) {
    #spot-modal .recommendation-meter-container {
        width: 300px;
    }
}


#spot-modal-image-div {
    display: flex; /* Align images in a row */
    background-color: rgb(32, 32, 32);
    overflow-x: auto; /* Enable horizontal scrolling */
    scroll-snap-type: x mandatory; /* Enable snap scrolling */
    margin: 20px;
    padding: 20px;
    border-radius: 10px;
    overflow-x: hidden; /* Hide horizontal scrollbar */
    /* width: fit-content;  Content should be fit if no scrolling*/
}

.light-mode #spot-modal-image-div {
    background-color: #bebebe;
}

#spot-modal-image-div img {
    scroll-snap-align: start; /* Snap alignment */
    margin: 5px 5px; /* Space between images */
    border-radius: 5px; /* Optional: rounded corners for images */
}   

/* Sulkunapin tyylit */
#spot-modal .close-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 30%;
    height: 50px;
    background-color: #037048;
    color: black;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    box-sizing: border-box;
    vertical-align: middle;
    border-radius: 0 25px 25px 0; /* Half of the height */
}

.light-mode #spot-modal .close-btn {
    background-color: #58a155;
}

/* Sulkunapin tyylit */
#spot-modal .close-btn:hover {
    background-color: #033b26 ; /* #034d31  */
    color: rgb(0, 0, 0);
}
.light-mode #spot-modal .close-btn:hover {
    background-color: #417440;
}

/* Modaalin näkyvä tila */
#spot-modal.open {
    left: 0; /* Menee vasemmasta laidasta esille */
}
