/* Modifications in CSS style */

:root {
  --primary-color: #242e4c !important;
  --secondary-color: #1c2540 !important;
  --teritary-color: #1d58a5 !important;
  --white-shadow-color-90: rgba(255, 255, 255, 0.9) !important;
  --white-shadow-color-70: rgba(255, 255, 255, 0.7) !important;
  --white-shadow-color-55: rgba(255, 255, 255, 0.55) !important;
  --white-shadow-color-40: rgba(255, 255, 255, 0.4) !important;
  --gray-color-20: rgba(61, 61, 61, 1) !important;
  --basic-color: white !important;

}

.navbar {
  padding-top: 4px;
  padding-bottom: 4px;
}

body {
  background-color: var(--secondary-color);
}

footer {
  background-color: var(--secondary-color);
  min-height: 11vh;
  /* max-height: 11vh; */
  margin: 0;
  padding: 0;
}

.background-secondary {
  background-color: var(--secondary-color);
}

.bg-teritary {
  background-color: var(--teritary-color);
}

.background-gray-400 {
  background-color: var(--white-shadow-color-40);
}

.theme-dark .navbar,
.theme-dark .modal-content {
  background-color: var(--primary-color);
}

.theme-dark .navbar-nav .dropdown-megamenu,
.navbar-dark .navbar-nav .dropdown-menu {
  background-color: var(--secondary-color);
}

.theme-dark .pagination li {
  background-color: var(--primary-color);
  color: var(--primary-color);
}

.theme-dark .pagination .page-item.active .page-link {
  background-color: var(--secondary-color); /* Set the background color for the active page */
  border-color: var(--secondary-color);
}

.theme-dark .pagination .page-link {
  color: #fff; /* Set the text color for all page links */
  background-color: #343a40; /* Set the default background color for page links */
  border-color: #343a40;
}

.theme-dark .pagination .page-item.disabled .page-link {
  background-color: #6c757d; /*Set the background color for disabled page links */
  border-color: #6c757d;
}


.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-nav .nav-item,
.navbar-dark .navbar-nav .dropdown-megamenu .megamenu-link,
.navbar-dark .navbar-nav .dropdown-megamenu-sm .megamenu-link,
.navbar-dark .navbar-nav .dropdown-megamenu-md .megamenu-link,
.navbar-dark .navbar-nav .dropdown-megamenu .text-primary,
.navbar-dark .navbar-nav .dropdown-menu .text-primary {
  color: var(--white-shadow-color-90);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus,
.navbar-dark .navbar-nav .dropdown-megamenu .megamenu-link:hover,
.navbar-dark .navbar-nav .dropdown-megamenu .megamenu-link:focus,
.navbar-dark .navbar-nav .dropdown-megamenu-sm .megamenu-link:hover,
.navbar-dark .navbar-nav .dropdown-megamenu-sm .megamenu-link:focus,
.navbar-dark .navbar-nav .dropdown-megamenu-md .megamenu-link:hover,
.navbar-dark .navbar-nav .dropdown-megamenu-md .megamenu-link:focus {
  color: var(--basic-color);
}

.theme-dark {
  background-color: var(--secondary-color);
  min-height: 89vh;
  margin: 0;
  /* Reset default margins */
  padding: 0;
  /* Reset default padding */
}

.theme-dark .modal-title,
.theme-dark .modal-item,
.theme-dark .modal-body .fs-5,
.theme-dark .modal-body .fs-6,
.theme-dark .text-xs,
.theme-dark hr,
.theme-dark .form-check-label,
.theme-dark td,
.theme-dark .fas {
  color: var(--basic-color);
}

.theme-dark .modal-content .btn-close {
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75em auto no-repeat;
}

.theme-dark .form-check-input {
  background-color: var(--white-shadow-color-90);
}

.theme-dark .form-check-input:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: none;
  color: var(--basic-color);
}

.theme-dark .form-check-input:checked {
  background-color: var(--teritary-color);
  border-color: var(--primary-color);
}

.theme-dark body,
.theme-dark .section,
.theme-dark .section-header,
.theme-dark .container,
.theme-dark .container .card {
  background-color: var(--secondary-color);
}

.theme-dark .card .list-group-item, form .list-group-item {
  color: var(--white-shadow-color-70);
}

