video {
  border-radius: 12px;
  object-fit: cover;
	width: 25vh;
	height: 25vh;
	border-radius: 4x;
	margin-right: 4px;
}
video.active {
    box-shadow: 0 0 0 4pt orange;
}

#videos {
	pointer-events: none;
	position: absolute;
	width: 100%;
	height: 25vh;
	padding: 8px;
	z-index: 1;

	display: flex;
	flex-direction: row;
}

#av-settings {
  padding-bottom: 8px;
  z-index: -1;
}

#av-settings.disabled {
	opacity: 0.5;
}
#spud-outer-container {
  height: 72vw;
  max-height: 40vh;
  margin-top: 4vh;
  margin-bottom: 5vh;
  z-index: 100;
}

#spud-container, #spud-inner-container {
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

#spud {
  height: 100%;
  position: absolute;
  font-size: 44%;
  margin-bottom: 1.5em;
  align-items: center;
  justify-content: center;
  display: flex;
}

#spud img {
  pointer-events: none;
}

#spud-hand {
  position: absolute;
  z-index: 100;
  font-size: 12em;
  top: 60%;
  left: 60%;
}

#spud-base {
  height: 100%;
}

#spud-overlay {
  z-index: 1;
  position: absolute;
  height: 100%;
  opacity: 0.001;
  visibility: visible;
  transition: 0.5s opacity;
}

#spud-arms-legs,
#spud-face {
  z-index: 2;
  position: absolute;
  height: 100%;
  width: 100%;
}

.tot #spud-arms-legs,
.tot #spud-face {
  height: 80%;
}

#spud-leg-left,
#spud-leg-right {
  position: absolute;
  height: 15%;
}

#spud-leg-left {
  left: 28%;
  bottom: -2%;
  rotate: -20deg;
}

.tot #spud-leg-left {
  left: 31%;
  bottom: 9%;
  rotate: -15deg;
}

#spud-leg-right {
  right: 22%;
  bottom: 2%;
  rotate: -30deg;
}

.tot #spud-leg-right {
  right: 25%;
  bottom: 9%;
  rotate: -32deg;
}

#spud-arm-left,
#spud-arm-right {
  position: absolute;
  top: 47%;
  height: 15%;
}

.tot #spud-arm-left,
.tot #spud-arm-right {
  top: 40%;
}

#spud-arm-left {
  left: 7%;
}

.tot #spud-arm-left {
  left: 13%;
}

#spud-arm-right {
  right: 6%;
  transform: scaleX(-1);
  rotate: 20deg;
}

.tot #spud-arm-right {
  right: 13%;
  rotate: 0deg;
}

#spud-eye-left,
#spud-eye-right {
  position: absolute;
  top: 37.5%;
  height: 15%;
}

.tot #spud-eye-left,
.tot #spud-eye-right {
  top: 31%;
}

#spud-eye-left {
  position: absolute;
  left: 28%;
}

.tot #spud-eye-left {
  left: 30%;
}

#spud-eye-right {
  right: 22%;
  transform: scaleX(-1);
}

.tot #spud-eye-right {
  right: 29%;
}

#spud-pupil-left,
#spud-pupil-right {
  position: absolute;
  top: 37.5%;
  height: 15%;
}

.tot #spud-pupil-left,
.tot #spud-pupil-right {
  top: 29.4%;
}

#spud-pupil-left {
  left: 29%;
}

.tot #spud-pupil-left {
  left: 32%;
}

#spud-pupil-right {
  right: 20.2%;
}

.tot #spud-pupil-right {
  right: 27%;
}

#spud-mouth {
  position: absolute;
  right: 38%;
  top: 46%;
  height: 15%;
}

.tot #spud-mouth {
  right: 42%;
  top: 37%;
}

#spud-inner-container {

}
/* @import url(https://fonts.googleapis.com/css?family=Montserrat:700,400); */

body {
  font-family: Nunito, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  touch-action: manipulation;
  position: fixed;
  overflow: hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: none;
  -webkit-overflow-scrolling: touch;
  touch-action: none;
  /* transition: 0.33s all; */

  animation: fadeInAnimation ease 0.4s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/* End Fade In */

* {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Disallow Tapping/Selecting */

::-moz-selection {
  background-color: transparent;
}

::selection {
  background-color: transparent;
}

/* Disallow Hover on Mobile */

@media (hover: none) {
  *:hover {
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

.fullscreen {
  background-color: rgba(250, 240, 224);
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 0;
  margin: 0;
  padding: 0;
}

.fullscreen-overlay {
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 200;
  pointer-events: none;
  margin: 0;
  padding: 0; 
  display: none;
}

.fullscreen-overlay.freeze {
  display: block;
  background-color: rgba(136, 220, 235, 0.479);
}

#content {
  width: 90%;
  height: 100%;
  padding: 4% 0;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.row.scrollable {
  overflow-y: visible;
  overflow-x: scroll;
  -ms-overflow-style: none; /* Internet Explorer 10+ */
  scrollbar-width: none; /* Firefox */
}

.row.scrollable::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}

.fullwidth {
  justify-content: center;
  width: 100%;
  position: relative;
}

#overlay {
  z-index: 100;
  position: absolute;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

#overlay-backing {
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(50, 50, 50, 0.5);
  z-index: -1;
}

.score-container {
  opacity: 0.5;
  text-align: center;
}

.score {
  text-align: center;
  font-size: 1.5em;
  opacity: 0.5;
}

.score-container:first-child {
  left: 0;
}

.score-container:nth-child(2) {
  right: 0;
}

#header-container {
  display: flex;
  /* align-items: center; */
  justify-content: space-around;
  align-self: center;
  margin: 0 auto;
  height: 20%;
  width: 100%;
}

#left {
  height: 20%;
  flex: 0 0 20%;
}

