.section-game {
  cursor: url('/game/fire-extinguisher.png'), auto; /* Custom cursor for the objects */
}

.section-game .game-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

  .section-game .section-game-container {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

    .section-game .section-game-container .container-fluid {
      padding-top: 50px;
    }

.section-game .object {
  width: 140px;
  height: 140px;
  border: 1px solid var(--cnvs-gamecolor);
  border-radius: 40px;
  position: relative;
  cursor: url('/game/fire-extinguisher.png'), auto; /* Custom cursor for the objects */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  /*background-color: #111;*/ /* Default object color */
  overflow: hidden;
  transition: background-color 0.3s ease-in-out; /* Transition for color change */
  color: var(--cnvs-gamecolor);
}

.game-color,
.section-game .button-gaming .button-span-text {
  color: var(--cnvs-gamecolor);
}


/* Fire animation */
@keyframes flicker {
  0% {
    box-shadow: 0 0 8px 3px rgba(255, 69, 0, 0.8), 0 0 20px 5px rgba(255, 0, 0, 0.6);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 12px 4px rgba(255, 165, 0, 0.8), 0 0 25px 8px rgba(255, 140, 0, 0.6);
    transform: scale(1.05);
  }

  100% {
    box-shadow: 0 0 10px 3px rgba(255, 69, 0, 0.8), 0 0 30px 7px rgba(255, 0, 0, 0.6);
    transform: scale(1);
  }
}

.section-game .fire {
  animation: flicker 0.4s infinite alternate;
  background-color: red; /* Glow red when on fire */
  background-image: url("/game/fire.gif");
  background-size: contain;
}

  .section-game .fire i {
    /*color: #fff;*/
  }

  .section-game .fire .label {
    /*background: red;*/
    /*color: #fff;*/
  }

.section-game .game-container i {
  padding-bottom: 20px;
}

.section-game .label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255,255,255,0);
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  padding-top: 10px;
  padding-bottom: 20px;
}

.section-game #score, .section-game #timer {
  font-size: 1.5em;
  margin-top: 15px;
  display: inline-block;
  padding: 0 20px;
}

.section-game #game-over {
  font-size: 2em;
  background: red;
  display: none;
  padding: 10px 20px;
  width: fit-content;
  margin: 30px auto 0;
}

/* Modal Styles */
.section-game #play-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: default;
}

  .section-game #play-modal .container {
    padding-top: 490px;
  }

.section-game #how-to-play-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: default;
  margin-top: 100px;
}

.section-game #modal-content {
  background-color: #111;
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
  color: var(--cnvs-gamecolor);
  box-shadow: rgba(100, 100, 100, 0.7) 0px 10px 40px 0px;
}

  .section-game #modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--cnvs-gamecolor);
  }

  .section-game #modal-content p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
  }

/*.section-game #close-modal, #play-game {
  padding: 10px 20px;
  background-color: red;
  color: white;
  border: 4px solid red;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2em;
}

  #.section-game close-modal:hover {
    border-color: #000;
    color: #000;
  }*/


@media (max-width: 1199px) {
  .section-game .section-game-container {
    position: relative;
    padding-bottom: 300px;
    background-color: #21211e;
    background-image: url('/game/background-mobile.jpg');
    background-repeat: repeat-y;
    background-size: contain;
  }
}

@media (max-width:1850px) {
  .section-game .object {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    font-size: 20px;
  }

  .section-game .label {
    font-size: 11px;
    padding-bottom: 15px;
  }

  .section-game .section-game-container .container-fluid {
    padding-top: 30px;
  }

  .section-game #play-modal .container {
    padding-top: 250px;
  }
}

@media (min-width:1200px) and (max-width:1850px) {
  .section-game #play-modal h4 {
    font-size: 17px;
  }
  .section-game #play-game {
    transform: scale(0.6);
  }

  .section-game #play-modal .container {
    padding-top: 340px;
  }
}
