/* https://stackoverflow.com/questions/7801709/css-layer-3-div-in-a-container-div-on-top-of-each-other */

body {
  font-family: Arial, Helvetica, sans-serif;
  background: url("../assets/images/CodeLandingPageBG.png") top center no-repeat;
  background-color: #eeeeee;
  margin: 0;
}

/* navigation header styles */
.nav_links {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 84px;
  background-color: #ffffff;
}

.ww_logo {
  height: 45px;
}

/* robot container and button styles */
#app_container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 84px;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: 26px;
  width: 300px;
  height: 44px;
  color: #ffffff;
  background-color: #f58327;
  border-radius: 30px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
}
.robot_container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 328px;
  height: 468px;
  margin-right: 30px;
  margin-bottom: 15px;
  text-align: center;
  border: 4px solid white;
  border-radius: 20px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.robot_container:hover {
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.55);
}
.robot_container:hover .button {
  background-color: #f5ac27;
}

#dashdot_anim {
  position: absolute;
  top: -16px;
  width: 328px;
  height: 468px;
}

#dash_container {
  background: url("../assets/images/dash_bg.jpg") bottom center no-repeat;
}

#cue_overlay_anim {
  width: 328px;
  height: 468px;
  position: absolute;
}

#cue_mask_anim {
  width: 328px;
  height: 468px;
  position: absolute;
  clip-path: inset(0px 0px 0px 0px round 10px);
}

#cue_logo_anim {
  width: 328px;
  height: 468px;
  position: absolute;
}

#cue_container {
  background: url("../assets/images/cue_bg.jpg") top center no-repeat;
}

#blockly_dash {
  position: absolute;
  transform: translate3d(-50px, 16px, 0px);
  -webkit-animation: blockly_dash 3s 0s infinite; /*duration, delay before start, play quantity*/
  animation: blockly_dash 3s 0s infinite;
}

@-webkit-keyframes blockly_dash {
  0% {
    transform: translate3d(-50px, 0px, 0px);
  }
  50% {
    transform: translate3d(-50px, 16px, 0px);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translate3d(-50px, 0px, 0px);
  }
}
@keyframes blockly_dash {
  0% {
    transform: translate3d(-50px, 0px, 0px);
  }
  50% {
    transform: translate3d(-50px, 16px, 0px);
    animation-timing-function: ease-in;
  }
  100% {
    transform: translate3d(-50px, 0px, 0px);
  }
}

#blockly_dot {
  position: absolute;
  transform: translate3d(-46px, 290px, 0px);
  -webkit-animation: blockly_dot 3s 0s 1;
  animation: blockly_dot 3s 0s 1;
}

@-webkit-keyframes blockly_dot {
  0% {
    transform: translate3d(-46px, 380px, 0px);
  }
  100% {
    transform: translate3d(-46px, 290px, 0px);
    animation-timing-function: ease-in;
  }
}
@keyframes blockly_dot {
  0% {
    transform: translate3d(-46px, 380px, 0px);
  }
  100% {
    transform: translate3d(-46px, 290px, 0px);
    animation-timing-function: ease-in;
  }
}

#blockly_blockpink {
  position: absolute;
  transform: translate3d(-150px, 26px, 0px);
  -webkit-animation: blockly_blockpink 2s 0s 1;
  animation: blockly_blockpink 2s 0s 1;
}

