
/* SELFHOSTING MATERIAL ICONS 
  https://developers.google.com/fonts/docs/material_icons
*/ 
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: normal;
  src:
    local('Material Icons'), /* Check if font is already installed locally on the client */
    local('MaterialIcons-Regular'),
    url(../fonts/Material_Icons/MaterialIcons-Regular.woff2) format('woff2'),
    url(../fonts/Material_Icons/MaterialIcons-Regular.woff) format('woff'),
    url(../fonts/Material_Icons/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';
}

@font-face {
  font-family: NanumBold;
  src:
    local('NanumGothic-Bold'),
    url(../fonts/Nanum/NanumGothic-Bold.woff2) format('woff2'),
    url(../fonts/Nanum/NanumGothic-Bold.woff) format('woff'),
    url(../fonts/Nanum/NanumGothic-Bold.ttf) format('truetype');
}

@font-face {
  font-family: NanumRegular;
  src:
    local('NanumGothic-Regular'),
    url(../fonts/Nanum/NanumGothic-Regular.woff2) format('woff2'),
    url(../fonts/Nanum/NanumGothic-Regular.woff) format('woff'),
    url(../fonts/Nanum/NanumGothic-Regular.ttf) format('truetype');
}

@font-face {
  font-family: NanumExtraBold;
  src:
    local('NanumGothic-ExtraBold'),
    url(../fonts/Nanum/NanumGothic-ExtraBold.woff2) format('woff2'),
    url(../fonts/Nanum/NanumGothic-ExtraBold.woff) format('woff'),
    url(../fonts/Nanum/NanumGothic-ExtraBold.ttf) format('truetype');
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  [class*="col-"] {
    width: 100%;
  }

  .topnav a {
    float: none;
    width: 100%;
    padding: 5px 10px !important;
  }

  .side-element {
    padding: 0 !important;
  }

  .login-container {
    width: 70% !important;
  }

  .bottom-modal {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 10rem) !important;
    top: 10rem !important;
    /*padding: 0 10px;*/
  }

  .hide-on-small {
    display: none;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
  .col-s-1 {width: 8.33%;}
  .col-s-2 {width: 16.66%;}
  .col-s-3 {width: 25%;}
  .col-s-4 {width: 33.33%;}
  .col-s-5 {width: 41.66%;}
  .col-s-6 {width: 50%;}
  .col-s-7 {width: 58.33%;}
  .col-s-8 {width: 66.66%;}
  .col-s-9 {width: 75%;}
  .col-s-10 {width: 83.33%;}
  .col-s-11 {width: 91.66%;}
  .col-s-12 {width: 100%;}

  .login-container {
    width: 78% !important;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}

  .login-container {
    width: 55% !important;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {

}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 1199px) {
  .hide-on-medium-and-down {
    display: none;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .col-l-1 {width: 8.33%;}
  .col-l-2 {width: 16.66%;}
  .col-l-3 {width: 25%;}
  .col-l-4 {width: 33.33%;}
  .col-l-5 {width: 41.66%;}
  .col-l-6 {width: 50%;}
  .col-l-7 {width: 58.33%;}
  .col-l-8 {width: 66.66%;}
  .col-l-9 {width: 75%;}
  .col-l-10 {width: 83.33%;}
  .col-l-11 {width: 91.66%;}
  .col-l-12 {width: 100%;}
}

.z-depth-0 {
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
}

/* 2dp elevation modified*/
.z-depth-1 {
  -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
          box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}

/* 6dp elevation modified*/
.z-depth-2 {
  -webkit-box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
          box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

/* 12dp elevation modified*/
.z-depth-3 {
  -webkit-box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
          box-shadow: 0 8px 17px 2px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2);
}

/* 16dp elevation */
.z-depth-4 {
  -webkit-box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);
          box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -7px rgba(0, 0, 0, 0.2);
}

/* 24dp elevation */
.z-depth-5, .bottom-modal, .camera-surface.detail {
  -webkit-box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
          box-shadow: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.2);
}

:root {
  --primary-color: 255,1,0;           /* RED */
  --secondary-color: 235,235,235;     /* GREY */
  --accent-color: 255,255,255;        /* WHITE */
  --primary-font-color: 0,0,0;        /* BLACK */
  --primary-3sit-color: 0,82,129;     /* BLUE */
  --positive-font-color: 76, 175, 80; /* GREEN */
  --webcam-container-height: 0px;
}

/*
  When input is filled with text, a blueish background color is applied.
  Prevent this with this hack
  https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied
*/
input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition: background-color 600000s 0s, color 600000s 0s;
}

* {
  box-sizing: border-box;
}
/* Column container */
.row {  
  display: flex;
  flex-wrap: wrap;
}

html {
  height: 100%;
}
header {
}
body {
  font-family: NanumRegular;
  color: rgb(var(--primary-font-color));
}
footer {
  position: fixed;
  display: flex;
  bottom: 0;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
}
.btn,
.link-container,
.bottom-modal-close,
a {
  color: rgba(var(--primary-font-color), 0.5);
  text-decoration: none;
}
.btn:hover,
.link-container:hover,
.bottom-modal-close:hover,
a:hover {
  color: rgba(var(--primary-font-color), 1.0);
  cursor: pointer;
}

.link-container {
  transition: 0.3s;
}

.link-container.active {
  font-family: NanumBold;
  color: rgba(var(--primary-font-color), 1.0);
}

.header-ci-parent {
  display: flex;
  flex-direction: row;
}

