
body {
   font-family: 'Roboto', serif; 
}

#page {
    background: #f1f3f2;
/*                background: #FFEB3B;*/
}

#app {
    background: #ffeb3b;
}

#page #header {
    line-height: 56px;
    margin-top: 16px;
    margin-bottom: 64px;
}

#page #header .row {
/*    display: flex;*/
}

#page #header .brand {
    text-align: left;
}

#page #header .nav {
    text-align: center;
}

#app #header {
    margin-top: 32px;
    margin-bottom: 32px;
}

#app #header h1 {
    padding-bottom: 16px;
    font-size: 64px;
    font-family: 'Tilt Warp', sans-serif;
    font-weight: 400;
}

#header .nav a {
    font-size: 12px;
    margin-left: 8px;
}

#header .nav :not([role=button])  {
    text-decoration: none;
    color: #000;
}

#header .nav .secondary-link  {
    text-decoration: none;
}

.wordmark {
    font-size: 24px;
    font-family: 'Tilt Warp', sans-serif;
    font-weight: 400;
    text-decoration: none;
    color: #000;
}

.logo img {
    max-width: 240px;
    height: auto;
}

select, input:not([type=submit]) {
    border: 2px solid #000;
    padding: 16px;
    border-radius: 8px;
    width: 100%;
    font-size: 16px;
    margin-bottom: 8px;
}

input:is([type=submit]) {
    border: none;
    background: #52c37d;
    color: #fff;
    font-size: 12px;
    margin-top: 8px;
    width: 100%;
    font-weight: bold;
    text-decoration: none;
    padding: 0.5rem 1rem 0.5rem 1rem;
    border-radius: 8px;
}

#form-result {
    font-size: 16px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 8px;
    line-height: 20px;
    margin-bottom: 16px;
}

#form-result.registration {
    background: #ffeb3b;
    color: #000;
    font-weight: bold;
    font-style: italic;
}

#form-result.error {
    background: #f44336;
    color: #fff;
}

.box {
    box-shadow: #d2d5e5 0 1px 10px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
}

.box h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mobile .logo {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.action-tile {
    display: block;
    min-height: 74px;
}

.action-tile .icon {
    float: left;
    display: block;
    margin-right: 8px;
}

.action-tile .icon img {
    padding: 8px;
}

.action-tile .content {
    display: block;
}

.action-tile .content .title {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.action-tile .content .description {
    display: block;
}

.action-tile .content .description.smaller {
    font-size: 12px;
}

a.action-tile {
    border: 1px solid #15ce5d;
}

.action-tile a, .action-tile a:hover, .action-tile a:active, .action-tile a:focus, .action-tile a:visited {
    -webkit-tap-highlight-color: transparent !important;
    color: #52c37d;
}

h2 {
    font-weight: normal;
    font-size: 1.5em;
}

.device-enrolment-highlight {
    font-size: 0.8em;
    background: #333;
    padding: 16px;
    color: #FFF;
    margin-top: 32px;
    word-wrap: break-word;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #52c37d;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.input-set label {
    font-size: 12px;
    font-weight: bold;
}

.chip {
    margin-bottom: 16px;
    color: #FFF;
    font-size: 12px;
    padding: 8px;
    display: inline-block;
    border-radius: 28px;
}

.chip.test-mode {
    background: #cc4b00;
}

.test-mode-toggle {
    width: 100%;
    text-align: right;
    font-size: 12px;
    font-weight: bold;
    line-height: 34px;
}

.test-mode-toggle .title {
    margin-right: 4px;
}

.activities {
    background: #fff;
}

.activities .event {
    padding: 16px;
    border-bottom: 1px solid #ccc;
}

.activities .event:hover {
    background: #52c37d85;
}

.activities .event:last-child {
    border: none;
}

.activities .event .description.with-icon:before {
    background-size: 16px 16px;
    width: 21px;
    height: 16px;
    content: '';
    display: inline-block;
    background-position-x: 0;
    background-repeat: no-repeat;
    margin-bottom: -1px;
}

.activities .event .description.system:before {
    background-image: url(/static/img/event-system.png);
}

.activities .event .description.badge:before {
    background-image: url(/static/img/event-badge.png);
}

.activities .event .description.scan:before {
    background-image: url(/static/img/event-scan.png);
}

.activities .event .description.tailgate:before {
    background-image: url(/static/img/event-tailgate.png);
}

.activities .event .description.access_granted:before {
    background-image: url(/static/img/event-access_granted.png);
}

.activities .event .description.access_attempted:before {
    background-image: url(/static/img/event-access_denied.png);
}

.activities .event .data {
    margin-top: 8px;
    font-size: 12px;
    background: #e3e3e3;
    padding: 8px;
    word-wrap: break-word;
}

.activities .event .date {
    color: #333;
    font-size: 0.85rem;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row label {
    width: 30%;
    line-height: 54px;
}

.form-row input {
    width: 70%;
}

#tailgateCameraPreview {
    min-width: 640px;
}

/* Rectangle and Resize Handle Styles */
#rectangle {
  background-color: rgba(255, 0, 0, 0.2); /* A transparent red background */
  position: absolute; /* Ensure rectangle is positioned on top of the image */
}

.resize-handle {
  width: 10px;
  height: 10px;
  background-color: blue;
  position: absolute;
  cursor: pointer;
}

/* Rectangle Resize Handles */
.top-left {
  top: -5px;
  left: -5px;
  cursor: nwse-resize;
}

.top-right {
  top: -5px;
  right: -5px;
  cursor: nesw-resize;
}

.bottom-left {
  bottom: -5px;
  left: -5px;
  cursor: nesw-resize;
}

.bottom-right {
  bottom: -5px;
  right: -5px;
  cursor: nwse-resize;
}

/* Line and Handle Styles */
#line {
  position: absolute;
  z-index: 10; /* Ensure the line is on top of the image */
}

.line {
  position: absolute;
  height: 2px;
  background-color: green;
  transform-origin: 0 0;
  display: none;
}

.line-start {
    left: 0px;
    top: 0px;
}

.line-end {
    right: -5px;
    top: 0px;
}

.line-start, .line-end {
  width: 10px;
  height: 10px;
  background-color: green;
  position: absolute;
  cursor: pointer;
  transform: translate(-50%, -50%); /* Center the handle on the point */
  z-index: 20; /* Ensure handles are above the line */
}

.hidden {
    display: none;
}

.event-toggle-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}
.event-toggle-container label {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.event-toggle-container label input {
    width: auto;
    margin-bottom: 0;
    font-size: 12px;
}

.event-toggle-container span {
    font-size: 12px;
}

@media (min-width: 576px) {
    input:is([type=submit]) {
        width: auto;
    }
}            

@media (min-width: 768px) {   
    #page #header .nav {
        text-align: right;
    }
}

@media (min-width: 992px) {
    
}
