.revolver{
  animation: revolve 40s linear infinite;
}
@keyframes revolve {
  from {transform: rotate(0deg);}
  to {transform: rotate(360deg);}
}
.transitopacity{
  visibility: hidden;
  opacity: 0;
  background-color: rgba(0,0,0,0);
  transition: opacity var(--transition-sec) linear;
  -webkit-transition: opacity var(--transition-sec) linear;
}
.transitform{
  transition-property: transform;
  transition-duration: var(--transition-sec);
  -webkit-transition-property: transform;
  -webkit-transition-duration: var(--transition-sec);
}
.transitall{
  transition-property: top, left, transform;
  transition-duration: var(--transition-sec);
  -webkit-transition-property: top, left, transform;
  -webkit-transition-duration: var(--transition-sec);
}
.verticalflex{
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
}
.bannertext{
  font-size: calc(var(--card-height)*0.2);
  color: var(--text-color);
}
.centeredtext{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: center;
}
.centeredtext>div{
  width: 100%;
  text-align: center;
}
#infobox{
  height: calc(var(--card-height)*0.5);
  font-size: calc(var(--main-width)*0.02);
  white-space: pre;
}

#specialboard #hoverinfobox{
  margin: calc(var(--card-height)*0.25) 0;
  height: calc(var(--card-height)*1.5);
  width: 100%;
  z-index: 10;
}
#blocker {
  font-size: calc(var(--main-width)*0.05);
  z-index: 999;
}
.banner{
  display: flex;
  background-color: var(--banner-background);
  align-items: center;
}
.banner>div{
  width: 100%;
  padding: calc(var(--card-height)*0.3) 0;
  background-image : linear-gradient(to right,
                      rgba(30,19,10, 0) 10%,
                      rgba(30,19,10, 0.7) 40%,
                      rgba(30,19,10, 0.7) 60%,
                      rgba(30,19,10, 0) 90%);
}
.banner .bannertext{
  margin-bottom: calc(var(--card-height)*0.1);
  width: 100%;
}
.banner .bannercards{
  display: flex;
  justify-content: center;
}
.bannerhl{
  font-size: calc(var(--card-height)*0.4);
  color: var(--text-hl-color);
  text-shadow: 0 0 calc(var(--card-height)/20) var(--text-glow-color);
  padding: 0 calc(var(--card-width)*0.1);
}
.postercard{
  width: calc(var(--card-width)*1.2);
  height: calc(var(--card-height)*1.2);
  background-size: 100% 100%;
  border-radius: 3%;
  margin: 0 calc(var(--card-width)*0.05);
  -webkit-box-shadow: 0px 0px 10px 1px var(--text-glow-color);
  box-shadow: 0px 0px 10px 1px var(--text-glow-color);
}
.swapposter{
  position: relative;
  margin: calc(var(--card-width)*0.35) calc(var(--card-width)*0.05);
}
.swapposter .postercard{
  border: var(--text-glow-color) 5px solid;
}
.swapposter>div:first-child{
  width: 0;
  height: 0;
  position: absolute;
  left: calc(50% - var(--card-width)*0.2);
  border-left: calc(var(--card-width)*0.2) solid transparent;
  border-right: calc(var(--card-width)*0.2) solid transparent;
}
.swapposter:first-child>div:first-child{
  top: calc(var(--card-width)*-0.15);
  border-bottom: calc(var(--card-width)*0.15) solid var(--text-glow-color);
}
.swapposter:last-child>div:first-child{
  bottom: calc(var(--card-width)*-0.15);
  border-top: calc(var(--card-width)*0.15) solid var(--text-glow-color);
}

