html, body, main {
  height: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

a:hover {
  text-decoration: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgb(255,255,255);
}

.navbar-dark .navbar-nav .nav-link:focus, .navbar-dark .navbar-nav .nav-link:hover {
    color: #007bff;
}

.navbar-dark .navbar-toggler {
    color: rgb(255,255,255);
    border-color: rgba(0,0,0,0);
}
.navbar-dark .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
  font-size: .9rem;
}


.header {
  background-color: #21105a;
  color: #fff;
}

.top > .header,
.recode > .header,
.error > .header {
  background-color: transparent;
}

.top .navbar-dark .navbar-brand,
.top .navbar-dark .nav-link,
.top .navbar-dark .navbar-toggler {
  color: #333;
}


.top__main,
.recode__main,
.error__main {
  background-color: #21105a;
  background-image: linear-gradient(rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.1)), url('../img/cover.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.top__bg {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50%;
}


.scan__main {
  background-color: #21105a;
}

.scan__video {
  width: 100%;
  height: auto;
}

.camera {
  position: relative;
  height: 100%;
}

.camera__ui {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: .5rem 1.5rem;
  background: #21105a;
  font-size: 1.25em;
  text-align: right;
}


/**
 * drawer
 */
.drawer-hamburger {
  width: 1.5rem;
}

.drawer-hamburger-icon,
.drawer-hamburger-icon::after,
.drawer-hamburger-icon::before {
  background-color: #fff;
}
.drawer-hamburger-icon::before {
  top: -8px;
}
.drawer-hamburger-icon::after {
  top: 8px;
}

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


.drawer-brand {
  padding: .5em;
  margin-bottom: 1.5rem;
  background: #717171;
  color: #fff;
  font-size: 1.1rem;
}

.drawer-menu {

}

.drawer-menu-item {
  margin: 4px;
  border-radius: 4px;
  transition: .2s;
}

.drawer-menu-item:hover {
  text-decoration: none;
  opacity: .9;
}

.drawer-menu-item:hover,
.drawer-menu-item.active{
  background: #00e0ec;
  color: #fff;
}

/**
 * loader
 */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%);
}
.loader__wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  display: none;
  width: 100%;
  height: 100%;
  background: #100e1745;
}

.loader__spiner {
  position: relative;
  display: inline-block;
  margin: 0 12.5% 100px;
  width: 50px;
  height: 50px;
  border: 2px solid #e3c21a;
  border-radius: 50%;

  animation: spin 0.75s infinite linear;
}
.loader__spiner::before,
.loader__spiner::after {
  left: -2px;
  top: -2px;
  display: none;
  position: absolute;
  content: '';
  width: inherit;
  height: inherit;
  border: inherit;
  border-radius: inherit;
}

.loader__spiner,
.loader__spiner::before {
  display: inline-block;
  border-color: transparent;
  border-top-color: #e3c21a;
}
.loader__spiner::before {
  animation: spin 1.5s infinite ease;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/**
 * print
 */
@media print {
  .no-print {
    display: none !important;
  }
  .page-break {
    page-break-before: always;
  }

  header,
  footer {
    display: none;
  }
}

/**
 * bootstrap reset
 */
@media print {
  a[href]:after {
    content: "" !important;
  }

  abbr[title]:after {
    content: "" !important;
  }

  .table>tbody>tr.active>td, .table>tbody>tr.active>th, .table>tbody>tr>td.active, .table>tbody>tr>th.active, .table>tfoot>tr.active>td, .table>tfoot>tr.active>th, .table>tfoot>tr>td.active, .table>tfoot>tr>th.active, .table>thead>tr.active>td, .table>thead>tr.active>th, .table>thead>tr>td.active, .table>thead>tr>th.active {
    background-color: #f5f5f5 !important;
  }
  .table>tbody>tr.info>td,
  .table>tbody>tr.info>th,
  .table>tbody>tr>td.info,
  .table>tbody>tr>th.info,
  .table>tfoot>tr.info>td,
  .table>tfoot>tr.info>th,
  .table>tfoot>tr>td.info,
  .table>tfoot>tr>th.info,
  .table>thead>tr.info>td,
  .table>thead>tr.info>th,
  .table>thead>tr>td.info,
  .table>thead>tr>th.info {
    background-color: #d9edf7 !important;
  }
}
