html {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: url('../assets/background.png');
/*  background-size: cover;
  -o-background-size: cover;*/
  margin: 0;
  padding: 0;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
}

.main_container {
  /*max-height: 100%;
  min-height: 100%;*/
  overflow: hidden;
  /*height: 100%;*/
  padding: 0 20px;
}

.header {
  /*height: 25%;
  max-height: 25%;*/
  position: relative;
  margin-bottom: 30px;
}

.header>img {
  max-height: 100%;
  display: block;
  max-width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.thank-you-header { 
  width: 100% !important;
  margin: 0 auto;
}

.logo {
  height: 15%;
  max-height: 15%;
  position: relative;
}

.logo>img {
  max-height: 100%;
  display: block;
  max-width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.content { max-width: 650px; margin: 150px auto 0; position: relative; z-index: 10; }
.content p { color: #fff; font-size: 42px; text-align: center; text-shadow: 5px 5px 15px #000; font-family: sans-serif; }

#vault-container {
  /*height: 75%;
  max-height: 75%;*/
  position: relative;
  max-width: 650px;
  margin: 0 auto 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 0px 30px 6px #000;
}

#vault-container>canvas {
  max-height: 100%;
  display: block;
  margin: auto;
  max-width: 100%;
}

.summary {
  position: absolute;
  overflow: hidden;
  z-index: 1;
  height: 100%;
  width: 100%;
  text-align: center;
  /*pointer-events: none;*/

}

.items {
  position: relative;
}

.jackpot {
  width: 64%;
  display: block;
  margin: auto;
}

.jackpot-inner-text {
  /*position: absolute;
  color: #f1ca2f;
  font-weight: 700;
  font-size: 4.0vw;
  left: 49%;
  transform: translate(-50%);
  top: 54%;*/

  position: absolute;
  color: #f1ca2f;
  font-weight: 700;
  font-size: 36px;
  left: 50%;
  transform: translate(-50%);
  top: 337px;
  z-index: 20;
  font-family: sans-serif;
}

.congrats {
  /*position: absolute;
  top: 97%;
  left: 50%;
  height: 170%;
  width: auto;
  transform: translate(-50%);*/
  /*position: absolute;
  top: 45px;
  transform: translate(-50%);
  height: 350px;*/
  width: 485px;
  margin: 35px auto 0;

}

.cta-btn {
  z-index: 10; 
  /*position: absolute;
  bottom: 30px; 
  left: calc(50% - 200px);*/
  cursor: pointer;
  margin: 10px auto 0;
  background: none;
  border: none;
  outline: none;
  width: 400px;
  padding: 0;
}

.vignette { width: 100%;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    height: 100%;
    position: fixed;
    top: 0;
    background-image: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0))), -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 1))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 1)));
    background-image: -o-linear-gradient(left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%), -o-linear-gradient(right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%), -o-linear-gradient(left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%), -o-linear-gradient(right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
    background-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%), linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%), linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 100%);
    /*background-size: 300px 100vh, 300px 100vh, calc(50% - 500px + 10px) 100vh, calc(50% - 500px + 10px) 100vh;
    background-position: calc(50% - 500px + 150px) top, calc(50% + 500px - 150px) top, right top, left top;*/
    background-size: 700px 100vh, 680px 100vh, calc(50% - 700px + 10px) 100vh, calc(50% - 700px + 10px) 100vh;
    background-position: calc(50% - 490px + 150px) top, calc(50% + 500px - 150px) top, right top, left top;
    background-repeat: no-repeat; }

.header-desktop { width: 100%; display: block; }
.header-mobile { width: 100%; display: none; }

.lights-box.lights-content {
    width: 100%;
    height: auto;
    max-width: 790px;
    -webkit-box-shadow: 0px 0px 20px 4px rgba(0, 0, 0, 0.75);
            box-shadow: 0px 0px 20px 4px rgba(0, 0, 0, 0.75);
    margin-top: 30px;
}

/*.lights-box.lights-content .box-content {
    padding: 20px;
    text-align: center;
}*/

.lights-box {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    position: relative;
    width: 523px;
    height: 370px;
    background-image: url("../assets/gold-tile.fs8.png");
    border-radius: 20px;
    padding: 12px;
    /* box-shadow: inset 0px 0px 40px 5px rgba(201,132,0,1); */
    margin: 0 auto;
}

