@import url("https://fonts.googleapis.com/css2?family=Micro+5&display=swap");

body {
  position: fixed;
  height: 100vh;
  width: 100vw;
  margin: 0;
  font-family: "Micro 5", sans-serif;
  font-weight: 400;
  font-style: normal;
  overflow: hidden;
}

main {
  width: 100%;
  display: inline-flex;
}

.delete-memorial {
  padding: 1rem 0rem;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 100%;
  overflow: hidden;
  gap: 0.7rem;
}

@media only screen and (max-width: 600px) {
  .delete-memorial {
    min-height: 80vh;
  }
}

.delete-memorial__title {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  width: 100%;
  color: black;
  font-size: 5em;
  text-align: center;
  margin: 0;
}

.delete-memorial__field {
  border-style: dashed;
  border-color: black;
  border-width: 0.3rem;
  max-width: 500px;
  position: relative;
}

p,
a {
  margin: 0.2rem 0;
  font-size: 1.7rem;
  text-align: center;
  color: black;
}

.delete-memorial__bulldozer {
  position: absolute;
  z-index: 2;
  top: calc(var(--top) - 1rem);
  left: calc(var(--left) - 1rem);
  width: 6rem;
  height: 6rem;
  pointer-events: none;
  font-size: 1.5rem;
}

.delete-memorial__bulldozer img {
  width: 3.5rem;
  height: 2rem;
  /* zrcadlově otočit */
  transform: scaleX(-1);
}

/* Buttons */

.delete-memorial__container-btn {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 80%;
  justify-content: center;
  margin: 0 auto;
}

@media only screen and (max-width: 600px) {
  .delete-memorial__container-btn {
    width: 100%;
    justify-content: center;
  }
}

.btn {
  font-family: "Micro 5", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  min-width: 100px;
  height: 70px;
  border: 0px;
  position: relative;
  background: #f5df4d;
  white-space: nowrap;
  margin: 0.5rem;
  padding: 1px 6px;
}

@media only screen and (max-width: 600px) {
  .btn {
    height: 2rem;
    min-width: 120px;
  }
}

.btn_disabled {
  background: #c0c4c8;
}

.btn_clickable {
  color: black;
}

.btn_clickable:hover {
  cursor: pointer;
  background-color: #d2c800;
}

.selected {
  background-color: #d2c800;
}

.btn_clickable:active {
  top: 5px;
}

.btn::after {
  content: "";
  background: black;
  position: absolute;
  left: -2.5%;
  top: 0;
  width: 105%;
  height: 100%;
  z-index: -1;
}

.btn_disabled::after {
  background: #939597;
}

.btn::before {
  content: "";
  background: black;
  position: absolute;
  left: 0;
  top: -5%;
  width: 100%;
  height: 113%;
  z-index: -1;
}

.btn_disabled::before {
  background: #939597;
}

#press-description {
  position: absolute;
  background-color: white;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  font-size: 1.4rem;
  padding: 0 0.5rem;
}

#end-description {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#end-link {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  text-decoration: underline;
  z-index: 1000;
  cursor: pointer;
}

/* Progress bar */
#progress-bar-container {
  height: 5px;
  z-index: 1000;
  background-color: white;
}

#progress-bar {
  width: 0;
  height: 100%;
  background-color: #939597;
  transition: width 0.2s;
}

#progress-bar__percentage {
  color: transparent;
}

/* Confetti animation */
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg); /* Start from above the viewport */
  }
  100% {
    transform: translateY(100vh) rotate(360deg); /* Fall to the bottom of the viewport */
  }
}

.confetti {
  position: fixed;
  top: -12px; /* Start slightly above the top border */
  width: 10px;
  height: 10px;
  z-index: 999;
  animation: confetti-fall linear infinite;
  animation-play-state: paused; /* Start paused */
}
