/* Space out content a bit */
body {
  padding-top: 20px;
  padding-bottom: 20px;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif !important;
}

#body-content {
  padding: 1.5rem 1rem 1rem 1rem;
}

.text-center {
  text-align: center;
}

/* Everything but the jumbotron gets side spacing for mobile first views */
.header,
.marketing,
.footer {
  padding-right: 15px;
  padding-left: 15px;
}

/* Custom nav header */
.navbar {
  background-color: #F9E79F;
  border-radius: 0.5rem;
  padding: 0.5rem 0.5rem;
}

/* The "PyHC" next to the navbar logo */
.navbar-brand {
  margin-left: 5px;
  font-weight: bolder;
  font-family: 'Orbitron', sans-serif;
}

/* Navbar main items' text */
.navbar .ml-auto, .mx-auto {
  margin-left: auto!important;
  margin-right: 0.5em;
}

/* Custom page header */
.header {
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e5e5;
}
/* Make the masthead heading the same height as the navigation */
.header h3 {
  margin-top: 0;
  margin-bottom: 0;
  line-height: 40px;
}

/* Custom page footer */
.footer {
  padding-top: 19px;
  color: #777;
  border-top: 1px solid #e5e5e5;
}

/* Main marketing message and sign up button */
.jumbotron {
  text-align: center;
  border-bottom: 1px solid #e5e5e5;

  background-image: url('../img/assets/Homepage-Image.jpg');
  background-size: cover; /* This will cover the entire viewport */
  background-repeat: no-repeat; /* This will prevent the image from repeating in case it's too small for the container */
  background-position: center center; /* This will center the image */
}

.jumbotron .blur-box {
  background-color: rgba(0, 0, 0, 0.5); /* Translucent black */
  border-radius: 15px; /* Rounded corners */
  padding: 10px; /* Space around the text */
  backdrop-filter: blur(1px); /* Blurs the background behind the box */
  -webkit-backdrop-filter: blur(1px); /* For Safari */
}

.jumbotron .btn {
  padding: 14px 24px;
  font-size: 21px;
}

.jumbotron h1 {
  color: white;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 4.7rem;
  text-shadow: 
        0 2px 5px #ffffff,   /* Innermost */
        0 4px 10px #000000,  /* Middle */
        0 6px 15px #000000,  /* Slightly offset color for depth */
        0 8px 25px #000000,  /* Outermost with a more pronounced color shift */
        0 10px 35px #000000;  /* Further out */
}

.jumbotron p {
  color: white;
  text-shadow: 2px 2px 4px #000000; /* This adds a black shadow. Adjust as needed. */
}

/* Supporting marketing content */
.marketing {
  margin: 40px 0;
  font-family: "Open Sans", sans-serif
}
.marketing p + h4 {
  margin-top: 28px;
}

/* Blog pagination */
.pagination {
  display: flex;
}
.centered {
  margin: auto;
}
span.previous,
span.next {
  color: grey;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
  /* Remove the padding we set earlier */
  .header,
  .marketing,
  .footer {
    padding-right: 0;
    padding-left: 0;
  }
  /* Space out the masthead */
  .header {
    margin-bottom: 30px;
  }
  /* Remove the bottom border on the jumbotron for visual effect */
  .jumbotron {
    border-bottom: 0;
  }
}

/* Responsive jumbotron text for phones and small tablets */
@media screen and (max-width: 575.98px) {
  .jumbotron h1 {
    font-size: 2em;
  }
}

.card {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background-color: #f0f0f0;
}

.card-img-top {
  padding: 10px;
}

/* DataTable styling */
table.dataTable thead .sorting, 
table.dataTable thead .sorting_asc, 
table.dataTable thead .sorting_desc, 
table.dataTable thead .sorting_asc_disabled, 
table.dataTable thead .sorting_desc_disabled {
  cursor: pointer;
  *cursor: hand;
  background-repeat: no-repeat;
  background-position: 100% 75%;
}

table.dataTable th {
  padding-right: 20px;
}
table.dataTable thead .sorting:hover {
  background-image: url("../img/assets/sort_both.png");
}
table.dataTable thead .sorting_asc {
  background-image: url("../img/assets/sort_asc.png");
}
table.dataTable thead .sorting_desc {
  background-image: url("../img/assets/sort_desc.png");
}
table.dataTable thead .sorting_asc_disabled {
  background-image: url("../img/assets/sort_asc_disabled.png");
}
table.dataTable thead .sorting_desc_disabled {
  background-image: url("../img/assets/sort_desc_disabled.png");
}

.dataTables_filter {
  display: none;
}
.dataTables_filter input {
  display: none;
}
.tables_filter {
  color: #333;
  float: none;
  border: 1px solid #aaa;
  border-radius: 3px;
  padding: 5px;
  background-color: transparent;
  margin-top: 1em;
  margin-bottom: 10px;
  margin-left: 5px;
  width: 210px;
}

select.filter {
  margin-left: 1px;
  width: 200px;
}

/* Expand/collapse filters */
.expand-container {
  overflow: hidden;
}
.taxonomy-filters {
  margin-top: 25px;
  display: none; /* initially hide filters, gets overriden in toggleFilters() */
}

