*:focus {
  outline: none;
}

/* FONTS */
.force-font {
    position: absolute;
    left: -1000px;
    visibility: hidden;
}

.roboto-500 {
    font-family: 'RobotoMedium', sans-serif;
}

.roboto-700 {
    font-family: 'RobotoBold', sans-serif;
}

@font-face {
  font-family: Metropolis;
  src: url("../../media/fonts/Metropolis-Bold.otf") format("opentype");
}

@font-face {
  font-family: SourceSansPro;
  src: url("../../media/fonts/SourceSansPro-Regular.ttf") format("truetype");
}

@font-face {
  font-family: OpenSans;
  src: url("../../media/fonts/OpenSans-Bold.ttf") format("truetype");
}

@font-face {
  font-family: OpenSansRegular;
  src: url("../../media/fonts/OpenSans-Regular.ttf") format("truetype");
}

@font-face {
  font-family: OpenSansSemiBold;
  src: url("../../media/fonts/OpenSans-Semibold.ttf") format("truetype");
}

@font-face {
  font-family: Futura;
  src: url("../../media/fonts/FuturaBold.ttf") format("truetype");
}

@font-face {
  font-family: RobotoRegular;
  src: url("../../media/fonts/Roboto-Regular.ttf") format("truetype");
}

@font-face {
    font-family: 'RobotoMedium';
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'RobotoBold';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
}

body {
  background: url("../../media/images/mobile-background.png") no-repeat center
    center fixed !important;
  -webkit-background-size: cover !important;
  -moz-background-size: cover !important;
  -o-background-size: cover !important;
  overflow: hidden;
  flex-direction: column;
}

#container-game {
  border: 7px solid rgb(128, 128, 128);
  border-radius: 25px;
  overflow: hidden;
  height: 100%;
  max-height: 600px;
  aspect-ratio: 1/1.7;
  position: relative;
}

#landscape-view {
  z-index: 100;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
  background: black url("../../media/images/Rotate_Screen.jpg") no-repeat center;
}

#message-view {
  background-image: none !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  z-index: 100 !important;
  height: 100vh !important;
  width: 100% !important;
  margin: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.8);
}

#message-view img {
  max-width: 95%;
  max-height: 309px;
  bottom: 12%;
  position: relative;
}

#loader-view {
  background-color: rgba(0, 0, 0, 0.5);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

#loader-view i {
  color: white !important;
  position: initial !important;
}

.backdropModal {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.55);
}

.view-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: 100;
}

.modal-container {
  position: absolute;
  display: flex;
  align-items: center;
  background: none;
  top: 0;
  height: 100%;
  justify-content: center;
}

.modal-container img {
  max-width: 90%;
  cursor: pointer;
}

#download-view {
  z-index: 60;
}

#download-view #download-buttons {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 57%;
  width: 100%;
}

#download-view #download-buttons #btnDownload {
  width: 35%;
}

#no-camera-view {
  z-index: 60;
}

#no-camera-view #no-camera-buttons {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 65%;
  width: 100%;
}
#no-camera-view #no-camera-buttons img {
  width: 22%;
  margin: 0 10%;
}

#filter-view {
  position: absolute;
  top: 61%;
  z-index: 70;
  height: 16.5%;
  width: 100%;
  display: flex;
  align-items: center;
  bottom: 19%;
  overflow-y: hidden;
  justify-content: flex-start;
  gap: 15px;
  padding: 10px 20px;
  overflow-x: auto;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

#filter-view::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

#filter-view.dragging {
  cursor: grabbing;
  user-select: none;
}

#filter-view img {
  height: 80%;
  border-radius: 50% !important;
  border: 2px solid #fff;
  background: #eee;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.2s ease, border 0.2s ease;
}

#filter-view img.selected {
  border: 2px solid #fa47c1 !important;
  z-index: 1;
}

#filter-hint {
  position: absolute;
  bottom: 20%;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  background-color: #45bbd7;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  z-index: 71;
  animation: fadeInOut 3s infinite;
  pointer-events: none;
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 1;
  }
}

#camera-option-view {
  position: absolute;
  bottom: 0;
  height: 20.5%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

#camera-option-view img {
  cursor: pointer;
  max-height: 70%;
  max-width: 20%;
}

#default-selfies-view {
  position: absolute;
  width: 100%;
  left: 0;
  height: 60%;
  bottom: 20%;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-content: center;
  justify-content: center;
  align-items: center;
  background: hsl(0, 0%, 0%);
}

