*,
*:before,
*:after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Red Hat Text", sans-serif;
}

:root {
  /* Primary */
  --Grayish_blue: hsl(237, 18%, 59%);
  --Soft_red: hsl(345, 95%, 68%);
  --darker-soft-red: hsl(345, 95%, 60%);

  /* Neutral */
  --Dark_desaturated_blue: hsl(236, 21%, 26%);
  --Very_dark_blue: hsl(235, 16%, 14%);
  --Very_dark__blue: hsl(240, 14%, 17%);
  --dark_mostly-black_blue: hsl(
    250.91,
    15.49%,
    13.92%
  ); /* hsl(234, 17%, 12%) */
}
/*  */

/* General Styles 
******************************************/
body {
  background-color: var(--dark_mostly-black_blue);
}

/* Header Styles 
******************************************/
main {
  height: 70vh;
  background-image: url(../images/bg-stars.svg);
  background: no-repeat cover center bottom border-box;
}

h1 {
  color: white;
  padding: 120px 0 70px;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 5px;
}

/* Main Styles 
******************************************/
.main {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: center;

  text-align: center;
  padding: 10px 0;
}

.box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.box h3 {
  font-size: 70px;
  font-weight: 700;
}

.box p {
  color: var(--Grayish_blue);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.timer {
  background: linear-gradient(to bottom, var(--Very_dark__blue) 50%, var(--Dark_desaturated_blue) 50%);
  box-shadow: 0px 6--px 2px rgba(26, 23, 31, 0.767);
  border-radius: 10px;
  padding: 30px;
}

.halfStyled {
  position: relative;
  font-size: 50px;
  display: inline-block;
  color: var(--Soft_red);
  white-space: pre;
  overflow: hidden;
}

.halfStyled:before {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  content: attr(data-content);
  height: 52%;
  overflow: hidden;
  color: var(--darker-soft-red);
}

/* footer Styles 
******************************************/
footer {
  position: absolute;
  width: 100%;
  height: 30vh;
  bottom: 0;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 60px;
  align-items: center;
  justify-content: flex-end;

  background: url(../images/pattern-hills.svg) no-repeat center;
}

.icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.fa-brands {
  color: var(--Grayish_blue);
}

.fa-brands:hover,
.fa-brands:focus {
  color: var(--Soft_red);
}

/* Mobile View
******************************************/
@media screen and (max-width: 700px) {
  h2 {
    font-size: 16px;
  }

  .box h3 {
    font-size: 55px;
  }

  .box p {
    font-size: 10px;
  }

  .timer {
    padding: 20px;
    font-weight: 800;
  }

  /* footer Styles 
    ******************************************/
  footer {
    background: url(../images/pattern-hills.svg) no-repeat center;
    background-size: 200% 100%;
    background-position: right;
    gap: 40px;
  }
}

@media screen and (max-width: 450px) {
  h2 {
    font-size: 20px;
    width: 300px;
    margin: auto;
    padding: 150px 0 40px 0;
  }

  .box h3 {
    font-size: 36px;
  }

  .box p {
    font-size: 7px;
  }

  .timer {
    padding: 10px;
    font-weight: 800;
  }

  .icons i {
    font-size: 30px;
  }

  .attribution {
    font-size: 8px;
  }
}