.theme-dark .card {
  border-color: var(--white-shadow-color-40);
}

.theme-dark .card-body label,
.theme-dark .card-body h2 {
  color: var(--white-shadow-color-90);
}

.theme-dark .card-body input,
.theme-dark .card-body select {
  color: var(--white-shadow-color-70);
  background-color: var(--primary-color);
  border: none;
}

.theme-dark .list-group.dashboard-menu .list-group-item.active {
  z-index: 2;
  color: var(--basic-color);
  background: transparent;
  border-color: none;
}

.theme-dark .list-group.dashboard-menu .list-group-item:hover {
  color: var(--basic-color);
  background-color: var(--primary-color);
}

/* xl screen */
@media (min-width: 1200px) {

  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl {
    max-width: 100%;
  }
}

/* md screen */
@media (min-width: 768px) {

  .logout,
  .settings {
    display: inline !important;
  }
}

.btn-settings {
  color: var(--white-shadow-color-90);
  border: none;
}

.btn-settings:hover,
.btn-settings:focus {
  color: white !important;
}


.btn-check:checked+.btn-settings,
.btn-check:active+.btn-settings,
.btn-settings:active,
.btn-settings.active,
.btn-settings.dropdown-toggle.show {
  color: white !important;
}

.text-xs {
  font-size: .75rem;
}

/*------------ SEARCH ------------*/
.searchBoxElement {
  background-color: var(--primary-color);
  border: 1px solid #aaa;
  border-radius: 0.5rem;
  position: absolute;
  max-height: 150px;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  line-height: 23px;
  list-style: none;
  z-index: 1;
  -ms-overflow-style: none;
}

.theme-dark select::-webkit-scrollbar,
.searchBoxElement::-webkit-scrollbar,
#notification-container::-webkit-scrollbar {
  width: 8px;
}

.theme-dark select::-webkit-scrollbar-track,
.searchBoxElement::-webkit-scrollbar-track,
#notification-container::-webkit-scrollbar-track {
  background: var(--white-shadow-color-70);
  border-radius: 8px;
}

.theme-dark select::-webkit-scrollbar-thumb,
.searchBoxElement::-webkit-scrollbar-thumb,
#notification-container::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 8px;
}

.searchBoxElement span {
  padding: 0 5px;
}

.searchBoxElement li {
  background-color: var(--secondary-color);
  color: var(--white-shadow-color-90);
}

.searchBoxElement hr {
  margin: 0.1em;
  padding: 0.1em;
}

.searchBoxElement li:hover {
  background-color: var(--teritary-color);
  color: var(--basic-color);
}

.searchBoxElement li.selected {
  background-color: var(--teritary-color);
  color: var(--basic-color);
}

.refineText {
  padding: 8px 0 8px 0 !important;
}

.theme-dark .refineText {
  padding: 8px !important;
  border-radius: 0.5rem;
  background-color: var(--primary-color);
  color: var(--basic-color);
}

.theme-dark .refineText:active {
  padding: 8px !important;
  border-radius: 0.5rem;
  background-color: var(--secondary-color);
  color: var(--basic-color);
}

.empty-image-area {
  max-width: 100%;
  max-height: 100%;
  text-align: center;
  color: var(--white-shadow-color-70);
}

.text-white {
  color: var(--basic-color) !important;
}

.empty-image-area h4 {
  padding-top: 2rem;
  color: var(--white-shadow-color-70);
}

.sdk-results {
  width: 100%;
  max-width: 100%;
  /* border: 2px dashed white; */
  border-radius: 1rem;
  color: var(--basic-color);
  text-align: center;
  overflow: hidden;
}

.sdk-results h4 {
  color: var(--basic-color);
  text-align: center;
  padding-top: 0.5rem !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* xl screen */
@media (min-width: 1200px) {
  .sdk-results {
    width: 600px;
  }
}

.navbar-coin {
  padding-top: 0.8125rem;
  padding-bottom: 0.8125rem;
  margin-right: 1rem;
  font-size: 1.1rem;
  white-space: nowrap;
  color: var(--white-shadow-color-70);
}

.navbar-coin:hover {
  color: var(--basic-color);
}

.navbar-coin img {
  height: 20px;
}

.navbar-coin img[data-count]:after {
  position: absolute;
  right: 0%;
  top: 1%;
  content: attr(data-count);
  font-size: 30%;
  padding: .6em;
  border-radius: 999px;
  line-height: .75em;
  color: white;
  background: rgba(255, 0, 0, .85);
  text-align: center;
  min-width: 2em;
  font-weight: bold;
}

.theme-dark .card-body { 
  color: var(--white-shadow-color-90);
}

.sdk-results img {
  padding: 0.1rem;
}

#dropArea {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Add this line */
}

