:root {
  --bg: #1a1a1a;
  --primary: #b0a18b;
  --accent: #43666d;
  --text: #c5c5c5;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

header {
  flex: 0 0 10vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hubix-logo {
  height: 18vh;
  max-height: 120px;
  width: auto;
  margin-top:5vh
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  max-width: 800px;
}

.hubix-title {
  font-size: clamp(2rem, 6vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 -1px 0 rgba(0, 0, 0, 0.35);
}

.hubix-subtitle {
  color: var(--primary);
  font-style: italic;
  font-size: 1.2rem;
}

.hubix-description {
  max-width: 700px;
  font-weight: 300;
  line-height: 1.6;
}

#flipdown {
  margin: 2rem auto 1rem;
}

.hubix-countdown-label {
  color: var(--accent);
  font-style: italic;
}

footer {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (max-width: 600px) {
  .hubix-title {
    font-size: 2.2rem;
  }

  .hubix-description {
    font-size: 0.95rem;
    padding: 0 1rem;
  }

  .hubix-logo {
    height: 20vh;
    margin-top:5vh
  }
}

.flipdown.flipdown__theme-dark {
  font-family: sans-serif;
  font-weight: bold
}

.flipdown.flipdown__theme-dark .rotor-group-heading:before {
  color: #43666d
}

.flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3):before,
.flipdown.flipdown__theme-dark .rotor-group:nth-child(n+2):nth-child(-n+3):after {
  background-color: #151515
}

.flipdown.flipdown__theme-dark .rotor,
.flipdown.flipdown__theme-dark .rotor-top,
.flipdown.flipdown__theme-dark .rotor-leaf-front {
  color: #fff;
  background-color: #151515
}

.flipdown.flipdown__theme-dark .rotor-bottom,
.flipdown.flipdown__theme-dark .rotor-leaf-rear {
  color: #efefef;
  background-color: #202020
}

.flipdown.flipdown__theme-dark .rotor:after {
  border-top: solid 1px #151515
}

.flipdown.flipdown__theme-light {
  font-family: sans-serif;
  font-weight: bold
}

.flipdown.flipdown__theme-light .rotor-group-heading:before {
  color: #eee
}

.flipdown.flipdown__theme-light .rotor-group:nth-child(n+2):nth-child(-n+3):before,
.flipdown.flipdown__theme-light .rotor-group:nth-child(n+2):nth-child(-n+3):after {
  background-color: #ddd
}

.flipdown.flipdown__theme-light .rotor,
.flipdown.flipdown__theme-light .rotor-top,
.flipdown.flipdown__theme-light .rotor-leaf-front {
  color: #222;
  background-color: #ddd
}

.flipdown.flipdown__theme-light .rotor-bottom,
.flipdown.flipdown__theme-light .rotor-leaf-rear {
  color: #333;
  background-color: #eee
}

.flipdown.flipdown__theme-light .rotor:after {
  border-top: solid 1px #222
}

.flipdown {
  overflow: visible;
  width: 510px;
  height: 110px
}

.flipdown .rotor-group {
  position: relative;
  float: left;
  padding-right: 30px
}

.flipdown .rotor-group:last-child {
  padding-right: 0
}

.flipdown .rotor-group-heading:before {
  display: block;
  height: 30px;
  line-height: 30px;
  text-align: center
}

.flipdown .rotor-group:nth-child(1) .rotor-group-heading:before {
  content: attr(data-before)
}

.flipdown .rotor-group:nth-child(2) .rotor-group-heading:before {
  content: attr(data-before)
}

.flipdown .rotor-group:nth-child(3) .rotor-group-heading:before {
  content: attr(data-before)
}

.flipdown .rotor-group:nth-child(4) .rotor-group-heading:before {
  content: attr(data-before)
}

.flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 115px;
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
  content: '';
  position: absolute;
  bottom: 50px;
  left: 115px;
  width: 10px;
  height: 10px;
  border-radius: 50%
}

.flipdown .rotor {
  position: relative;
  float: left;
  width: 50px;
  height: 80px;
  margin: 0 5px 0 0;
  border-radius: 4px;
  font-size: 4rem;
  text-align: center;
  perspective: 200px
}

.flipdown .rotor:last-child {
  margin-right: 0
}

.flipdown .rotor-top,
.flipdown .rotor-bottom {
  overflow: hidden;
  position: absolute;
  width: 50px;
  height: 40px
}

.flipdown .rotor-leaf {
  z-index: 1;
  position: absolute;
  width: 50px;
  height: 80px;
  transform-style: preserve-3d;
  transition: transform 0s
}

.flipdown .rotor-leaf.flipped {
  transform: rotateX(-180deg);
  transition: all .5s ease-in-out
}

.flipdown .rotor-leaf-front,
.flipdown .rotor-leaf-rear {
  overflow: hidden;
  position: absolute;
  width: 50px;
  height: 40px;
  margin: 0;
  transform: rotateX(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden
}

.flipdown .rotor-leaf-front {
  line-height: 80px;
  border-radius: 4px 4px 0 0
}

.flipdown .rotor-leaf-rear {
  line-height: 0;
  border-radius: 0 0 4px 4px;
  transform: rotateX(-180deg)
}

.flipdown .rotor-top {
  line-height: 80px;
  border-radius: 4px 4px 0 0
}

.flipdown .rotor-bottom {
  bottom: 0;
  line-height: 0;
  border-radius: 0 0 4px 4px
}

.flipdown .rotor:after {
  content: '';
  z-index: 2;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 40px;
  border-radius: 0 0 4px 4px
}

@media(max-width:550px) {
  .flipdown {
    width: 312px;
    height: 70px
  }

  .flipdown .rotor {
    font-size: 2.2rem;
    margin-right: 3px
  }

  .flipdown .rotor,
  .flipdown .rotor-leaf,
  .flipdown .rotor-leaf-front,
  .flipdown .rotor-leaf-rear,
  .flipdown .rotor-top,
  .flipdown .rotor-bottom,
  .flipdown .rotor:after {
    width: 30px
  }

  .flipdown .rotor-group {
    padding-right: 20px
  }

  .flipdown .rotor-group:last-child {
    padding-right: 0
  }

  .flipdown .rotor-group-heading:before {
    font-size: .8rem;
    height: 20px;
    line-height: 20px
  }

  .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before,
  .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    left: 69px
  }

  .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):before {
    bottom: 13px;
    height: 8px;
    width: 8px
  }

  .flipdown .rotor-group:nth-child(n+2):nth-child(-n+3):after {
    bottom: 29px;
    height: 8px;
    width: 8px
  }

  .flipdown .rotor-leaf-front,
  .flipdown .rotor-top {
    line-height: 50px
  }

  .flipdown .rotor-leaf,
  .flipdown .rotor {
    height: 50px
  }

  .flipdown .rotor-leaf-front,
  .flipdown .rotor-leaf-rear,
  .flipdown .rotor-top,
  .flipdown .rotor-bottom,
  .flipdown .rotor:after {
    height: 25px
  }
}