html {
  padding: 0;
  margin: 0;
}

body {
  padding: 0;
  margin: 0;
  background-color: #2E3E40;
  font-family: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3 {
  font-family: 'Quicksand', sans-serif;
}

.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;

}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom: 1;
  height: 100vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.clear {
  clear: both;
}

.main-container {
  visibility: hidden;
  height: 100vh;
}

#header {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 45px;
  left: 0;
  right: 0;
  border-radius: 20px;
  margin: auto;
  color: rgb(0, 0, 0);
  font-size: 20px;
  width: 35%;
  padding: 10px 0;
  margin-top: 30px;
}

#logo {
  float: left;
  margin-right: 20px;
  margin-left: 20px;
}

#home-container {
  width: 90%;
  margin: auto;
  text-align: center;
  color: white;
}

#home-container img {
  width: 100%;
  margin: auto;
}

#canvas-container {
  width: 35%;
}

#canvas-container canvas {
  width: 100%;
  height: 100%;
  border-radius: 15px;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 1);
}

#label {
  width: 60%;
  margin: auto;
  margin-top: -1%;
  position: relative;
}

#label-home {
  width: 80%;
  margin: auto;
  margin-top: -1%;
}

#label img,
#label-home img {
  width: 100%;
}

#ribbon-title {
  width: 7%;
  position: absolute;
  right: 0;
  top: 17%;
}

.modal-splash .tingle-modal-box {
  background-color: transparent;
  background-image: url('../imgs/modal-splash.png');
  background-size: 100%;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
}

.modal-splash .tingle-modal-box h1 {
  font-size: 3em;
  margin-top: 2%;
  margin-bottom: 1%;
}

.modal-splash .tingle-modal-box h2 {
  margin-top: 0;
  margin-bottom: 10%;
}

.modal-splash .tingle-modal-box .main-message {
  margin-bottom: 5%;
  font-weight: 900;
  font-size: 1em;
}

.modal-splash .tingle-modal-box .button-playgain {
  margin-right: 20%;
  margin-bottom: 20%;
  padding: 15px 40px;
  background: #111;
  color: white;
  text-align: center;
  float: right;
  border-radius: 5%;
  cursor: pointer;
}

.modal-splash .tingle-modal-box__footer {
  display: none;
}

.modal-rect {
  text-align: center;
}

.modal-rect .tingle-modal-box h1 {
  -webkit-text-stroke-width: 3px;
  -webkit-text-stroke-color: white;
  text-align: center;
  margin-top: -12%;
  font-size: 2.5em;
  color: #171791;
}

.modal-rect .tingle-modal-box h2 {
  text-align: center;
  color: #171791;
}

.modal-rect .scenario-block img {
  width: 50%;
}

.modal-rect .scenario-block {
  cursor: pointer;
}

@media only screen and (min-width: 1140px) {
  #home-container {
    width: 40%;
    margin: auto;
    margin-top: 5%;
  }

  #label {
    width: 40%;
    margin: auto;
    margin-top: -1%;
  }

  #label-home {
    width: 70%;
    margin-top: -8%;
  }

  .modal-splash .tingle-modal-box h1 {
    font-size: 3.5em;
    font-weight: 900;
  }

  .modal-splash .tingle-modal-box .main-message {
    font-size: 1.2em;
    margin-left: 35%;
  }

  .modal-rect .tingle-modal-box h1 {
    font-size: 4em;
  }

}

.popUp-button {
  display: inline-block;
  font-weight: bold;
  padding: 15px 25px;
  font-size: 24px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  outline: none;
  color: #fff;
  background-color: #1bd893;
  border: none;
  border-radius: 15px;
  box-shadow: 0 9px #575d60;
  margin-top: 20px;
  float: right;
}

.popUp-button:hover {
  background-color: #15c283
}

.popUp-button:active {
  background-color: #15c283;
  box-shadow: 0 5px #575d60;
  transform: translateY(4px);
}

.popUp-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: flex-start;
  height: 100%;
  width: 100%;
  padding: 3vw;
  gap: 2vw;
}

.popUp-visualblock {
  background-color: #efefef;
  position: relative;
  background-size: 100% auto;
  background-position: left top;
  border: 0px solid #ddd;
  border-radius: 20px;
  box-shadow: 0px 0px 10px #3B3D3E9C;
  overflow: hidden;
  width: 100%;
  max-width: 700px;
  max-height: 700px;
}