#finalcontainer{
  z-index: 999;
  transition: transform 2s ease-out;
  -webkit-transition: transform 2s ease-out;
  transform: translate(0, calc(var(--win-height) * -1));
  -webkit-transform: translate(0, calc(var(--win-height) * -1));
}
#finalcontainer.notransform{
  transform: none;
  -webkit-transform: none;
}
#finalcontainer>div, #finalcontainer .badge>div{
  position: absolute;
}
#finalcontainer .string{
  width: 0;
  border-right: calc(var(--main-height)*0.02) dotted var(--final-background);
  left: calc(50% - calc(var(--main-height)*0.01));
  top: 15%;
  height: 13%;
}
#finalcontainer #reconfig, #finalcontainer .badge, #finalcontainer .badge>div, #finalcontainer #restart{
  width: calc(var(--main-height)*0.4);
  height: calc(var(--main-height)*0.4);
}
#finalcontainer #reconfig, #finalcontainer .badge, #finalcontainer #restart{
  left: calc(50% - var(--main-height)*0.2);
}
#finalcontainer #reconfig, #finalcontainer #restart{
  border: calc(var(--main-height)*0.02) solid var(--final-background);
}
#finalcontainer #reconfig{
    border-radius: 0 0 100% 100%;
    height: calc(var(--main-height)*0.15);
    top: 0;
    background-color: var(--banner-background4);
}
#finalcontainer .badge, #finalcontainer #restart{
  top: 28%;
}
#finalcontainer .badge>div{
  background-color: var(--banner-background);
  border: calc(var(--main-height)*0.02) solid rgba(0, 0, 0, 0.05);
}
#finalcontainer>.badge>div:nth-child(2){
  transform: rotate(22.25deg);
  -webkit-transform: rotate(22.25deg);
}
#finalcontainer>.badge>div:nth-child(3){
  transform: rotate(67.5deg);
  web-kittransform: rotate(67.5deg);
}
#finalcontainer>.badge>div:nth-child(4){
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}
#finalcontainer #restart{
  border-radius: 50%;
}
#finalcontainer .bannertext{
  font-size: calc(var(--card-height)*0.13);
}
#finalmsg{
    white-space: pre;
    animation: finalneo 2s infinite linear;
    -webkit-animation: finalneo 2s infinite linear;
}

@keyframes finalneo{
  from {text-shadow: 0 0 calc(var(--card-width)*0.05) var(--text-glow-color);}
  50% {text-shadow: 0 0 calc(var(--card-width)*0.15) var(--text-glow-color);}
  to {text-shadow: 0 0 calc(var(--card-width)*0.05) var(--text-glow-color);}
}
@-webkit-keyframes finalneo{
  from {text-shadow: 0 0 calc(var(--card-width)*0.0) var(--text-glow-color);}
  50% {text-shadow: 0 0 calc(var(--card-width)*0.15) var(--text-glow-color)2;}
  to {text-shadow: 0 0 calc(var(--card-width)*0.0) var(--text-glow-color);}
}

#configurator {
  position: relative;
  min-height: 50%;
  max-height: 70%;
  width: 60%;
  top: 20%;
  margin: auto;
  align-items: center;
  overflow: visible;
  opacity: 1;
}
#configurator div{
  display: inline-block;
  font-size: 1.5vw;
}
.confirmbutton{
  width: 35%;
  padding: 1vw 0;
  border: 1px solid  var(--text-shadow-color);
  color: var(--text-shadow-color);
  cursor: pointer;
}
.confirmbutton:hover, .confirmbutton:active {
  background-color: var(--text-shadow-color);
  color: white;
}

.cover{
  visibility: hidden;
  position: absolute;
  top:0;
  bottom:0;
  left:0;
  right:0;
}

.combobonus::before {
    content: "";
    margin-left: -100%;
}
.combobonus::after {
    content: "";
    margin-right: -100%;
}
.combobonus{
  width: 100%;
  height: 0;
  overflow: visible;
  position: absolute;
  font-size: 0;
  color: #514d38;
  z-index: 1999;
}
.combobonus.animebonus{
  animation: flyup var(--transition-sec) ease-in;
  -webkit-animation: flyup var(--transition-sec) ease-in;
}
.textoverflowcenter{
    margin-left: -100%;
    margin-right: -100%;
    text-align: center;
}
@keyframes flyup{
  0% {
    font-size: calc(var(--card-height)*0.4);
    top: calc(var(--card-height)*-0.05);
    opacity: 1;
  }
  100% {
    font-size: calc(var(--card-height)*0.4);
    top: calc(var(--card-height)*-0.25);
    opacity: 0;
  }
}
