/* Base colors */
:root {
  --detectit-dark-red: #c61303;
  --detectit-primary-red: #ff1700;
  --detectit-lighter-red: #ff6347;
  --detectit-yellow: #ffd700;
  --detectit-orange: #ffa500;
  --detectit-white: #ffffff;
  --detectit-black: #191919;
  --detectit-gray: #f8f9fa;
  --detectit-light-bg: #fafafa;
  /* Add a blue accent used by outlines */
  --detectit-blue: #0d6efd;

  /* light button background */
  --detectit-light-btn-bg: #d3d3d3;
  /* dark button background */
  --detectit-dark-btn-bg: #333333;


  /* light nav bg */
  --detectit-light-nav-bg: #888888;
  /* dark nav bg */
  --detectit-dark-nav-bg: #333333;
  --detectit-main-grey: #414042;
  --detectit-light-grey: #d3d3d3;
  --focus-box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.5);
  --neutral-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2); /* Neutral shadow for both themes */
  --lumen-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175); /* Lumen shadow for light theme */

  /* transition durations */
  --transition-duration: 0.5s;
  --transition-duration-long: 1s;
  --transition-duration-short: 0.3s;
}

html {
  scroll-behavior: smooth;
}

/* Global Font */
@font-face {
  font-family: "UbuntuRegular";
  src: url("../webfonts/Ubuntu/Ubuntu-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "UbuntuItalic";
  src: url("../webfonts/Ubuntu/Ubuntu-Italic.ttf") format("truetype");
}

@font-face {
  font-family: "UbuntuBold";
  src: url("../webfonts/Ubuntu/Ubuntu-Bold.ttf") format("truetype");
}

/* Global Styles */
body {
  font-family: "UbuntuRegular", sans-serif;
  transition: background-color var(--transition-duration), color var(--transition-duration);
  padding-left: 20px;
  padding-right: 20px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.breadcrumb,
.breadcrumb-item {
  font-family: "UbuntuBold", sans-serif;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
  color: var(--detectit-primary-red);
}

.breadcrumb-item {
  font-size: 1.2rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Floating Action Button (FAB) */
.settings-fab {
  position: fixed;
  bottom: 10px;
  left: 10px;
  z-index: 1000;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  border: none;
  outline: none;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--neutral-shadow);
  transition: background-color var(--transition-duration), color var(--transition-duration);
}

/* Settings Menu */
.settings-menu {
  position: fixed;
  bottom: 70px;
  left: 10px;
  z-index: 1000;
  min-width: 175px;
  padding: 10px;
  box-shadow: var(--neutral-shadow);
  border-radius: 5px;
  border: 1px solid var(--detectit-primary-red);
}

/* Theme-specific background for the settings menu */
.settings-menu.light {
  background-color: var(--detectit-white);
}

.settings-menu.dark {
  background-color: var(--detectit-main-grey);
}

/* Menu Header */
.settings-menu h4 {
  margin: 0 0 10px 0;
}

.about-container {
  display: flex;
  align-items: center;
}

.info-section {
  width: 35%;
  padding-right: 0.5rem;
}

.image-section {
  width: 65%;
}

.list-group {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.list-group-item.name-badge {
  padding: 0.5rem;
  text-align: center;
}

.created-by p,
.artwork-by p {
  font-style: italic;
  font-weight: bold;
  font-size: 1.25rem;
}

body,
.btn,
.form-control,
.card,
.jumbotron {
  animation: fadeIn var(--transition-duration) ease-in-out;
}

.btn,
.card,
.table,
table,
.jumbotron,
.img-box {
  box-shadow: var(--lumen-shadow);
  border: var(--detectit-primary-red) 1px solid;
}

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

/* Table full width */
.table,
table,
.dataTable {
  width: 100%;
}

/* Center all table headers and content */
.table th,
.table td,
table.dataTable thead th,
table.dataTable tbody td {
  text-align: center;
}

.disabled,
.disabled * {
  pointer-events: none;
  opacity: 0.5;
}

.word-wrap {
  word-break: break-all;
}

.just-padding {
  padding: 15px;
}

.list-group.list-group-root {
  padding: 0;
  overflow: hidden;
}

.list-group.list-group-root .list-group {
  margin-bottom: 0;
}

.list-group.list-group-root .list-group-item {
  border-radius: 0;
  border-width: 1px 0 0 0;
}

.list-group.list-group-root > .list-group-item:first-child {
  border-top-width: 0;
}

.list-group.list-group-root > .list-group > .list-group-item {
  padding-left: 30px;
}

.list-group.list-group-root > .list-group > .list-group > .list-group-item {
  padding-left: 45px;
}

.card-row {
  margin: auto;
}

/* Slider switch styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.img-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fc8080; /* Pale red */
  transition: var(--transition-duration);
  border-radius: 34px;
}

.img-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: var(--transition-duration);
  border-radius: 50%;
}

input:checked + .img-slider {
  background-color: var(--detectit-primary-red); /* Red */
}

input:checked + .img-slider:before {
  transform: translateX(26px);
}

/* checked checkbox */
input[type="checkbox"]:checked {
  background-color: var(--detectit-primary-red);
  outline: none;
}

/* focus hide any special focus */
input[type="checkbox"]:focus {
  outline: none;
  /* and hiding glow */
  box-shadow: none;
}

/* Hide the default file input */
#branding-logo {
  opacity: 0;
  position: absolute;
  z-index: -1;
}

