.trainmain-dv {
    border-top: 1px solid  #c1c1c1;
    border-bottom: 1px solid  #c1c1c1;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 5.75rem;
  align-items: center;
  width: 100%;
  max-width: 35rem;
  aspect-ratio: 35 / 16.9; /* Maintain the 35:16.9 ratio */
  position: relative;
  background-image: linear-gradient(rgb(0, 187, 255), rgb(255, 255, 255));
  overflow: hidden;
}
.grey-dv { 
  position: absolute;
  height: 50%; 
  background-color: rgba(156, 107, 0, 0.633);
  width: 100%;
  border-top: 1px solid gray;
}
.game-elemnts-dv {
  position: relative;
  bottom: 50%;
  width: 100%;
}
.objects-railway-dv {
  position: relative; /* Establishes a new positioning context */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.train-dv {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: end;
  justify-content: center;  
  height: 100%;
  width: 100%;
}
.objects-dv {
  position: absolute;
  margin-right: 5%;
  display: flex;
  flex-direction: row;
  height: 100%;
  width: 100%;
}
.object {
  position: absolute;
  aspect-ratio: 1 / 2;
  width: 4%;
  background-color: red;
  bottom:0;
}
#object1 {
  left: 5%
}
#object2 {
  left: 35%
}
#object3 {
  left: 65%
}
.train-station {
  position: absolute;
  left: -5%;
  bottom: -5%;
  z-index: 2;
  width: 10%;
  height: auto;
}
#train-container {
  position: relative;
  z-index: 1;
  bottom: -15%;
  left: -5%;
  width: 20%;
}
.train-img {
  width: 30%;
  height: auto;
}
#explosion {
  margin-top: 5%;
  z-index: 999;
  width: 5%;
  aspect-ratio: 1;
}
#island {
  position: absolute;
  right: -5%;
  bottom: 0;
  z-index: 2;
  width: 15%;
  height: auto;
}
.containerlabel input {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
}
.containerlabel {
  display: block;
  position: relative;
  font-size: 1rem;
  user-select: none;
}
.checkmark {
  position: relative;
  top: 0;
  left: 0;
  height: 1.3em;
  width: 1.3em;
  background-color: #ccc;
  transition: all 0.3s;
  border-radius: 5px;
}
.containerlabel input:checked ~ .checkmark {
  background-color: #47da99;
  animation: pop 0.5s;
  animation-direction: alternate;
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.containerlabel input:checked ~ .checkmark:after {
  display: block;
}
.containerlabel .checkmark:after {
  left: 0.45em;
  top: 0.25em;
  width: 0.25em;
  height: 0.5em;
  border: solid white;
  border-width: 0 0.15em 0.15em 0;
  transform: rotate(45deg);
}
@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}
#traincntr {
  width: 2rem;
}
.train-counter-dv {
  display: flex;
  flex-direction: row;
  position: absolute;
  right: 5%;
  bottom: 10%;
  background-color: wheat;
  padding: 2% 4%;
  border-radius: 15%;
  justify-content: center;
  align-items: center;
  gap: 2%;
}
.arrow2-dv {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-direction: row;
  width: 30%;
  height: 20%;
  border: 1px solid gray;
  background-color: #ffffff;
  cursor: pointer;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 2%;
  z-index: 100;
}
.arrow2-dv:hover {
  opacity: 0.8;
}
.arrow2 {
  z-index: 2;
  width: 30%;
  border-radius: 15%;
  pointer-events: none;
}
.arrow2-dv:active {
  cursor: grab;
}
#arrow2-dv, #arrow2 {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.loading-indicator {
  z-index: 1;
  height: 100%;
  width: 0%;
  background-color: #00ff00;
  position: absolute;
  left: 0;
  top: 0;
}
.train-icon {
 width: 20%;
height: auto;
  z-index: 99;
}
