/* Font Styles ---------------------------------------------------------------*/
body {
  font-family:"Geist";
  font-size: 16px;
  line-height: 20px;
}

h1 {
  font: normal normal bold 60px/75px Geist;
  color: #0A133A;
}

.sub-heading, .form-group .control-label, span.input-group-text {
  font: normal normal bold 16px/20px Geist;
}

.selectize-input div.item, .shiny-options-group, .selectize-dropdown-content, .input-group input.form-control {
  font: normal normal normal 16px/20px Geist;
}

h3 {
  font: normal normal bold 20px/25px Geist;
}

/* Title area styles ---------------------------------------------------------*/

.sub-heading {
  padding: 0;
  color: #333333;
  margin-top: 15px;
  margin-bottom: 45px;
}

.title-container {
  margin: 0 45px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap; /* TODO: keep wrap for now but maybe responsive later? */
}

.content {
  margin: 0 45px;
  display: flex;
  flex-direction: row;
  /*flex-wrap: wrap; /* TODO: keep wrap for now but maybe responsive later? */
  gap: 35px;
  padding-bottom: 35px;
}

/* Sidebar layout styles -----------------------------------------------------*/

.sidebar {
  
}

.filter-container {
  background-color: #1C1F2D;
  color: #FFFFFF;
  padding: 5px 15px;
  width: 300px; /* TODO: Set dynamic width with bootstrap */
}

.filter-section {
  border-top: 1px solid #FFFFFF;
  margin-top: 20px;
}

.filter-section h3 {
  margin-top: 5px;
  margin-bottom: 15px;
}

/* Sidebar form input styles -------------------------------------------------*/

.selectize-input {
  background-color: #FFFFFF;
  border-radius: 0;
  border: none;
}

.input-group input.form-control {
  background-color: #FFFFFF;
  border-radius: 0;
  border: none;
}

span.input-group-text {
  background-color: #1c1F2D;
  color: #FFFFFF;
  border: none;
  margin: 0 15px;
}

input[type=checkbox] {
  accent-color: #FFFFFF;
}

input[type=radio] {
  accent-color: #1c1F2D;
}

.shiny-options-group .radio {
  margin-top: 6px;
}

/* Display area styles -------------------------------------------------------*/

.display {
  flex-grow: 1;
}

#display_tabset {
  border: none;
  border-top: 2px solid #707070;
  margin-bottom: 30px;
}

#display_tabset li a {
  border: none;
  color: #0A133A;
  padding-top: 4px;
  font-size: 30px;
  line-height: 38px;
}

#display_tabset li a.active {
  border: none;
  border-radius: 0;
  border-top: 4px solid #FF8701;
  padding-top: 0;
  font-weight: bold;
}

/* Summary area styles -------------------------------------------------------*/

.summary {
  background-color: #FFF7ED;
  color: #0A133A;
  padding: 14px;
  margin-bottom: 35px;
}

.summary-row {
  margin-top: 20px;
  padding-left: 14px;
}

.summary-row > table > tbody > tr > td {
  padding-top: 8px;
}

.c-label {
  font-weight: bold;
  min-width: 145px;
  width: 30%;
}

.c-data {
  
}

.c-container {
  
}

/* Serotype Summary table styles ---------------------------------------------*/

#serotype-accordion-toggle {
  border-top: 4px solid #0A133A;
  margin-top: 20px;
}

#serotype-accordion-toggle h3 {
  margin-top: 3px;
}

.accordion-toggle-icon:after {
  content: '\02795'; /* Unicode character for "plus" sign (+) */
  font-size: 13px;
  color: rgba(0,0,0,0);
  text-shadow: 0 0 #0A133A;
  margin-left: 5px;
  padding-right: 3px;
  padding-top: 10px;
}

.accordion-toggle.active .accordion-toggle-icon:after {
  content: "\2796"; /* Unicode character for "minus" sign (-) */
}

table.summary-serotypes {
  margin-top: 0;
  width: 100%;
}

table.summary-serotypes thead th {
  border-top: none;
  border-bottom: 3px solid #FF8701;
}

table.summary-serotypes td, table.summary-serotypes th {
  padding: 8px 10px;
}

table.summary-serotypes tr {
  border-bottom: 1px solid #FF8701;
}

/* pt 2 */

.summary-table-header, .summary-column {
  columns: 2;
  column-gap: 40px;
}

.summary-table-header-col {
  border-bottom: 3px solid #FF8701;
  padding-top: 20px;
  padding-bottom: 10px;
}

.summary-table-header-col span {
  display: inline-block;
  /* width: calc(33% - (40px / 3)); */
  font-weight: bold;
  padding-right: 5px;
}

