html {
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
html, body {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}
canvas {
    display: block;
}
body {
    margin: 0;
}
#unity-container {
    width: 100%;
    height: 100%;
}
#unity-canvas {
    width: 100%;
    height: 100%;
}
#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
#unity-logo {
    text-align: center;
}
#unity-logo img {
    max-width: 60%;
}

#unity-progress-bar-empty {
    position:fixed;
    width: 100%;
    bottom: 0%;
    height: 5px;
    text-align: left;
}
#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}
.light #unity-progress-bar-empty {
    border-color: #3E3C39;
}
.light #unity-progress-bar-full {
    background: black;
}

#unity-warning { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    z-index: 99;
    background: rgba(29, 28, 27, 0.94); 
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 10px; 
    display: none;
    vertical-align: middle;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;    
    -webkit-box-pack: center;
    -webkit-box-align: center;
}

.warning-text{
    top:50%;
    max-height: 300em;
    max-width: 25em;
    margin-top: 0px;
    margin-right: auto;
    margin-left: auto;
    font-family: Nittigrotesk, sans-serif;
    color: #fff;
    font-size: 18px;
    line-height: 22px;
    font-weight: 300;
    text-align: center;
    box-sizing: border-box;
    padding: 20px;
}

.warning-button{
    margin: 0 auto;
    display: block;
    padding: 9px 15px;
    background-color: #CC2126;
    color: white;
    border: 0;
    line-height: inherit;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0;
}

#unity-fullscreen-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center;
    background-size: contain;
}

.spinner,
.spinner:after {
  border-radius: 50%;
  width: 5em;
  height: 5em;
}
.spinner {
  margin: 10px;
  font-size: 10px;
  position: relative;
  text-indent: -9999em;
  border-top: 1.1em solid rgba(255, 255, 255, 0.2);
  border-right: 1.1em solid rgba(255, 255, 255, 0.2);
  border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
  border-left: 1.1em solid #ffffff;
  transform: translateZ(0);
  animation: spinner-spin 1.1s infinite linear;
}

#progress-text{
    top: 130%;
    left: 50%;
    width: 500px;
    text-align: center;
    position:fixed;
    z-index:50;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    display:none;
}

.reference-loader {
    left: 50%;
    position: fixed;
    z-index: 50;
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

@keyframes flickerAnimation {
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-o-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-moz-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }
  @-webkit-keyframes flickerAnimation{
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
  }

  .animate-flicker {
    -webkit-animation: flickerAnimation 3s infinite;
    -moz-animation: flickerAnimation 3s infinite;
    -o-animation: flickerAnimation 3s infinite;
     animation: flickerAnimation 3s infinite;
 }

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}
  
@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
                transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
                transform: rotate(360deg);
    }
}
  
.reference-loader__circle {
    box-sizing: border-box;
    width: 85px;
    height: 85px;
    border-radius: 100%;
    border: 10px solid rgba(0, 105, 180, 0.2);
        border-top-color: rgba(0, 105, 180, 0.2);
    border-top-color: #CC2126;
    -webkit-animation: spin 1s infinite linear;
    animation: spin 1s infinite linear;
    display: none;
}

@keyframes spinner-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.mobileHint{
    width: 64px;
    height: 56px;
    align-self: center;
    margin: 16px;
}

#ar-button{
    width:54px;
    height:54px;
    background-image: url("ArButton.png");
    position:fixed;
    top: 32px;
    right: 32px;
    background-size: cover;
}

#ar-button:hover{
    transform: scale(1.1, 1.1);
}