.popUp-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 16px;
  overflow: hidden;
  height: 41vw;
  width: 100%;
  max-height: 70vh;
}

.popUp-container-wrapper {
  padding: 20px;
  border: 1px solid #D9D9D9;
  border-radius: 20px;
  overflow-y: scroll;
  max-height: 70%;
  width: 100%;
}

.popUp-title {
  font-weight: 900;
  font-size: 2rem;
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  text-align: center;
  align-items: center;
  margin: 0;
  height: 120px;
  padding-left: 30px;
  width: 100%;
  background-color: #EBF2F4;
  color: #163B4A;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
}

.popUp-visualblock-frontimg {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
}

.popUp-visualblock-backimg {
  width: 100%;
}

.popUp-submit {
  cursor: pointer;
}

.popUp-option {
  width: auto;
  background-color: #163B4A;
  padding: 10px;
  border-radius: 20px 0 20px 20px;
  cursor: pointer;
  margin-top: 10px;
  color: white;
}

.popUp-visualblock-buttoncontainer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  float: right;
  width: 75%;
}

.popUp-visualblock-questioncontainer {
  font-weight: 900;
  width: 75%;
  float: right;
  background-color: #4a7b8f;
  color: white;
  border-radius: 20px 0 20px 20px;
  padding: 10px;
}

.popUp-visualblock-responsecontainer {
  width: 80%;
  float: left;
  background-color: #DAEAEF;
  border-radius: 0 20px 20px 20px;
  padding: 10px;
  margin-top: 10px;
}

.popUp-option-selected {
  font-weight: 600;
  background-color: #163B4A;
  color: white;
  border: 2px solid #1bd893;
  padding: 15px;
}

.tingle-modal-box__content {
  /* padding: 0 2rem 2rem 2rem; */
}

.tingle-modal-box {
  border-radius: 30px;
  position: relative;
  width: 90%;
  overflow: hidden;
}

.tingle-modal-time-over-box {
  background: transparent;
  height: 100%;
}

.tingle-modal-time-over-content {
  background: transparent;
  height: 100%;
}

.tingle-modal-time-over-box .popUp-title {
  background-color: transparent !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  align-self: center;
  width: 70%;
  font-weight: 900;
  font-size: 2rem;
  margin: 0;
  padding: 0;
  color: white;
  height: auto;
  border-bottom: 0px solid rgba(255, 255, 255, 0.8);
}

.tingle-modal-end-level-box {
  background: transparent;
  color: white;
  font-size: 2vw;
  font-weight: bold;
  font-family: "Quicksand", sans-serif;
}

.tingle-modal-end-level-box .popUp-button {
  float: none;
}

.tingle-modal-end-level-box .popUp-title {
  background-color: transparent !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  align-self: center;
  color: white;
  width: 90%;
  font-weight: 900;
  font-size: 2rem;
  margin: 0;
  padding: 0;
  height: auto;
  border-bottom: 0px solid rgba(255, 255, 255, 0.8);
}


/* ----> start level  */

.start-level-task-circle {
  width: 45%;
  position: absolute;
  left: -18vw;
  bottom: -18vw;
  z-index: -1;
}

.start-level-text-container {
  float: right;
  padding: 2% 4% 4% 4%;
  background: #828888;
  border-radius: 20px;
  width: 50%;
}

.start-level-popUp-visualblock {
  text-align: justify;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.tingle-modal-start-level-box {
  background: transparent;
  width: 100%;
  color: white;
  font-size: 24px;
  font-weight: bold;
  font-family: "Quicksand", sans-serif;
}

.tingle-modal-start-level-box .popUp-button {
  float: none;
}

.tingle-modal-start-level-box .popUp-title {
  background-color: transparent !important;
  display: flex;
  flex-direction: row;
  justify-content: center;
  position: relative;
  color: white;
  align-self: center;
  width: 30%;
  font-weight: 900;
  font-size: 2rem;
  margin: 0;
  padding: 0;
  height: auto;
  border-bottom: 0px solid rgba(255, 255, 255, 0.8);
  /* float: left; */
}

/* <---- start level  */



#lottie {
  background-color: transparent;
  /* border: solid 2px black; */
  width: 100%;
  /* height: 30vw; */
  /* display:none; */
  overflow: hidden;
  position: absolute;
  left: 0;
  bottom: 0%;
  opacity: 1;
}

