/******************************************************************************
                                    CONFIG
/*****************************************************************************/

:root
{
  --page-background:    #212121;
  --page-color:         whitesmoke;
  --dark-border:        rgba(0,0,0,0.1);
  --content-size:       14px;
  --menu-height:        64px;
  --page-max-width:     640px;
  --mc-width:           100%;
  --mc-height:          300px;
}


/******************************************************************************
                                     CORE
/*****************************************************************************/

a
{
  color:                inherit;
  cursor:               pointer;
  text-decoration:      none;
}

::-webkit-inner-spin-button
{
  display:              none;
}

html
{
  min-width:            360px;
  min-height:           100%;
  background:           var(--page-background);
  color:                var(--page-color);
  font-family:          'Open Sans', sans-serif;
}

body
{
  min-width:            360px;
  font-size:            var(--content-size);
}

#page
{
  max-width:            var(--page-max-width);
  margin:               auto;
}

/* template container */
#template
{
  display:              none;
}

/* generic full-page content */
div.content
{
  position:             absolute;
  left:                 50%;
  top:                  50%;
  transform:            translate(-50%, -50%);
  text-transform:       lowercase;
  font-variant:         small-caps;
  text-align:           center;
  font-size:            24px;
}

/* used by permission system */
.hidden
{
  display:              none !important;
}


/******************************************************************************
                                    MESSAGE
/*****************************************************************************/

#message
{
  position:             fixed;
  left:                 50%;
  top:                  50%;
  transform:            translate(-50%, -50%);
  width:                auto;
  height:               0;        /* initially closed */
  overflow:             hidden;   /* to hide content when closed */
  transition:           0.1s;
  z-index:              5;
  text-align:           center;
  font-size:            0;
  text-transform:       uppercase;
  color:                #212121;
}

#message.opened
{
  height:               auto;
  border:               1px solid var(--dark-border);
  border-radius:        7px;
  box-shadow:           0 0 50px 10px var(--dark-border);
  padding:              18px;
  font-size:            calc(var(--content-size) - 2px);
  line-height:          calc(var(--content-size) - 2px);
}


/******************************************************************************
                                    LOADER
/*****************************************************************************/

#loader
{
  position:             fixed;
  left:                 50%;
  top:                  50%;
  transform:            translate(-50%, -50%);
  width:                auto;
  height:               0;        /* initially closed */
  overflow:             hidden;   /* to hide content when closed */
  transition:           0.1s;
  transition-delay:     0.4s;     /* used to avoid showing loader for quick requests */
  z-index:              4;
  text-align:           center;
  font-size:            0;
  text-transform:       uppercase;
  background:           #EDD068;
  color:                #212121;
}

#loader.opened
{
  height:               53px;
  border:               1px solid var(--dark-border);
  border-radius:        7px;
  box-shadow:           0 0 50px 10px var(--dark-border);
  padding:              18px;
  font-size:            var(--content-size);
  line-height:          var(--content-size);
}

/* overlay used to not allow the user to interact during requests */
#loader-overlay
{
  display:              none;
  position:             fixed;
  top:                  0;
  right:                0;
  bottom:               0;
  left:                 0;
  z-index:              3;
}

#loader-overlay.opened
{
  display:              block;
}


/******************************************************************************
                                  BOTTOM MENU
/*****************************************************************************/

div.bottom-menu
{
  position:             fixed;
  bottom:               0;
  left:                 0;
  display:              flex;
  width:                100%;
  border-top:           1px solid rgba(255,255,255,0.22);
  background:           #272727;
  height:               var(--menu-height);
  z-index:              3;
}

div.bottom-menu a
{
  flex-grow:            1;
  text-align:           center;
  position:             relative;
  border-right:         1px solid rgba(255,255,255,0.22);
  padding:              12px;
  width:                100px;
}

div.bottom-menu a:last-child
{
  border-right:         none;
}


