body { 
    margin: 0; 
    padding: 0; 
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    height: 100%;
    overflow: hidden;
}

::-webkit-scrollbar {
  width: 0px;
  height: 0px;
  background: transparent;
}



.app-container {
    position: relative;
}

#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}


a {
  all: unset;
}

.sidepanel-container {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    background-color: white;
    color: black;
    border-radius: 7px;
    padding: 20px;
    padding-left: 30px;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: calc(100vh - 20px);
    width: 420px;
    box-sizing: border-box;
    
}

.sidepanel-title-container {
    border-color: #C8C8C8;
    border-bottom-style: solid;
    border-width: 1px;
}



.rotate {
    transform: rotate(-45deg); /* Adjust the degree of rotation as needed */
    transition: transform 0.5s ease; /* Smooth transition for the rotation */
}

.location-title {
    font-size: 20px;
    font-style: 'semi-bold';
}

.sidepanel-content {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1; /* Take up available space */
}

.category-container {
    border-color: #C8C8C8;
    border-top-style: solid;
    border-width: 1px;
    overflow: scroll;
    transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.category-container.inactive {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.category-container:first-child {
    border-top-style: none;
    
}

.category-heading-container, .reset-button-container {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: center;

}

/* Adjust the initial state */
.category-content-container {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

.reset-button-container {
    padding-top: 20px;
    padding-bottom: 0px;
    border-top-style: solid;
    border-width: 1px;
    border-color: #C8C8C8;
}

.category-expand-toggle {
    
    font-size: 20px;
    line-height: 18px;
    font-weight: 100;
    transition: transform 0.5s ease;
    display: flex; /* Use flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    transform-origin: center; /* Explicitly set the transform origin */
    position: relative;
    
}

.toggle-svg {
  height: 24px;
}

.category-expand-toggle:hover {
    cursor: pointer;
    
}


/* Style the accordion panel. Note: hidden by default */

.category-body-container {
    background-color: white;
    max-height: 0;
    overflow: auto;
    transition: max-height 0.4s ease-in-out 0.1s;
  }


.category-body-text {
    font-weight: 100;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 30px;
}

.reset-button {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
    display: inline-block;
    align-items: center;
    background-color: #DEDEDE;
    color: #333333;
    border-radius: 2.5px;
    width: 100%;
    border-color: #333333;
    border-style: solid;
    border-width: 1px;
    transition: 0.2s ease;
}

.reset-button:hover {
    background-color: black;
    cursor: pointer;
    color: white
}

.c3 svg {
    font-family: 'Plus Jakarta Sans', sans-serif;
}


/* Styles relating to the charts carousels */

.chart-links {
  background-color: white;
  font-size: 10px;
  padding: 5px;
  min-width: 45px;
  text-align: center;
  padding-left: 10px;
  padding-right: 10px;
  border-radius: 13px;
  border-style: solid;
  border-width: 1px;
  border-color: #C8C8C8;
  transition: 0.5s ease;
}

.active-chart, .chart-links:hover {
  background-color: #000;
  color: white;
}

.chart-title-container {
  justify-content: center;
  display: flex;
}

.chart-title {
  font-size: 14px;
  text-align: center;
  max-width: 200px;
}

.chart-links-text {
  font-size: 14px;
  font-weight: lighter;
  padding-bottom: 10px;
}

.chart-links-container {
  display: flex;
  gap: 10px;
  padding-bottom: 10px;
}

.category-chart-container {
  display: flex;
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  touch-action: none;
}

.category-chart-container::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

#crimeTime {
  max-height: 100px;
}

.chart-container {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  transform-origin: center center;
  transform: scale(1);
  transition: transform 0.5s;
  position: relative;
  justify-content: center;
  align-items: center;
  
}

.border-hidden {
  border: none; /* or set it to match the background color */
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: hidden; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
}

.modal-content {
  box-sizing: border-box;
  background-color: #fefefe;
  margin: 7.5% auto; /* 7.5% from the top and centered */
  min-height: 50%;
  max-height: 70%;
  padding: 30px;
  border: 1px solid #888;
  border-radius: 5px;
  width: 60%; /* Could be more or less, depending on screen size */
  
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Style the tab content */
.modal-tab {
  display: none;
  box-sizing: border-box;
  height: 100%;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  height: 10%;
  padding-bottom: 10px;
  border-bottom: 1px solid #C8C8C8;
}

.modal-body {
  box-sizing: border-box;
  height: 80%;
  min-height: 80%;
  padding-top: 20px;
  padding-bottom: 20px;
  font-size: 16px;
  font-weight: lighter;
  line-height: 22px;
  overflow: scroll;

}

.modal-footer {
  display: flex;
  justify-content: space-between;
}

.slide-button {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
  align-items: center;
  background-color: #DEDEDE;
  color: #333333;
  border-radius: 2.5px;
  width: 100px;
  border-color: #333333;
  border-style: solid;
  border-width: 1px;
  transition: 0.2s ease;
}

.slide-button:hover {
  background-color: black;
  cursor: pointer;
  color: white
}

#infoIcon {
  position: fixed;
  top: 20px;
  right: 20px;
  cursor: pointer;
  font-size: 24px; /* Adjust size as needed */
  z-index: 2; /* Ensure it's above other content */
}

/* If using Font Awesome, you might want to style the <i> tag specifically */
#infoIcon i {
  color: white; /* Example color */
}

.modal-body a {
  text-decoration: underline;
  cursor: pointer;
}

/* Modal Animations */

@keyframes popDown {
  from {
    top: -100%; /* Start from above the screen */
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes popUp {
  from {
    top: 0;
    opacity: 1;
  }
  to {
    top: -100%; /* Hide above the screen */
    opacity: 0;
  }
}

.modal {
  animation-fill-mode: forwards; /* Keep the modal in the state of the end of the animation */
}