.toolbar-content-container {
  color: #2E3E40;
  background: white;
  border-radius: 20px;
  position: absolute;
  left: -500px;
  top: 35%;
  width: 400px;
  padding: 20px;
  box-shadow: 5px 9px #575d60;
  font-weight: bold;
  font-family: "Quicksand", sans-serif;
  transition: left 1s ease;
}

.panel-open {
  transition: left 1s ease;
  left: 120px !important;
}

.panel-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: 800;
  margin: 10px;
  cursor: pointer;
  border-radius: 100%;
  outline: none;
  color: #fff;
  background-color: #1bd893;
  border: none;
  box-shadow: 0 4px #575d60;
}

.panel-close-btn:hover {
  background-color: #15c283
}


.panel-close-btn:active {
  background-color: #15c283;
  box-shadow: 0 2px #575d60;
  transform: translateY(2px);
}

#button-end-task {
  font-size: 18px;
  float: none;
  margin-bottom: 1vw;
}

#info-bar {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 400px;
  position: absolute;
  left: 0;
  top: 25%;
  width: 120px;
  z-index: 10;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
}

.toolbar-bt-outer-circle {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 65px;
  height: 65px;
  background: rgb(154, 250, 215);
  background: linear-gradient(158deg, rgba(154, 250, 215, 1) 0%, rgba(32, 41, 45, 1) 100%);
  border-radius: 100%;
}

.toolbar-bt-inner-circle {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background: rgb(77, 86, 88);
  background: linear-gradient(180deg, rgba(77, 86, 88, 1) 0%, rgba(106, 136, 143, 1) 100%);
  border-radius: 100%;
  cursor: pointer;
}

.invisible-btn {
  display: none;
}

#toolbar-bt-inner-circle-stats {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-start;
  align-items: center;
  gap: 2px;
  color: white;
}

#timer-container {
  text-align: center;
}

#timer {
  background: transparent;
  color: white;
  font-weight: 800;
  border: none;
  font-size: 100%;
}

.button-icon {
  cursor: pointer;
  display: flex;
  width: 40px;
}


/* ANIMATIONS */

@keyframes pulsate {
  50% {
    transform: scale(1.1);
  }
}

.anim-pulsate {
  animation: pulsate 0.75s ease-in infinite;
}

.alert-popUp-visualblock {
  text-align: center !important;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  height: 100%;
  gap: 20px;
}

.alert-time-icon {
  width: 40%;
}

#horray {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  background: transparent;
  pointer-events: none;
  z-index: 1000;
}

#points-gain {
  display: none;
  position: absolute;
  top: -18px;
  width: 100px;
  height: 100px;
}

.score-screen-highscore-text,
.score-screen-feedback-text {
  color: #83d832;
  font-size: 26px;
}

.score-screen-score-item {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: normal;
  color: black;
  background: #bbff8b;
  margin: 0 auto 0.5vw auto;
  width: 70%;
  padding: 10px;
  border-radius: 10px;
}



.victory-screen-congrats-text,
.victory-screen-feedback-text {
  color: rgb(104, 60, 237);
}

.tingle-modal-victory-screen-box {
  background: transparent;
}

.tingle-modal-victory-screen-box .popUp-title {
  background: transparent;
  color: rgb(104, 60, 237);
  text-align: center;
  justify-content: center;
  position: relative;
  margin-top: 100px;
}

.tingle-modal-victory-screen-box {
  color: rgb(0, 0, 0);
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0.5vw rgb(12, 67, 186);
  padding: 1vw;
  font-size: 1.5em;
  font-family: "Quicksand", sans-serif;
  font-weight: 900;
  width: 70%;
}

.victory-screen-congrats-text {
  color: rgb(255, 255, 255);
  background-color: rgb(104, 60, 237);
  border-radius: 0px 0px 20px 20px;
  box-shadow: 0 0.5vw rgb(12, 67, 186);
  position: absolute;
  top: 0;
  padding: 1vw;
  font-size: 1.5em;
  font-family: "Quicksand", sans-serif;
  font-weight: 900;
  width: 70%;
  margin: 0;
}

#doc {
  width: 100%;
}


@keyframes oscillate {
  50% {
    transform: translateX(10px);
  }
}

.anim-oscillate {
  animation: oscillate 1.2s ease-in infinite;
}

@keyframes oscillateY {
  50% {
    transform: translateY(10px);
  }
}

.anim-oscillate-y {
  animation: oscillateY 1.2s ease-in infinite;
}

