
@import url('https://fonts.googleapis.com/css?family=Chicle');
@import url('https://fonts.googleapis.com/css?family=Paytone+One');

body{
  text-align: center;
  scroll-behavior: smooth;
  /**Blue gradient background for sections**/
  background: rgba(255,255,255,1);
  background: -moz-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
  background: -webkit-gradient(left top, right top, color-stop(0%, rgba(255,255,255,1)), color-stop(47%, rgba(246,246,246,1)), color-stop(100%, rgba(237,237,237,1)));
  background: -webkit-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
  background: -o-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
  background: -ms-linear-gradient(left, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
  background: linear-gradient(to right, rgba(255,255,255,1) 0%, rgba(246,246,246,1) 47%, rgba(237,237,237,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#ededed', GradientType=1 );

}
a{
  text-decoration: none;
}
/*
==============================================
header section
==============================================
*/
header{
  width: 99%;
  min-height:750px;
  display: block;
  font-family: 'Chicle', cursive;

  /**border for sections**/
  border-radius: 20px 20px 20px 20px;
  -moz-border-radius: 20px 20px 20px 20px;
  -webkit-border-radius: 20px 20px 20px 20px;
  border: 8px ridge #ffffff;
  -webkit-box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  -moz-box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);

  /**Blue gradient background for sections**/
  background: #b3dced;
  background: -moz-linear-gradient(left, #b3dced 0%, #29b8e5 50%, #bce0ee 100%);
  background: -webkit-gradient(left top, right top, color-stop(0%, #b3dced), color-stop(50%, #29b8e5), color-stop(100%, #bce0ee));
  background: -webkit-linear-gradient(left, #b3dced 0%, #29b8e5 50%, #bce0ee 100%);
  background: -o-linear-gradient(left, #b3dced 0%, #29b8e5 50%, #bce0ee 100%);
  background: -ms-linear-gradient(left, #b3dced 0%, #29b8e5 50%, #bce0ee 100%);
  background: linear-gradient(to right, #b3dced 0%, #29b8e5 50%, #bce0ee 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b3dced', endColorstr='#bce0ee', GradientType=1 );
}
#left {
  width: 25%;
  float:left;
  margin: 2em 0 0 3em;
}
#left > h1 {
  font-size: 6em;
  color: #FFF;
  /**Heading style background for sections**/
  display: inline-block;
  -webkit-box-sizing: content-box;
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  text-align: center;
  -o-text-overflow: clip;
  text-overflow: clip;
  text-shadow: 3px 3px 0 #0199d9 , 4px 4px 0 #0199d9 , 5px 5px 0 #0199d9 , 6px 6px 0 #0199d9 , 7px 7px 0 #0199d9 , 8px 8px 0 #0199d9 , 9px 9px 0 #0199d9 , 10px 10px 0 #0199d9 , 11px 11px 0 #0199d9 , 12px 12px 0 #0199d9 , 13px 13px 0 #0199d9 , 14px 14px 0 #0199d9 , 15px 15px 0 #0199d9 , 16px 16px 0 #0199d9 , 17px 17px 0 #0199d9 , 18px 18px 0 #0199d9 , 19px 19px 0 #0199d9 , 20px 20px 0 #0199d9 ;
  -webkit-text-stroke: 1px #b08736;
  margin-bottom: 0px;
}

#button {
  padding: 25px;
  width: 60%;
  transition: all 0.5s;
  cursor: pointer;
  margin-left: 15%;
  margin-top: 2%;
  background:url(images/button.png) no-repeat;
  background-size:contain;
  cursor:pointer;

}

#button:hover{
  transform: scale(1.1);
}
#button:active{
  transform: scale(1);
  background-position: 10px;

}
#button-text {
  text-transform: uppercase;
  font-size: 1.5em;
  font-family: 'Paytone One', sans-serif;
  width: 100%;
  text-shadow: 0.15vw 0.15vw rgba(0, 55, 214, 0.67);
  color: #ffde00;
}

#right {
  width:70%;
  float:left;
}
 #\23 sliderImg > img{
  width: 80%;
}

#sliderImg{
  background-color: #fe5652;
	visibility: hidden;
}


/**********************Scroll Down Arrow********************/
body > header > a{
  display: inline-block;
  text-decoration: none;
  color: #FFF;
  font-weight: 100;
}

.demo a {
  display: inline-block;
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  transition: opacity .3s;
}
.demo a:hover {
  opacity: .5;
}

