@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@700&display=swap");
@-webkit-keyframes flip-bottom {
  100% {
    -webkit-transform: rotateX(90deg);
            transform: rotateX(90deg);
  }
}
@keyframes flip-bottom {
  100% {
    -webkit-transform: rotateX(90deg);
            transform: rotateX(90deg);
  }
}

@-webkit-keyframes flip-up {
  0% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
}

@keyframes flip-up {
  0% {
    -webkit-transform: rotateX(0deg);
            transform: rotateX(0deg);
  }
}

* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

body {
  width: 100vw;
  min-height: 100vh;
  background: url("../images/bg-stars.svg") #1e1f29;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  font-family: 'Red Hat Text', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
}

.container {
  width: 100vw;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  position: relative;
}

.container_header {
  margin: 2rem auto;
  font-size: 20px;
  color: white;
  letter-spacing: 0.2rem;
}

.container_data {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: (1fr)[2];
      grid-template-columns: repeat(2, 1fr);
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, 15%);
          transform: translate(-50%, 15%);
}

.container_data--item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-items: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin: 1rem 1rem;
}

.container_data--item_box {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
          box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
  position: relative;
}

.container_data--item_box--top {
  height: .75em;
  line-height: 1;
  padding: .25em;
  overflow: hidden;
  background: #20212c;
  font-size: 4rem;
  color: #fb6087;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  position: relative;
}

.container_data--item_box--top::before {
  content: "";
  position: absolute;
  bottom: 0rem;
  left: 0rem;
  width: 5px;
  height: 5px;
  background: black;
  border-top-right-radius: 10px;
}

.container_data--item_box--top::after {
  content: "";
  position: absolute;
  bottom: 0rem;
  right: 0rem;
  width: 5px;
  height: 5px;
  background: black;
  border-top-left-radius: 10px;
}

.container_data--item_box--bottom {
  height: .75em;
  line-height: 1;
  padding: .25em;
  overflow: hidden;
  background: #191a24;
  font-size: 4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  color: #fb6087;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  position: relative;
}

.container_data--item_box--bottom::before {
  content: "";
  position: absolute;
  top: 0rem;
  left: 0rem;
  width: 5px;
  height: 5px;
  background: black;
  border-bottom-right-radius: 10px;
}

.container_data--item_box--bottom::after {
  content: "";
  position: absolute;
  top: 0rem;
  right: 0rem;
  width: 5px;
  height: 5px;
  background: black;
  border-bottom-left-radius: 10px;
}

.container_data--item .flip::before {
  content: attr(data-current-number);
  position: absolute;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: .75em;
  line-height: 1;
  padding: 0em .25em;
  padding-top: .25em;
  overflow: hidden;
  font-size: 4rem;
  background: #20212c;
  color: #fb6087;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  -webkit-animation: flip-bottom 1000ms ease-in;
          animation: flip-bottom 1000ms ease-in;
  -webkit-transform-origin: bottom;
          transform-origin: bottom;
}

.container_data--item .flip::after {
  content: attr(data-current-number);
  position: absolute;
  bottom: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  height: .75em;
  line-height: 1;
  padding: 0em .25em;
  padding-bottom: .25em;
  overflow: hidden;
  background: #191a24;
  font-size: 4rem;
  color: #fb6087;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: flex-end;
  -webkit-animation: flip-up 1000ms ease-out;
          animation: flip-up 1000ms ease-out;
  -webkit-transform: rotateX(90deg);
          transform: rotateX(90deg);
  -webkit-transform-origin: top;
          transform-origin: top;
}

.container_data--item_subtext {
  margin-top: 2rem;
  color: #343650;
}

.footer {
  position: absolute;
  bottom: 0rem;
  width: 100%;
}

.footer_background {
  width: 100%;
  height: 30vh;
}

.footer_socials {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  justify-items: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  z-index: 10;
}

.footer_socials--icon {
  margin: 10px;
}

.footer_socials--icon:hover {
  color: #fb6087;
  cursor: pointer;
}

.attribution {
  font-size: 11px;
  text-align: center;
}

.attribution a {
  color: #3e52a3;
}

@media screen and (min-width: 580px) {
  .container {
    height: 70vh;
  }
  .container_header {
    margin-bottom: 10rem;
  }
  .container_data {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
  .container_data--item {
    margin: 0rem 1rem;
  }
}
