@font-face {
font-family: 'Source Sans Pro';
src: url('./assets/fonts/source-sans-pro/SourceSansPro-Regular.otf') format('opentype');
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: 'Source Sans Pro';
src: url('./assets/fonts/source-sans-pro/SourceSansPro-Bold.otf') format('opentype');
font-weight: bold;
font-style: normal;
}

/* light */
@font-face {
font-family: 'Source Sans Pro';
src: url('./assets/fonts/source-sans-pro/SourceSansPro-Light.otf') format('opentype');
font-weight: light;
font-style: normal;
}


html, body {
    height: 100%;
    width: 100%;
    margin:0;
    font-family: 'Source Sans Pro', sans-serif;  
    background-color: #FAF7ED; 
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
}

h1 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: bold;
    font-size: 2rem;
    margin: 0 0 0.25rem 0;
}

h2 {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}

svg {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 300;
    position: relative;
    width: 100%;
    height: 100%;
}

.container{
    width:100%;
    flex-grow: 1;
    display:flex;
    flex-direction: row;
    margin-top: 1rem;
    box-sizing: border-box;
    gap: 1rem;
}

.col{
    flex: 1;
    display: flex;
}

#map{
    margin:0rem;
    width:100%;
    height:100%;
    position:relative;
}

.btn-group {
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    gap:0.5rem;
    flex-wrap: wrap;
}

.btn-group > button {
    border: 1px solid #333;
    background-color: transparent;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: normal;
    font-size: .9rem;
    cursor: pointer;
}

canvas {
    opacity:1;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-container {
    flex: 1;
    position: relative;
    padding-bottom: 5%; /* Extra space for axis labels -- this doesn't seem to be doing anytnig */
}

/* Chart Related Below */
.xaxis line{
    visibility:hidden;
}
    
#tooltip {
    text-align: left;
    position: absolute;
    padding: 8px;
    padding-left: 12px;
    font-size: 13px;
    background: rgb(255, 255, 255);
    border: 8px;
    border-radius: 8px;
    pointer-events: none;
    max-width: 175px;
    
}

#tooltip img {
    padding-top: 8px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.legend{
    margin-left:35px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 550px;
    height: 100px;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.legend-items {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 75px;
    flex: 1 1 auto; /* Allow items to wrap within the container */
    box-sizing: border-box;
    width: 350px;
}

.legend-title {
    min-width:200px;
   /* font-weight: semibold;*/
}

.legend-item {
    font-size: 0.9rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.legend-item > p {
    margin: 0;
}

.legend-icon {
    width: 14px;
    height: 14px;
}

.clicked {
    background-color: #b9b9b9 !important;
    border: 1px solid #999 !important;
}