#arrow a span {
  position: absolute;
  width: 40px;
  height: 40px;
  margin-left: -23px;
  border: 1px solid #fff;
  border-radius: 100%;
  box-sizing: border-box;
}
#arrow a span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';
  width: 16px;
  height: 16px;
  margin: -12px 0 0 -8px;
  border-left: 1px solid #fff;
  border-bottom: 1px solid #fff;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  box-sizing: border-box;
}
#section2 > a{
  text-decoration: none;
  color: #FFF;
}
/*
==============================================
bounce
==============================================
*/


.bounce{
	animation-name: bounce;
	-webkit-animation-name: bounce;
	animation-duration: 1.6s;
	-webkit-animation-duration: 1.6s;
	animation-timing-function: ease;
	-webkit-animation-timing-function: ease;
	transform-origin: 50% 100%;
	-ms-transform-origin: 50% 100%;
	-webkit-transform-origin: 50% 100%;
}

@keyframes bounce {
	0% {
		transform: translateY(0%) scaleY(0.6);
	}
	60%{
		transform: translateY(-100%) scaleY(1.1);
	}
	70%{
		transform: translateY(0%) scaleY(0.95) scaleX(1.05);
	}
	80%{
		transform: translateY(0%) scaleY(1.05) scaleX(1);
	}
	90%{
		transform: translateY(0%) scaleY(0.95) scaleX(1);
	}
	100%{
		transform: translateY(0%) scaleY(1) scaleX(1);
	}
}

@-webkit-keyframes bounce {
	0% {
		-webkit-transform: translateY(0%) scaleY(0.6);
	}
	60%{
		-webkit-transform: translateY(-100%) scaleY(1.1);
	}
	70%{
		-webkit-transform: translateY(0%) scaleY(0.95) scaleX(1.05);
	}
	80%{
		-webkit-transform: translateY(0%) scaleY(1.05) scaleX(1);
	}
	90%{
		-webkit-transform: translateY(0%) scaleY(0.95) scaleX(1);
	}
	100%{
		-webkit-transform: translateY(0%) scaleY(1) scaleX(1);
	}
}

/**********************Instructions Section 1********************/
#section1 {
  margin-top: 2%;
  width: 99%;
  height:650px;
  display: block;
  font-family: 'Chicle', cursive;
  border-radius: 20px 20px 20px 20px;
  -moz-border-radius: 20px 20px 20px 20px;
  -webkit-border-radius: 20px 20px 20px 20px;
  border: 8px ridge #ffffff;
  -webkit-box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  -moz-box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  background-image: url(images/section1_bg.jpg);
  background-color: white;
  background-position: center;
  background-repeat: no-repeat;
}

/**Heading style background for sections**/

#section1>h1 {
  margin-top: 5%;
  margin-bottom: 0%;
  font-size: 4em;
  color: #ffde00;
  -webkit-text-stroke: 1px #b08736;
}
#section1>p {
  width: 20%;
  font-family: 'Paytone One', sans-serif;
  min-height: 450px;
  margin-left: 40%;
  font-size: 1.3em;
  color: #b08736;
  //-webkit-text-stroke: 1px #ffde00;
}

#arrow1 a span {
  position: absolute;
  width: 40px;
  height: 40px;
  margin-left: -23px;
  border: 1px solid #000;
  border-radius: 100%;
  box-sizing: border-box;
}
#arrow1 a span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: '';
  width: 16px;
  height: 16px;
  margin: -12px 0 0 -8px;
  border-left: 1px solid #000;
  border-bottom: 1px solid #000;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  box-sizing: border-box;
}

/**********************Play Game Section 2********************/
 #section2 {
  margin-top: 5%;
  width: 99%;
  min-height:800px;
  display: block;
  background-image: url(images/section2_bg.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  font-family: 'Chicle', cursive;
  border-radius: 20px 20px 20px 20px;
  -moz-border-radius: 20px 20px 20px 20px;
  -webkit-border-radius: 20px 20px 20px 20px;
  border: 8px ridge #ffffff;
  -webkit-box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  -moz-box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
  box-shadow: -1px 4px 52px -2px rgba(0,0,0,0.74);
}
#top:focus, #section1:focus,#section2:focus{
outline: none;
}

#arrow2 a span {
  position: absolute;
  width: 40px;
  height: 40px;
  margin-left: -23px;
  border: 1px solid #FFF;
  border-radius: 100%;
  box-sizing: border-box;
}

