.rotating {
  display: grid;
  overflow: hidden;
}

.rotating > * {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  translate: 0 100%;
  transition:
    opacity .4s ease,
    translate .4s ease;
  font-weight: normal;
}

.rotating > .active {
  opacity: 1;
  translate: 0;
}
h1 strong {
  opacity: 0;
}

h1 strong.visible {
  opacity: 1;
  transition: opacity .4s ease;
}
header h1 {
    font-family: "Noto Sans", sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.8rem);
}
header h1 strong {
    font-size: 1.2em;
    font-weight: normal;
    padding-top: 1em;
    padding-left: min(4em, 10%);
    display: block;
}
header {
    padding-top: 2em;
    padding-bottom: 2em;
    padding-left: clamp(0.5em, 100% - 70em, 3em);
}
html {
    font-family: "Libertinus Serif Display", serif;
    font-size: 1.4em;
}
body {
    width: min(50em, 96%);
    margin: 0;
}
html {
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom , #eeec87 0%, #eeec87 60%, #bb7);
    min-height: 100%;
    color: #222;
}
footer {
    margin-top: 3em;
}
a {
    color: #8e8c27;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}


.countdown {
  width: 10%;
  height: 2px;
  background: #eee;
  overflow: hidden;
  opacity: 0.6;
  display: block;
  margin-top: 1em;
  margin-left: auto;
  margin-right: auto;
}

.countdown-bar {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: #aeac47;
  transform-origin: left;
  animation: countdown var(--itemTime, 10s) linear infinite;
}

@keyframes countdown {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.freshItem {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  font-size: 28px;
  line-height: 32px;
  color: #aeac47;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.3em;
  display: block;
}

.freshItem:hover {
  color: #8e8c27;
}