#logo {
  height: 100%;
  background-image: url("../img/logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 50%;
  text-align: center;
}

#right {
  flex: 0 0 20%;
  text-align: center;
}

#hands {
  z-index: -1;
  height: 100%;
  position: absolute;
}

#splosion {
  pointer-events: none;
  height: 100%;
  position: absolute;
  animation: bigshake 0.05s;
  animation-iteration-count: 5;
}

.shake {
  animation: bigshake 0.05s;
  animation-iteration-count: infinite;
}

.msg {
  bottom: 0.5vh;
  position: absolute;
  z-index: 200;
  font-size: 2em;
}

#winner {
  color: green;
}

#loser {
  color: red;
}

#status.open {
  color: green;
}

.clickable {
  cursor: pointer;
}

.btn {
  background-color: rgba(165, 165, 180, 0.3);
  border: 4px solid rgb(86, 86, 231);
  color: rgb(86, 86, 231);
  cursor: pointer;
  text-align: center;
  border-radius: 0.5em;
  display: flex;
  padding: 0.4em 0.8em;
  margin-bottom: 0.25em;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  opacity: 0.8;
}

.btn.primary {
  background-color: rgb(86, 86, 231);
  color: whitesmoke;
}

.btn:not(.disabled):hover {
  opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.2) 4px 4px 12px;
}

.btn.disabled {
  cursor: default;
  border-color: rgb(130, 130, 130);
  background-color: rgb(130, 130, 130);
  opacity: 0.5;
}

.hidden {
  display: none !important;
}

#status {
  font-size: x-small;
  opacity: 0.33;
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  /* left: -100; */
}

#match-container {
  height: 24%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes bigshake {
  0% {
    transform: translate(3px, 9px) rotate(0deg);
  }
  10% {
    transform: translate(-3px, -6px) rotate(-3deg);
  }
  20% {
    transform: translate(-9px, 0px) rotate(3deg);
  }
  30% {
    transform: translate(9px, 6px) rotate(0deg);
  }
  40% {
    transform: translate(3px, -3px) rotate(3deg);
  }
  50% {
    transform: translate(-3px, 6px) rotate(-3deg);
  }
  60% {
    transform: translate(-9px, 3px) rotate(0deg);
  }
  70% {
    transform: translate(9px, 3px) rotate(-3deg);
  }
  80% {
    transform: translate(-3px, -3px) rotate(3deg);
  }
  90% {
    transform: translate(3px, 6px) rotate(0deg);
  }
  100% {
    transform: translate(3px, -6px) rotate(-3deg);
  }
}

.store-nav {
  font-size: 2em;
  cursor: pointer;
  flex: 0 0 6%;
}

#store-item {
  flex: 0 0 88%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#store-item-title {
  font-size: 2em;
}

#store-item-description {
  margin-bottom: 0.4em;
}

#store-item-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  width: 90%;
}

#store-item-info div {
  flex: 1 0 40%;
}

#store-item-cost {
  font-size: 1.2em;
  color: #666;
  align-self: center;
}

#store-item-action {
  cursor: pointer;
  border-radius: 8px;
  background-color: rgb(52, 111, 206);
  color: #fff;
  padding: 8px 16px;
  font-size: 1.6em;
}

#store-item-action.owned {
  background-color: rgb(46, 194, 83);
}

#store-item-action.unavailable {
  background-color: rgb(120, 120, 120);
  cursor: default;
}

#store-item-action:hover {
  background-color: rgb(83, 130, 206);
}

#store-item-action.owned:hover {
  background-color: rgb(78, 200, 108);
}

#store-item-action.unavailable:hover {
  background-color: rgb(120, 120, 120);
}

#overlay-content {
  overflow-y: scroll;
  border-radius: 16px;
  padding: 16px 16px 2em 16px;
  width: 80%;
  max-width: 720px;
  background-color: rgb(228, 228, 228);
}

#store-item-image {
  height: 30%;
  font-size: 4em;
  margin: 0 auto;
}