div.bottom-menu a i.fa
{
  font-size:            18px;
  width:                100%;
  display:              inline-block;
  text-align:           center;
  padding-bottom:       7px;
}


/******************************************************************************
                             COMMON PAGE ELEMENTS
/*****************************************************************************/

div.section
{
  width:                calc(100% - 36px);
  margin-left:          18px;
  margin-right:         18px;
  margin-bottom:        24px;
}

div.section-title
{
  border-bottom:        1px solid rgba(255,255,255,0.22);
  font-variant:         all-petite-caps;
  font-size:            18px;
  margin-bottom:        8px;
}

div.form
{
  padding-left:         10px;
  padding-right:        10px;
}

div.form-entry
{
  margin-bottom:        8px;
}

div.form-entry label
{
  margin-right:         8px;
}

div.form-entry input
{
  height:               32px;
  line-height:          32px;
  padding-left:         7px;
  padding-right:        7px;
}

div.details
{
  padding-left:         10px;
  padding-right:        10px;
}

div.details-entry
{
  margin-bottom:        14px;
}

div.details-entry:first-child
{
  border-top:           1px solid var(--dark-border);
}

div.details-label
{
  display:              inline-block;
  width:                88px;
  text-transform:       lowercase;
  font-variant:         small-caps;
  color:                darkgray;
}

div.details-value
{
  display:              inline-block;
  width:                calc(100% - 90px);
  vertical-align:       top;
}

div.page-fixer
{
  height:               64px;
}

div.page-logo
{
  width:                192px;
  height:               47.33px;
  background:           url('data/ui/logo.png');
  background-size:      cover;
  margin:               auto;
  position:             relative;
  margin-top:           12px;
  margin-bottom:        36px;
}

div.page-msg
{
  position:             absolute;
  width:                100%;
  text-align:           center;
  bottom:               -18px;
  color:                darkgrey;
  font-variant:         small-caps;
  text-transform:       lowercase;
  font-size:            18px;
}

div.landing-logo
{
  width:                192px;
  height:               47.33px;
  background:           url('data/ui/logo.png');
  background-size:      cover;
  margin:               auto;
  transform:            translateY(calc(50vh - 50% - var(--menu-height) / 2));
  position:             relative;
}

div.landing-msg
{
  position:             absolute;
  width:                100%;
  text-align:           center;
  bottom:               -24px;
  color:                darkgrey;
  font-variant:         small-caps;
  text-transform:       lowercase;
  font-size:            18px;
  transition:           0.2s;
  transform:            scale(0, 0);
  opacity:              0;
}

.engaged div.landing-msg
{
  transform:            scale(1, 1);
  opacity:              1;
}

div.help
{
  color:                darkgrey;
}

div.button
{
  display:              inline-block;
  color:                #222222;
  padding:              8px;
  line-height:          14px;
  text-align:           center;
  font-variant:         small-caps;
  border:               1px solid  var(--dark-border);
  width:                100%;
  text-transform:       uppercase;
}

div.inline-button
{
  width:                40px;
  float:                right;
}

div.fade-button
{
  transition:           0.15s ease-in 0.05s;
  transform:            scale(0, 0);
  opacity:              0;
}

.engaged div.fade-button
{
  transform:            scale(1, 1);
  opacity:              1;
}

div.confirm-button { background: darkseagreen; }
div.remove-button  { background: indianred; }
div.seek-button { background: cadetblue; }

span.iva-disclaimer
{
  background:           #262626;
  color:                whitesmoke;
  font-size:            12px;
  padding:              2px 7px 2px 7px;
  margin-left:          7px;
  border-radius:        7PX;
  border:               1px solid rgba(255,255,255,0.25);
}


/******************************************************************************
                                  RESERVATION
/*****************************************************************************/

.reservation-form .form-entry
{
  position:             relative;
  padding-top:          16px;
}

.reservation-form label
{
  position:             absolute;
  margin-right:         8px;
  color:                darkgray;
  text-transform:       uppercase;
  font-size:            12px;
  top:                  0px;
}

