/* -------------------------------- Primary style -------------------------------- */

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

html {
  font-size: 62%;
}

body {
  font-size: 1.5rem;
  font-family: "Bitter", sans-serif;
  color: #f5f4ed;
  background-color: #fff;
}

a {
  color: #00aeef;
  text-decoration: none;
}

/* -------------------------------- Back to Top -------------------------------- */

header {
  background: #5c4751;
  height: 150px;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  font-weight: bold;
  font-family: "Open Sans", sans-serif;
  text-transform: uppercase;
  padding-top: 3em;
  margin-bottom: .2em;
}

header p {
  font-size: 1.3rem;
  color: #957484;
}

@media only screen and (min-width: 1024px) {
  header {
    height: 200px;
}
  header h1 {
    font-size: 3rem;
}
}

main {
  width: 90%;
  max-width: 768px;
  margin: 2em auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main p {
  line-height: 1.6;
  margin: 2em 0;
}

@media only screen and (min-width: 1024px) {
  main p {font-size: 2rem;}
}

.cd-top {
  display: inline-block;
  height: 35px;
  width: 35px;
  position: fixed;
  bottom: 30px;
  right: 10px;
  border-radius: 50px;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
  background: #00aeef url(../img/top-arrow.svg) no-repeat center 50%;
  visibility: hidden;
  opacity: 0;
  -webkit-transition: opacity .3s 0s, visibility 0s .3s, background-color .3s 0s;
  transition: opacity .3s 0s, visibility 0s .3s, background-color .3s 0s;
}

.cd-top.cd-top--show,.cd-top.cd-top--fade-out,.cd-top:hover {
  -webkit-transition: opacity .3s 0s, visibility 0s 0s, background-color .3s 0s;
  transition: opacity .3s 0s, visibility 0s 0s, background-color .3s 0s;
}

.cd-top.cd-top--show {
  visibility: visible;
  opacity: .7;
}

.cd-top.cd-top--fade-out {
  opacity: .7;
}

.cd-top:hover {
  background-color: #00aeef;
  opacity: .7;
}

@media only screen and (min-width: 768px) {
  .cd-top {
    right: 20px;
    bottom: 20px;
  }
}

@media only screen and (min-width: 1024px) {
  .cd-top {
    height: 45px;
    width: 45px;
    right: 50px;
    bottom: 25px;
  }
}
@media only screen and (min-width: 1200px) {
  .cd-top {
    height: 50px;
    width: 50px;
    right: 55px;
    bottom: 30px;
  }
}