/* Add your existing CSS styles below this line */
* {
  margin: 0;
  padding: 0;
}
#tog{
  font-family: Arial, Helvetica, sans-serif;
}
         
.btn-grad {
  background-image: linear-gradient(to right, #000000 0%, #0f9b0f  51%, #000000  100%);
  margin: 10px;
  padding: 15px 45px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s;
  background-size: 200% auto;
  color: white;            
  box-shadow: 0 0 20px #eee;
  border-radius: 10px;
  display: block;
}

.btn-grad:hover {
  background-position: right center; /* change the direction of the change here */
  color: #fff;
  text-decoration: none;
}


img {
  margin-top: 10%;
}
h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: rgb(8, 1, 75);
  color: orange;
  width:100%;

}

body {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cont {
  display: grid;
  width: 600px;
  grid-template-columns: repeat(10, 1fr);
  margin: 0px 0 0px 0;
  margin-top: 10%;
}

.cont div {
  width: 50px;
  height: 50px;
  border: 0.2px solid black;
}

#p1,
#p2 {
  width: 50px;
  height: 50px;
  border-radius: 100px;
  background-color: rgb(236, 82, 82);
  position: relative;
  border: 3px solid black;
}

#p1 {
  position: relative;
  top: 0px;
  transition: all linear 0.5s;
  left: -62px;
  z-index: 2;
}

#p2 {
  z-index: 2;
  position: relative;
  top: -55px;
  left: -62px;
  transition: all linear 0.5s;
  background-color: rgb(243, 181, 46);
}

img {
  position: relative;
  top: -615px;
  left: 8px;
  margin: 0;
  width: 615px;
  height: 615px;
}

#diceCont {
  display: grid;
  place-items: center;
  position: absolute;
  top: 200px;
  left: 120px;
  font-size: 2rem;
  z-index: 99;
}

#diceBtn {
  z-index: 99;
  padding: 5px;
  cursor: pointer;
  background-color: rgb(75, 140, 197);
  border-radius: 5px;
  width: 200px;
}

@media (max-width: 1250px) {
  #diceCont {
    display: flex;
    place-items: none;
    top: 92vh;
    left: 36vw;
    border: 2px solid red;
  }
  #diceBtn {
    width: 200px;
    margin-left: 20px;
  }
}

@media (max-width: 1250px) {
  #diceCont {
    display: flex;
    place-items: none;
    top: 99vh;
    left: 10vw;
  }
  #diceBtn {
    width: 200px;
    margin-left: 20px;
  }
}

#tipsOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 24px;
}

#disasterTip {
  max-width: 80%;
  padding: 20px;
  background-color: #333;
  border-radius: 10px;
}