#arrow2 a span::after {
  position: absolute;
  top: 70%;
  left: 50%;
  content: '';
  width: 16px;
  height: 16px;
  margin: -12px 0 0 -8px;
  border-left: 1px solid #FFF;
  border-bottom: 1px solid #FFF;
  -webkit-transform: rotate(140deg);
  transform: rotate(140deg);
  box-sizing: border-box;
}

/**********************Game Section********************/
#level, #win{
  width:30%;
  min-height: 500px;
  margin: auto;
  margin-top: 5%;
  border: 1px solid yellow;
  border-radius: 5%;
  background: rgba(183,222,237,1);
  padding-bottom: 3%;
  background: -moz-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 15%, rgba(33,180,226,1) 69%, rgba(183,222,237,1) 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, rgba(183,222,237,1)), color-stop(15%, rgba(113,206,239,1)), color-stop(69%, rgba(33,180,226,1)), color-stop(100%, rgba(183,222,237,1)));
  background: -webkit-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 15%, rgba(33,180,226,1) 69%, rgba(183,222,237,1) 100%);
  background: -o-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 15%, rgba(33,180,226,1) 69%, rgba(183,222,237,1) 100%);
  background: -ms-linear-gradient(top, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 15%, rgba(33,180,226,1) 69%, rgba(183,222,237,1) 100%);
  background: linear-gradient(to bottom, rgba(183,222,237,1) 0%, rgba(113,206,239,1) 15%, rgba(33,180,226,1) 69%, rgba(183,222,237,1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b7deed', endColorstr='#b7deed', GradientType=0 );
}

#level>h1, container>h1, #win>h1{
  width: 100%;
  margin-top: 5%;
  margin-bottom: 10%;
  font-size: 3.5em;
  color: #ffde00;
  -webkit-text-stroke: 1px #b08736;
}
container>h1{
  margin: 0;
  margin-top: 5%;
}

.button {
  padding: 30px;
  width: 60%;
  transition: all 0.5s;
  margin:0 auto;
  background:url(images/button.png) no-repeat;
  background-size:contain;
  cursor:pointer;
}
#leftside>.button{
  padding: 15%;
  padding-top: 7%;
  margin-top: 5%;
}
.button:hover{
  transform: scale(1.1);
}
.button:active{
  transform: scale(1);
  background-position: 10px;

}
.button-text {
  text-transform: uppercase;
  font-size: 1.5em;
  font-family: 'Paytone One', sans-serif;
  text-shadow: 0.15vw 0.15vw rgba(0, 55, 214, 0.67);
  color: #ffde00;
}

#game{
  margin: auto;
  display: flex;
  justify-content: center;
  align-items:  center;
  display: none;
  float: left;
}

container{
  min-height: 500px;
  display:flex;
  align-items: flex-start;
  flex-wrap:wrap;
  flex-direction: row;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid yellow;
  border-radius: 25px;
  padding-left: 3%;
  perspective: 600px;
}


#leftside{
  width: 20%;
  display: block;
  min-height: 500px;
  background: rgba(61, 173, 84, 0.8);
  border: 1px solid yellow;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  margin-top: 3%;
  float: left;
}
#leftside>.button>.button-text,
#Instructions > a > span{
  font-size: 1.5em;
}
.squares{
  background-image: url(images/grid.png);
  background-position: center;
  background-repeat: no-repeat;
  width: 160px;
  height: 160px;
  display:flex;
  align-items: center;
  justify-content: center;
  /* transform-origin: center center 0px;
  transform: matrix(1, 0, 0, 1, 0, 0); */
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: center right;
  transition: transform 2s;
  backface-visibility: hidden;
}
.squares:hover{
  /* transform: rotate(25deg);
  transform: perspective(600px;) rotateY(0deg);
  transition: .5s linear 0s;
  transition-duration: 2s; */
}

.squares:active{
  transform: translateX(-50%) rotateY(-360deg);
}
.squares>img{
  width:90%;
  padding: 5px;
  border: solid 5px #fff;
  -moz-box-shadow: 1px 1px 5px #fff;
 -webkit-box-shadow: 1px 1px 5px #FFF;
  box-shadow: 1px 1px 5px #FFF;
}

#win{
  display: none;
}

#scoreContainer{
  width: 80%;
  margin: auto;
}

#score{
  background-color: rgba(0,155,227,1);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
  width: 100%;
  height: 110px;
  margin: 0 auto;
  font-family: 'Paytone One', sans-serif;
}
#score h1,
#time h1{
  font-size: 1.5em;
  font-weight: 100;
  color: white;
  line-height: 1.8em;
  margin: 0;
  font-family: 'Paytone One', sans-serif;

}