#imagePreview {
  max-width: 100%;
  height: auto;
} 

canvas {
  border-radius: 1rem;
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
  max-height: 50vh !important;
  object-position: top; /* Nastaví pozici obrázku tak, aby byl střed obrazovky ve středu kontejneru */
}

:root {
  --fs_6: 1em !important;
  --fs_5: 1.25rem !important;
  --fs_4: calc(1.275rem + 0.3vw) !important;
  --fs_3: calc(1.3rem + 0.6vw) !important;
  --fs_2: calc(1.325rem + 0.9vw) !important;
  --fs_1: calc(1.35rem + 1.2vw) !important;
  
}

.fs-7 {
  font-size: 0.75rem !important;
}


/* xl screen */
@media (min-width: 1200px) {
  .fs-xl-6 {
    font-size: var(--fs_6) !important;
  }

  .fs-xl-5 {
    font-size: var(--fs_5) !important;
  }

  .fs-xl-4 {
    font-size: var(--fs_4) !important;
  }

  .fs-xl-3 {
    font-size: var(--fs_3) !important;
  }

  .fs-xl-2 {
    font-size: var(--fs_2) !important;
  }

  .fs-xl-1 {
    font-size: var(--fs_1) !important;
  }
}

/* xl screen */
@media (min-width: 992px) {
  .fs-lg-6 {
    font-size: var(--fs_6) !important;
  }

  .fs-lg-5 {
    font-size: var(--fs_5) !important;
  }

  .fs-lg-4 {
    font-size: var(--fs_4) !important;
  }

  .fs-lg-3 {
    font-size: var(--fs_3) !important;
  }

  .fs-lg-2 {
    font-size: var(--fs_2) !important;
  }

  .fs-lg-1 {
    font-size: var(--fs_1) !important;
  }
}

/* md screen */
@media (min-width: 768px) {
  .fs-md-6 {
    font-size: 1em !important;
  }

  .fs-md-5 {
    font-size: 1.15rem !important;
  }

  .fs-md-4 {
    font-size: calc(1.275rem + 0.3vw) !important;
  }

  .fs-md-3 {
    font-size: calc(1.3rem + 0.6vw) !important;
  }

  .fs-md-2 {
    font-size: calc(1.325rem + 0.9vw) !important;
  }

  .fs-md-1 {
    font-size: calc(3rem + 1.2vw) !important;
  }

  .btn-md-lg, .btn-group-lg > .btn {
    padding: 0.4rem 1rem;
    font-size: 1.25rem;
    border-radius: 0.7rem;
}
}

.btn-xl, .btn-group-lx > .btn {
  padding: 0.5rem 1.5rem;
  font-size: 1.5rem;
  border-radius: 0.75rem;
}

.btn-xl + .dropdown-toggle-split, .btn-group-xl > .btn + .dropdown-toggle-split {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

/* custom button colors */

.btn-golderod {
  background: #DAA520 !important;
  border-color: #DAA520 !important;
}
.btn-golderod:hover {
  background: #b8860b !important;
  border-color: #b8860b !important;
} 

.btn-blue {
  background-color: #0044ff !important;
  border-color: #0044ff !important;
}
.btn-blue:hover {
    background-color: #0022dd !important;
    border-color: #0022dd !important;
}


@media (max-width: 991px) {
  #navbar_global {
    background-color: var(--secondary-color);
    border: 1px solid #aaa;
    border-radius: 0.5rem;
  }
}

/* MMR tags css */
.tags{
  margin:0;
  padding:0;
  position:absolute;
  right:24px;
  bottom:-12px;
  list-style:none;
}