/* Style the label to look like a button */
#branding-logo-label {
  display: flex;
  padding: 10px 20px;
  color: white;
  background-color: var(--detectit-primary-red);
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  text-align: center;
}

#home-row {
  display: flex;
  align-items: center;
}

#large-image-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#small-image-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}

.separator {
  /* Default to vertical line */
  border-left: 2px solid var(--detectit-light-nav-bg); /* Vertical line color and thickness */
  height: 250px; /* Height of vertical line */
  width: 2px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.seperator-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Common styles for image buttons */
.image-button,
.image-button-sm {
  display: block;
  width: 100%;
  text-align: center;
  margin: auto;
  text-decoration: none;
}

.image-button img,
.image-button-sm img {
  width: 100%;
  height: auto;
}

.image-button {
  max-width: 150px;
}

.image-button-sm {
  max-width: 75px;
}

.image-button object,
.image-button-sm object {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1; /* Ensures the image maintains a 1:1 aspect ratio */
  object-fit: cover; /* Ensures the image covers the entire area */
}

/* Caption styles for image buttons */
.caption {
  margin-top: 10px;
  width: 100%;
  font-size: 1.25rem;
  margin-bottom: 0;
}

.manage-evidence-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inline-form-check {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 10px; /* Adjust spacing as needed */
  border: 2px solid var(--detectit-primary-red);

}

.header-with-icon {
  display: flex;
  align-items: center;
}

.header-with-icon .icon {
  margin-right: 10px; /* Adjust the spacing as needed */
  width: 50px; /* Adjust the width as needed */
  height: 50px; /* Adjust the height as needed */
}

/* add-on-icon should be small image */
.add-on-icon {
  width: 30px;
  height: 30px;
}

/* page-item.active */
.page-item.active .page-link {
  background-color: var(--detectit-primary-red);
  border-color: var(--detectit-white);
  color: var(--detectit-white);
}

img {
  /* background-color: var(--detectit-main-grey); */
  color: var(--detectit-white);
}

/* banner-img which is img-fluid but needs to be centered and full width for the banner */
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: cover;
  aspect-ratio: 48 / 9;
}

#developers-list,
#artwork-list {
  list-style-type: none;
}

.badge-wrapped {
  --bs-badge-padding-x: 0.65em;
  --bs-badge-padding-y: 0.35em;
  --bs-badge-font-size: 0.75em;
  --bs-badge-font-weight: 700;
  --bs-badge-color: #fff;
  --bs-badge-border-radius: var(--bs-border-radius);
  display: inline-block;
  padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
  font-size: var(--bs-badge-font-size);
  font-weight: var(--bs-badge-font-weight);
  line-height: 1;
  color: var(--bs-badge-color);
  text-align: center;
  white-space: normal; /* Allows text wrapping */
  vertical-align: baseline;
  border-radius: var(--bs-badge-border-radius);
}
.badge-wrapped:empty {
  display: none;
}

