/* Overide browser default */

body {
  /* --bs-body-bg: #f0f2f5; */
  --person-border-color: rgba(100,100,100,0.2);
  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  input:-webkit-autofill:active {
      transition: background-color 86400s ease-in-out 0s;
  }
}

a {
  text-decoration: none !important;
  cursor: pointer !important;
}

.border-faint {
  border-color: rgba(var(--bs-primary-rgb), 0.1) !important
}

.bg-opacity-03 {
  --bs-bg-opacity:0.03;
}

.bg-opacity-05 {
  --bs-bg-opacity:0.05;
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

.bg-opacity-15 {
  --bs-bg-opacity: 0.15;
}

.bg-opacity-20 {
  --bs-bg-opacity: 0.2;
}

.bg-opacity-30 {
  --bs-bg-opacity: 0.3;
}

.table {
  --bs-table-bg: transparent;
}

.dropdown-menu {
  z-index: 99999 !important
}

.list-subtext {
  opacity: 0.75;
}

.text-auto-truncate {
  text-overflow :ellipsis;
}

.modal-open .container-fluid, .modal-open .container {
  -webkit-filter: blur(7px) grayscale(0%);
}

.fixed-table-loading {
  visibility: hidden;
  top: 0px;
  display: none;
}

.bg-none, .bg-none:hover {
  background: none !important;
  background-color: transparent !important;
}

.text-justify {
  text-align: justify;
}

@media (min-width: 992px) {
  .modal-lg {
    --bs-modal-width: 960px;
  }

  .desktop-left-10 {
    margin-left:-10px;
  }

  .desktop-pad-right-0 {
    padding-right:0!important
  }

  .desktop-rounded-right {
    border-top-right-radius:0.5rem!important;
    border-bottom-right-radius:0.5rem!important;
  }
}
 
@media (max-width: 992px) { 

  .modal-wizard-link {
    border-radius: 0.5rem!important;
  }

  .modal-lg {
    --bs-modal-width: 100%;
  }
}

@media (max-width: 576px) { 
  .mobile-px-0 {
    padding-left:0!important;
    padding-right:0!important;
  }

  .mobile-px-2 {
    padding-left:0.5rem!important;
    padding-right:0.5rem!important;
  }
}

.text-justified {
  text-align: justify;
}

.modal {
  background-color: rgba(var(--bs-black-rgb), 0.2);
}

.btn.show {
  border-color: transparent;
}

.btn-thin {
  padding-top:0;
  padding-bottom:0;
  margin:0;
}

label {
  cursor: pointer;
}

/* Dark theme */
[data-bs-theme=dark] {
  color-scheme: dark;
  --bs-primary-rgb: 3, 22, 51;

  .nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    --bs-nav-pills-link-active-bg: #031633;
  }
  
  .btn-primary {
    --bs-btn-bg: #031633;
    --bs-btn-border-color: var(--bs-border-color);
    --bs-btn-border-color: var(--bs-border-color);
    --bs-btn-hover-bg: #052b64;
  }

  .btn-light, .btn-light:hover,.btn-outline-secondary, .btn-outline-secondary:hover {
    color: #f0f0f0;
  }

  .btn-outline-primary {
    --bs-btn-border-color: var(--bs-border-color);
    --bs-btn-border-color: var(--bs-border-color);
    --bs-btn-hover-bg: #052b64;
    --bs-btn-color: #9ab7e4;
  }

  .card-container {
    /*border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;*/
  }

  .border-dark-theme {
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
  }
}

.card-container, .card-container-success, .card-container-info, .card-container-warning, .card-container-danger {
  border-radius: var(--bs-border-radius) !important;
  --bs-bg-opacity: .1;
  background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
  padding: 1.9rem !important;
  border: 1px solid rgba(var(--bs-primary-rgb),0.05);
}

.card-container-success {
  background-color: rgba(var(--bs-success-rgb), var(--bs-bg-opacity)) !important;
}

.card-container-info {
  background-color: rgba(var(--bs-info-rgb), var(--bs-bg-opacity)) !important;
}

.card-container-warning {
  background-color: rgba(var(--bs-warning-rgb), var(--bs-bg-opacity)) !important;
}

.card-container-danger {
  background-color: rgba(var(--bs-danger-rgb), var(--bs-bg-opacity)) !important;
}

.user-picture {
  width: 40px;
  border-radius: 50% !important;
  margin-right: 1rem !important;
  margin-top: .25rem !important;
  display: inline-block !important;
  float: left !important;
}






/* Bootstrap toggle */
.toggle.toggle-round, .toggle-on.toggle-round, .toggle-off.toggle-round {
  border-radius: 15rem;
}