.section-1 {
  flex-grow: 50;
  background-color: rgba(var(--accent-color), 1.0);
  height: 3rem;
}

.section-2 {
  flex-grow: 0;
  background-color: rgba(var(--accent-color), 1.0);
  text-align: right;
  height: 3rem;
}

.section-3 {
  flex-grow: 1;
  background-color: rgba(var(--accent-color), 1.0);
  height: 3rem;
}

.section-4 {
  flex-grow: 4;
  background-color: rgba(var(--accent-color), 1.0);
  height: 3rem;
  text-align: right;
}

.side-element {
  margin-top: 1.2rem;
  padding: 0 1.2rem 0 0;
  font-size: 0.9rem;
}

.side-element.top {
  font-family: "NanumBold";
}

.center-element {
  margin-top: 1.2rem;
}

.error-paragraph {
  color: rgba(var(--primary-color), 1.0);
  font-size: 0.9rem;
  font-family: NanumExtraBold;
  text-align: center;
}

.center-in-screen {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.horizontal-align {
  display: flex;
  align-items: center;
}

.singleline-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-touch {
  pointer-events: none;
}

.hide {
  display: none;
}

.out-faded {
  opacity: 0;
}

.positive-green {
  color: rgb(var(--positive-font-color));
}

.highlight-red {
  color: rgb(var(--primary-color));
}

.btn {
  padding: 5px 10px;
  display: flex;
  align-items: center;
  transition: 0.3s;
  /*outline: 1px solid rgba(var(--primary-font-color), 1.0);*/
}

.btn.active {
  z-index: 1101;
}

/* The navbar container */
.topnav {
  margin-top: 8px;
  overflow: hidden;
  transition: 0.3s;
}

.topnav:hover {
  background-color: rgba(var(--secondary-color), 0.7);
}

/* Navbar links */
.topnav a {
  float: left;
  display: block;
  color: rgba(var(--primary-font-color), 0.8);
  text-align: center;
  padding: 10px 15px;
  text-decoration: none;
}

.topnav a:hover {
  color: rgba(var(--primary-font-color), 1.0);
  font-family: "NanumBold";
}

.topnav a.active:not(:hover) {
  color: rgba(var(--primary-font-color), 1.0);
  font-family: "NanumExtraBold";
}

.bottom-modal {
  width: calc(100vw - 16px);
  height: calc(100vh - 7rem);
  top: 7rem;
  position: absolute;
  padding: 0 10px;
  background-color: rgba(var(--accent-color), 1.0);
  border-radius: 15px 15px 0 0;
  transition: transform 0.5s ease-out;
  transform: translateY(100%);
}

.offscreen-below {
  height: 0 !important;
  overflow: hidden;
}

.onscreen-from-below {
  height: calc(100vh - 7rem);
  transform: translateY(0);
}

.bottom-modal-close {
  text-align: center;
  justify-content: center;
  padding: 3px 0;
}

.modal-title {
  margin: 0 1rem;
  font-family: NanumExtraBold;
  text-align: left;
  transform: translateY(-1rem);
  pointer-events: none;
}

.modal-intro-desc {
  margin: -25px 2rem 0 2rem;
  text-align: center;
  font-size: 0.8rem;
  font-style: italic;
}

.progress-dialog {
  opacity: 0;
  min-width: 25rem;
  max-width: 70%;
  padding: 15px 20px 20px 20px;
  z-index: -1;
  background-color: rgba(var(--accent-color), 1.0);
  border-radius: 15px;
  transition: opacity 0.5s;
}

.progress-dialog.active {
  opacity: 1;
  z-index: 1101;
}

.progress-dialog.active .spinner {
  animation: spin 1s infinite linear;
}

.camera-container {
  margin: 0px auto;
  transition: 0.7s 0.5s;
}

.camera-surface {
  transition: 0.5s 0.5s;
}

.camera-surface.capture {
  background-color: rgba(var(--secondary-color), 1.0);
}

.camera-surface.detail {
  background-color: rgba(var(--secondary-color), 0.3);
  border-radius: 15px;
}

.camera-scanner {
  position: absolute;
  margin-right: 1rem;
  height: 2px;
  opacity: 0;
  background-color: rgba(var(--primary-color), 0.6);
}

.camera-scanner.active {
  opacity: 1;
  animation: scan 2s infinite linear;
}

.no-view-on-detail {
  transition: 0.5s;
}

.modal-result-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-top: 1rem;
}

i.warning::after {
  content: 'warning';
}

i.loading::after {
  content: 'sync';
}

.loading {
  animation: spin 1s infinite linear;
}

i.done::after {
  content: 'done';
}

i.verified::after {
  content: 'verified';
}

i.invalid::after {
  content:  'content_paste_off';
}

i.thirdparty::after {
  content: 'auto_graph';
}

i.empty::after {
  content: 'check_box_outline_blank';
}

.result-item i,
.result-item .result-item-text {
  margin-left: 7px;
}

.polls-container {
  font-family: NanumRegular;
  margin-top: 1rem;
}

#chartRefreshBtn {
  justify-content: end;
  margin-right: 1rem;
  transition: 1s;
}

#chartRefreshBtn:hover {
  cursor: pointer;
  font-family: NanumBold;
}

.background-blend-bg-initial {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: #000;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 1s;
}

.background-blend-bg-active {
  pointer-events: visible;
  z-index: 1100;
  opacity: 0.6;
  cursor: pointer;
}

@keyframes scan {
  from {
    transform: translateY(var(--webcam-container-height));
  }
  to {
    transform: translateY(0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}