h1 {
  margin-bottom: 1.25rem;
}
@media (max-width: 576px) {
  h1 {
    font-size: 2rem;
  }
}

hr {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.bg-dark {
  background-color: #000000 !important;
}

body {
  color: #fff;
  font-family: 'Roboto Slab', serif;
}

a {
  color: #ffff9e;
}
a:hover {
  color: #eeb655;
}

nav,
footer {
  background-color: rgba(25, 25, 25, 0.85);
}

nav {
  border-bottom: 1px solid #353535;
}

.navbar-dark .navbar-brand {
  margin-right: 1rem;
  font-size: 1rem;
}
.navbar-dark .navbar-brand img {
  height: 22px;
  margin: -5px 5px 2px 0;
}
.navbar-dark .navbar-brand small {
  font-size: 1rem;
  color: aqua;
}
.navbar-dark .navbar-nav .nav-item .nav-link {
  color: #ffff9e;
}
.navbar-dark .navbar-nav .nav-item .nav-link:hover {
  color: #eeb655;
}

main.app {
  margin-top: 70px;
  margin-bottom: 100px;
  color: #ddd;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #353535;
}
footer .row a {
  display: block;
  text-align: center;
  padding: 0.6rem;
  height: 4.5rem;
  font-size: 0.85rem;
  text-decoration: none;
}
footer .row a:hover {
  background-color: rgba(65, 65, 65, 0.5);
}
footer .row a span {
  display: block;
}

.mg-auto {
  margin: auto;
}

label.required::after {
  content: " *";
  color: #f00;
}

.table tbody td.options {
  text-align: right;
}
.table tbody td.options .btn {
  margin-bottom: 3px;
}
.table-card {
  max-width: 100%;
}
.table-card tbody tr td span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.7rem;
  color: #bdbdbd;
}
.table-card tbody tr:first-child td {
  border-top: 0;
}

.modal-dialog {
  box-shadow: 1px 1px 15px #fff;
}
.modal-content {
  border: none;
  border-radius: 0;
  background-color: #000;
}
.modal-header {
  background-color: #012a68;
  color: #fff;
  border-bottom: 4px solid #CA1C1D;
  border-radius: 0;
  padding: 0.35rem 1rem;
}
.modal-body {
  background-color: #000;
  color: #fff;
}
.modal-footer {
  padding: .2rem;
  border-top-color: #666;
}
.modal.sub {
  z-index: 1060;
  padding-right: 18px;
}
@media print {
  .modal.sub {
    padding-right: 0;
  }
}
.modal.sub ~ .modal-backdrop {
  z-index: 1050;
  overflow-y: scroll;
}
.modal.sub .modal-dialog {
  margin-top: 60px;
}

.btn-outline-success {
  color: #1bf54d;
  border-color: #25d44d;
}

.tooltip-inner {
  background-color: rgba(0, 33, 141, 0.7);
}

bs-tooltip-auto[x-placement^=bottom] .arrow::before,
.bs-tooltip-bottom .arrow::before {
  border-bottom-color: rgba(0, 33, 141, 0.7) !important;
}

.bs-tooltip-auto[x-placement^=top] .arrow::before,
.bs-tooltip-top .arrow::before {
  border-top-color: rgba(0, 33, 141, 0.7) !important;
}

.bs-tooltip-auto[x-placement^=left] .arrow::before,
.bs-tooltip-left .arrow::before {
  border-left-color: rgba(0, 33, 141, 0.7) !important;
}

.bs-tooltip-auto[x-placement^=right] .arrow::before,
.bs-tooltip-right .arrow::before {
  border-right-color: rgba(0, 33, 141, 0.7) !important;
}

/* keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rotator {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(270deg);
    transform: rotate(270deg);
  }
}
@keyframes colors {
  0% {
    stroke: #2196F3;
  }
  25% {
    stroke: #EF5350;
  }
  50% {
    stroke: #FFCA28;
  }
  75% {
    stroke: #66BB6A;
  }
  100% {
    stroke: #2196F3;
  }
}
@keyframes color-white {
  0% {
    stroke: #fff;
  }
  100% {
    stroke: #fff;
  }
}
@keyframes dash {
  0% {
    stroke-dashoffset: 320;
  }
  50% {
    stroke-dashoffset: 46.75;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
  }
  100% {
    stroke-dashoffset: 320;
    -webkit-transform: rotate(450deg);
    transform: rotate(450deg);
  }
}
#loader {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 100000;
}
@media print {
  #loader {
    display: none;
  }
}
#loader .spinner {
  animation: rotator 1.4s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  margin-left: -50px;
  margin-top: -50px;
}
#loader .spinner-path {
  stroke-dasharray: 320;
  stroke-dashoffset: 0;
  -webkit-transform-origin: center;
  transform-origin: center;
  -webkit-animation: dash 1.4s ease-in-out infinite, color-white 5.6s ease-in-out infinite;
  animation: dash 1.4s ease-in-out infinite, color-white 5.6s ease-in-out infinite;
}

.login-container {
  height: 100%;
  width: 350px;
  max-width: 95%;
  margin: 0 auto;
}
.login-container main {
  width: 80%;
  margin: 0 auto;
}
.login-container-main {
  display: flex;
  width: 500px;
}

.register-container {
  display: flex;
  height: 100%;
  width: 850px;
  max-width: 95%;
  margin: 0 auto;
}
.register-container main {
  width: 80%;
  margin: 0 auto;
}

.flags a {
  margin-left: 10px;
}
.flags a img {
  width: 30px;
}
.flags-center a {
  margin: 0 5px;
}

.my-decks li a {
  display: flex;
  width: 100%;
  padding: 10px;
  border-bottom: 1px solid #999;
}
.my-decks li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}
.my-decks li a.forbidden {
  color: #b0b0b0;
  cursor: not-allowed;
}
.my-decks li a.forbidden img.deck-back {
  filter: grayscale(100%);
  opacity: .5;
}
.my-decks li a.forbidden:hover {
  color: #e0e0e0;
}
.my-decks li a.forbidden:hover img.deck-back {
  opacity: .75;
}
.my-decks li a .deck-back {
  width: 50px;
  height: 72px;
  margin-right: 20px;
}
.my-decks li a .deck-info {
  width: calc(100% - 66px);
  font-size: 1.1rem;
}
.my-decks li a .deck-play {
  width: 16px;
  margin-top: 20px;
  margin-left: 6px;
}
.my-decks li:last-child a {
  border-bottom: 0;
}

.scene {
  width: 225px;
  height: 324px;
  perspective: 600px;
  margin: 0 auto;
  border: 0;
}
.scene .single-card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform .7s;
  transform-style: preserve-3d;
  border: 0;
}
.scene .single-card.is-flipped {
  transform: rotateY(180deg);
}
.scene .single-card .card__face {
  position: absolute;
  cursor: pointer;
  height: 100%;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  font-size: 24px;
  color: #fff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scene .single-card .card__face > div {
  padding: 10px;
}
.scene .single-card .card__face--front {
  background-position: center;
  background-size: 225px 324px;
  background-repeat: no-repeat;
  border: none;
}
.scene .single-card .card__face--back {
  background: #eee;
  background: radial-gradient(circle, white 0%, white 40%, #e6caca 100%);
  border-color: #999;
  color: #000;
  transform: rotateY(180deg);
}
