@font-face {
  font-family: 'Endzone';
  src: url('fonts/Endzone-Sans-Bold.woff') format('woff'), /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ url('fonts/Endzone-Sans-Bold.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}

:root {
  --video-height: 70%;
  --video-min-height: 540px;
}

canvas.deepar {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0px none;
  background-color: black;
}

body {
  margin: 0px;
  padding: 0px;
}

h1 {
  font-family: 'Endzone', sans-serif;
  font-size: 4rem;
  text-transform: uppercase;
}

h2 {
  font-family: 'Endzone', sans-serif;
  font-size: 3rem;
  margin-bottom: 0;
  margin-top: 1rem;
}

h3 {
  font-family: 'Endzone', sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0;
  margin-top: 0rem;
}

p {
  font-family: 'Endzone', sans-serif;
  margin-bottom: 0;
  margin-top: 0rem;
  color: #013369;
}

button,
.button {
  font-family: 'Endzone', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0;
  margin-top: 0rem;
  background-color: #013369;
  color: white;
  padding: 0.2rem 1rem;
  min-height: 48px;
  border-radius: 12px;
  border: none;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.full {
  width: 100%;
}

.inverted {
  background-color: white;
  color: #013369;
}

.large {
  font-size: 1.8rem;
  padding: 0.4rem 2rem;
  min-height: 62px;
}

#overlay {
  position: fixed;
  z-index: 0;
  opacity: 0.5;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  color: white;
}

.full-screen {
  position: fixed;
  z-index: 0;
  top: 0;
  left: 0;
  bottom: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: black;
}

#deepar-canvas {
  height: var(--video-height);
  min-height: var(--video-min-height);
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
}

#player-wrapper {
  height: 100%;
}

#player {
  height: var(--video-height);
  min-height: var(--video-min-height);
  width: 100%;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

#loading-wrapper {
  position: fixed;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
}

.loading-logo {
  width: 60%;
  left: 50%;
  transform: translateX(-50%);
  position: absolute;
  top: -12vw;
}

#player-image-loading {
  position: absolute;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
}

.loading-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: fit-content;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px;
  padding: 1rem;
  padding-top: 28vw;
}

#loading-progress {
  width: 100%;
  border-radius: 200px;
  overflow: hidden;
  border: 2px solid white;
  margin-top: 0.8rem;
}

#loading-progress-bar {
  width: 1%;
  height: 24px;
  background-color: #ff4b00;
}

#recording-status {
  position: absolute;
  background-color: rgba(0, 0, 0, 1);
  padding: 10px;
  width: 60px;
  height: 60px;
  border-radius: 100%;
  color: white;
  top: 16px;
  left: 50%;
  font-family: 'Endzone', sans-serif;
  font-size: 2rem;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  display: none;
}

#recording-status-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#deepar-canvas-wrapper {
  background-color: black;
}

#recording-button {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 76px;
  width: 76px;
  border-radius: 100%;
  background-color: none;
  border: 4px solid white;
}

.controls-footer {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: stretch;
  bottom: 0;
  left: 0;
  right: 0;
  height: fit-content;
  padding: 2rem 1rem;
  gap: 1rem;
}

#recording-button-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background-color: #fe3d2f;
  width: 68px;
  height: 68px;
  border-radius: 100%;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

#recording-button-inner.recording {
  width: 48px;
  height: 48px;
  border-radius: 20%;
}

#dismiss-video-button {
  position: absolute;
  height: 50px;
  width: 50px;
  top: 25px;
  right: 25px;
  border-radius: 50%;
  color: white;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-family: Helvetica, Arial, sans-serif;
  color: white;
}

#desktop-screen {
  display: none;
  background-color: #013369;
  background-image: url('./images/football-stadium-bg.jpg');
  background-blend-mode: overlay;
  background-size: cover;
  background-position: center;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.info-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: none;
  justify-content: center;
  align-items: center;
  background-color: rgba(1, 51, 105, 0.6);
  padding: 1rem;
}

.info-popup-inner {
  background-color: white;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 0px 20px;
  max-width: 500px;
  width: 100%;
}

.loading-ring {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
}
.loading-ring div {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 32px;
  height: 32px;
  margin: 4px;
  border: 4px solid #013369;
  border-radius: 50%;
  animation: loading-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: #013369 transparent transparent transparent;
}
.loading-ring div:nth-child(1) {
  animation-delay: -0.45s;
}
.loading-ring div:nth-child(2) {
  animation-delay: -0.3s;
}
.loading-ring div:nth-child(3) {
  animation-delay: -0.15s;
}
@keyframes loading-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
