@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400;600;500;700&display=swap");

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Red Hat Text", sans-serif;
}

:root {
  --grayish-blue: hsl(237, 18%, 59%);
  --soft-red: hsl(345, 95%, 68%);
  --white: hsl(0, 0%, 100%);
  --dark-desaturated-blue: hsl(236, 21%, 26%);
  --very-dark-blue: hsl(235, 16%, 14%);
  --very-dark-black-blue: hsl(234, 17%, 12%);
}

body {
  min-height: 100vh;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-image: url("./images/bg-stars.svg");
  background-color: var(--very-dark-black-blue);
}

h3 {
  position: absolute;
  top: 15%;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  letter-spacing: 6px;
  margin: 0 16px;
}

.countdown {
  display: flex;
  gap: 10px;
  text-align: center;
}

.card {
  font-size: 2rem;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  box-shadow: -2px 12px 5px -3px var(--very-dark-blue);
  position: relative;
}

.top__turn {
  transform-origin: bottom;
  transform: rotateX(0deg);
  animation: flip-top 0.5s ease-in forwards;
  position: absolute;
  padding: 21px 16px;
  color: var(--soft-red);
  overflow: hidden;
  text-align: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom: 1px solid var(--very-dark-black-blue);
  background-color: var(--dark-desaturated-blue);
}

.bottom__turn {
  bottom: 0;
  animation: flip-bottom 0.5s ease-out 0.5s;
  transform-origin: top;
  transform: rotateX(90deg);
  position: absolute;
  padding: 21px 16px;
  color: var(--soft-red);
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: var(--dark-desaturated-blue);
  box-shadow: 0 2px var(--very-dark-blue);
}

.top {
  height: 25px;
  width: 70px;
  padding: 21px 16px;
  color: var(--soft-red);
  overflow: hidden;
  text-align: center;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  border-bottom: 1px solid var(--very-dark-black-blue);
  background-color: var(--dark-desaturated-blue);
}
.top,
.bottom {
  font-weight: 600;
}
.bottom {
  height: 25px;
  width: 70px;
  padding: 21px 16px;
  color: var(--soft-red);
  overflow: hidden;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: var(--dark-desaturated-blue);
  box-shadow: 0 2px var(--very-dark-blue);
}
.left-circle {
  position: absolute;
  top: 45%;
  left: 0%;
  background: var(--very-dark-black-blue);
  height: 10px;
  width: 5px;
  border-radius: 0 300px 300px 0;
}
.right-circle {
  position: absolute;
  top: 42%;
  right: 0%;
  background: var(--clr-dark-blue);
  height: 10px;
  width: 5px;
  border-radius: 300px 0 0 300px;
}
.title {
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--grayish-blue);
  position: relative;
  bottom: -1rem;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  overflow: hidden;
}

.footer > img {
  width: 200%;
}

.icon {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}

.icon > span {
  margin-right: 10px;
  cursor: pointer;
}
.icon > span:active,
.icon > span:hover {
  filter: invert(60%) sepia(43%) saturate(6017%) hue-rotate(315deg)
    brightness(109%) contrast(97%);
}

@media screen and (min-width: 768px) {
  .footer > img {
    width: 100%;
  }
}
@media screen and (min-width: 1024px) {
  h3 {
    position: relative;
    bottom: 5rem;
  }
  .footer > img {
    width: 100%;
    height: 25vh;
  }
  .top {
    height: 45px;
    width: 90px;
  }

  .bottom {
    height: 45px;
    width: 90px;
  }
}
@media screen and (min-width: 1440px) {
  h3 {
    font-size: 1rem;

    position: relative;
    bottom: 5rem;
  }
  .top {
    height: 50px;
    width: 100px;
    font-size: 3rem;
  }

  .bottom {
    height: 50px;
    width: 100px;
    font-size: 3rem;
  }
  .footer > img {
    width: 100%;
    height: 25vh;
  }
}