.tags li{
  float: left;
  height: 24px;
  line-height: 24px;
  position: relative;
  font-size: 11px;
  margin: 2px 5px 2px 12px;
  padding: 0 10px 0 12px;
  background: #0078d7;
  color: #fff;
  text-decoration: none;
  -moz-border-radius-bottomright: 4px;
  -webkit-border-bottom-right-radius: 4px;
  border-bottom-right-radius: 4px;
  -moz-border-radius-topright: 4px;
  -webkit-border-top-right-radius: 4px;
  border-top-right-radius: 4px;
}

.tags li:before {
  content: "";
  float: left;
  position: absolute;
  top: 0;
  left: -12px;
  width: 0;
  height: 0;
  border-color: transparent #0078d7 transparent transparent;
  border-style: solid;
  border-width: 12px 12px 12px 0;
}   
.tags li:after {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  float: left;
  width: 4px;
  height: 4px;
  -moz-border-radius: 2px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
  background: #fff;
  -moz-box-shadow: -1px -1px 2px #004977;
  -webkit-box-shadow: -1px -1px 2px #004977;
  box-shadow: -1px -1px 2px #004977;
}

.image-preview {
  max-width: 100%;
  max-height: 100%;
}

.image-preview img,
.img-fluid {
  width: 100%; /* Zabezpečuje, aby se obrázek vždy zaplnil celou šířku kontejneru */
  height: 100%; /* Zabezpečuje, aby se obrázek vždy zaplnil celou výšku kontejneru */
  object-fit: contain; /* Zabezpečuje zachování poměru stran a zobrazení celého obrázku */
  object-position: top; /* Nastaví pozici obrázku tak, aby byl střed obrazovky ve středu kontejneru */
}

/* History - list of images in the banner */
/* Style for image thumbnails */
.thumbnail {
  max-width: 100px;
  max-height: 100px;
}

.ocr-flag {
  height: 25px;
  margin-right: 0.5rem;
  border-radius: 0.5rem;
  /* border: 1px solid var(--white-shadow-color-40); */
  background-color: var(--white-shadow-color-40);
  padding: 0.1rem;
}

a.collapsed .collapse-hide {
  display: none;
}

/* Style when #advancedSettings is expanded */
a:not(.collapsed) .collapse-show {
  display: none;
}

.text-google {
  color: #1F2937 !important;
}

.section-image {
  background-image: url('/images/hp-mmr-v2.webp');
  background-size: cover !important; /* This property ensures that the background image covers the entire element */
  background-position: center !important; /* This property centers the background image */
  background-repeat: no-repeat !important; /* This property ensures that the background image doesn't repeat */
}

.result-item {
  line-height: 1.3rem;
}

.signin-inner {
  position: relative; /* Make the signin-inner a reference point for absolute positioning */
}

.beta-badge {
  position: absolute;
  top: 55px; /* Adjust this value to move the badge down */
  right: -26px;
  padding: 5px 10px;
  background-color: var(--teritary-color);
  width: max-content;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  transform: rotate(45deg);
  transform-origin: top right;
}

@media (min-width: 768px) {
  #credit_desktop {
      display: inline !important;
  }
  #credit_mobile {
      display: none !important;
  }
  #desktop_upload {
      display: block !important;
  }
  #mobile_upload {
      display: none !important;
  }
  .max-height-75 {
    max-height: 75vh !important;
  }
  .height-fix {
    min-height: 75vh;
  }
  canvas {
    max-height: 75vh !important;
  }
  #dropArea {
    justify-content: normal;
  }
  #resultCardDiv {
    display: block !important;
  }
}

@media (max-width: 576px) {
  #username, #username-logo, #password, #password-logo, #password_confirm, #password_confirm-logo {
      height: 35px;
      font-size: 15px;
  }
  .d-grid button {
      padding: 5px 10px;
      font-size: 15px;
  }
  .carousel-inner .image-preview {
      height: 125px !important;
  }
}

/* Style for the upload icon on the main site */
.upload-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 3rem;
  opacity: 0.6;
}

.upload-icon {
  -webkit-text-fill-color: white;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: black;
}

.upload-icon:hover {
  opacity: 1;
}

.desktop-upload {
  opacity: 0.6;
}

.desktop-upload:hover {
  opacity: 1;
}

