/* GENERAL */

body, html {
    padding: 0px 0px 0px 0px;
    max-height: 100vh;
    max-width: 100vw;
    height: 100%;
    font-family: "Baloo 2", sans-serif;
    background-color: white;
    overflow-x: hidden;
}

header {
    width: 100%;
    background-color: #252525;
    font-size: 12px;
    color: white;
    padding: 0px;
    text-align: center;
    height: 50px;
    line-height: 50px;
    font-size: 24px;
    font-weight: 10;
}

.container {
    display: flex;
    max-height: 100vh;
    max-width: 100vw; /* Prevents container from exceeding the viewport width */
    height: 94.8%;
    overflow-x: hidden;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
}





/* SIDEBAR */

.sidebar {
    width: 300px;
    background: #f7f7f7;
    color: #636363;
    /* padding: 20px; */
    max-height: 100vh;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    position: sticky;
}

.sidebar h2 {
    font-size: 18px;
}


.sidebar-btn {
    width: 100%;
    padding: 10px;
    background-color: #969696;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 18px;
    margin-bottom: -5px;
    box-shadow: 0 0 25px rgba(0,0,0,0.1);
}

.sidebar-btn:hover {
    background-color: #636363;
}




/* DROPDOWN SELECTION BAR */
.dropdown {
    position: relative;
    display: grid;
    grid-template-areas: "dropdown";
    align-items: center;
    min-width: 15ch;
    max-width: 30ch;
    border: 1px solid var(--select-border);
    border-radius: 0.25em;
    padding: 0.25em 0.5em;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1.5;
    background-color: #ffffff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    margin-left: 20px;
    margin-right: 20px;
}

.dropdown-toggle {
    width: 100%;
    text-align: left;
    background: transparent;
    color: #636363;
    border: none;
    padding: 10px;
    font-size: 1.125rem;
    font-weight: 500;
}

.dropdown-menu {
    max-height: 300px; /* Set dropdown height */
    overflow-y: auto;  /* Enable scroll */
    border: 1px solid var(--select-border);
    border-radius: 0.25em;
    background-color: #fff;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    font-size: 1rem;
    padding: 8px 15px;
    cursor: pointer;
    color: #333;
}

.dropdown-item:hover {
    background-color: #252525;
    color: white;
}

label {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 20px;
    margin-bottom: 0px;
    margin-left: 20px;
  }

#resetButton {
    background-color: #fc9272;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    line-height: 1.5;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 30px;
}

#resetButton:hover {
    background-color: #de2d26;
}






/* MAIN CONTENT AND MAP*/

.main-content {
    max-width: 100vw;
    max-height: 100vh;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
}

.main-content h1 {
    font-size: 36px;
    margin-top: 0.5em;
    margin-bottom: 0px;
    margin-left: 1em;
}


#map-content {
    max-width: 100vw;
    max-height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
}

#map-content h1 {
    font-size: 36px;
    margin-top: 0.5em;
    margin-bottom: 0px;
    margin-left: 1em;
}




/* SUMMARY TAB */

#summary-content {
    max-width: 100vw;
    max-height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
}
#summary-content h3 {
    margin-top: 1em;
    margin-bottom: 0px;
    /* margin-left: 2em; */
}

#fig-container {
    display: grid;
    gap: 20px;
    justify-content: center;
    grid-template-columns: 1fr 1fr; /* Two columns for side-by-side layout */
    margin-left: 50px; /* Adjust this value as needed */
    margin-bottom: 20px;
    padding-bottom: 20px;
}



/* STATISTICS */

.stats-container {
    width: 100%;
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 15px;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
}

.stat-box {
    background: #252525;
    padding: 15px 7px 7px 7px;
    border-radius: 10px;
    text-align: center;
    width: 20%;
    font-size: 16px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-box span {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0px;
    line-height: 24px;
}






/* MAP CONFIG */
#map {
    flex: 1;
    height:100%;
    width: 100%;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
}

.info {
    padding: 6px 8px;
    font: 14px/16px Arial, Helvetica, sans-serif;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}

.info h6 {
    line-height: 25px;
    display: inline;
    font-weight: bold;
}

.legend {
    line-height: 18px;
    color: #555;
    padding: 6px 8px;
    background: white;
    background: rgba(255,255,255,0.8);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    border-radius: 5px;
}
.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.7;
}



/* CONCLUSION */
.conclusion-container {
    padding: 0px 100px 30px 0px;
    line-height: 1.6;  /* Improves readability */
}

.conclusion-container h3 {
    margin-top: 1em;
    margin-bottom: 0px;
    margin-left: 2em;
    font-weight: bold;
    
}

.conclusion-container p {
    margin-top: 0.7em;
    margin-bottom: 0px;
    margin-left: 4em;
}

.conclusion-container ul {
    margin-top: 0.7em;
    margin-bottom: 0px;
    margin-left: 4em;
}

#conclusion-content h1 {
    font-size: 36px;
    margin-top: 0.5em;
    margin-bottom: 0px;
    margin-left: 1em;
}

#conclusion-content {
    max-width: 100vw;
    max-height: 100vh;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-left: 0px;
    margin-right: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
}