#time{
  background-color: rgba(0,155,227,0.5);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  width: 100%;
  height: 110px;
  margin: 0 auto;
}

.block {
  font-family: 'Paytone One', sans-serif;
  display: inline;
  background-color: white;
  padding: 1%;
  min-width: 15%;
  border: 2px solid black;
  border-radius: 15px;
  color: black;
  float: left;
  font-size: 1em;
  list-style: none;
  margin-left: 35%;
  text-align: center;
}

#section1 > a{
  text-decoration: none;
  color: black;
}
#section1 > h1{
  font-size: 3em;
  margin: auto;
  padding-top: 5%;
}
#win > h2{
  color: white;
  /* -webkit-text-stroke: 1px black; */
  font-family: 'Paytone One', sans-serif;
}

#challengeInstruction{
  font-size: 2em;
  padding: 0 5% 0 5%;
  color: darkblue;
  display: none;

}
/*********************Adding media query for mobile devices***********************/
@media only screen and (min-device-width : 650px) and (max-device-width : 1024px)
{
  #top{
   width: 99%;
   min-height: 400px;
 }
 #left
 {
   width: 25%;
   float: left;
   margin: 2em 0 0 3em;
 }
 #left > h1 {
     font-size: 4em;
 }
 #right {
   width: 60%;
   float: left;
   margin: 2em 0 0 3em;
 }
 #button {
     padding: 25px;
     padding-top: 5px;
 }
 #button-text {
     font-size: 1.5em;
 }
 #section1>p {
   font-size: 1em;
 }
 #section1 > h1 {
   font-size: 2em;
   padding-top: 8%;
 }
 .button {
   padding: 35px;
 }
 .button-text {
   font-size: 1em;
 }
 #level>h1, container>h1, #win>h1 {
   font-size: 2em;
 }
 #level, #win
 {
   width: 50%;
 }
 .squares {
   background-size: contain;
   background-repeat: no-repeat;
   width: 100px;
   height: 100px;
 }
 #section2 {
   min-height: 700px;
 }

 container{
   width: 50% !important;
   padding-left: 7%;
   margin-top: 5%;
 }
 #leftside{
   margin-left: 5% !important;
 }
 #Instructions > a > span, #playAgain1 > span{
   font-size: 1em;
 }
 #leftside>.button>.button-text, #Instructions > a > span {
   font-size: 1em!important;
}
#leftside>.button{
 padding: 35px;
 padding-top: 7%;
}
#score h1, #time h1 {
 font-size: 1em;
 }
#challengeInstruction {
 font-size: 1em;
}
#Instructions{
  top: 5%;
}
}

/*********************Adding media query for mobile devices***********************/
@media only screen and (min-device-width : 320px) and (max-device-width : 600px)
{
   #top{
    width: 99%;
    min-height: 400px;
  }
  #left
  {
    width: 25%;
    float: left;
    margin: 2em 0 0 3em;
  }
  #left > h1 {
      font-size: 4em;
  }
  #right {
    width: 60%;
    float: left;
    margin: 2em 0 0 3em;
  }
  #button {
      padding: 25px;
      padding-top: 5px;
  }
  #button-text {
      font-size: 1.5em;
  }
  #arrow,#arrow1,#arrow2, #top > a,#section1 > a, #section2 > a{
    display: none;
  }

  #section1>p {
    font-size: 1em;
  }
  #section1 > h1 {
    font-size: 2em;
    padding-top: 8%;
  }
  .button {
    padding: 35px;
  }
  .button-text {
    font-size: 1em;
  }
  #level>h1, container>h1, #win>h1 {
    font-size: 2em;
  }
  #level, #win
  {
    width: 50%;
  }
  .squares {
    background-size: contain;
    background-repeat: no-repeat;
    width: 100px;
    height: 100px;
  }
  #section2 {
    min-height: 700px;
  }

  container{
    width: 50% !important;
    padding-left: 7%;
    margin-top: 5%;
  }
  #leftside{
    margin-left: 5% !important;
  }
  #Instructions > a > span, #playAgain1 > span{
    font-size: 1em;
  }
  #leftside>.button>.button-text, #Instructions > a > span {
    font-size: 1em!important;
}
  #leftside>.button{
    padding: 35px;
    padding-top: 7%;
  }
  #score h1, #time h1 {
    font-size: 1em;
    }
  #challengeInstruction {
    font-size: 1em;
  }
}
