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

:root {
  --primary-color: hsl(237, 18%, 59%);
  --secondary-color: hsl(345, 95%, 68%);
  --white-color: hsl(0, 0%, 100%);
  --dark-blue: hsl(236, 21%, 26%);
  --very-dark-blue: hsl(235, 16%, 14%);
  --mostly-black: hsl(234, 17%, 12%);
}

a {
  display: block;
  text-decoration: none;
}

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

.attribution a {
  color: hsl(228, 45%, 44%);
}

body {
  font-family: "Red Hat Text", sans-serif;
  font-size: 14px;
  font-weight: 700;
  min-height: 100vh;
}

.app {
  position: relative;
  display: flex;
  background: url(./images/pattern-hills.svg) no-repeat bottom right 20%,
    url(./images/bg-stars.svg), linear-gradient(to bottom, #191a24, #261e2f);
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding-top: 20vh;
  overflow: hidden;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.title {
  color: var(--white-color);
  text-transform: uppercase;
  margin-bottom: 105px;
  letter-spacing: 10px;
  text-align: center;
}

.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 250px;
}

.countdown__item .top {
  position: absolute;
  width: 100%;
  height: 50%;
  top: 0;
  background: #2d2f45;
}

.countdown__item .time {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 148px;
  height: 140px;
  border-radius: 7px;
  background: var(--dark-blue);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 10px 0 #191a24;
}

.countdown__item .time::after,
.countdown__item .time::before {
  position: absolute;
  content: "";
  background: var(--very-dark-blue);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  z-index: 2;
}

.countdown__item .time::after {
  left: -6px;
}

.countdown__item .time::before {
  right: -6px;
}

.countdown__item .time span {
  font-size: 79px;
  color: var(--secondary-color);
  z-index: 3;
}

.countdown__item p {
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 6px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 70px;
}

.social__item {
  width: 24px;
  height: 24px;
  transition: all 0.3s linear;
}

.social__item:first-child {
  background: var(--primary-color);
  -webkit-mask: url(./images/icon-facebook.svg) no-repeat center;
  mask: url(./images/icon-facebook.svg) no-repeat;
}

.social__item:nth-child(2) {
  background: var(--primary-color);
  -webkit-mask: url(./images/icon-pinterest.svg) no-repeat center;
  mask: url(./images/icon-pinterest.svg) no-repeat;
}

.social__item:last-child {
  background: var(--primary-color);
  -webkit-mask: url(./images/icon-instagram.svg) no-repeat center;
  mask: url(./images/icon-instagram.svg) no-repeat;
}

.social__item:hover {
  transition: all 0.3s linear;
  background: var(--secondary-color);
}

@media screen and (max-width: 768px) {
  .title {
    font-size: 18px;
    margin-left: 36px;
    margin-right: 36px;
    margin-bottom: 60px;
    letter-spacing: 8px;
  }

  .countdown__item .time::after,
  .countdown__item .time::before {
    width: 6px;
    height: 6px;
  }

  .countdown__item .time::after {
    left: -3px;
  }
  .countdown__item .time::before {
    right: -3px;
  }

  .countdown {
    gap: 16px;
  }

  .countdown__item {
    margin-bottom: 260px;
  }

  .countdown__item .time {
    width: 70px;
    height: 67px;
    border-radius: 5px;
  }

  .countdown__item .time span {
    font-size: 37px;
  }

  .countdown__item p {
    font-size: 8px;
    letter-spacing: 2px;
  }
}

@media screen and (max-width: 376px) {
  /* .app {
    background-position-x: -795px;
    background-size: 1400px;
  } */
}