.reservation-form label[for="start"] { left: 5px; }
.reservation-form label[for="end"]   { left: 136px; }

div.form-entry input[name="start"],
div.form-entry input[name="end"]
{
  width:                125px;
  margin-right:         3px;
}

div.available-container
{}

div.available-entry
{
  display:              flex;
  background:           #625f58;
  color:                whitesmoke;
  border:               1px solid rgba(255,255,255,0.11);
  box-shadow:           0 0 5px 1px rgba(255,255,255,0.11);
  margin-bottom:        10px;
  height:               42px;
  border-radius:        8px 32px 32px 8px;
  font-size:            12px;
  transform:            translateX(-100vw);
  transition:           0.0s;
}

.engaged div.available-entry
{
  transform:            translateX(0);
}

div.available-entry:nth-child(1) { transition: 0.25s ease-in 0.05s; }
div.available-entry:nth-child(2) { transition: 0.25s ease-in 0.10s; }
div.available-entry:nth-child(3) { transition: 0.25s ease-in 0.15s; }
div.available-entry:nth-child(4) { transition: 0.25s ease-in 0.20s; }
div.available-entry:nth-child(5) { transition: 0.25s ease-in 0.25s; }
div.available-entry:nth-child(6) { transition: 0.25s ease-in 0.30s; }
div.available-entry:nth-child(7) { transition: 0.25s ease-in 0.35s; }
div.available-entry:nth-child(8) { transition: 0.25s ease-in 0.40s; }
div.available-entry:nth-child(9) { transition: 0.25s ease-in 0.45s; }

div.available-element
{
  flex-grow:            1;
  flex-shrink:          1;
  overflow:             hidden;
  text-overflow:        ellipsis;
  white-space:          nowrap;
  padding:              0px 6px 0px 6px;
  line-height:          42px;
}


div.empty-available-entry
{
  text-align:           center;
  padding:              6px;
  font-size:            18px;
  text-transform:       lowercase;
  font-variant:         small-caps;
  color:                darkgray;
}

div.available-element:nth-child(1)
{
  text-align:           left;
  flex-grow:            5;
}

div.available-element:nth-child(2)
{
  text-align:           right;
  flex-grow:            1;
  background:           burlywood;
  border-radius:        0 32px 32px 0;
  color:                black;
  border-left:          1px solid var(--dark-border);
  margin:               -1px;
  padding-right:        18px;
  min-width:            95px;
  max-width:            95px;
  line-height:          42px;
}


/******************************************************************************
                                    PREVIEW
/*****************************************************************************/

div.micro-carousel
{
  width:                var(--mc-width);
  height:               var(--mc-height);
  position:             relative;
  margin:               auto;
  margin-top:           18px;
}

div.micro-carousel-entry
{
  position:             absolute;
  width:                calc(var(--mc-width) / 3);
  height:               calc(var(--mc-height) / 3);
  border:               4px solid var(--page-background);
  transition:           0.15s ease-in 0.05s;
  z-index:              1;

}

div.micro-carousel-entry:nth-child(1) { left: calc(var(--mc-width) / 3 * 0); top: calc(var(--mc-height) / 3 * 0); }
div.micro-carousel-entry:nth-child(2) { left: calc(var(--mc-width) / 3 * 1); top: calc(var(--mc-height) / 3 * 0); }
div.micro-carousel-entry:nth-child(3) { left: calc(var(--mc-width) / 3 * 2); top: calc(var(--mc-height) / 3 * 0); }
div.micro-carousel-entry:nth-child(4) { left: calc(var(--mc-width) / 3 * 0); top: calc(var(--mc-height) / 3 * 1); }
div.micro-carousel-entry:nth-child(5) { left: calc(var(--mc-width) / 3 * 1); top: calc(var(--mc-height) / 3 * 1); }
div.micro-carousel-entry:nth-child(6) { left: calc(var(--mc-width) / 3 * 2); top: calc(var(--mc-height) / 3 * 1); }
div.micro-carousel-entry:nth-child(7) { left: calc(var(--mc-width) / 3 * 0); top: calc(var(--mc-height) / 3 * 2); }
div.micro-carousel-entry:nth-child(8) { left: calc(var(--mc-width) / 3 * 1); top: calc(var(--mc-height) / 3 * 2); }
div.micro-carousel-entry:nth-child(9) { left: calc(var(--mc-width) / 3 * 2); top: calc(var(--mc-height) / 3 * 2); }