.toggle.toggle-round .toggle-handle {
  border-radius: 60%;
}

.toggle.toggle-round-sm .toggle-handle {
  width: 33px;
  height: 33px;
  border-radius: 50%;
}

.toggle-group.toggle-off .toggle-handle {
  margin-left:35px;
}












/* Main menu */

.accordion-button:not(.collapsed) {
  box-shadow: none!important;
}

.main-menu-button {
    font-size: 1.125rem!important;
    text-decoration: none!important;
    color: --var(--bs-color);
    background-color: transparent!important;
}

.main-menu-button:hover, .sub-menu-button:hover {
    background-color: rgba(100,100,100,0.3)!important;
}

.main-menu-button:focus {
    border-color: transparent!important;
    outline: 0!important;
    box-shadow: none!important;
}

.sub-menu-button {
    font-size: 1.125rem!important;
}

.bg-main-menu {
    background-color: rgb(231,241,255);
}

/* Modals */

.modal-header, .modal-footer {
    border: 0!important;
}

.modal-wizard-link {
  color: rgba(var(--bs-white-rgb), 0.75);
}

.modal-wizard-link.active, .modal-wizard-link:hover {
  /*background-color: rgba(var(--bs-white-rgb), 1)!important;*/
  background-color: rgba(var(--bs-body-bg-rgb), 1)!important;
  color: var(--bs-link-color)!important;
}

.modal-wizard-link.disabled {
  color: rgba(var(--bs-white-rgb), 0.3)!important;
}

/* Line controls */
.line-control, .line-control>button {
  background-color:transparent; 
  border: none; 
  border-radius:0; 
  outline: none; 
  -webkit-box-shadow: none; 
  -moz-box-shadow: none; 
  box-shadow: none; 
  border-bottom: 1px solid rgba(var(--bs-secondary-rgb), 0.4);
  padding-left:0; 
  padding-right:0;
}

.line-control:hover, .line-control:focus, .line-control>button:hover, .line-control>button:focus,   .line-control>button:hover, .line-control>button:active {
  outline:0px !important;
  background-color:transparent!important;
  -webkit-appearance:none;
  box-shadow: none !important;
  border-color: rgba(var(--bs-primary-rgb), 1);
}

.line-control-plaintext, .line-control-plaintext:focus, .line-control-plaintext>button {
  outline:0px !important;
  -webkit-appearance:none;
  box-shadow: none !important;
  border: 0px !important;
  cursor:pointer;
  padding-left:0; 
  padding-right:0
}

textarea {resize:none}

.line-control-plaintext>button {
  background-color: transparent!important;
  pointer-events: none;
  top:-3px;
}

.readonly {
  cursor: not-allowed;
  pointer-events: none;
}

.line-control .readonly {
  border:none;
  padding-left:0;
  padding-right:0;
}

.col-form-label {
 color: rgba(var(--bs-secondary-rgb), 0.9);
}

@media (min-width: 576px) {
  .col-form-label {
    text-align:right;
  }
}


/* Loading bar */
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 40px;
}
.lds-ellipsis div {
    position: absolute;
    top: 15px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgb(95, 91, 91);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }
  .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.5s infinite;
  }
  .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.5s infinite;
  }
  .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.5s infinite;
  }
  .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.5s infinite;
  }
  @keyframes lds-ellipsis1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }
  @keyframes lds-ellipsis3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }
  @keyframes lds-ellipsis2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(24px, 0);
    }
  }

/* Boostrap select */

.bootstrap-select .dropdown-toggle:focus, .bootstrap-select>select.mobile-device:focus+.dropdown-toggle {
  outline: none!important;
  outline: none!important;
  outline-offset: 0!important;
}

.select-page>button, .select-page>button:hover, .select-page>button:active {
  border-radius: 0!important;
  border:1px solid rgb(108,117,125)!important;
  border-left: 0!important;
  border-right: 0!important;
}

/* Bootstrap table */

.columns {
  margin: 0;
}

/* Overide bootstrap */

element.style {
  backface-visibility: hidden;
}
.bootstrap-select .dropdown-menu li a {
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.dropdown-item {
  display: block;
  width: 100%;
  padding: var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);
  clear: both;
  font-weight: 400;
  color: var(--bs-dropdown-link-color);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  border-radius: var(--bs-dropdown-item-border-radius,0);
}
a {
  color: rgba(var(--bs-link-color-rgb),var(--bs-link-opacity,1));
  text-decoration: underline;
}
*, ::after, ::before {
  box-sizing: border-box;
}
user agent stylesheet
li {
  text-align: -webkit-match-parent;
}