span.summary-large {
  width: calc(45% - (40px / 3));
}

span.summary-med {
  width: calc(33% - (40px / 3));
}

span.summary-small {
  width: calc(22% - (40px / 3));
}

.summary-table-row {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #FF8701;
}

.summary-table-row span {
  display: inline-block;
  /* width: calc(33% - (40px / 3)); */
}
/* Data Table tab styles -----------------------------------------------------*/

.download-link {
  color: #FF8701;
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: #FF8701;
}

.download-link:hover {
  text-decoration: underline;
  text-decoration-color: #FF8701;
}

.download-link img {
  margin-right: 15px;
}


/* Data Table styles ---------------------------------------------------------*/

.dt-container .table td {
  background-color: #FFFFFF;
  box-shadow: none !important;
  border-top: none;
  border-bottom: 1px solid #FF8701;
}

.dt-container .table thead th {
  border-top: none;
  border-bottom: 3px solid #FF8701;
}

.dt-container .page-link {
  border: none;
  color: #292929;
}

.dt-container .page-item.active .page-link {
  background-color: #FFFFFF;
  color: #FF8701;
  text-decoration: underline;
} /* TODO: keep or remove hover? */

/* Map area styles -----------------------------------------------------------*/
div.selector-item div.shiny-input-container label.control-label {
  display: none;
}

div.selector-item div.shiny-input-container {
  margin-bottom: 0;
}

#loc_map-loc_map {
  /* Set the background of the map to the same colour as water */
  background-color: #D0CFD4;
  margin-top: 30px;
}

#loc_map-filtered_key .filter_key_div {
  width: 100%;
}


#loc_visualisations-typed_filter_keys .filter_key_div .key-title,
#loc_map-filtered_key .filter_key_div .key-title {
  width: 10% !important;
 
}

#loc_map-filtered_key .filter_key_div .key-title.select_true {
  width: 10% !important;
  height: 75px;
  padding: 0;
}

#loc_map-filtered_key .filter_key_div .key_list_area {
  width: 10%;
  flex-grow: 1;
  display: flex;;
  flex-direction: column;
}

#loc_map-filtered_key .filter_key_div .last_list_item .other_section {
 display: flex;
 flex-direction: row;

}
#loc_map-filtered_key .filter_key_div .last_list_item .checkbox_section{
  text-align: center;
  align-items: center;
  display: flex;
 flex-direction: row;
 height: fit-content;
}

#loc_visualisations-typed_filter_keys .filter_key_div .last_list_item  {
  text-align: center;
  justify-content: flex-end;
  padding: 0 0 0 35px !important;
 
}
#loc_visualisations-typed_filter_keys .filter_key_div .last_list_item .checkbox_section .form-group,
#loc_map-filtered_key .filter_key_div .last_list_item .checkbox_section .form-group {
  width: fit-content;
  height: fit-content;
  margin-bottom: 0 !important;
}

#loc_visualisations-typed_filter_keys .filter_key_div .last_list_item .checkbox_section .form-group label,
#loc_map-filtered_key .filter_key_div .last_list_item .checkbox_section .form-group label {
  margin-bottom: 0 !important;
}

#loc_map-filtered_key .filter_key_div .last_list_item,
#loc_map-filtered_key .filter_key_div .last_list_item {
  
 justify-content: space-between;
 text-align: center;
 padding: 0 0 0 35px !important;
}

.last_key_list_item,
.key_list_area .key_list_item  {
  
  height: 50px !important;
  min-height: 50px;
  max-height: 50px;
  display: flex;
  flex-direction: row;
}

.locations_key {
  display: flex;
  flex-direction: row;
}

.last_key_list_item {
  padding-left: 10% !important;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between !important;
}

#loc_map-filtered_key .filter_key_div .select_key_item {
  width: calc(100% / 5);
  height: 50px;
}

.select_key_item .filter_key_select {
 width: 100% !important;
}
.filter_key_select div {
  width: 100% !important;
}

.filter_key_select .form-group div .selectize-input{
  height: 50px;
  border: black 1px solid;
}

.bottom_key_div {
  height: 50px;
  padding: 0 !important;
  margin-left: 35px;
}

.popup_header_img {
  height: 20px;
  width: auto;
}

.leaflet-popup-content {
  margin: 5px 10px;
  display: flex;
  flex-direction: column;
}

.country_summary_div {
  display: flex;
  flex-direction: row;
  height: 40px;
}