.selected-1 div.micro-carousel-entry:nth-child(1) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-2 div.micro-carousel-entry:nth-child(2) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-3 div.micro-carousel-entry:nth-child(3) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-4 div.micro-carousel-entry:nth-child(4) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-5 div.micro-carousel-entry:nth-child(5) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-6 div.micro-carousel-entry:nth-child(6) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-7 div.micro-carousel-entry:nth-child(7) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-8 div.micro-carousel-entry:nth-child(8) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }
.selected-9 div.micro-carousel-entry:nth-child(9) { left: 0; top: 0; width: var(--mc-width); height: var(--mc-height); }


/******************************************************************************
                                    FISCAL
/*****************************************************************************/

div.fiscal-form label,
div.contact-form label
{
  width:                83px;
  font-size:            13px;
  position:             absolute;
  z-index:              1;
  color:                black;
  line-height:          32px;
  padding-left:         5px;
  color:                #484747;
  pointer-events:       none;
}

div.fiscal-form input,
div.contact-form input
{
  width:                100%;
  padding-left:         83px;
}

div.stripe-card
{
  width:                100%;
  background:           white;
  height:               32px;
  padding-top:          8px;
  padding-left:         5px;
}


/******************************************************************************
                                    VKEY
/*****************************************************************************/

div.form-entry input[name="vkey-file"]
{
  display:              none;
}

div.form-entry input[name="vkey-code"]
{
  width:                calc(100% - 106px);
}

.install-form .help
{
  padding-left:         61px;
}

div.vkey-qr
{
  width:                186px;
  height:               186px;
  margin:               auto;
  margin-top:           18px;
}

div.canvas-container
{
  text-align: center;
  margin-top: 7px;
}

#video-canvas
{
  width: 300px;
  height: 300px;
  border: 1px dashed rgba(255,255,255,0.11);  
}

#vkey-install
{
  margin-top: 18px;
}


/******************************************************************************
                                 COMMANDS LIST
/*****************************************************************************/

div.commands-container
{
  padding-left:         5px;
  padding-right:        5px;
}

div.command-entry
{
  margin-bottom:        12px;
}

div.command-element:nth-child(1)
{
  display:              inline-block;
  font-size:            18px;
  background:           #12b583;
  width:                48px;
  height:               48px;
  line-height:          48px;
  text-align:           center;
  border-radius:        24px;
  border:               1px solid rgba(255,255,255,0.11);
  box-shadow:           1px 0px 2px 0px rgb(0 0 0 / 33%);
  z-index:              1;
  position:             relative;
  transform:            scale(0);
  padding-left:         1px;
}

div.command-element:nth-child(2)
{
  display:              inline-block;
  line-height:          48px;
  vertical-align:       top;
  width:                calc(100% - 27px);
  overflow:             hidden;
  text-overflow:        ellipsis;
  white-space:          nowrap;
  margin-left:          10px;
  background:           cadetblue;
  border-radius:        0px 4px 4px 0px;
  color:                #222222;
  font-variant:         small-caps;
  font-size:            13px;
  text-transform:       uppercase;
  margin-left:          -29px;
  height:               48px;
  width:                0;
}

.engaged div.command-element:nth-child(1)
{
  transform:            scale(1);
}

