/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 1rem = 10px */
}

body {
  font-family: "Lato", sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: #eee;
  background: url("background.svg") center/cover no-repeat;
  height: 100vh;
  width: 100vw;
}

/* Links */
a {
  color: #fff;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Typography */
.main-title {
  text-align: center;
  margin: 4rem 0 8rem;
}

.main-title h1 {
  font-size: 7rem;
  font-weight: 800;
  color: #555;
}

.main-title h2 {
  font-size: 1.5rem;
  font-weight: 300;
}

/* SVG & Animations */
.svg-img,
svg {
  display: block;
  margin: auto;
}

#clock {
  animation: clockHand 5s infinite linear;
  transform-box: fill-box;
  transform-origin: bottom;
}

#leftTree,
#righTree {
  animation: tree 2s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: bottom;
}

#man {
  animation: manBody 1s ease-in-out infinite alternate;
  transform-box: fill-box;
  transform-origin: bottom;
}

#pc-circle {
  fill: #6ace66;
  stroke-width: 4;
  animation: change-light 4s linear infinite alternate;
}

/* Footer */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 35px;
  line-height: 35px;
  background-color: #555;
  font-size: 1.3rem;
}

/* Keyframes */
@keyframes clockHand {
  from {
    transform: rotateZ(0deg);
  }
  to {
    transform: rotateZ(-360deg);
  }
}

@keyframes manBody {
  from {
    transform: rotateX(0deg);
  }
  to {
    transform: rotateX(10deg);
  }
}

@keyframes tree {
  from {
    transform: rotateZ(10deg);
  }
  to {
    transform: rotateZ(-20deg);
  }
}

@keyframes change-light {
  0% {
    stroke: #cd61f8;
  }
  25% {
    stroke: #6ace66;
  }
  75% {
    stroke: #2995c0;
  }
  100% {
    stroke: #e92949;
  }
}

/* Media Queries */
@media (min-width: 640px) {
  .main-title h1 {
    font-size: 5rem;
    font-weight: 700;
  }
}

@media (min-width: 768px) {
  .main-title h1 {
    font-size: 6rem;
    font-weight: 800;
  }
}

@media (min-width: 1024px) {
  .main-title h1 {
    font-size: 7rem;
    font-weight: 900;
  }
}

@media (min-width: 1200px) {
  .main-title {
    margin-bottom: 4rem;
  }

  .main-title h1 {
    font-size: 8rem;
    font-weight: 900;
  }
}
