html,
body {
  height: 100%;
  position: relative; }

body {
  background: #121212;
  font-family: 'Roboto Condensed', sans-serif; }

.wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; }

.clock {
  perspective: 600px;
  position: relative;
  min-width: 780px; }

.hours,
.minutes {
  width: 260px;
  position: relative;
  float: left; }
  .hours:before, .hours:after,
  .minutes:before,
  .minutes:after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 100%;
    position: absolute;
    animation: pulse 1s infinite; }
  .hours:before,
  .minutes:before {
    top: calc(50% - 10px);
    right: 10px; }
  .hours:after,
  .minutes:after {
    top: calc(50% + 10px);
    right: 10px; }

.minutes:after, .minutes:before {
  display: none; }

#meridiem {
  width: 260px;
  position: relative;
  float: left; }

.digit {
  width: 110px;
  height: 160px;
  position: relative;
  float: left;
  padding: 0 5px; }
  .digit .card {
    width: 110px;
    height: 80px;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    transform-origin: 50% 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all ease 1000ms; }
    .digit .card:nth-of-type(1) {
      z-index: 10; }
    .digit .card:nth-of-type(2) {
      z-index: 9; }
    .digit .card:nth-of-type(3) {
      z-index: 8; }
    .digit .card:nth-of-type(4) {
      z-index: 7; }
    .digit .card:nth-of-type(5) {
      z-index: 6; }
    .digit .card:nth-of-type(6) {
      z-index: 5; }
    .digit .card:nth-of-type(7) {
      z-index: 4; }
    .digit .card:nth-of-type(8) {
      z-index: 3; }
    .digit .card:nth-of-type(9) {
      z-index: 2; }
    .digit .card:nth-of-type(10) {
      z-index: 1; }
  .digit .face {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 110px;
    height: 80px;
    overflow: hidden; }
    .digit .face p {
      backface-visibility: hidden;
      color: #fff;
      font-size: 180px;
      font-weight: bold;
      position: absolute;
      line-height: 200px;
      padding: 0 10px;
      margin: 0;
      left: 0;
      text-shadow: 0 0 5px #424242; }
  .digit .front {
    background: linear-gradient(0deg, #323232 40%, #424242);
    border-radius: 6px 6px 0 0;
    z-index: 2;
    transform: rotateX(0deg); }
    .digit .front p {
      top: -15px; }
    .digit .front:after {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(180deg, rgba(0, 0, 0, 0) 98%, rgba(0, 0, 0, 0.3)); }
  .digit .back {
    background: linear-gradient(-170deg, #323232 55%, #212121);
    border-radius: 0 0 6px 6px;
    transform: rotateX(180deg); }
    .digit .back p {
      top: -95px; }
    .digit .back:after {
      content: '';
      display: block;
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(7deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.15)); }
  .digit.zero .card-0 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.one .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.one .card-1 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.two .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.two .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.two .card-2 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.three .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.three .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.three .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.three .card-3 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.four .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.four .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.four .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.four .card-3 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.four .card-4 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.five .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.five .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.five .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.five .card-3 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.five .card-4 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.five .card-5 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.six .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.six .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.six .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.six .card-3 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.six .card-4 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.six .card-5 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.six .card-6 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.seven .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-3 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-4 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-5 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-6 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.seven .card-7 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.eight .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-3 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-4 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-5 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-6 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-7 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.eight .card-8 {
    transform: rotateX(-180deg);
    z-index: 10; }
  .digit.nine .card-0 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-1 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-2 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-3 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-4 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-5 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-6 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-7 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-8 {
    transform: rotateX(-180deg);
    z-index: -1; }
  .digit.nine .card-9 {
    transform: rotateX(-180deg);
    z-index: 10; }

@keyframes pulse {
  0%, 100% {
    background: rgba(255, 255, 255, 0.3); }
  50% {
    background: rgba(255, 255, 255, 0.1); } }

@media screen and (max-width: 800px) {
  .clock {
    min-width: 400px; }
  .hours,
  .minutes,
  .seconds {
    width: 200px; }
  .digit {
    width: 80px;
    height: 130px; }
    .digit .card {
      width: 80px;
      height: 65px; }
      .digit .card .face {
        width: 80px;
        height: 65px; }
        .digit .card .face p {
          font-size: 160px;
          padding: 0; }
      .digit .card .front p {
        top: -30px; } }

@font-face {
  font-family: 'ClockWork';
  src: url("/static/fonts/ClockWork.ttf") format("truetype");
  font-display: swap;
  /* This will swap the font once it's loaded */ }

@font-face {
  font-family: 'AtomicClockRadio';
  src: url("/static/fonts/AtomicClockRadio.ttf") format("truetype");
  font-display: swap;
  /* This will swap the font once it's loaded */ }

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Orbitron', sans-serif;
  background-color: #f0f0f0;
  color: #333;
  transition: background-color 0.3s, color 0.3s; }

nav {
  width: 100%;
/*   background-color: #333;
  color: white; */
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: flex-end;
  padding-right: 20px; }

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 18px; }

.container {
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
/*   background-color: #FFFFFF; */
  transition: background-color 0.3s, box-shadow 0.3s; }

#ClockWise {
  font-family: 'ClockWork', sans-serif;
  font-size: 4em !important; }

#dateDisplay, #userInfo {
  font-family: 'AtomicClockRadio', sans-serif;
  margin: inherit; }

h1, h2 {
  color: #D32F2F; }

p, a {
  font-size: 16px; }

a {
  color: #0066CC; }

/* Custom styles for face capture functionality */
.video-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  /* Adjust based on your layout */
  margin: 20px auto;
  /* Centering the video container */ }

#video {
  width: 100%;
  border-radius: 8px;
  display: block;
  /* Show the video stream */ }

#capture {
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  background-color: #D32F2F;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer; }

#capture:hover {
  background-color: #B71C1C; }

/* Hide the canvas element by default */
#canvas {
  display: none; }

/* Additional styles */
input[type="text"] {
  width: calc(100% - 22px);
  /* Full width with padding adjustment */
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ccc; }

input[type="submit"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer; }

input[type="submit"]:hover {
  background-color: #45a049; }

.logo {
  height: 50px;
  margin-right: auto;
  mix-blend-mode: multiply; }

.clock {
  font-family: 'Roboto Condensed', sans-serif !important; }

#captureBtn {
  /* Updated from #capture to #captureBtn for consistency */
  display: block;
  margin: 10px auto;
  padding: 10px 20px;
  background-color: #D32F2F;
  /* Bootstrap primary blue */
  color: white;
  font-weight: bold;
  /* Make the text bold */
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  /* Smooth transition for hover effect */ }

#captureBtn:hover {
  background-color: #0056b3;
  /* A darker shade of blue for hover state */ }
body,
html {
    background-color: #121212;
    color: #ffffff;
}

nav {
    background-color: #333;
    color: white;
}

.container {
    background-color: #121212 !important;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

