/* -------------------------------------------------------- */
body {
  padding: 1% 0%;
  background-color: rgb(170, 187, 204, 0.05);
  color: rgb(52, 58, 64);
  overflow: hidden;
}
#outer_container {
  background-color: #ffffff;
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  max-width: 1280px;
  position: relative;
}

/* -------------- Header ------------------------------------------ */
/*
header {
	border-bottom: 1px solid #ddd;
}
*/
#controls a {
  display: inline-block;
}
#controls a i {
  color: rgb(52, 58, 64);
}

/* -------------- Main ------------------------------------------ */
#main {
  max-width: 1280px;
}
#canvas_container {
  height: auto;
  padding: 2% 4%;
}
#inner_container {
  /* height: 55%; */
  overflow-y: auto;
}
#inner_container img {
  box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  max-width: 100%;
  /* height: auto; */
  margin: 20px 0px;
}
ol li {
  margin: 10px;
}

/* -------------------------------------------------------- */
.btn-move-down:active {
  transform: translateY(4px);
  transition: 0.3s;
}
.text-just {
  text-align: justify;
}

/* -------------- Scroll Bars ------------------------------------------ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #f5f5f5;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: rgb(109, 117, 125, 0.7);
}
::-webkit-scrollbar-thumb:hover {
  background-color: rgb(109, 117, 125, 0.8);
}
::-webkit-scrollbar-thumb:active {
  background-color: rgb(109, 117, 125);
}

/*
* {
	font-size: calc(0.7vmin + 0.04rem);
}
*/

.top-div .box {
  background-color: yellow;
}

.mid-div .box:nth-child(1) {
  background-color: rgb(0, 215, 0);
}

.mid-div .box:nth-child(2) {
  background-color: lightblue;
}

.mid-div .box:nth-child(3) {
  background-color: gainsboro;
}

.top-div .box b {
  font-size: 1.2rem !important;
}
.top-div::after {
  content: "";
  position: absolute;
  top: 3svw;
  height: 6svw;
  width: 2px;
  background-color: rgb(125, 125, 125);
  z-index: -5;
}

.top-div::before {
  content: "";
  position: absolute;
  top: 6svw;
  left: 20%;
  height: 1px;
  width: 60%;
  background-color: rgb(125, 125, 125);
  z-index: -5;
}

.mid-div .box:nth-child(1)::after {
  content: "";
  position: absolute;
  bottom: 3svw;
  left: 20%;
  height: 3svw;
  width: 1.5px;
  background-color: rgb(125, 125, 125);
  z-index: -5;
}

.mid-div .box:nth-child(3)::after {
  content: "";
  position: absolute;
  bottom: 3svw;
  left: 80%;
  height: 3svw;
  width: 1.5px;
  background-color: rgb(125, 125, 125);
  z-index: -5;
}

.bottom-div {
  height: 50%;
}

.line {
  position: relative;
  z-index: 2;
  padding: 1svw;
  width: 100%;
}

.line,
.box {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.box {
  justify-content: center;
  width: 12svw;
  height: 4svw;
  background-color: white;
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.bottom-div div {
  height: 100%;
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: 0.0001px !important;
}

.bottom-div img {
  width: 30% !important;
}

.bottom-div div:nth-child(1) {
  border-right: 1px solid rgba(0, 0, 0, 0.5);
}

.bottom-div div:nth-child(3) {
  border-left: 1px solid rgba(0, 0, 0, 0.5);
}

.objects {
  display: flex;
  justify-content: center;
}

img {
  box-shadow: none !important;
  z-index: 10;
  width: 50%;
  /* position: relative; */
  left: 35%;
}

.disabled {
  display: none;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

body {
  background-color: #f9fafb;
}

#message {
  position: absolute;
  top: 50%;
  width: 100%;
  left: 0;
  text-align: center;
  color: green;
  transform: scale(0);
  transition: 1s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

#confettis {
  overflow: hidden;
  position: absolute;
  height: 70%;
  width: 95%;
  z-index: -1;
}

.confetti {
  left: 50%;
  width: 16px;
  height: 16px;
  position: absolute;
  transform-origin: left top;
  animation: confetti 5s ease-in-out -2s infinite;
  display: none;
}

.confetti:nth-child(1) {
  left: 10%;
  animation-delay: 0;
  background-color: #fc0120;
}

.confetti:nth-child(2) {
  left: 20%;
  animation-delay: -5s;
  background-color: #8257e6;
}

.confetti:nth-child(3) {
  left: 30%;
  animation-delay: -3s;
  background-color: #ffbf4d;
}

.confetti:nth-child(4) {
  left: 40%;
  animation-delay: -2.5s;
  background-color: #fe5d7a;
}

.confetti:nth-child(5) {
  left: 50%;
  animation-delay: -4s;
  background-color: #45ec9c;
}

.confetti:nth-child(6) {
  left: 60%;
  animation-delay: -6s;
  background-color: #f6e327;
}

.confetti:nth-child(7) {
  left: 70%;
  animation-delay: -1.5s;
  background-color: #f769ce;
}

.confetti:nth-child(8) {
  left: 80%;
  animation-delay: -2s;
  background-color: #007de7;
}

.confetti:nth-child(9) {
  left: 90%;
  animation-delay: -3.5s;
  background-color: #63b4fc;
}

.confetti:nth-child(10) {
  left: 100%;
  animation-delay: -2.5s;
  background-color: #f9c4ea;
}

@keyframes confetti {
  0% {
    transform: rotateZ(15deg) rotateY(0deg) translate(0, 0);
  }
  25% {
    transform: rotateZ(5deg) rotateY(360deg) translate(-5vw, 20vh);
  }
  50% {
    transform: rotateZ(15deg) rotateY(720deg) translate(5vw, 60vh);
  }
  75% {
    transform: rotateZ(5deg) rotateY(1080deg) translate(-10vw, 80vh);
  }
  100% {
    transform: rotateZ(15deg) rotateY(1440deg) translate(10vw, 110vh);
  }
}

@media (max-width: 800px) {
  .objects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr); /* Adjust gap as needed */
  }

  .objects img {
    width: 70%;
    position: relative;
    left: 15%;
  }

  .bottom-div {
    height: 40%;
  }
  .bottom-div img {
    width: 40% !important;
  }

  .box {
    width: 18svw;
    height: 6svw;
  }

  .mid-div .box:nth-child(1)::after {
    bottom: 3svw;
    height: 3svw;
    width: 1px;
    top: -25%;
  }

  .mid-div .box:nth-child(3)::after {
    height: 3svw;
    width: 1px;
    top: -25%;
  }
}
