article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
  display: block;
}

/* Body Styles
*********************************************
*/
* {
  box-sizing: border-box;
}

html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
  margin: 0;
  padding: 0;
}
@media (max-width: 1024px) {
  body {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
}

figure {
  margin: 0;
  padding: 0;
}

p,
ol {
  width: 70%;
  margin: 2.5% auto;
  padding-left: 20px;
}
@media (max-width: 1024px) {
  p,
  ol {
    width: 90%;
  }
}
@media (max-width: 480px) {
  p,
  ol {
    width: 100%;
  }
}

ul li,
ol li {
  margin: 20px 0;
}

p, ul {
  padding-left: 0;
}

/* Typography
***********************************************
*/
header {
  margin-bottom: 5%;
}

h1 {
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin: 0;
}
@media (max-width: 1024px) {
  h1 {
    font-size: 36px;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }
}

h2 {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 15px 8px;
  margin: 0;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  h2 {
    font-size: 15px;
  }
}

pre, code {
  font-family: Monaco, Consolas, "Lucida Console", monospace;
  font-size: 16px;
  line-height: 2;
  overflow: auto;
  width: 75%;
  margin: 0 auto;
  padding: 10px;
  border-radius: 10px;
}
@media (max-width: 1024px) {
  pre, code {
    width: 100%;
    font-size: 14px;
  }
}

code {
  padding: 5px;
  vertical-align: 3px;
  white-space: nowrap;
}

a {
  color: #fff;
  text-decoration: none;
  border-bottom: dotted 2px #fff;
}
a:hover, a:active, a:focus {
  color: #fff;
  border-bottom: solid 2px #fff;
}

/* Sections
**********************************************
*/
section {
  padding: 10% 5%;
  width: 100%;
}

/* First Section */
.first {
  background: url(/images/bg.jpg) no-repeat center center fixed;
  background-size: cover;
}
.first p {
  width: 50%;
  margin: 10% auto;
  text-align: center;
}
@media (max-width: 768px) {
  .first p {
    width: 90%;
  }
}

.buttons {
  list-style-type: none;
  text-align: center;
}
.buttons li {
  display: inline-block;
  margin: 0 25px;
  padding: 0;
}
@media (max-width: 768px) {
  .buttons li {
    display: block;
    margin: 50px auto 0;
  }
}
.buttons li a {
  font-size: 30px;
  color: #fff;
  padding: 20px;
  background: #bc8542;
  border: 2px solid #bc8542;
  border-radius: 10px;
  text-decoration: none;
  transition: all, 0.3s, ease;
}
@media (max-width: 1024px) {
  .buttons li a {
    padding: 15px;
    font-size: 22px;
  }
}
.buttons li a:hover, .buttons li a:active, .buttons li a:focus {
  background: none;
  border: 2px solid #fff;
}

/* Second Section */
.second {
  background: #EEE9E9;
}
.second h1 {
  color: #555;
}

/* Third Section */
.third {
  background: #7c8b78;
}
.third pre, .third code {
  color: #1a1e19;
  text-shadow: 0 1px 0 #7c8b78;
  background: #6a7766;
}

/* Fourth Section */
.fourth {
  background: #bc8542;
}
.fourth pre, .fourth code {
  color: #251a0d;
  text-shadow: 0 1px 0 #bc8542;
  background: #a07138;
}

/* Fifth Section */
.fifth {
  background: #4892b5;
}
.fifth pre, .fifth code {
  color: #0e1c23;
  text-shadow: 0 1px 0 #4892b5;
  background: #3d7c9a;
}

/* Sixth Section */
.sixth {
  background: #bb4b79;
}
.sixth pre, .sixth code {
  color: #2a101b;
  text-shadow: 0 1px 0 #bb4b79;
  background: #a23d67;
}

/* Images 
********************************************
*/
img {
  max-width: 100%;
  height: auto;
}

/* Clearfix 
********************************************
*/
.clearfix {
  content: "";
  display: table;
  clear: both;
}

/* Footer 
********************************************
*/
footer {
  clear: both;
  background: #2b4f71;
  margin: 0;
  padding: 5%;
  text-align: center;
}

/* Smooth Scrolling Back to Top
********************************************
*/
.scroll-top:hover {
  color: #fff !important;
  background-color: #333;
  text-decoration: none;
  border-bottom: none;
}

.scroll-top {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  width: 3.2rem;
  height: 3.2rem;
  line-height: 2;
  font-size: 1.4rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  text-decoration: none;
  border-radius: 5px;
  border-bottom: none;
  text-align: center;
  cursor: pointer;
}