#default-selfies-view #static-selfie-image {
  height: 100%;
}

#default-selfies-view .default-selfie-caption {
  position: absolute;
  width: 100%;
}

#lotto-spot-overlay {
  position: absolute;
  z-index: 70;
  height: 7%;
  display: flex;
  align-items: center;
  top: 24%;
  right: 7%;
  justify-content: center;
}

#lotto-spot-overlay img {
  height: 100%;
  margin: 0;
}

#caption-overlay-view {
  position: absolute;
  width: 100%;
  z-index: 70;
  display: flex;
  align-items: center;
  bottom: 22%;
  justify-content: center;
}

#caption-overlay-view p {
  margin: 0;
  font-family: Futura, sans-serif;
  font-weight: bold;
  font-size: 25px;
  color: white;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

#post-capture-view {
  position: absolute;
  padding: 0 10px 10px 10px;
  width: 100%;
  z-index: 60;
  max-width: 100%;
  bottom: 0;
  grid-template-columns: repeat(4, 25%);
  grid-template-rows: 100%;
  height: 20%;
  grid-column-gap: 0;
  grid-row-gap: 0;
  display: grid;
}

#post-capture-view #share-container {
  grid-area: 1 / 4 / 2 / 5;
  display: flex;
  align-items: self-end;
  justify-content: center;
}

#post-capture-view #share-container img {
  height: 30%;
  cursor: pointer;
}

#post-capture-view #post-caption-container {
  grid-area: 1 / 2 / 2 / 4;
}

#post-capture-view #post-caption-container span {
  display: block;
  font-size: 10px;
  color: hsl(0, 0%, 100%);
  margin-top: 2%;
}

#select-caption-options-container {
  width: 100%;
  height: 100%;
}

#select-caption-options-container #select-caption-options {
  font-size: 10px;
  color: #666;
  text-align: left;
  font-family: sans-serif;
  cursor: pointer;
  border-radius: 5px;
  padding: 3px 6px;
  border: 1px solid hsl(0, 0%, 100%);
  -webkit-user-select: none; /* Safari */
  -moz-user-select: none; /* Firefox */
  -ms-user-select: none; /* IE/Edge */
  user-select: none; /* Standard */
  background: url(../../media/images/chevron.png) white no-repeat right 5px
    center;
  background-size: 7px;
}

#select-caption-options-container #select-caption-options.selected {
  background: url(../../media/images/chevron-up.png) white no-repeat right 5px
    center;
  background-size: 7px;
}

#select-caption-options-container #caption-options {
  font-size: 10px;
  color: #333333;
  overflow-y: auto;
  background: white;
  border: 1px solid #ccc;
  border-radius: 0 0 5px 5px;
  list-style: none;
  scrollbar-width: thin;
  padding: 5px;
  max-height: 55%;
}

#select-caption-options-container #caption-options li {
  cursor: pointer;
  margin-top: 3px;
}

#select-caption-options-container #caption-options li:hover {
  background-color: #eee;
}

#post-capture-view #snapshot-container {
  grid-area: 1 / 1 / 2 / 2;
  display: flex;
  align-items: self-end;
  justify-content: center;
}

#post-capture-view #snapshot-container img {
  height: 30%;
  cursor: pointer;
}

#selfie-view {
  position: absolute;
  width: 100%;
  left: 0;
  height: 60%;
  bottom: 20%;
  z-index: 40;
  opacity: 0;
  display: flex;
  align-content: center;
  justify-content: center;
  overflow: hidden;
  background: hsl(0, 0%, 0%);
}

#snapshot-view {
  position: absolute;
  width: 100%;
  left: 0;
  height: 60%;
  bottom: 20%;
  z-index: 60;
  overflow: hidden;
  display: flex;
  align-content: center;
  justify-content: center;
  background: hsl(0, 0%, 0%);
}

.selected {
  border-radius: 5px 5px 0 0 !important;
  border: 1px solid #ccc !important;
}

.selected::after {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.dragging {
  cursor: grabbing;
  user-select: none;
}

/* LOADER ANIMATION */
@-webkit-keyframes rotating /* Safari and Chrome */ {
  from {
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes rotating {
  from {
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  to {
    -ms-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -webkit-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

#phaser-game {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
}

#phaser-game canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 600px) {
  #container-game {
    max-width: 100% !important;
    max-height: 100% !important;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    border-radius: 0;
    aspect-ratio: auto;
  }
}
