body {
    margin: 0;
    padding: 0;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    width: 74.7%;
    height: 100vh;
    float: left;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}


/* Stil Legenda */
.info.legend {
    background-color: rgba(255,255,255, 0.7);
    padding: 5px 5px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.info.legend i {
    width: 20px;
    height: 15px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}

/* Stil zoom to full */
#zoomToFullData {
    position: fixed;
    top: 72px;
    left: 10px;
    padding: 10px;
    background-color: #fff;
    color: #000;
    border: 2px solid rgba(100, 100, 100, 0.5);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

#zoomToFullData:hover {
    background-color: #fff;
    color: #000;
}

#zoomToFullData:focus {
    outline: none;
}

#zoomIcon {
    font-size: 20px;
    margin-right: 5px;
    color: #000;
    transform: scale(0.9);
}

/* Custom CSS for feature tooltips */
.feature-tooltip {
    background-color: rgba(255, 255, 255, 0.7); /* Tooltip background color with transparency */
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

#selected-name-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px; 
    border: 1px solid #ccc;
    border-radius: 10px; 
    z-index: 1000;
    visibility: hidden; 
    font-size: 16px; 
    font-weight: bold; 
    font-style: italic; 
}



/* Position the main container to the right of the page */
#main-container {
    position: fixed;
	top: 0px; 
    right: 2px; 
	width: 25%;
    height: 100vh;
    float: right;
	display: flex;
    flex-direction: column;
	background-image: url("https://journeymapper.ro/img/container.jpg");
	background-size: 100%;
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}
	


/* Style for the indicator title container */
#indicator-title {
    width: 100%; 
    flex-grow: 0;
    text-align: center; 
	display:block;
}

#search-control {
	display: block;
    position: relative;
    flex-grow: 0;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Style for the tables title container */
#tables-title {
    width: 100%;
    flex-grow: 0;
    text-align: left; 
	display:block;
	padding: 8px;
}

/* Style for the title (p) */
.title {
    font-size: 20px;
    text-align: center; 
    margin-top: 15px; 
	margin-left: 10px;
	margin-right: 10px;
	color:#e9ebb7;
	font-weight: bold;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
	padding: 5px;
}

.link a {
    color: white; 
    text-decoration: none; 
    font-weight: bold; 
}

.link a:hover {
    text-decoration: underline; 
}

/* Style for the description (p1 and p2) */
.description {
    font-size: 16px;
    text-align: justify; 	 
	padding: 8px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Style for search container */
.search-container {
    display: block !important;
    justify-content: space-between; 
    align-items: center;
    padding: 10px;
	width: 100%;
	height: calc(100% - 95%);
}

/* Style for search subcontainers (select and button) */
.search-container select {
    flex: 70%;
	margin-right: 2px;
}

.search-container button {
    flex: 30%; 
}


/* Additional styles for other elements (name select, etc.) if needed */
#search-name {
    margin-right: 10px; 
}

#search-name:hover,
#search-county:hover{
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Additional styles for other elements (search button, etc.) if needed */
#search-btn {
    margin-right: 10px; 
	background-color: #f0f0f0;
    border: 1px solid #ccc;
}

#search-btn:hover {
    background-color: #d0d0d0;
    cursor: pointer;	
}

.descr-tbl {
	font-size: 16px;
    text-align: justify; 
	margin-left: 5px;
	margin-right: 5px;
}

#tables {
    display: block;
    position: relative;
    flex-grow: 100;
}

/* Additional styles for other elements (county filter container, etc.) if needed */
#county-filter-container {
    padding: 8px;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px; /* Add margin between the county filter and other elements */
    display: none; /* Initially set to invisible */
}

/* Additional styles for other elements (county filter select, etc.) if needed */
#county-filter {
    padding: 8px;
    font-size: 14px;
    width: 100%;
    outline: none;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

/* Style for table containers */
#table-container-layer1,
#table-container-layer2 {
    width: 100%; 
    max-height: 900px;
    overflow: auto;  
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-top: 10px; 
    display: none;
	font-size: 14px;
    text-align: center; 
	position: relative;
}



