/* code by: Silvia Mazzoni, 2025*/
/* General Layout */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-y: hidden; /* Hide vertical scrolling */
}

#MAIN_div {
    width: 100%;
    height: 100vh;
}

/* Map Styles */
#map, #SilviasMap {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
}

/* Loading Overlay */
#loadingOverlay {
    display: none;
    position: fixed;
    top: 10%;
    left: 0;
    width: 100%;
    height: 75%;
    background: rgba(0, 0, 255, 0.75); /* Semi-transparent background */
    color: white;
    font-size: 12px;
    text-align: center;
    padding-top: 10%;
    z-index: 1000;
}
transition: font-size 0.3s;


/* Buttons */
.button-solid {
    border: none;
}

.button-solid:focus {
    border: none;
    outline: none;
    display: inline-block;
}

.button-solid:hover {
    background-color: #ddd;
}

/* Dots */
.blackDot {
    height: 10px;
    width: 10px;
    background-color: black;
    border-radius: 50%;
    display: inline-block;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    z-index: 1;
    min-width: 200px;
}

.dropdown-content label {
    display: block;
    padding: 2px;
    cursor: pointer;
}

.dropdown-content label:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Sidenav */
.sidenav {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    background-color: black;
    font-size: 12px;
    color: #818181;
}

.sidenav .closebtn, .sidenav .openbtn {
    color: white;
    font-size: 12px;
    background-color: black;
}

.sidenav .closebtnzoom {
    position: absolute;
    top: 0;
    color: white;
    font-size: 12px;
    background-color: black;
}

/* Other Elements */
.caption {
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 5px;
    border-radius: 4px;
    display: inline-block;
}

.separator-line {
    height: 10px;
    margin: 5px 0;
    background-color: #aaa;
}

#plot-container {
    width: 80%;
    height: 400px;
    resize: both;
    overflow: auto;
    border: 1px solid #ccc;
}

.leaflet-control-layers-expanded .leaflet-control-layers-base {
    display: block !important;
}
.leaflet-tooltip {
  width: 300px !important;  /* Set fixed width */
  white-space: normal !important; /* Allow text wrapping */
  word-wrap: break-word !important; /* Break long words if necessary */
  overflow-wrap: break-word !important;
}

/* Media Queries */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 5px;
    }
}


        table {
            /*width: 50%;*/
            border-collapse: collapse;
            /*margin: 20px auto;*/
        }

        th, td {
            /*border: 1px solid #333;*/
            padding: 2px;
            /*text-align: center;*/
        }

        .two-column-list {
            display: grid;
            grid-template-columns: 1fr;  /* Default to 1 column */
        }

        /* Set to 2 columns if necessary */
        .two-column-list.two-columns {
            grid-template-columns: 1fr 1fr;
        }

        .list-item {
            padding: 2px 0;
        }
        
        
        
    select:disabled, option:disabled {
        color: black !important;
    }    
    
    
	.tick line {
	    stroke: #ccc;
	    stroke-width: 1px;
	}
	
	
	    .add-marker-cursor {
        cursor: crosshair !important;
    }
    
    
        .image-container {
            position: relative;
            /*width: 500px;*/ /* Set the image size */
        }

        .image-container img {
            /*width: 100%;*/
            /*height: auto;*/
            /*display: block;*/
        }

        .overlay-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 14px;
            font-weight: bold;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8); /* Add a shadow for better visibility */
        }
        
        
        
		.scrollable-table {
		    max-height: 70vh; /* 70% of the screen height */
		    overflow-y: auto; /* Enables vertical scrolling */
		    border: 0px solid black; /* Just for visibility */
		}
      
		
		 .scrollable-fifty {
		    max-height: 50vh; /* 70% of the screen height */
		    overflow-y: auto; /* Enables vertical scrolling */
		    border: 0px solid black; /* Just for visibility */
		}
      
		
		    .leaflet-control-textbox {
		        position: absolute;
		        bottom: 10px;
		        left: 50%;
		        transform: translateX(-50%);
		        background: rgba(255, 255, 255, 0.8);
		        padding: 5px 15px;
		        font-size: 14px;
		        font-weight: bold;
		        border-radius: 5px;
		        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
		        pointer-events: none;
		    }		