/* ==== Global Rules ==== */

* {
  font-family: 'Kalam', cursive;
  margin: 0;
  /* height: 100%; */
  /* overflow-x: hidden */
}

html, body{
  height: 100%;
  background-color: white;
  /*overflow: hidden;*/
}

/* ==== Start Page ==== */

#play, #thegrid, #playbutton, #noother {
	font-size:130px;
	font-family: 'Kalam', cursive;
	font-weight: bold;
	width:80%;
	text-align:center;
	margin-left:auto;
    margin-right:auto;
}

#play{
	margin-top:120px;
}

#thegrid {
	
	color:#2a73cb;
}

#playbtn{
	/* From https://css.glass */
background: rgba(51, 69, 255, 1);
border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(5px);
-webkit-backdrop-filter: blur(5px);
border: 1px solid rgba(51, 69, 255, 0.33);
}

.start-container {
  width: auto;
  height: auto;
  background-image: url('/assets/background/Hexagonal_bg.png');
  background-size: cover;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.play-the-grid-image {
  width: 80%;
  height: auto;
  margin-top: 75px;
}

.three-d-grid-image {
  width: 90%;
  height: auto;
  margin: 0 auto;
  margin-top: 50px;
}

.rolling-ball-section {
  width: 100%;
  height: auto;
  margin-top: -425px;
  margin-bottom: 175px;
}

.rolling-ball-image {
  width: 40%;
  height: auto;
  margin: 0 auto;
  margin-left: 165px;
}

.and-win-big-image {
  width: 65%;
  height: auto;
}

.play-now-image {
  width: 100%;
  height: auto;
  position: fixed;
  bottom: 0;
  right: 0%;
}

.title-image {
  margin-top: 10%;
  width: 100%;
}

.grid-gif {
  margin-top: 10%;
  width: 90%;
  margin-bottom: 10%;
}

.subtitle-image {
  width: 100%;
}

/* ==== Game Screen 1 ==== */

.game-container {
  width: auto;
  height: 115%;
  background-image: url('/assets/background/Hexagonal_bg.png');
  background-size: cover;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.grid-title {
  width: 100%;
  margin-top: 4%;
  margin-bottom: 4%;
}

.the-grid-image {
  width: 75%;
  height: auto;
  top: 0;
  margin-top: 60px;
}

.grid-layout-image {
  width: 75%;
  height: auto;
  margin-top: 50px;
}

.row-1 {
  /* width: 75%; */
  display: flex;
  align-content: space-between;
  margin: 0 auto;
  margin-top: 20px; 
  height: auto;
}

.row-2 {
  /* width: 75%; */
  display: flex;
  align-content: space-between;
  margin: 0 auto;
  /* margin-top: 40px; */
  height: auto;
}

.row-3 {
  /* width: 75%; */
  display: flex;
  align-content: space-between;
  margin: 0 auto;
  /* margin-top: 40px; */
  height: auto;
}

.row-3-three-d {
  width: 90%;
  display: flex;
  align-content: space-between;
  margin: 0 auto;
  margin-top: -125px;
  height: auto;
}

.inner-square {
  width: 300px;
  height: 300px;
  /* background-image: url('/assets/images/single-block.png'); */
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-1 {
  width: 300px;
  height: 300px;
  background-image: url('/assets/images/square-1.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-2 {
  width: 298px;
  height: 298px;
  background-image: url('/assets/images/square-2.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
  margin-right: -60px;
  margin-left: -60px;
  margin-top: 2px;
}

.inner-square-3 {
  width: 300px;
  height: 300px;
  background-image: url('/assets/images/square-3.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.row-2-three-d {
  margin-top: -80px;
}

.inner-square-4 {
  width: 250px;
  height: 250px;
  background-image: url('/assets/images/square-4.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-5 {
  width: 250px;
  height: 250px;
  background-image: url('/assets/images/square-5.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-6 {
  width: 250px;
  height: 250px;
  background-image: url('/assets/images/square-6.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-7 {
  width: 350px;
  height: 350px;
  background-image: url('/assets/images/square-7.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-8 {
  width: 350px;
  height: 350px;
  background-image: url('/assets/images/square-8.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.inner-square-9 {
  width: 350px;
  height: 350px;
  background-image: url('/assets/images/square-9.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
}

.active-inner-square {
  background-image: url('/assets/images/single-block-red.png');
}

.enter-selection-banner {
  width: 100%;
  height: auto;
  margin-top: 100px;
}

.row-4 {
  display: flex;
  margin: space-between;
  padding-inline: 12.5%;
}

.row-5 {
  display: flex;
  padding-inline: 2%;
  align-content: space-between;
}

.choose-number {
  width: 250px;
  height: 190px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0 auto;
  text-align: center;
}

.choose-number-image {
 width: 190px;
  height: auto;
}

.choosen-number-image {
  width: 250px;
   padding-top: 10%;
 }

.button-area {
  width: 80%;
  height: auto;
  margin: auto;
  padding-bottom: 5%;
  display: flex;
  align-content: space-between;
}

.reset-button,
.play-button {
  width: 45%;
  padding-top: 5%;
  height: auto;
  margin: 0 auto;
}

/* ==== Game Screen 2 ==== */

.game-container-two {
  width: 100%;
  height: 115%;
  background-image: url('/assets/background/Hexagonal_bg.png');
  background-size: cover;
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.background-container {
  position: relative;
}

.background-image-grid {
  top: 250px;
  left: 50px;
}

.number-title {
  color: rgba(255,0,0,1);
  font-weight: bolder;
  font-size: 100px;
  margin-top: 40px;
  text-align: center;
}

.stage {
  width: 300px;
  height: 300px;
  display: inline-block;
  -webkit-perspective: 1200px;
  -moz-perspective: 1200px;
  -ms-perspective: 1200px;
  -o-perspective: 1200px;
  perspective: 1200px;
  -webkit-perspective-origin: 50% 50%;
  -moz-perspective-origin: 50% 50%;
  -ms-perspective-origin: 50% 50%;
  -o-perspective-origin: 50% 50%;
  perspective-origin: 50% 50%;
  /* border: 2px solid lightgrey;
  border-radius: 5px; */
}

.ball {
  display: inline-block;
  width: 160px;
  height: 160px;
  margin-top: 12.5px;
  border-radius: 50%;
  position: relative;
  /* background: radial-gradient(circle at 50% 40%, #fcfcfc, #efeff1 66%, #9b5050 100%); */
  background: radial-gradient(circle at 50% 40%, #d31414, #d31414 66%, #380303 100%);
  overflow: hidden;
  animation: ballGrow 2s ease-out forwards;
  transform: scale(0.5);
  margin-top: 25px;
  margin-left: -100px;
}

.ball:after {
  content: "";
  position: absolute;
  top: 5%;
  left: 10%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8) 14%, rgba(255, 255, 255, 0) 24%);
  -webkit-transform: translateX(-80px) translateY(-90px) skewX(-20deg);
  -moz-transform: translateX(-80px) translateY(-90px) skewX(-20deg);
  -ms-transform: translateX(-80px) translateY(-90px) skewX(-20deg);
  -o-transform: translateX(-80px) translateY(-90px) skewX(-20deg);
  transform: translateX(-80px) translateY(-90px) skewX(-20deg);
}

.number {
  position: absolute;
  width: 90%;
  text-align: center;
  line-height: 250px;
  font-size: 150px;
  color: white;
  font-family: Arial;
  font-weight: bold;
  animation: ballRoll 2s ease-out;
  margin-left: -140px;
  margin-top: 25px;
}

.did-you-win{
  padding-top: 5%;
}

.play-again-button {
  width: 60%;
  height: auto;
  margin: 0 auto;
}

.leave-button {
  padding-top: 3.5%;
  width: 60%;
}

.winnings {
  padding-top: 5%;
  padding-bottom: 5%;
}

@font-face {
  font-family: "Back Issue";
  src: url(/assets/fonts/BackIssuesBB_reg.ttf) format('truetype');
}

.winner-text {
  font-family: "Back Issue";
  font-size: 55px;
  color: black;
}

.your-selection-wins-banner {
  width: 100%;
  height: auto;
  margin-top: 150px;
}

.one-line-win-section,
.no-win-section {
  height: auto;
}

.one-line-win,
.no-win {
  width: 40%;
  height: auto;
  margin: 0 auto;
  margin-top: 60px;
}

.play-again-button-area {
  width: 100%;
  height: auto;
  text-align: center;
}

.play-now-button {
  width: 100%;
  height: auto;
  position: fixed;
  bottom: 0;
  right: 0%;
}

.toggle-content {
	height: 0;
  opacity: 0.01;
	overflow: hidden;
}

.toggle-content.is-visible {
	height: auto;
  opacity: 1;
  transition: height 3500ms ease-in-out, opacity 7500ms ease-in-out;
}

/* === 3D Styling === */

.top-left-ball {
  width: 150px;
  margin-left: 20px;
}

.top-middle-ball {
  width: 150px;
  margin-left: 20px;
}

.top-right-ball {
  width: 150px;
  margin-left: 20px;
}

.chosen-number-title {
  color: white;
  font-weight: bolder;
  font-size: 100px;
  margin-top: 40px;
  text-align: center;
}


.selection-text {
  font-size: 48px;
  text-align: center;
  font-weight: bolder;
  margin-top: 75px;
  text-transform: uppercase;
  text-shadow: rgba(255,0,0,1) 0px 0px 5px;
}

.chosen-inner-square {
  background-image: url("/assets/images/Stripes.jpeg");
  background-position: center;
}

.choose-number-circle {
  background-color: rgba(255,0,0,10);
  text-align: center;
  border-radius: 50%;
  height: 135px;
  width: 135px;
  margin: 0 auto;
}

.chosen-number-circle {
  background-image: url("/assets/images/Stripes.jpeg");
  text-align: center;
  border-radius: 50%;
  height: 135px;
  width: 135px;
  margin: 0 auto;
}

.choose-number-text {
  color: white;
  font-size: 45px;
  font-weight: bolder;
  margin-top: 40px;
}

#control-section-one {
  width: 100%;
  display: none;
  text-align: center;
}

#control-section-two {
  width: 100%;
  display: none;
  text-align: center;
}

.reset-button-one {
  width: 50%;
  height: 60px;
  border: none;
  background: black;
  color: white;
  font-size: 35px;
  font-weight: bolder;
  text-transform: uppercase;
}

.reset-button-two {
  width: 90%;
  height: 60px;
  margin: 0 auto;
  border: none;
  background: black;
  color: white;
  font-size: 35px;
  font-weight: bolder;
  text-transform: uppercase;
}

.play-button-one {
  width: 90%;
  height: 60px;
  margin: 0 auto;
  border: none;
  background: green;
  color: white;
  font-size: 35px;
  font-weight: bolder;
  text-transform: uppercase;
}

.cst-left {
  width: 50%;
  float: left;
}

.cst-right {
  width: 50%;
  float: right;
}

/* Spinning Balls */

.number:after {
  content: attr(data-number);
  position: absolute;
  transform: translateX(-75%);
  opacity: 0;
  animation: numberReveal 0.1s 1.5s reverse forwards;
  text-align: center;
}

.number:before {
  content: '?';
  position: absolute;
  transform: translateX(-25%);
  animation: numberReveal 0.1s 1.5s forwards;
}

.number-success:after {
  color: #eadb09;
}

@keyframes ballRoll {
  0%, 20%, 50% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
  }
  10%, 35%, 75% {
    transform: translateY(100%) rotateX(170deg) scale(0.4);
  }
  11%, 36%, 76% {
    transform: translateY(-100%) rotateX(-170deg) scale(0.3);
    opacity: 0;
  }
  
}

@keyframes ballGrow {
  0% {
    transform: scale(0.5);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes numberReveal {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Row Styling */
.wrap {
  text-align: center;
  display: flex;
  margin-left: -12%;
}

.wrap:nth-child(2),
.wrap:nth-child(3) {
  margin-top: 0px;
}

/* Ball 1 Animation */
.stage-1 .ball,
.stage-1 .number {
  animation-delay: 0.5s;
}

.stage-1 .number:after,
.stage-1 .number:before {
  animation-delay: 2s;
}

/* Ball 2 Animation */
.stage-2 .ball,
.stage-2 .number {
  animation-delay: 1s;
}

.stage-2 .number:after,
.stage-2 .number:before {
  animation-delay: 2.5s;
}

/* Ball 3 Animation */
.stage-3 .ball,
.stage-3 .number {
  animation-delay: 1.5s;
}

.stage-3 .number:after,
.stage-3 .number:before {
  animation-delay: 3s;
}

/* Ball 4 Animation */
.stage-4 .ball,
.stage-4 .number {
  animation-delay: 2s;
}

.stage-4 .number:after,
.stage-4 .number:before {
  animation-delay: 3.5s;
}

/* Ball 5 Animation */
.stage-5 .ball,
.stage-5 .number {
  animation-delay: 2.5s;
}

.stage-5 .number:after,
.stage-5 .number:before {
  animation-delay: 4s;
}

/* Ball 6 Animation */
.stage-6 .ball,
.stage-6 .number {
  animation-delay: 3s;
}

.stage-6 .number:after,
.stage-6 .number:before {
  animation-delay: 4.5s;
}

/* Ball 7 Animation */
.stage-7 .ball,
.stage-7 .number {
  animation-delay: 3.5s;
}

.stage-7 .number:after,
.stage-7 .number:before {
  animation-delay: 5s;
}

/* Ball 8 Animation */
.stage-8 .ball,
.stage-8 .number {
  animation-delay: 4s;
}

.stage-8 .number:after,
.stage-8 .number:before {
  animation-delay: 5.5s;
}

/* Ball 9 Animation */
.stage-9 .ball,
.stage-9 .number {
  animation-delay: 4.5s;
}

.stage-9 .number:after,
.stage-9 .number:before {
  animation-delay: 6s;
}

/* Test Text */

.xl-test-text {
  font-size: 100px;
}

.chosen-numbers {
  margin-top: -125px;
  text-align: center;
}

.test-play-button {
  width: 50%;
  height: 60px;
  border: none;
  background: orange;
  color: white;
  font-size: 35px;
  font-weight: bolder;
  text-transform: uppercase;
}
