html {
  height: 100%;
  overflow: hidden;

}

body {
  background-image: url("pankkutyahonlaphatter.png");
  background-color: #39066e;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  text-align: center;
  color: white;
}

a {
  text-decoration: none;
  color: white;
  font-size: 3.5rem;
  text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);
}

#pank {
  width: 277px;
  height: 241px;
}


.counter {
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 6rem;
  box-sizing: border-box;
}

.countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 4rem);
  text-shadow: 8px 8px 8px rgba(0, 0, 0, 0.3);
  /*margin-top: 100px;*/
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5rem;
  display: block;
}

.unit span:first-child {
  font-size: clamp(6rem, 9vw, 6rem);
  font-weight: 700;
  line-height: 1;
}

.unit-label {
  margin-top: 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: #dbaeff;
}

#d_pank {
  margin: auto;
  width: fit-content;
}

.bold {
  font-family: "korolev", sans-serif;
  font-weight: 700;
  font-style: normal;
}

#d_date {
  text-align: center;
  color: white;
  line-height: 0.1rem;
}

#year {
  font-size: 1.25rem;
}

#month {
  font-size: 2.5rem;
}

#day {
  font-size: 2.1875rem;
}

#place {
  font-size: 1.5625rem;
}

footer {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 1;
}

.powered {
  position: absolute;
  right: 3rem;
  bottom: 2rem;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  z-index: 1;
  text-transform: uppercase;
}

.content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}

.footer-section {
  display: flex;
}

.dog {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4));
}

.dog-black_punk {
  left: 7vw;
  top: 20vh;
  width: min(162px, 18vw);
}

.dog-brown {
  right: 8vw;
  top: 14vh;
  width: min(20vw, 240px);
}

.dog-black {
  left: 8vw;
  bottom: 10vh;
  width: min(20vw, 230px);
}

.dog-brown_punk {
  right: 8vw;
  bottom: 8vh;
  width: min(138px, 15vw);
}

@media (max-width: 500px) {
  .bg.desktop {
    display: none;
  }

  .bg.mobile {
    display: block;
  }

  .counter {
    padding: 3rem 1.5rem 6rem;
  }

  .logo {
    width: min(60vw, 240px);
  }

  .countdown {
    gap: 1.25rem;
  }

  .unit {
    min-width: auto;
  }

  .unit span:first-child {
    font-size: clamp(5rem, 14vw, 3.8rem);
  }

  .unit-label {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
  }

  .dog-black_punk {
    left: 6%;
    top: 30%;
    width: 20vw;
  }

  .dog-brown {
    right: 5%;
    top: 22%;
    width: 32vw;
  }

  .dog-black {
    left: 4%;
    bottom: 14%;
    width: 38vw;
  }

  .dog-brown_punk {
    right: 4%;
    bottom: 8%;
    width: 25vw;
  }

  .powered {
    width: 55px !important;
    height: 29, 375px !important;
  }
}

@media (max-height: 750px) {

  .dog-black {
    display: none;
  }

  .dog-brown_punk {
    display: none;
  }
}