/* making scroll thinner inside the page(not browser scroll)*/
.accordion {
  --bs-accordion-btn-padding-x: 1.25rem;
  --bs-accordion-btn-padding-y: 0.875rem;
}

.container-accordion::-webkit-scrollbar {
  width: 5px;
}

.container-checkbox {
  width: 100%;
  height: 125px;
  overflow-y: scroll;
}

.mySaveButton {
  position: absolute;
  top: 10%;
  left: 91%;
  width: 80%;
  height: 80%;
}

.card-text2 {
  margin-bottom: 0;
  white-space: normal;
  overflow: auto;
  transition: all 0.5s ease-in-out;
  word-wrap: break-word;
  max-width: 100%;
  max-height: 60px;
}

::-webkit-scrollbar {
  width: 15px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #888;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* */
.nav-custom-padding {
  margin-left: -10px;
  margin-right: -10px;
  padding-left: 10px;
  padding-right: 10px;
}

/* If input is not empty */
#custom:not(:placeholder-shown) {
  border-color: Transparent;
  background: url("/static/images/kenteken_0.png") no-repeat;
  background-size: 215px 38px;
  padding-left: 25px;
  text-transform: uppercase;
  font-size: large;
  max-width: 215px;
}
/* If input is empty */
#custom:placeholder-shown {
  border-color: Transparent;
  background: url("/static/images/kenteken_1.png") no-repeat;
  background-size: 215px 38px;
  padding-left: 25px;
  text-transform: uppercase;
  font-size: large;
  max-width: 215px;
}
#custom:focus {
  border-color: Transparent;
  background: url("/static/images/kenteken_0.png") no-repeat;
  background-size: 215px 38px;
  padding-left: 25px;
  text-transform: uppercase;
  font-size: large;
  max-width: 215px;
}
#tip {
  display: none;
}
#tip.show {
  display: block;
}
.image-thumbnail {
  height: 200px;
  object-fit: cover;
  border-top-right-radius: calc(0.375rem - 1px);
  border-top-left-radius: calc(0.375rem - 1px);
}
.list-group-item a {
  text-decoration: none;
  color: black;
}
ul.navbar {
  flex-direction: row;
}
input {
  background: url() no-repeat;
}
#preview img {
  max-height: 100px;
}

#hover_effect {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
    0.3s box-shadow,
    0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
}
#hover_effect:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}
.codepen-wrapper {
  width: 25%;
  margin: 0 37.5%;
}
.dropzone .dz-message .dz-button {
  background: none;
  color: inherit;
  border: dashed 2px gray;
  border-radius: 25px;
  padding: 25px;
  font: inherit;
  cursor: pointer;
  outline: inherit;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
    0.3s box-shadow,
    0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
}
.dz-button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* card hover effects */
#card-effects, .card-effects {
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
    0.3s box-shadow,
    0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
  padding: 12px;
  cursor: pointer;
}
#card-effects:hover, .card-effects:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}
/* card hover effects for image cards*/
#card-effects-image, .card-effects-image {
  background: #fff;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
    0.3s box-shadow,
    0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
  cursor: pointer;
}
#card-effects-image:hover, .card-effects-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

/* Break Points */
@media (max-width: 992px) {
  .test {
    border: #000;
  }
  .float-end {
    float: left !important;
  }
}
@media (max-width: 378px) {
  .dropdown-menu-end.show {
    --bs-position: start;
    right: auto;
    left: 0;
  }
}
@media (max-width: 327px) {
  .dropdown-menu-end.show {
    --bs-position: end;
    right: 0;
    left: auto;
  }
}

#output {
  width: 202px;
  border: 1px solid #000;
  margin: 2px;
  height: 400px;
  float: left;
}

.round {
  position: absolute;
  top: 6.25%;
  left: 8%;
  opacity: 0;
}
.round label {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  height: 28px;
  left: 0;
  position: absolute;
  top: 0;
  width: 28px;
}
.round label:after {
  border: 2px solid #fff;
  border-top: none;
  border-right: none;
  content: "";
  height: 6px;
  left: 7px;
  opacity: 0;
  position: absolute;
  top: 8px;
  transform: rotate(-45deg);
  width: 12px;
}
.round input[type="checkbox"] {
  visibility: hidden;
}

.round input[type="checkbox"]:checked + label {
  background-color: rgb(26, 115, 232);
  border-color: rgb(26, 115, 232);
}

.round input[type="checkbox"]:checked + label:after {
  opacity: 1;
}
#hover_effect_button {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08), 0 0 6px rgba(0, 0, 0, 0.05);
  transition: 0.3s transform cubic-bezier(0.155, 1.105, 0.295, 1.12),
    0.3s box-shadow,
    0.3s -webkit-transform cubic-bezier(0.155, 1.105, 0.295, 1.12);
}
#hover_effect_button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}
html {
  -webkit-touch-callout: none !important;
}

/* CAMERA TEST */
#video {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  width: 320px;
  height: 240px;
}

#photo {
  border: 1px solid black;
  box-shadow: 2px 2px 3px black;
  width: 320px;
  height: 240px;
}

#canvas {
  display: none;
}

.camera {
  width: 340px;
  display: inline-block;
}

.output {
  width: 340px;
  display: inline-block;
  vertical-align: top;
}

#startbutton {
  display: block;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  bottom: 32px;
  background-color: rgba(0, 150, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0px 0px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-family: "Lucida Grande", "Arial", sans-serif;
  color: rgba(255, 255, 255, 1);
}

.contentarea {
  font-size: 16px;
  font-family: "Lucida Grande", "Arial", sans-serif;
  width: 760px;
}
#input_camera_icon {
  opacity: 80%;
  position: absolute;
  top: 1px;
  left: 0;
  width: 30px;
  height: 28px;
  z-index: 9;
  text-align: center;
}
#input_camera_icon:hover {
  color: rgb(0, 71, 163);
  position: absolute;
  top: 1px;
  left: 0;
  width: 30px;
  height: 28px;
  z-index: 9;
  text-align: center;
}

.loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  border: 4px solid #f3f3f3;
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 30px;
  height: 30px;
  -webkit-animation: spin 2s linear infinite; /* Safari */
  animation: spin 2s linear infinite;
}

.search-container {
  position: relative;
  right: 35px;
  top: 5px;
  width: 30px;
  height: 30px;
}
.dropdown-menu {
  max-height: 280px;
  overflow-y: auto;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Alpine.js Transitions */
.transition-transform {
    transition: transform 0.3s ease;
}

.rotate-90 {
    transform: rotate(90deg);
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-opacity {
    transition-property: opacity;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.max-h-0 {
    max-height: 0;
}

.max-h-screen {
    max-height: 100vh;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

/* Form styling for edit browser */
.status-checkboxes .form-check {
    margin-bottom: 0.5rem;
}

.card-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

/* Toast notifications */
.toast {
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Photo selection */
.card.border-primary {
    border-width: 2px !important;
}