@-webkit-keyframes blockly_blockpink {
  0% {
    opacity: 0;
    transform: translate3d(-120px, 16px, 0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(-150px, 26px, 0px);
    animation-timing-function: ease-in;
  }
}
@keyframes blockly_blockpink {
  0% {
    opacity: 0;
    transform: translate3d(-120px, 16px, 0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(-150px, 26px, 0px);
    animation-timing-function: ease-in;
  }
}

#blockly_blockyellow {
  position: absolute;
  transform: translate3d(50px, 290px, 0px);
  -webkit-animation: blockly_blockyellow 2s 0s 1;
  animation: blockly_blockyellow 2s 0s 1;
}

@-webkit-keyframes blockly_blockyellow {
  0% {
    opacity: 0;
    transform: translate3d(70px, 300px, 0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(50px, 290px, 0px);
    animation-timing-function: ease-in;
  }
}
@keyframes blockly_blockyellow {
  0% {
    opacity: 0;
    transform: translate3d(70px, 300px, 0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(50px, 290px, 0px);
    animation-timing-function: ease-in;
  }
}

#blockly_blockorange {
  position: absolute;
  transform: translate3d(64px, 60px, 0px);
  -webkit-animation: blockly_blockorange 2s 0s 1;
  animation: blockly_blockorange 2s 0s 1;
}

@-webkit-keyframes blockly_blockorange {
  0% {
    opacity: 0;
    transform: translate3d(64px, 16px, 0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(64px, 60px, 0px);
    animation-timing-function: ease-in;
  }
}
@keyframes blockly_blockorange {
  0% {
    opacity: 0;
    transform: translate3d(64px, 16px, 0px);
  }
  100% {
    opacity: 1;
    transform: translate3d(64px, 60px, 0px);
    animation-timing-function: ease-in;
  }
}

#blockly_linestop {
  position: absolute;
  transform: translate3d(-160px, 180px, 0px);
  -webkit-animation: blockly_linesanim 2s 0s infinite;
  animation: blockly_linesanim 2s 0s infinite;
}

#blockly_linesbottom {
  position: absolute;
  transform: translate3d(16px, 340px, 0px);
  -webkit-animation: blockly_linesanim 2s 0.7s infinite;
  animation: blockly_linesanim 2s 0.7s infinite;
}

@-webkit-keyframes blockly_linesanim {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    animation-timing-function: ease-in;
  }
  100% {
    opacity: 0.5;
    animation-timing-function: ease-in;
  }
}
@keyframes blockly_linesanim {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    animation-timing-function: ease-in;
  }
  100% {
    opacity: 0.5;
    animation-timing-function: ease-in;
  }
}

#blockly_container,
#blockly_pro_container {
  display: none;
  border-radius: 20px; /* Adjust the value to change the roundness */
  overflow: hidden;   /* This is important to clip the animation inside the rounded container */
}

/* #blockly_container::before {
  content: "";
  background-image: url("../assets/images/blockly_splash_4x3\ 1.jpg");
  background-size: cover;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 20px;
} */

#blockly_container::after {
  content: "";
  background: linear-gradient(180deg, #00113e 0%, #002e59 100%);
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 20px;
  opacity: 0.2;
}

/* #blockly_pro_container::before {
  content: "";
  background-image: url("../assets/images/blockly_pro.jpg");
  background-size: cover;
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 20px;
} */

#blockly_pro_container::after {
  content: "";
  background: linear-gradient(
    154deg,
    rgba(37, 124, 255, 0) 0%,
    rgba(12, 56, 130, 0.56) 75.52%,
    rgba(0, 32, 95, 0.85) 100%
  );
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border-radius: 20px;
  opacity: 0.5;
}

.btn_large {
  border-radius: 66px;
  background: #e68940;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 45%;
  width: 300px;
  height: 70px;
  color: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
  z-index: 1;
  font-size: 35px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.3px;
}

.btn_large_square {
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    #ff8845 0%,
    rgba(255, 117, 39, 0.95) 74.38%,
    rgba(255, 216, 80, 0.88) 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 45%;
  width: 300px;
  height: 70px;
  color: #ffffff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.25);
  z-index: 1;
  font-size: 35px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.3px;
  -ms-transform: skewX(-20deg);
  -webkit-transform: skewX(-20deg);
  transform: skewX(-20deg);
}

#blockly_pro_text {
  -ms-transform: skewX(20deg);
  -webkit-transform: skewX(20deg);
  transform: skewX(20deg);
}

#blockly_container:hover .btn_large {
  animation: bounce-in 1s ease;
  animation-fill-mode: none;
}

#blockly_pro_container:hover .btn_large_square {
  -ms-transform: skewX(-20deg);
  -webkit-transform: skewX(-20deg);
  transform: skewX(-20deg);
  animation: skewed-bounce-in 1s ease;
  animation-fill-mode: none;
}

@keyframes bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes skewed-bounce-in {
  0% {
    opacity: 0;
    transform: scale(0.3) skewX(-20deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.05) skewX(-20deg);
  }
  70% {
    transform: scale(0.9) skewX(-20deg);
  }
  100% {
    transform: scale(1) skewX(-20deg);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
