/**

Font weights:
300: light
400: regular
600: semi-bold
700: bold

**/

/** Generic styles **/

* {
  font-family: 'Source Sans Pro', sans-serif;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  background-color: black;
  background-image: radial-gradient(#222222, black);
  color: white;
  height: 100vh;
  width: 100vw;
  position: relative;
}

main {
  width: 80vw;
  height: 90vh;
  padding: 5vh 10vw;
}

h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
}

h2 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 12px;
}

b {
  font-weight: 700;
}

p {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 24px;
}

a {
  text-decoration: underline;
  color: #4675b4;
  font-weight: 600;
}

/** WB styles **/

.wb__title,
.wb__sub-title,
.wb__quote,
.wb__refresh,
.wb__footer {
  position: relative;
  z-index: 2;
}

.wb__title {
  font-size: 80px;
}

.wb__sub-title {
  font-size: 72px;
}

.wb__quote {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-top: 42px;
  width: 100%;
  text-align: center;
}

.wb__refresh {
  margin-bottom: 24px;
  cursor: url('favicon-32x32.png'), auto;
}

.wb__refresh--spinning {
  animation: rotate 200ms infinite linear;
}

.wb__image {
  transform: scale(90%);
  background-image: url("safari-pinned-tab.svg");
  background-repeat: no-repeat;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}

.wb__image--beating {
  animation: beat 200ms infinite ease-in-out;
}

.wb__footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.1);
}

@media screen and (orientation: portrait) {
  .wb__image {
    background-position: left;
    background-size: 100% auto;
  }

  .wb__quote {
    font-size: 5vw;
  }

  .wb__refresh {
    height: 5vw;
    width: 5vw;
  }
}

@media screen and (orientation: landscape) {
  .wb__image {
    background-position: top;
    background-size: auto 100%;
  }

  .wb__quote {
    font-size: 3vw;
  }

  .wb__refresh {
    height: 3vw;
    width: 3vw;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes beat {
  0% {
    transform: scale(90%);
  }

  50% {
    transform: scale(100%);
  }

  100% {
    transform: scale(90%);
  }
}
