body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: space-between;
  background-color: #0072c6;
  color: white;
  padding: 20px;
}

header h1 {
  margin: 0;
  font-size: 36px;
}

main {
  padding: 20px;
}

footer {
  background-color: #f4f4f4;
  border-top: 1px solid #ccc;
  padding: 20px;
  text-align: center;
}

/* Video mirroring */
.mirrorVideo {
  transform: scaleX(-1);
}

/* General content */
.content {
  position: relative;
  margin: 0 auto;
  padding: 0;
}

.content video {
  display: block;
}

p,
label {
  color: #2ba2db;
}

.login-link,
a:visited {
  color: black;
  text-decoration: underline;
}

::placeholder {
  opacity: 0.25;
}

/* Layout box */
.main-box {
  position: relative;
  max-width: 30em;
  max-height: 30em;
  border: 1.5px solid;
  border-radius: 0.25em;
  box-shadow: 1px 1px 2px 1px rgb(0 0 0 / 0.2);
  background-color: #f5f5f5;
}

/* Carousel */
#carousel {
  width: 100%;
  margin: 0 auto;
}

#carousel img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.slick-slide {
  width: 100vw;
  max-height: 400px;
  box-sizing: border-box;
}

/* Username and Account fields */
#payloadUsername,
#payloadAccount {
  margin: 10px;
}

/* Video section */
.video-section {
  display: grid;
  justify-content: center;
  grid-template-areas:
    '. center-part-a .'
    '. center-part-b .';
}

.top-part {
  grid-area: center-part-a;
}

.bottom-part {
  grid-area: center-part-b;
}

/* Video overlays */
.videoOverlay {
  z-index: 999;
  max-width: 20em;
}

#previewContentSection {
  position: relative;
  max-height: 10em;
}

#previewWindow {
  max-width: 100%;
  top: 0;
  left: 0;
}

#ovalOverlay {
  position: absolute;
  top: 0;
  left: 0;
}

.overlay {
  position: absolute;
  top: 92%;
  text-align: center;
  height: 100%;
  width: 100%;
  opacity: 1;
  z-index: 999;
}

/* Task section */
#taskSection {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

#taskSection .row {
  width: 100%;
  display: flex;
  justify-content: center ;
  padding: 0 ;
  margin: 0 ;
  text-align: center;
}

/* Buttons */
#captureBtn {
  background-color: #2ba2db !important;
  border: none !important;
  width: auto !important;
  padding: 6px 20px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin: 0 auto !important;
}

#captureBtn:hover {
  background-color: #2497c8 !important;
}

#stopAutocaptureBtn {
  position: absolute;
}

/* Navbar */
.navbar .nav-link {
  color: #cce3ff !important;
}

.navbar .nav-link:hover {
  color: #ffffff !important;
}

.navbar-brand {
  color: #ffffff !important;
}

#b2cLink:hover {
  text-decoration: underline;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.5) !important;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: rgba(255, 255, 255, 0.75) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: #fff !important;
}

.navbar.navbar-dark .navbar-nav .nav-item.active .nav-link {
  color: inherit !important;
  font-weight: 600;
}

.navbar.navbar-dark {
  color: #fff;
}

/* Login / Member status */
#memberStatus {
  text-align: center;
}

#memberStatus #login-text,
#memberStatus #login-link {
  display: inline !important;
  margin: 0;
  font-size: 14px;
}

#memberStatus #login-link {
  margin-left: 4px;
  font-weight: 600;
  text-decoration: none;
  color: black;
}

#memberStatus #login-link:hover {
  text-decoration: underline;
}

/* Username label */
#usernameLabel {
  display: block;
  text-align: center;
  width: 100%;
}

/* Color strip */
#colorstrip {
  width: 100%;
  height: 1px;
  border: solid #117a8b;
}

/* Responsive rules */
@media (max-width: 768px) {
  .loginBox {
    position: relative;
    top: -100px;
  }

  .previous-column {
    margin-bottom: 100px;
  }

  #previewContentSection {
    max-height: 5em;
  }

  #previewWindow,
  .previewWindowParent,
  #ovalOverlay,
  .video-section,
  .top-part,
  .bottom-part {
    max-width: 10em;
  }

  .previewWindowParent {
    max-height: 5em;
  }
}

@media (max-width: 762px) {
  .main-box {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .slick-slide {
    max-height: 200px;
  }
}
