@font-face {
  font-family: 'goudy-bookletter';
  src: url('Goudy_Bookletter_1911/GoudyBookletter1911-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'vast-shadow';
  src: url('Vast_Shadow/VastShadow-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  font-size: 24px;
  font-family: goudy-bookletter, Georgia, serif;
  background: hsl(50, 15%, 90%);
  color: hsl(0, 30%, 20%);
  margin: 0;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invisible {
  visibility: hidden;
}

button {
  font-family: 'goudy-bookletter';
  font-size: 2.5em;
  cursor: pointer;
  padding: 0.25em;
  border-radius: 0.25em;
  border-width: 2px;
  border-color: #333;
  border-style: solid;
  background-color: #fff;
  min-width: 44px;
  margin-right: 46px;
}

.outer-container {
  display: flex;
}

a:link {
  color: #222;
  font-weight: 700;
}

a:visited {
  color: #ddd;
}

.hidden {
  opacity: 0;
  transition: opacity 1s;
  display: none;
}

.presentation {
  width: 100vw;
  position: relative;
}

.full-frame-caption {
  position: absolute;
  background-color: hsl(20, 35%, 5%);
  color: hsl(20, 10%, 95%);
  opacity: 1;
  width: 100%;
  min-height: 100%;
  font-size: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.full-frame-caption > * {
  width: 70%;
}

body:not(.stage-0) #intro {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}

body:not(.stage-2) #voted-off {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}

#ballot img {
  max-height: 600px;
  object-fit: contain;
}

body:not(.stage-3) #ballot {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}

body:not(.stage-4) #tally {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}

body:not(.stage-6) #pods {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}

body:not(.stage-8) #time-out {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}


body:not(.stage-10) #hells {
  visibility: hidden;
  opacity: 0;
  transition: 1s ease-out opacity,
    1s visibility allow-discrete;
}

.area .title {
  font-family: vast-shadow;
  font-size: 72px;
}


.area .small-title {
  font-family: vast-shadow;
  font-weight: 1000;
  font-size: 36px;
}

.area rect {
  fill: #b2873d;
  stroke-width: 2;
  stroke: #362a03;
}

.character circle {
  fill: white;
  stroke: #362a03;
}

foreignObject div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  width: 100%;
  height: 100%;
}

.clone line {
  stroke-width: 8;
}

.exploded {
}

.explosion-container {
  transform-origin: 75px 75px;
  filter: url(#displacementFilter);
  transform: scale(0.1);
}

.explosion {
  transform-origin: 75px 75px;
  visibility: hidden;
  opacity: 0.9;
}

.exploded .explosion {
  animation: 50s linear spin 0.5s infinite;
  visibility: visible;
}

.exploded .explosion-container {
  transform: scale(1);
  transition: 0.5s ease-out transform;
}

.exploded .explosion circle {
  fill: hsl(50, 100%, 50%);
}

@media all and (max-height: 568px) {
  body {
    font-size: 18px;
  }
}


@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

@keyframes expand {
  from {
    transform: scale(0.1);
  }
  to {
    transform: scale(1.2);
  }
}