.table>tr>td {
  vertical-align: middle!important;
}

.pointer {
  cursor:pointer;
}

.no-pointer, .no-pointer:hover {
  cursor: none;
  pointer-events: none;
}

.form-control:disabled, .form-control[readonly] {
  background-color: transparent!important;
  cursor:pointer;
}

/* Width */

.w-5 {width:5%}
.w-7 {width:7%}
.w-10 {width:10%}
.w-12 {width:12%}
.w-15 {width:15%}
.w-18 {width:18%}
.w-20 {width:20%}
.w-25 {width:25%}
.w-30 {width:30%}

/* Visibility */
.hidden, .filter-hidden {display:none}


/* Datetime picker */
.tempus-dominus-widget {
  padding: 0.85rem;
}

.day, .month, .year {
  border-radius: 6px!important;
}










/* Steps */
.steps {
    list-style-type: none;
    padding: 0;
}

.steps li {
	display: inline-block;
	margin:0 4px;
	margin-bottom: 3px;
}

.steps li a, .steps li p {
	padding: 13px;
    padding-left: 20px;
	display: block;
    border-radius: 4px;
	position: relative;
	/* text-indent: 10px; */
	text-align:center;
    font-weight: bold;
}

.steps li:not(:first-child) a:before, .steps li:not(:first-child) p:before {
	border-bottom: 22px solid transparent;
	border-left: 10px solid #fff;
	border-top: 22px solid transparent;
	content: "";
	height: 0;
	position: absolute;
	left: 0;
	top: 50%;
	width: 0;
	margin-top: -22px;
}

.steps li:not(:last-child) a:after, .steps li:not(:last-child) p:after {
	border-bottom: 22px solid transparent;
	border-top: 22px solid transparent;
	content: "";
	height: 0;
	position: absolute;
	left:100%;
	top: 50%;
	width: 0;
	margin-top: -22px;
	z-index: 1;
}
  
.steps li.active a, .steps li.active p {
	color: #fff;
}

.steps li a:hover, .steps li p:hover {
	text-decoration: none;
}

.steps li.undone a, .steps li.undone p {
	background: #eee;
	color: #333;
}

.steps li.undone a:after, .steps li.undone p:after {
	border-left: 12px solid #eee;
}

.steps li.undone p {
	color: #aaa;
}
  
.steps-justified {
	display: flex;
	justify-content: space-between;
}
	
.steps-justified li {
	width:100%;
	margin-right:3px;
	margin-left:3px;
}

.steps li:first-child {
	margin-left:0;
}

.steps li:last-child {
    margin-right:0;
}

.step-link {
    text-decoration: none;
    cursor: pointer;
}
	
@media (min-width: 992px) {
    .steps {
        display: flex;
        justify-content: space-between;
    }

    .steps li {
        width:100%;
        margin:0 3px;
    }

    .steps li a, .steps li p {
        padding-left:0;
        padding-right:0;
    }
}

/* Flip card */

.flip-card {
  width: 300px;
  height: 200px;
  perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.flip-card-front {
  background-color: #bbb;
  color: black;
}

.flip-card-back {
  background-color: #2980b9;
  transform: rotateY(180deg);
}

/* Horizontal scroll */

.scroll-container {
  overflow-x: scroll;
  overflow-y: hidden;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  &::-webkit-scrollbar {
    display: none;
  }
  white-space: nowrap;
}

.scroll-card {
  display: inline-block;
}

.hover-rise:hover {
  transition: transform 0.3s;
}

.hover-rise:hover {
  transform: translateY(-10px);
}



/* Sound waves */

.sound-container {
  display: grid;
  place-items: center;
  height: 100px;

  .sound-wave {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bar {
    animation-name: wave-lg;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    animation-direction: alternate;
    margin: 0 2px;
    height: 5px;
    width: 1%;
    background-color: var(--bs-secondary-color);

    &:nth-child(-n + 7),
    &:nth-last-child(-n + 7) {
      animation-name: wave-md;
    }

    &:nth-child(-n + 3),
    &:nth-last-child(-n + 3) {
      animation-name: wave-sm;
    }
  }
}

@keyframes wave-sm {
  0% {
    opacity: 0.35;
    height: 10px;
  }
  100% {
    opacity: 1;
    height: 25px;
  }
}

@keyframes wave-md {
  0% {
    opacity: 0.35;
    height: 15px;
  }
  100% {
    opacity: 1;
    height: 50px;
  }
}

@keyframes wave-lg {
  0% {
    opacity: 0.35;
    height: 15px;
  }
  100% {
    opacity: 1;
    height: 70px;
  }
}