/* DataTable button styling */
.filter-toggle {
  margin-left: 20px;
  padding: 5px 10px;
  cursor:pointer;	
  border-radius: 2px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;	
  box-shadow: #e3e3e3 0 1px 1px;	
  -moz-box-shadow:
    0px 1px 1px rgba(000,000,000,0.1),
    inset 0px 1px 1px rgba(255,255,255,0.7);
  -webkit-box-shadow:
    0px 1px 1px rgba(000,000,000,0.1),
    inset 0px 1px 1px rgba(255,255,255,0.7);	
}
.white {
  color: black;
  border: 1px solid #d3d3d3;	
  background: #ededed; /*fallback for non-CSS3 browsers*/
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#f9f9f9) to(#ededed)); /*old webkit*/
  background: -webkit-linear-gradient(#f9f9f9, #ededed); /*new webkit*/
  background: -moz-linear-gradient(#f9f9f9, #ededed); /*gecko*/
  background: -ms-linear-gradient(#f9f9f9, #ededed); /*IE10*/
  background: -o-linear-gradient(#f9f9f9, #ededed); /*opera 11.10+*/
  background: linear-gradient(#f9f9f9, #ededed); /*future CSS3 browsers*/
}
.white:active {
  background: #ededed; /*fallback for non-CSS3 browsers*/
  background: -webkit-gradient(linear, 0 0, 0 100%, from(#ededed) to(#f9f9f9)); /*old webkit*/
  background: -webkit-linear-gradient(#ededed, #f9f9f9); /*new webkit*/
  background: -moz-linear-gradient(#ededed, #f9f9f9); /*gecko*/
  background: -ms-linear-gradient(#ededed, #f9f9f9); /*IE10*/
  background: -o-linear-gradient(#ededed, #f9f9f9); /*opera 11.10+*/
  background: linear-gradient(#ededed, #f9f9f9); /*future CSS3 browsers*/
}

.hidden {
  display: none;
}

/* Dark Mode Styles */
:root {
  --background-color: #ffffff;
  --text-color: #262626;
  --card-bg-color: #f0f0f0;
  --card-border-color: #e5e5e5;
  --link-color: #007bff;
  --navbar-bg: #F9E79F;
  --footer-color: #777;
  --footer-border: #e5e5e5;
  --header-border: #e5e5e5;
  --jumbotron-border: #e5e5e5;
  --table-border: #aaa;
  --button-bg: #ededed;
  --button-border: #d3d3d3;
}

[data-theme="dark"] {
  --background-color: #1a1a1a;
  --text-color: #f5f5f5;
  --card-bg-color: #2d2d2d;
  --card-border-color: #444;
  --link-color: #8ab4f8;
  --navbar-bg: #2d2d2d;
  --footer-color: #aaa;
  --footer-border: #444;
  --header-border: #444;
  --jumbotron-border: #444;
  --table-border: #555;
  --button-bg: #444;
  --button-border: #555;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar {
  background-color: var(--navbar-bg);
  transition: background-color 0.3s ease;
}

[data-theme="dark"] .navbar {
  background-color: var(--navbar-bg);
}

[data-theme="dark"] .navbar-nav .nav-link,
[data-theme="dark"] .navbar-brand {
  color: white;
}

[data-theme="dark"] .navbar-nav .nav-link.active {
  color: #F9E79F;
  font-weight: bold;
}

[data-theme="dark"] .navbar-nav .nav-link:hover,
[data-theme="dark"] .navbar-brand:hover {
  color: #F9E79F;
}

.card {
  background-color: var(--card-bg-color);
  border-color: var(--card-border-color);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

a {
  color: var(--link-color);
  transition: color 0.3s ease;
}

.footer {
  color: var(--footer-color);
  border-top-color: var(--footer-border);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.header {
  border-bottom-color: var(--header-border);
  transition: border-color 0.3s ease;
}

.jumbotron {
  border-bottom-color: var(--jumbotron-border);
  transition: border-color 0.3s ease;
}

.tables_filter {
  border-color: var(--table-border);
  color: var(--text-color);
  background-color: var(--card-bg-color);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

select.filter {
  background-color: var(--card-bg-color);
  color: var(--text-color);
  border-color: var(--table-border);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.white {
  color: var(--text-color);
  border-color: var(--button-border);
  background: var(--button-bg);
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

/* Dark mode - using system preference */

/* Table styling in dark mode */
[data-theme="dark"] table {
  color: var(--text-color);
}

[data-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.075);
}

/* People cards styling */
.people-card {
  margin: 0px;
  padding: 0px;
  background-color: transparent !important;
  border: 0;
  box-shadow: none;
}

.people-card .card-body {
  padding-top: 10px;
  padding-bottom: 0px;
}

/* Markdown table styling for PHEP schedule tables */
.schedule-table table {
  border-collapse: collapse;
  margin: 1em 0 2em 2em;
  font-size: 0.95em;
  border: none;
}

.schedule-table thead {
  display: none;
}

.schedule-table th,
.schedule-table td {
  padding: 0.4em 2em 0.4em 0;
  text-align: left;
  vertical-align: top;
  border: none;
}

.schedule-table h4 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.schedule-table h6 {
  margin-top: 1em;
  margin-bottom: 0.5em;
  font-weight: 600;
}