.engaged div.command-element:nth-child(2)
{
  width:                calc(100% - 27px);
  border:               1px solid rgba(255,255,255,0.11);
  box-shadow:           0 0 5px 1px rgb(255 255 255 / 11%);
  padding:              0 10px 0 32px;
}

div.command-entry:nth-child(1) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.05s; }
div.command-entry:nth-child(2) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.10s; }
div.command-entry:nth-child(3) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.15s; }
div.command-entry:nth-child(4) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.20s; }
div.command-entry:nth-child(5) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.25s; }
div.command-entry:nth-child(6) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.30s; }
div.command-entry:nth-child(7) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.35s; }
div.command-entry:nth-child(8) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.40s; }
div.command-entry:nth-child(9) div.command-element:nth-child(1) { transition: 0.15s ease-in 0.45s; }

div.command-entry:nth-child(1) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.20s; }
div.command-entry:nth-child(2) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.25s; }
div.command-entry:nth-child(3) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.30s; }
div.command-entry:nth-child(4) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.35s; }
div.command-entry:nth-child(5) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.40s; }
div.command-entry:nth-child(6) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.45s; }
div.command-entry:nth-child(7) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.50s; }
div.command-entry:nth-child(8) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.55s; }
div.command-entry:nth-child(9) div.command-element:nth-child(2) { transition: 0.15s ease-in 0.60s; }


/******************************************************************************
                                    EXECUTE
/*****************************************************************************/

div.execute-slider
{
  text-align:           center;
  position:             relative;
  padding-left:         10px;
  padding-right:        10px;
}

div.execute-slider-icon
{
  font-size:            40px;
  margin-top:           -100px;
  padding-bottom:       60px;
}

div.execute-slider-label
{
  font-size:            18px;
  margin-top:           18px;
  margin-bottom:        18px;
}

div.execute-slider round-slider
{
  max-width:            200px;
  --round-slider-path-width:   20;
  --round-slider-handle-color: rgba(0,0,0,0); /* hide the handler */
  --round-slider-path-color:   brown;
  --round-slider-bar-color:    darkseagreen;
}


/******************************************************************************
                                    VERIFY
/*****************************************************************************/

.verify-form .help
{
  padding-left:         61px;
}


/******************************************************************************
                                      PIN
/*****************************************************************************/

div.pad
{
  width:                310px;
  margin:               auto;
  text-align:           center;
}

div.pad-title
{
  font-size:            18px;
  margin-bottom:        18px;
}

div.pad-number
{
  display:              inline-block;
  width:                70px;
  text-align:           center;
  height:               65px;
  line-height:          65px;
  font-size:            32px;
  background:           darkgray;
  border:               1px solid var(--dark-border);
  margin:               5px 3px 5px 3px;
  border-radius:        4px;
  color:                #222222;
  cursor:               pointer;
}

div.pad div.help
{
  margin-top:           18px;
}

input[name='pin']
{
  background:           none;
  border:               none;
  text-align:           center;
  width:                100%;
  font-size:            64px;
  color:                cadetblue;
  text-shadow:          0 0 4px cadetblue;
  transform:            scale(1.0, 0.9);
}

div.pad-number.pressed
{
  animation:            pulse 3s 1;
}

@keyframes pulse
{
  0%   { box-shadow: 0 0 0 0px rgba(95, 158, 160, 0.8); }
  70%  { box-shadow: 0 0 0 9px rgba(95, 158, 160, 0.0); }
  100% { box-shadow: 0 0 0 0px rgba(95, 158, 160, 0.0); }
}


/******************************************************************************
                                     INFO
/*****************************************************************************/

div.info
{
  padding-left:         20px;
  padding-right:        20px;
  font-size:            13.37px;
  color:                #ebebeb;
  line-height:          1.2;
}

div.info li
{
  margin-bottom:        16px;
}

div.info a
{
  background:           #00bcd4;
  border-radius:        5px;
  display:              inline-block;
  padding:              6px 10px 5px 10px;
  margin-top:           5px;
  font-size:            12px;
  color:                black;
}