.country_summary_div .flag_div {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

.country_summary_div h3 {
  line-height: 40px;
  
}
/**/
.popup_info {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  column-gap: 10px;
  width: fit-content !important;
  
}
.popup_info .left_popup,
.popup_info .right_popup {
  width: fit-content;
  min-width: 140px;
  text-align: left;
  display:flex;
  flex-direction: column;
}

.popup_info .left_popup {
  border-right: solid 1px #cfcecc;
}

.popup_header {
  font-weight: 600;
  white-space: nowrap;
}

.popup_info div b {
  font-weight: 600 !important;
  font-size: 1.1em;
}

.leaflet-popup-content {
  width: fit-content !important;
}

.leaflet-popup-content p {
  margin: 0 !important;
  
}

.serotype_colour {
  display: inline-block;
  height: 20px;
  width: 20px;
  min-width: 20px;
  margin-right: 5px;
  
}

.popup_top_header {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 5px;
  margin-bottom: 10px;
  justify-content: left;
  
}

.header_info {
  display: flex;
  flex-direction: row;
  justify-content: left;
  align-items: center;
  margin-top: 1.5rem;
  height: 30px;
  margin-bottom: 0.5rem;
  gap: 10px;
}

.header_info h3 {
  margin: 0;
}

#serotypes_info, #samples_info, .info-popup {
  background-color: transparent;
  border: none;
  height: 25px;
  width: 25px;
  padding: 0 !important;
  position:relative;
  margin-right: 20px;
}

#serotypes_info:hover, #samples_info:hover, .info-popup:hover {
  cursor: pointer;  
}

#serotypes_info img, #samples_info img, .info-popup img {
  position: absolute;
  z-index: 1;
}

#data_table_description {
  margin: 0 0.5rem;
}

.tooltip-inner {
  background-color: #4a4949;
  min-width: 500px;
  max-width: 500px;
}
.tooltip-arrow {
  color: #4a4949 !important;
  opacity: 0.7;
}

.tooltip-arrow:before {
  top: 0px !important;
}

.tooltip p {
  margin: 5px !important;
}


.shiny-output-error-no-data-plot {
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #52666D !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #D2DBE0;
  min-height: 300px;
  justify-content: center;
  height: 100%;
  width: 100% !important;
  text-align: center;
  font-size: 20px;
  font-weight: bold;
}

/* Footer */
.fmdwatch-footer-top {
  margin-top: 45px;
  height: 6px;
  background: #FF8701 0% 0% no-repeat padding-box;
  opacity: 1;
}

.fmdwatch-footer-bottom {
  top: 1329px;
  left: 0px;
  height: 234px;
  background: #0A133A 0% 0% no-repeat padding-box;
  display: flex;
  flex-wrap: wrap;
  --bs-gutter-x: 1.5rem;
}

.fmdwatch-footer-bottom-content {
  margin-top: 43px !important;
  text-align: left;
  font: normal normal normal 16px/20px Geist;
  letter-spacing: 0px;
  color: #FFFFFF;
  opacity: 1;
}

.fmdwatch-footer-epi-logo {
  margin-top: -15px;
  height: 40px;
}

.fmdwatch-footer-epi-text {
  margin-top: 19px;
  font: italic normal normal 16px/17px Geist;
  letter-spacing: 0px;
  color: #FFFFFF;
  opacity: 1;
}

/*About and Info Modals*/
.about-button {
  font-size: 20px;
  font-weight: bold;
  color: #0A133A;
  background-color: white;
  border-radius: 0px;
  border-style: none none solid none;
  border-width: 3px;
  border-color: #FF8701;
  margin-right: 30px;
}

.about-button:hover, .about-button:active {
  color: white;
  background-color: #1C1F2D;
  transition: 0.7s;
}

.modal-lg {
  width: 85%;
  --bs-modal-width: 1280px;
}

.modal-content{
  box-shadow: 0 5px 15px rgba(0,0,0,.5);
}

.modal p {
  font-weight: 400;
  font-size: 20px;
  margin: 0;
  line-height: 1.5;
}

.modal-p-mt {
  margin-top: 20px !important;
}

.modal a {
  font-size: 16px;
  color: #FF8701;
  margin-left: auto;
  margin-top: auto;
  text-decoration: none;
}

.modal a:hover {
  text-decoration: underline;
}

.modal-body {
  padding: 1.5rem;
  margin: 15px;
}

.modal .row {
  margin: 0;
  padding: 0;
}

.modal-heading-row, .modal-header {
  display: flex;
  align-items: center;
  flex-wrap: inherit;
  margin-right: 15px;
}

.modal-heading-row i, .modal-header i {
  margin-left: auto;
  cursor: pointer;
}

.modal .heading {
  font-size: 30px;
  color: #0A133A;
}

.modal .subheading {
  font-weight: bold;
}

.modal-lg:has(.about-modal):has(.modal-content) {
  width: 85%;
}