.lights-box::after {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    content: '';
    position: absolute;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    border-radius: 24px;
    border: solid 2px rgba(220, 182, 103, 1);
}

.box-content {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    border: solid 2px rgba(220, 182, 103, 1);
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: black;
    padding: 10px 0;
    border-radius: 10px;
    background-image: url("../assets/floral-tile.fs8.png");
    background-size: 200px auto;
    background-position: center center;
    -webkit-box-shadow: inset 0px 0px 10px 4px rgba(201, 132, 0, 1);
            box-shadow: inset 0px 0px 10px 4px rgba(201, 132, 0, 1);
}

.lights-top,
.lights-bottom {
    position: absolute;
    left: 15px;
    width: calc(100% - 45px);
    height: 30px;
    background-size: auto 100%;
    background-position: left top;
}

.lights-top {
    top: -9px;
    background-image: url("../assets/lights_combo.fs8.png");
    -webkit-animation: flash-top 1s steps(1) infinite;
            animation: flash-top 1s steps(1) infinite;
}

.lights-bottom {
    bottom: -9px;
    background-image: url("../assets/lights_combo_180.fs8.png");
    -webkit-animation: flash-bottom 1s steps(1) infinite;
            animation: flash-bottom 1s steps(1) infinite;
}

.lights-left,
.lights-right {
    position: absolute;
    top: 20px;
    width: 30px;
    height: calc(100% - 35px);
    background-size: 100% auto;
    background-position: left bottom;
}

.lights-left {
    left: -9px;
    background-image: url("../assets/lights_combo_270.fs8.png");
    -webkit-animation: flash-left 1s steps(1) infinite;
            animation: flash-left 1s steps(1) infinite;
}

.lights-right {
    right: -9px;
    background-image: url("../assets/lights_combo_90.fs8.png");
    -webkit-animation: flash-right 1s steps(1) infinite;
            animation: flash-right 1s steps(1) infinite;
}


@-webkit-keyframes flash-top {
    0% { background-image: url("../assets/lights_combo.fs8.png"); }
    50% { background-image: url("../assets/lights_combo_180.fs8.png"); }
}

@keyframes flash-top {
    0% { background-image: url("../assets/lights_combo.fs8.png"); }
    50% { background-image: url("../assets/lights_combo_180.fs8.png"); }
}

@-webkit-keyframes flash-right {
    0% { background-image: url("../assets/lights_combo_90.fs8.png"); }
    50% { background-image: url("../assets/lights_combo_270.fs8.png"); }
}

@keyframes flash-right {
    0% { background-image: url("../assets/lights_combo_90.fs8.png"); }
    50% { background-image: url("../assets/lights_combo_270.fs8.png"); }
}

@-webkit-keyframes flash-bottom {
    0% { background-image: url("../assets/lights_combo_180.fs8.png"); }

    50% { background-image: url("../assets/lights_combo.fs8.png"); }
}

@keyframes flash-bottom {
    0% { background-image: url("../assets/lights_combo_180.fs8.png"); }
    50% { background-image: url("../assets/lights_combo.fs8.png"); }
}

@-webkit-keyframes flash-left {
    0% { background-image: url("../assets/lights_combo_270.fs8.png"); }
    50% { background-image: url("../assets/lights_combo_90.fs8.png"); }
}

@keyframes flash-left {
    0% { background-image: url("../assets/lights_combo_270.fs8.png"); }
    50% { background-image: url("../assets/lights_combo_90.fs8.png"); }
}