#store-nav-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#store-nav-header div {
  padding: 0 8px;
  margin: 0 24px;
  border-radius: 8px;
  background-color: rgb(93, 171, 223);
  text-align: center;
}

.character {
}

.character .preview {
  background-color: rgba(241, 208, 189, 0.3);
  width: 5em;
  height: 5em;
  border-radius: 1em;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  opacity: 0.5;
  border: transparent solid 4px;
  margin-right: 0.5em;
}

.character .name {
  text-align: center;
  margin-top: 0.5em;
}

.character .preview:hover {
  opacity: 1;
  box-shadow: rgba(0, 0, 0, 0.2) 4px 4px 12px;
}

.character .preview.spud {
  background-image: url("../img/spud-icon.png");
}

.character .preview.tot {
  background-image: url("../img/tot-icon.png");
}

.character .preview.active {
  opacity: 1;
  border: rgb(52, 111, 206) solid 4px;
}

#scoreboard-container {
  z-index: 101;
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ccc;
  background-color: rgba(0, 0, 0, 1);
  border-radius: 1em;
  align-self: center;
  top: 25%;
}

#scoreboard-container h3 {
  color: rgba(235, 170, 136, 0.67);
  margin: 0;
  padding: 0.4em 0;
}

table.scoreboard {
  background-color: rgb(118, 85, 68);
  /* border: 4px solid #fff; */
  border-radius: 1em;
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  padding: 1em 1em;
}

table.scoreboard tr {
  display: flex;
  width: 100%;
}

table.scoreboard thead {
  display: block;
  padding: 0.25em 0;
}

table.scoreboard tbody {
  color: #fff;
  display: block;
  background-color: rgb(235, 170, 136);
  border-radius: 1em;
}

table.scoreboard th {
  display: flex;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px 1em;
  font-size: 1.2em;
  text-align: center;
  align-items: center;
  flex-basis: 50%;
  justify-content: center;
}

table.scoreboard td {
  /* opacity: 0.8; */
  display: flex;
  font-size: 1.2em;
  padding: 4px 2em;
  text-align: center;
  align-items: center;
  flex-basis: 50%;
  justify-content: center;
}

table.scoreboard tr.self {
  background-color: rgb(118, 85, 68, 0.25);
  border-left-width: 0;
  border-right-width: 0;
}

table.scoreboard .you td {
  /* opacity: 1; */
}

.spell {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin-right: 5vw;
  align-items: center;
}

.spell.disabled {
  filter: grayscale(100%);
  opacity: 0.5;
  cursor: default;
}

.spell.last {
  margin-right: 0;
}

.spell .icon {
  cursor: pointer;
  width: 20vw;
  height: 20vw;
  min-width: 64px;
  min-height: 64px;
  max-width: 113px;
  max-height: 113px;
  background-image: url("../img/base-spell.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 100pt;

  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spell .icon .emoji {
  /* position: absolute;
	top: 25%;
	bottom: 25%; */
  transform: translateY(6%);
  font-size: min(9vw, 60px);
  opacity: 0.67;
  text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5),
    -1px 1px 0 rgba(0, 0, 0, 0.5), 1px 1px 0 rgba(0, 0, 0, 0.5);
}

.spell .icon .remove {
  position: absolute;
  top: 0%;
  left: 0%;
  height: 4vw;
  width: 4vw;
  text-align: center;
  vertical-align: middle;
  border-radius: 100pt;
  background-color: #fff;
  padding: 4px;
}

.spell:not(.disabled) .icon:hover {
  opacity: 0.75;
}

.spell.random .icon {
  background-image: url("../img/random-spell.png") !important;
  opacity: 0.5;
}

.spell .text {
  margin-top: 0.4em;
  font-size: min(5vw, 32px);
  text-align: center;
  font-weight: bold;

  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

#spell-indicators {
  flex-wrap: wrap;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  top: 10%;
  position: relative;
}

.spell-indicator {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.spell-indicator .emoji {
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff,
    1px 1px 0 #fff;
  font-size: min(9vw, 64px);
}

.spell-indicator .timer {
  color: #fff;
  transform: translateY(10%);
  text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000,
    1px 1px 0 #000;
  font-size: min(5vw, 32px);
  position: absolute;
}

#spell-setting-all {
}

.spell-setting {

}

.spell-setting .icon {
  border: transparent solid 4px;
}

.spell-setting:not(.disabled) .icon {
  border: rgb(52, 111, 206) solid 4px;
}

.spell-setting.disabled {
  opacity: 0.5;
  filter: grayscale(100%);
}

.spell-setting .text {
  color: rgb(52, 111, 206);
}

.spell-setting .icon {
  width: 5em;
  height: 5em;
}
.spell-setting .emoji {
  font-size: 2.5em !important;
}
.spell-setting .text {
  font-size: unset;
}