@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap");

body {
  font-family: "Roboto", sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: linear-gradient(120deg, #d17575, #da6161);
  color: white;
}
.main-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: row;
}
.mine-div {
  width: 200px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
}

.mine-button {
  width: 150px;
  height: auto;
  cursor: pointer;
  animation: spin 4s linear infinite;
}

.mine-button:active {
  width: 100px;
  height: auto;
}

@keyframes spin {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(360deg);
  }
}

.balance {
  margin: 4em 0 0.2em 0;
  font-size: 35px;
}

.balancetext {
  font-size: 20px;
  margin-bottom: 2em;
}

.header {
  width: 146vh;
  height: 4vh;
  padding-top: 0.8em;
  text-align: center;
  background-color: #303030;
}
.text {
  animation: newsText 2s;
}
@keyframes newsText {
  from {
    opacity: 0;
  }
  to {
    opacity: 100;
  }
}

.dogecoin {
  width: 100px;
  height: auto;
  z-index: -1000;
  animation: fall 3s linear infinite;
}

@keyframes fall {
  from {
    transform: translate(-500px, -700px);
  }
  to {
    transform: translate(-500px, 500px);
  }
}

.column {
  background-color: #303030;
  color: white;
  width: 250px;
  height: 100vh;
}
.column-header {
  font-size: 25px;
  text-align: center;
  margin: 1em 0 1em 0;
}

.items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.doge-miner {
  background-image: url("../img/dogeminer.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 120px;
  height: 120px;
  border-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doge-escavator {
  background-image: url("../img/dogeescavator.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 120px;
  height: 120px;
  border-color: white;
  cursor: pointer;
}

.doge-factory {
  background-image: url("../img/dogefactory.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 120px;
  height: 120px;
  border-color: white;
  cursor: pointer;
}

.doge-scientist {
  background-image: url("../img/dogescientist.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 120px;
  height: 120px;
  border-color: white;
  cursor: pointer;
}

.productdescription {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  padding: 10px 5px;
  border-radius: 6px;
  position: absolute;
  z-index: 1;
}

.price {
  font-size: 14px;
  margin: 0em 1em 0.5em 0;
  flex: 1;
}

.quantity {
  margin-left: 8em;
  margin-top: 2em;
  font-size: 18px;
}

.doge-miner:hover .productdescription,
.doge-escavator:hover .productdescription,
.doge-factory:hover .productdescription,
.doge-scientist:hover .productdescription,
.upgrade1:hover .productdescription,
.upgrade2:hover .productdescription,
.upgrade3:hover .productdescription,
.upgrade4:hover .productdescription,
.upgrade5:hover .productdescription {
  visibility: visible;
}

.workers {
  display: flex;
  width: 100vh;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.dogeminer {
  animation: mine 0.4s linear infinite;
}

.dogeescavator {
  animation: dig 30s linear infinite;
}

.dogefactory {
  animation: factory 0.1s linear infinite;
}

.dogescientist {
  animation: science 2s linear infinite;
}

@keyframes mine {
  from {
    transform: rotate(40deg);
  }
  to {
    transform: rotate(-20deg);
  }
}

@keyframes dig {
  0% {
    transform: translate(0px) 0px;
  }
  50% {
    transform: translate(100px, 0px);
  }
  100% {
    transform: translate(0px, 0px);
  }
}

@keyframes factory {
  from {
    transform: rotate(1deg);
  }
  to {
    transform: rotate(-1deg);
  }
}

.dogepersecond {
  margin: 1em 0 0 1em;
  color: #90ee90;
}

.totalspent {
  margin: 1em 0 0 1em;
  color: #ff7f7f;
}

.upgrade-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.upgrade1 {
  background-image: url("../img/upgrade1.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 30px;
  height: 30px;
  border-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade2 {
  background-image: url("../img/upgrade2.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 30px;
  height: 30px;
  border-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade3 {
  background-image: url("../img/upgrade3.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 30px;
  height: 30px;
  border-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade4 {
  background-image: url("../img/upgrade4.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 30px;
  height: 30px;
  border-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgrade5 {
  background-image: url("../img/upgrade5.png");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  margin-top: 1em;
  width: 30px;
  height: 30px;
  border-color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upgradeprice {
  font-size: 14px;
  margin: 1.5em 1em 0.5em 0;
  flex: 1;
}

.dogecoinfall {
  width: 20px;
  height: auto;
  position: absolute;
  z-index: -22;
  animation: fall 15s;
}

@keyframes fall {
  100% {
    transform: translateY(310px);
  }
}