.btn-group {
  display: flex;
}
.btn-group .btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

i {
  /* color: var(--detectit-white) !important; */
  padding: 0.5rem;
  border-radius: 0.25rem;
}

a {
  transition: color var(--transition-duration);
}

.table th {
  background-color: var(--detectit-black) !important;
  color: var(--detectit-white);
}

#loading-modal i {
  background-color: transparent !important;
}

.cookie-notification {
  /* align items and justify content */
  display: flex;
  flex-direction: column !important;
  align-items: center;
  justify-content: space-between;
}

/* Dark and Light Theme styles,
    not specific to any one microservice */

body[data-bs-theme="dark"] {
  background-color: #333 !important;
  color: var(--detectit-white);
}

body[data-bs-theme="light"] {
  background-color: var(--detectit-light-bg) !important;
  color: var(--detectit-black);
}

/* Light btn */
body[data-bs-theme="light"] .btn {
  background-color: var(--detectit-light-btn-bg);
  color: var(--detectit-black);
}

body[data-bs-theme="dark"] .btn {
  background-color: var(--detectit-dark-btn-bg);
  color: var(--detectit-white);
}

body[data-bs-theme="dark"] .card {
  background-color: var(--detectit-main-grey);
  color: var(--detectit-white);
}

body[data-bs-theme="light"] .card {
  background-color: var(--detectit-white);
  color: var(--detectit-black);
}

/* help-content */
.help-content {
  padding: 1rem;
  border-radius: 0.5rem;
}

.help-content img {
  width: 100%;
  height: auto;
  min-width: 50px;
}

.help-content table {
  width: 100%;
}

.help-content table th {
  background-color: var(--detectit-black);
  color: var(--detectit-white);
  text-align: center;
  font-size: 1.25rem;
}

.help-content table td {
  text-align: center;
}

/* license-badge */
.license-badge {
  word-wrap: break-word !important;
  word-break: break-all;
  white-space: normal;
}

.about-icon {
  color: var(--detectit-primary-red);
  min-width: 200px;
}

/* Alternating table row colors */

body[data-bs-theme="light"] .help-content table tbody tr:nth-child(odd) {
  background-color: var(--detectit-light-grey);
}

body[data-bs-theme="dark"] .help-content table tbody tr:nth-child(odd) {
  background-color: var(--detectit-main-grey);
}

body[data-bs-theme="light"] .help-content table tbody tr:nth-child(even) {
  background-color: var(--detectit-white);
}

body[data-bs-theme="dark"] .help-content table tbody tr:nth-child(even) {
  background-color: var(--detectit-dark-nav-bg);
}


body[data-bs-theme="dark"] .help-content {
  background-color: var(--detectit-black);
  color: var(--detectit-white);
}

body[data-bs-theme="light"] .help-content {
  background-color: var(--detectit-light-grey);
  color: var(--detectit-black);
}

/* eula-content */
.eula-content {
  padding: 1rem;
  border-radius: 0.5rem;
}

body[data-bs-theme="dark"] .eula-content {
  background-color: var(--detectit-black);
  color: var(--detectit-white);
}

body[data-bs-theme="light"] .eula-content {
  background-color: var(--detectit-light-grey);
  color: var(--detectit-black);
}

@media (max-width: 768px) {
  .separator {
    border-left: none; /* Remove vertical line */
    border-top: 2px solid var(--detectit-light-nav-bg); /* Add horizontal line */
    margin-top: 3rem;
    margin-bottom: 3rem;
    width: 75%; /* Horizontal line takes full width */
    height: 2px; /* Height of horizontal line */
  }

  .banner-img {
    object-fit: cover;
    aspect-ratio: 24 / 9;
  }

  #large-image-buttons .row,
  #small-image-buttons .row {
    margin-bottom: 0 !important; /* Override Bootstrap's mb-3 */
  }

  .image-button,
  .image-button-sm {
    margin-bottom: 1rem; /* Add space between image buttons */
  }

  body {
    padding-left: 5px;
    padding-right: 5px;
  }
}
