body {
  margin: 0;
  padding: 0;
  overflow: hidden;
}


.fade{
  opacity:0.0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  -moz-transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  -webkit-transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}
.show{
  opacity:1.0;
  visibility: visible;
}
.fade:not(.show) .fade.show{
  opacity:0.0;
  visibility: hidden;
}

#output-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

#canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}



.ui {
  position: absolute;
  width: 90%;
  height: 90%;
  left: 0;
  top: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;

  a {
    margin-bottom: 8vh;
    pointer-events: all;
  }
}

.row {
display: flex;
flex-direction: row;
align-content: center;
justify-content: center;
align-items: center;
}


.rotation-warning {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: white;
display: none; 
flex-direction: column;
justify-content: center;
align-items: center;
z-index: 10000;
color: white;
font-family: Arial, sans-serif;
font-size: 18px;
text-align: center;
padding: 20px;
box-sizing: border-box;

img {
  width: 12em;
}
}

.rotation-warning p {
margin: 0;
padding: 0;
}

#snapAttribution {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 12px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 5px;
  border-radius: 3px;
  background-image: url(assets/Powered_bysnap.png);
  background-size: contain;
  width:160px;
  height:27px;
  z-index: 9;
}

@media screen and (orientation: landscape) {
  .rotation-warning {
    display: flex;
  }
}

@media screen and (orientation: portrait) {
  .rotation-warning {
    display: none;
  }
}