.tooltip {
  visibility: hidden;
  text-align: center;
  padding: 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

.tooltip.show {
  visibility: visible;
}

@media (min-width: 992px) { /* This is the typical breakpoint for desktops and up */
  #requestHistory {
      width: 450px;
  }
  #dropArea {
      min-width: 450px;
  }
  #result-container {
      padding-right: 1rem;
  }
}

table tbody tr:hover {
  background-color: var(--primary-color) !important; /* Change this to the color you want */
  /* update mouse pointer */
  cursor: pointer;
}

table thead tr th {
  color: white !important;
}

/* SweetAlert2 custom CSS */
.swal2-modal {
  background-color: var(--bs-gray); 
  color: var(--bs-white); 
}

.swal2-actions .swal2-styled {
  background-color: var(--bs-blue);
}

#carouselExampleIndicators .carousel-inner {
  min-height: 150px;
  max-height: 150px;
}

/* Style for the selected item */
.item-highlighted {
  background-color: steelblue !important;
}
.item-highlighted:hover {
  background-color: steelblue !important;
}

.item-highlighted td {
  color: beige !important;
}

.item-count {
  top: 6px;
  /* left: 50%; */
  color: #ffffff;
  border: 2px solid #ffffff;
  height: 20px;
  display: block;
  padding: 0 5px;
  position: absolute;
  font-size: 10px;
  min-width: 20px;
  background: var(--secondary-color);
  text-align: center;
  font-weight: 500;
  line-height: 16px;
  margin-top: 8px;
  margin-left: 10px;
  border-radius: 10px;
  animation-name: zoomIn;
  animation-duration: 200ms;
}

abbr {
  text-decoration: none !important;
}

.coin-logo {
  vertical-align: text-top !important;;
}

.min-vh-90 {
  min-height: 90vh !important;
}
.min-vh-80 {
  min-height: 80vh !important;
}
.min-vh-85 {
  min-height: 87vh !important;
}
.min-vh-10 {
  min-height: 10vh !important;
}
.min-vh-15 {
  min-height: 13vh !important;
}
.min-vh-20 {
  min-height: 20vh !important;
}



@media (max-height: 816px) {
  #transparent_footer {
    display: none !important
  }
}

#infoBanner {
  max-width: 500px !important;
}

@media (min-width: 992px) {
  #infoBanner {
    max-width: max-content !important;
  }
}

#notification-list{
  position: absolute;
  top: 71px;
  right: 0; 
  width: 300px;
  display: none;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  background: var(--secondary-color);
  color: var(--basic-color);
  border: 1px solid var(--white-shadow-color-40);
  border-radius: 8px;
  z-index: 1050;
}

#rest-api-warning {
  position: absolute;
  top: 71px;
  left: 15px; 
  width: 250px;
  display: block;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  background: var(--secondary-color);
  border: 1px solid var(--white-shadow-color-40);
  border-radius: 8px;
  z-index: 1050;
  font-size: 1rem;
  font-weight: bold;
  color: red;
  text-align: center;
}

#notification-container {
  background: var(--primary-color);
  border-radius: 6px;
  border: none;
}

.notification-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.notification-border-bottom {
  border-bottom: 1px solid var(--white-shadow-color-40);
}

.thumb-down-icon {
  transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth transition */
  padding: 5px;
  border-radius: 5px; /* Rounded edges for better look */
}

.feedback-icon:hover {
  color: #aaa !important;
}

.thumb-down-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  justify-content: end;
}
.feedback-icon {
  font-size: 1.5rem;
  color: gray;
}

@keyframes pulseMask {
  0% { opacity: 0.1; }
  50% { opacity: 0.35; }
  100% { opacity: 0.1; }
}

.pulse-effect {
  animation: pulseMask 3s infinite alternate;
}

.shepherd-content {
  border-color: var(--white-shadow-color-40) !important;
  border-width: 1px !important;
  /* border-radius: 1rem !important; */
  border-style: solid !important;
  background-color: var(--secondary-color) !important;
}

.shepherd-arrow:before {
  background: var(--white-shadow-color-40) !important;
}

.shepherd-text, .shepherd-header, .shepherd-footer, .shepherd-title {
  background-color: var(--secondary-color) !important;
  color: var(--basic-color) !important;
}

.shepherd-footer {
  min-height: 0 !important;
}