#table-container-layer1 table, 
#table-container-layer2 table {
    /*width: 100%;*/
	border-collapse: collapse;
	position: relative;
}

#table-container-layer1 h3,
#table-container-layer2 h3 {
    /*width: 200px;*/
    position: sticky;
    left: 0; 
    z-index: 2;
    text-align: left;
	padding-left: 10px;
}

#table-container-layer1 thead,
#table-container-layer2 thead {
    display: block;
    position: sticky;
    top: 0;
    background-color: rgba(240,248,255, 0.3);
    z-index: 2;
}

#table-container-layer1 thead tr th:not(:first-child),
#table-container-layer2 thead tr th:not(:first-child) {
    background-color: rgba(119,136,153);
    text-align: center;
    font-weight: bold;
    white-space: normal;
	min-width: 70px;
	max-width:72px;
	color:#EAEBDD;
}

#table-container-layer1 thead tr th:first-child,
#table-container-layer2 thead tr th:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background-color: rgba(119,136,153);
    text-align: center;
	min-width: 125px;
	color:#f9fae8;
}


#table-container-layer1 tbody:nth-child(even),
#table-container-layer2 tbody:nth-child(even) {
    display: block;
}


#table-container-layer1 tbody tr td:not(:first-child),
#table-container-layer2 tbody tr td:not(:first-child) {
    position: relative;
	min-width: 70px;
}

#table-container-layer1 tbody tr td:first-child,
#table-container-layer2 tbody tr td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    text-align: center;
	white-space: normal;
	background-color: #f9fae8;
	min-width: 125px;
}

#table-container-layer1 tbody tr:hover,
#table-container-layer2 tbody tr:hover {
    background-color: #f0f0f0;
    cursor: pointer;
}

#table-container-layer1 table th,
#table-container-layer2 table th {
    border: 1px solid rgba(211,211,211); 
    padding: 8px; 
}

#table-container-layer1 table td,
#table-container-layer2 table td {
    border: 1px solid rgba(211,211,211); 
    padding: 8px; 
}

#buttons {
    display: flex;
	width: 100%;
    justify-content: space-between;
    flex-grow: 0;
	bottom: 20px;
}

/* Style for buttons */
#open-table-layer1,
#open-table-layer2 {
    flex: 1;
	width: 100%;
	padding: 10px;
    text-align: center;
    background: linear-gradient(to bottom, #f0f0f0, rgba(119,136,153));
    border: none;
    color: #333; 
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
	transition: background-color 0.3s ease;
}

#open-table-layer2 {
	border-left: 1px solid white;
}

#open-table-layer1 {
    left: 5px;
}

#open-table-layer2 {
    right: 5px;
}

#open-table-layer1:hover,
#open-table-layer2:hover {
    background: #f0f0f0;
	cursor: pointer;
}

#popup-container {
    display: flex;
    flex-direction: column;
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    z-index: 1000;
    background-color: white;
    padding: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 550px;
    height: 550px;
    cursor: move; 
}

#hover-text {
    font-weight: bold;
	font-size: 16px;
    margin-bottom: 10px;
	margin-top: 20px;
	margin-right: 10px;
	width: 100%;
}

#chart-table-container {
    display: flex;
}

#pie-chart-container {
    margin-right: 20px;
	height: 300px;
	width: 300px;
	padding-top: 40px;
}

#table-container {
    /* Stilurile pentru containerul tabelului */
}

/* Style for the descr-text */
.descr-text {
    font-size: 12px;
    text-align: justify; 	 
	padding-top: 30px;
	line-height: 0.7;
	font-style: italic;
}

#close-button {
    position: absolute;
    top: 0;
    right: 0;
    padding: 4px 4px 0 0;
    border: none;
    text-align: center;
    width: 18px;
    height: 14px;
    font: 16px/14px Tahoma, Verdana, sans-serif;
    color: #f0f0f0;
    text-decoration: none;
    font-weight: bold;
    background: transparent;
	padding-top: 10px;
}
		
#close-button:hover {
	color: #c3c3c3;
	cursor: pointer;
}