.lds-spinner {
  color: official;
  display: inline-block;
  position: relative;
  width: 64px;
  height: 64px;
  position: absolute;
  top: calc(65% - 32px);
  left: calc(50% - 32px);
  z-index: -1;
}
.lds-spinner div {
  transform-origin: 32px 32px;
  animation: lds-spinner 1.2s linear infinite;
}
.lds-spinner div:after {
  content: " ";
  display: block;
  position: absolute;
  top: 3px;
  left: 29px;
  width: 5px;
  height: 14px;
  border-radius: 20%;
  background: #fff;
}
.lds-spinner div:nth-child(1) {
  transform: rotate(0deg);
  animation-delay: -1.1s;
}
.lds-spinner div:nth-child(2) {
  transform: rotate(30deg);
  animation-delay: -1s;
}
.lds-spinner div:nth-child(3) {
  transform: rotate(60deg);
  animation-delay: -0.9s;
}
.lds-spinner div:nth-child(4) {
  transform: rotate(90deg);
  animation-delay: -0.8s;
}
.lds-spinner div:nth-child(5) {
  transform: rotate(120deg);
  animation-delay: -0.7s;
}
.lds-spinner div:nth-child(6) {
  transform: rotate(150deg);
  animation-delay: -0.6s;
}
.lds-spinner div:nth-child(7) {
  transform: rotate(180deg);
  animation-delay: -0.5s;
}
.lds-spinner div:nth-child(8) {
  transform: rotate(210deg);
  animation-delay: -0.4s;
}
.lds-spinner div:nth-child(9) {
  transform: rotate(240deg);
  animation-delay: -0.3s;
}
.lds-spinner div:nth-child(10) {
  transform: rotate(270deg);
  animation-delay: -0.2s;
}
.lds-spinner div:nth-child(11) {
  transform: rotate(300deg);
  animation-delay: -0.1s;
}
.lds-spinner div:nth-child(12) {
  transform: rotate(330deg);
  animation-delay: 0s;
}
@keyframes lds-spinner {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.custom_wistia_css { width: 78% !important; height: 78% !important; margin: 20px auto 0; }
#wistia_grid_31_wrapper { width: 100% !important; height: 100% !important; }
#wistia_grid_31_main { width: 100% !important; height: 100% !important; }
#wistia_chrome_25 { width: 100% !important; height: 100% !important; }


@media screen and (min-aspect-ratio:840/1200) {

  .items {
    position: relative;
    height: 100%;
  }

  .jackpot {
    height: 32%;
    width: auto;
  }

  .jackpot-inner-text {
    /*position: absolute;
    color: #dcb667;
    top:52%;
    font-weight: 700;
    font-size: 3.5vh;
    left: 50%;
    transform: translate(-50%);
    z-index: 20;
    font-family: sans-serif;*/
  }

  .congrats {
    /*position: absolute;
    top: 5%;
    height: 75%;
    width: auto;*/
  }

}


@media only screen 
  and (min-width: 1024px) 
  and (max-height: 1366px) 
  and (-webkit-min-device-pixel-ratio: 1.5) {

  .jackpot-inner-text { font-size: 2.5vh; }

}

@media only screen 
  and (min-width: 1024px) 
  and (max-height: 1366px) 
  and (orientation: landscape) 
  and (-webkit-min-device-pixel-ratio: 1.5) {

    .jackpot-inner-text { font-size: 3.5vh; }

}

@media screen and (max-width: 768px) { 
    .jackpot-inner-text { top: 52%; font-weight: 700; }
}

@media screen and (max-width: 680px) {
    .congrats { width: 400px; margin: 45px auto 0; }
    .jackpot-inner-text { top: 296px; font-size: 28px; }
    .cta-btn img { width: 300px; }
}

@media screen and (max-width: 580px) {
    .congrats { margin: 15px auto 0; }
    .jackpot-inner-text { top: 266px; font-size: 28px; }
    .custom_wistia_css { width: 350px !important; height: 350px !important; }
}

@media screen and (max-width: 500px) { 
  .header-desktop { display: none; }
  .header-mobile { display: block; }
  #vault-container { margin-top: 10px; }
  .congrats { width: 300px; }
  .jackpot-inner-text { top: 205px; font-size: 20px; }
  .header { margin-bottom: 15px; }
  .cta-btn { width: 250px; }
  .cta-btn img { width: 250px; }
  .custom_wistia_css { width: 350px !important; height: 350px !important; }
  .content { margin-top: 70px; }
  .content p { font-size: 30px; }
}

@media screen and (max-width: 430px) {
  .congrats { width: 240px; }
  .jackpot-inner-text { top: 167px; font-size: 16px; }
  .cta-btn { width: 190px; }
  .cta-btn img { width: 190px; }
  .custom_wistia_css { width: 240px !important; height: 240px !important; }
  .content p { font-size: 24px; }
}

@media screen and (max-width: 375px) {
  .congrats { width: 220px; }
  .jackpot-inner-text { top: 154px; font-size: 14px; }
  .cta-btn {  }
}

@media screen and (max-width: 320px) {
  .congrats { width: 200px; }
  .jackpot-inner-text { top: 140px; font-size: 14px; }
  #vault-container { margin-top: 20px; }
  .cta-btn { width: 180px; }
  .cta-btn img { width: 180px; }
  .custom_wistia_css { width: 190px !important; height: 190px !important; }
}