@import url("https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600;700;800;900&family=Rubik:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
  outline: none;
  user-select: none;
  padding: 0;
  margin: 0;
}

:active {
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overscroll-behavior-y: contain;
  background-image: url(../images/company-logo1.png);
  background-repeat: repeat;
  background-position: 10px 10px; /* Adjust the starting position */
  background-color: #eee;
  background-size: 200px;
  font-family: "Heebo", sans-serif;
  font-family: "Rubik", sans-serif;
  direction: rtl;
}

.disable-click {
  pointer-events: none !important;
}

.disabled {
  pointer-events: none;
  opacity: 0.2;
}

.cursor-pointer {
  cursor: pointer;
}
.cursor-grab {
  cursor: grabbing;
}

img {
  user-select: none;
}

main.main-container {
  width: 860px;
  height: 600px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: url(../images/background-1-small.png);
  background-size: cover;
  background-repeat: no-repeat;
  border: 5px solid #8b8bbe;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
}

main.main-container .header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  padding: 5px 20px 0;
}

main.main-container .header .title {
  color: #fff;
  font-weight: bold;
  font-size: 30px;
  position: relative;
  filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.5));
  -webkit-filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, 0.5));
}

main.main-container .header .title:before,
main.main-container .header .title:after {
  content: "";
  width: 45%;
  height: 5px;
  border-radius: 50px;
  -webkit-border-radius: 50px;
  -moz-border-radius: 50px;
  -ms-border-radius: 50px;
  -o-border-radius: 50px;
  position: absolute;
  right: 0;
  opacity: 0.7;
}
main.main-container .header .title:before {
  bottom: -5px;
  background-color: #9c27b0;
}
main.main-container .header .title:after {
  width: 35%;
  bottom: -13px;
  background-color: #ff8d00;
}

main.main-container .header .left {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5px;
}
main.main-container .header .audio-controls .icon,
main.main-container .header .instructions-icon {
  width: 40px;
  height: 40px;
  background-size: cover;
  background-repeat: no-repeat;
  display: inline-block;
  cursor: pointer;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}

main.main-container .header .audio-controls .icon.mute-icon {
  background-image: url(../images/mute-icon.png);
}
main.main-container .header .audio-controls .icon.unmute-icon {
  background-image: url(../images/unmute-icon.png);
}
main.main-container .header .instructions-icon {
  background-image: url(../images/instructions-icon.png);
}

main.main-container .header .left span:hover {
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

main.main-container .header .audio-controls .icon:not(.active) {
  display: none;
}

.modal {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: none;
}

.modal[data-name="instructions"] {
  display: flex;
}

.modal .inner {
  max-width: 50%;
  padding: 20px;
  position: relative;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  background-color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.modal .inner * {
  position: relative;
  z-index: 1;
}

.modal .inner:before,
.modal .inner:after {
  content: "";
  background-color: rgba(0, 0, 0, 0.05);
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
}
.modal .inner:before {
  width: 150px;
  height: 150px;
  top: -80px;
  right: -60px;
}
.modal .inner:after {
  width: 300px;
  height: 300px;
  bottom: -200px;
  left: -150px;
}

.modal .inner .title {
  font-size: 35px;
  color: #fff;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  margin-bottom: 20px;
}

.modal .inner .title[data-color="green"] {
  color: #8bc34a;
}
.modal .inner .title[data-color="dark-blue"] {
  color: #3f51b5;
}
.modal .inner .title[data-color="blue"] {
  color: #2196f3;
}
.modal .inner .title[data-color="purple"] {
  color: #9c27b0;
}
.modal .inner .title[data-color="pink"] {
  color: #e91e63;
}
.modal .inner .title[data-color="orange"] {
  color: #ff9800;
}

.modal .inner p.para {
  font-size: 22px;
  font-weight: 600;
  color: #ff8d00;
}

button.main-btn {
  all: unset;
  background-color: #a2d17f;
  border: 3px solid #37b74f;
  font-size: 22px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  -webkit-border-radius: 20px;
  -moz-border-radius: 20px;
  -ms-border-radius: 20px;
  -o-border-radius: 20px;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.modal .inner button.main-btn {
  margin-top: 20px;
}

button.main-btn:before {
  content: "";
  width: 200%;
  height: 50px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  background-color: #60bc46;
  position: absolute;
  z-index: -1;
  bottom: -35%;
  right: 0;
  pointer-events: none;
}

button.main-btn:hover {
  color: yellow;
}

button.main-btn:active {
  transform: scale(0.95);
  -webkit-transform: scale(0.95);
  -moz-transform: scale(0.95);
  -ms-transform: scale(0.95);
  -o-transform: scale(0.95);
}

main.main-container .footer {
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-direction: row-reverse;
  padding: 0 20px 20px;
}

main.main-container .footer .footer-logo {
  width: 150px;
  filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.2));
  -webkit-filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

main.main-container .footer .levels-counter {
  width: 80px;
  position: relative;
  direction: ltr;
  z-index: 0;
  font-weight: bold;
  color: #2196f3;
  font-size: 20px;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
  -webkit-filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.1));
  opacity: 0;
  text-align: center;
}
main.main-container .footer .levels-counter:before,
main.main-container .footer .levels-counter:after {
  content: "";
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  background-color: #fff;
  position: absolute;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
}

main.main-container .footer .levels-counter.show {
  opacity: 1;
}

main.main-container .footer .levels-counter:before {
  width: 60px;
  height: 45px;
  left: 20px;
}
main.main-container .footer .levels-counter:after {
  width: 40px;
  height: 40px;
  left: 0px;
}

.arrows-levels {
  display: none;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  z-index: 10;
  gap: 30px;
}

.arrows-levels .arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  background-color: #fcb632;
  cursor: pointer;
  background-size: cover;
  background-repeat: no-repeat;
}

.arrows-levels .arrow.increase {
  background-image: url(../images/arrow-right.png);
}
.arrows-levels .arrow.decrease {
  background-image: url(../images/arrow-left.png);
}

.arrows-levels .arrow:hover {
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.arrows-levels .arrow:active {
  transform: scale(0.9);
  -webkit-transform: scale(0.9);
  -moz-transform: scale(0.9);
  -ms-transform: scale(0.9);
  -o-transform: scale(0.9);
}

.hide {
  opacity: 0 !important;
  pointer-events: none !important;
}

#canvas-winning {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 2;
}
/************************/

#canvasGame {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0px;
  top: 0px;
  z-index: 1;
}
