/* disclaimer modal */

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    text-align: center;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.modal-content button:hover {
    background-color: #45a049;
}


/* Title for the WebGIS */

#title {
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    z-index: 10;
}

#title h1 {
    margin: 0;
    font-size: 1.5em;
    color: #444;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    height: 100vh;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
}

#toc {
    width: 300px;
    height: calc(100vh - 60px);
    overflow-y: auto;
    background: #ffffff;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 5;
}

#map {
    height: calc(100vh - 60px);
    margin-left: 300px;
    margin-top: 60px;
    flex: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 300px;
}

.toc-item {
    padding: 10px;
    margin: 10px 0;
    cursor: pointer;
    background: #f7f7f7;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.toc-item:hover {
    background: #e7e7e7;
}

.toc-item i {
    font-size: 1.2em;
    margin-right: 10px;
}

.toc-item p {
    margin: 0;
    color: #333;
}

#toc h2 {
    font-size: 1.5em;
    color: #444;
    margin-bottom: 20px;
}

.toc-item i {
    color: #007bff;
}

@media (max-width: 768px) {
    #toc {
        width: 100%;
        height: 40vh;
        position: absolute;
        bottom: 0;
        z-index: 10;
        left: 0;
    }
    #map {
        height: calc(60vh - 60px);
        margin-left: 0;
        left: 0;
    }
}