@import url("https://fonts.googleapis.com/css?family=Lato:400,700|Montserrat:900");

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --color-primary: #276FBF;
  --color-secondary: #F56821;
  --color-red: #EF2F3C;
  --color-yellow: #F0A202;
  --color-white: #F6F4F3;
  --color-dark: #183059;
  --color-black: #000;
  
  --font-lato: "Lato", sans-serif;
  --font-montserrat: "Montserrat", sans-serif;
}

/* ===== BASE STYLES ===== */
html {
  display: grid;
  min-height: 100%;
}

body {
  display: grid;
  margin: 0;
}

/* ===== LAYOUT COMPONENTS ===== */
.link {
  position: absolute;
  top: 10px;
  left: 0;
  height: 100px;
  z-index: 2;
}

.background {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ===== COUNTDOWN TIMER STYLES ===== */
.container {
  top: calc(50% - 240px);
  position: relative;
  margin: auto;
  overflow: hidden;
  width: 650px;
  height: 480px;
}

h1 {
  font-family: var(--font-lato);
  text-align: center;
  margin-top: 1em;
  font-size: 2em;
  text-transform: uppercase;
  letter-spacing: 5px;
  position: relative;
  z-index: 100;
}

#timer {
  color: var(--color-white);
  text-align: center;
  text-transform: uppercase;
  font-family: var(--font-lato);
  font-size: 0.7em;
  letter-spacing: 5px;
  margin-top: 25%;
}

.days,
.hours,
.minutes,
.seconds {
  display: inline-block;
  padding: 20px;
  width: 100px;
  border-radius: 5px;
}

.days {
  background: var(--color-red);
}

.hours {
  background: #46c427;
}

.minutes {
  background: var(--color-primary);
}

.seconds {
  background: var(--color-yellow);
}

.numbers {
  font-family: var(--font-montserrat);
  color: #fff;
  font-size: 4em;
}

/* ===== FOOTER STYLES ===== */
footer {
  position: fixed;
  bottom: 0;
  right: 0;
  text-transform: uppercase;
  padding: 10px;
  font-family: var(--font-lato);
  font-size: 0.7em;
}

footer p {
  letter-spacing: 3px;
  color: var(--color-red);
}

footer a {
  color: var(--color-white);
  text-decoration: none;
}

footer a:hover {
  color: var(--color-primary);
}

/* ===== ANIMATION STYLES ===== */
@keyframes throbbing {
  0% {
    transform: scale(0.9);
  }
  50% {
    transform: scale(1.0);
  }
  100% {
    transform: scale(0.9);
  }
}

.throbbing {
  animation: throbbing 3.5s infinite;
  z-index: 100;
}
