/* General styles */
body {
    font-family: Arial, sans-serif;
    background-color: #ff9a7d;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

#map-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    background-color: #71397d;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    margin-bottom: 20px;
}

#map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
}

#legend {
    width: 100%;
    padding: 15px;
    background-color:#ffb743;
    color: #444;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: -20px; /* Slight overlap with map for a seamless look */
}

#legend h2 {
    margin: 0;
    padding-bottom: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

#legend ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

#legend li {
    display: flex;
    align-items: center;
    margin: 5px 10px;
}

.legend-color {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

#search-box {
    padding: 10px;
    border-radius: 5px;
    border: none;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
}

#buttons-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#buttons-container button {
    background-color: #348781;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 0 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#buttons-container button:hover {
    background-color: #286566;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

#convent-details {
    width: 90%;
    max-width: 1200px;
    margin-top: 20px;
    background-color: #7c0053;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

#table-container {
    max-height: 300px; /* Adjust this height as needed */
    overflow-y: auto;
    margin-top: 20px;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#convent-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Verdana', sans-serif;
}

#convent-table th, #convent-table td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
    background-color: #f9f9f9; /* Light grey background for rows */
}

#convent-table th {
    background-color: #4c8c8b; /* A darker teal for the header */
    color: white;
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 2px solid #286566; /* Stronger border for header */
    font-size: 16px;
}

#convent-table tr:hover {
    background-color: #e0f7f7; /* Light teal on hover */
}

#convent-table td {
    vertical-align: top;
    font-size: 14px;
    color: #444;
}

#scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #348781;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#scroll-top-btn:hover {
    background-color: #286566;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Base marker style */
.custom-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

/* Custom markers with different colors for each country */
.marker-usa {
    background-color: #3f51b5; /* USA: Dark blue */
}

.marker-italy {
    background-color: #8B0000; /* Italy: Dark red */
}

.marker-papua {
    background-color: #795548; /* Papua New Guinea: Brown */
}

.marker-france {
    background-color: #9c27b0; /* France: Purple */
}

.marker-germany {
    background-color: #ffeb3b; /* Germany: Yellow */
}

.marker-india {
    background-color: #ff4c4c; /* India: Red */
}

.marker-kenya {
    background-color: #4caf50; /* Kenya: Green */
}

.marker-uganda {
    background-color: #2196f3; /* Uganda: Blue */
}

.marker-tanzania {
    background-color: #ff9800; /* Tanzania: Orange */
}

/* Additional styles for hover effects or other interactions (optional) */
.custom-marker:hover {
    transform: scale(1.2); /* Slightly increase size on hover */
    transition: transform 0.2s ease-in-out;
}
