@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@700&display=swap");

: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(234, 17%, 12%);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background-color: #000;
  font-family: "Red Hat Text", sans-serif;
  display: grid;
  place-items: center;
}

.stars,
.hills {
  width: 100%;
  position: absolute;
}

.stars {
  height: 100%;
  top: 0;
  left: 0;
}

.hills {
  height: 20%;
  bottom: 0;
  left: 0;
}

.intro-title {
  text-transform: uppercase;
  color: var(--white);
  font-size: 25px;
  letter-spacing: 5px;
  margin-bottom: -175px;
  text-align: center;
}

#main-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  justify-self: center;
}

.time-container {
  width: 150px;
  height: 150px;
  text-align: center;
}

.card {
  width: 90%;
  height: 90%;
  margin: 0 auto;
  position: relative;
  border-radius: 10px;
  background-color: #000;

  -webkit-box-shadow: 0px 8px 0px 0px var(--very-dark-blue);
  -moz-box-shadow: 0px 8px 0px 0px var(--very-dark-blue);
  box-shadow: 0px 8px 0px 0px var(--very-dark-blue);
}

.card-top,
.card-bottom {
  width: 100%;
  height: 50%;
  position: relative;
  border-radius: 10px;
}

.card-top {
  background-color: var(--very-dark-blue);
  z-index: 100;
  opacity: 0.7;
}

@keyframes rotateCard {
    0% {
        transform: rotateX(0);
    }

    25% {
        transform: rotateX(-90deg);
    }

    50% {
        transform: rotateX(-180deg);
    }

    75% {
        transform: rotateX(-270deg);
    }

    100% {
        transform: rotateX(-360deg);
    }
}

.card-bottom {
  background-color: var(--dark-desaturated-blue);
  opacity: 0.75;
  z-index: 1;
}

.time-left {
  color: var(--soft-red);
  font-weight: 700;
  font-size: 72px;
  position: absolute;
  top: 14.5%;
  z-index: 10;
}

.time-container:first-of-type .time-left {
  left: 14%;
}

.time-container:nth-of-type(2) .time-left {
  left: 16.5%;
}

.time-container:nth-of-type(3) .time-left {
  left: 13%;
}

.time-container:last-of-type .time-left {
  left: 16%;
}

.time-format {
  text-transform: uppercase;
  font-size: 14px;
  color: var(--grayish-blue);
  margin-top: 20px;
}

#social-icons {
  position: relative;
  z-index: 10;
  display: flex;
  gap: 35px;
  margin-bottom: -75px;
}

.icon {
  font-size: 32px;
  color: var(--grayish-blue);
}

.icon:hover {
  color: var(--soft-red);
}

.create-link {
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    font-size: 20px;
    color: var(--white);
    background-color: var(--very-dark-blue);
    padding: 15px 30px;
    border-radius: 10px;
    position: relative;
    z-index: 1000;
}

.create-link:hover {
    background-color: var(--white);
    color: var(--very-dark-blue)
}

.create-link:active {
    transform: scale(0.95);
}

@media screen and (max-width: 600px) {
  .intro-title {
    margin-bottom: -200px;
  }

  #main-container {
    width: 80%;
    gap: 0;
  }

  .time-container {
    width: 85px;
    height: 85px;
  }

  .card-top,
  .card-bottom {
    border-radius: 7.5px;
  }

  .time-left {
    font-size: 32px;
    top: 21%;
    margin-left: 1px;
  }

  .time-container:first-of-type .time-left {
    left: 19%;
  }

  .time-container:nth-of-type(2) .time-left {
    left: 22%;
  }

  .time-container:nth-of-type(3) .time-left {
    left: 19%;
  }

  .time-container:last-of-type .time-left {
    left: 23%;
  }

  .time-format {
    font-size: 12px;
  }
}