@keyframes pulsate {
  50% {
    transform: scale(1.1);
  }
}

.anim-pulsate {
  animation: pulsate 0.75s ease-in infinite;
}

.tut-tooltip {
  border: 0.3vw solid white;
  padding: 1%;
  background: #1bd893;
  color: rgb(236, 236, 236);
  position: absolute;
  border-radius: 1vw;
  box-shadow: 0.3vw 0.3vw 1px rgba(0, 0, 0, 0.5);
  font-weight: bold;
  font-family: "Quicksand", sans-serif;
}

.tut-tooltip-arrow {
  color: rgb(232, 232, 232);
  font-weight: bold;
  font-family: "Quicksand", sans-serif;
  font-size: 50px;
}

.loading {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 16px solid #f3f3f3;
  /* Light grey */
  border-top: 16px solid #3498db;
  /* Blue */
  border-radius: 50%;
  width: 220px;
  height: 220px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@media only screen and (max-width: 1480px) {
  #canvas-container {
    width: 35%;
  }

  #header {
    width: 35%;
  }
}

@media only screen and (max-width: 1140px) {
  #canvas-container {
    width: 45%;
  }

  #header {
    width: 45%;
  }
}

@media only screen and (max-width: 1024px) {
  #canvas-container {
    width: 55%;
  }

  #header {
    width: 55%;
  }
}

@media only screen and (max-width: 768px) {

  #canvas-container {
    width: 70%;
  }

  #header {
    width: 70%;
  }

  .start-level-popUp-visualblock {
    flex-direction: column;
    justify-content: flex-start;
    gap: 20px;
  }

  .start-level-task-circle {
    width: 55%;
  }

  .start-level-text-container {
    width: 90%;
  }

  .tingle-modal-start-level-box .popUp-title {
    width: 85%;
  }

  #info-bar {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 81%;
    height: 103px;
    z-index: 10;
    padding: 1.5vw 0;
    border-radius: 0 0 15px 15px;
  }

  #toolbar-bt-outer-circle-clock {
    position: absolute;
    bottom: -80vh;
    right: 0;
  }

  #toolbar-bt-outer-circle-tasks {
    position: absolute;
    bottom: -80vh;
    left: 0;
  }

  .popUp-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    height: 100%;
    width: 100%;
  }

  .toolbar-content-container {
    color: #2E3E40;
    background: white;
    border-radius: 15px;
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    top: -40%;
    width: 70%;
    padding: 20px;
    font-weight: bold;
    font-family: "Quicksand", sans-serif;
    transition: top 1s ease;
  }

  .panel-open {
    transition: top 1s ease;
    top: 12% !important;
    left: 0 !important;
  }

  .tingle-modal-box {
    border-radius: 0px;
    width: 100%;
  }

  .popUp-visualblock {
    background-color: #efefef;
    width: 100%;
    margin: 0;
    margin-right: 0%;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    background-size: 100% auto;
    background-position: left top;
    border: 0px solid #ddd;
    overflow: visible;
    max-width: 100%;
    max-height: 100%;
  }

  .popUp-container {
    height: 100%;
    width: 100%;
    align-self: flex-start;
    margin: 0;
    background-color: white;
    border-radius: 20px 20px 0 0;
    min-height: 35vw;
    z-index: 100;
  }

  .popUp-wrapper {
    padding: 0;
    gap: 0;
  }

  .popUp-container-wrapper {
    padding: 0px 10px 0px 10px;
    border: none;
    border-radius: 0;
    overflow-y: scroll;
    max-height: 100%;
    width: 100%;
  }

  #popUp-container-curve {
    border-radius: 20px 20px 0 0;
    background-color: white;
    width: 100%;
    height: 20px;
    z-index: 10;
    position: absolute;
    bottom: 0;
  }

  .popUp-title {
    font-weight: 900;
    font-size: 1.4rem;
    position: absolute;
    z-index: 100;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px 80px;
    margin: 0;
    height: 80px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  }
}

@media only screen and (max-width: 480px) {
  #canvas-container {
    width: 100%;
  }

  #header {
    width: 90%;
  }

  #header p {
    font-size: 0.9rem;
  }

  #info-bar {
    width: 90%;
  }

  .toolbar-content-container {
    width: 90%;
  }

  #canvas-container canvas {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border-top: 1px dashed #303030;
    border-bottom: 1px dashed #303030;
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 1);
  }

}