/*  GLOBAL STYLES  */
* {
  box-sizing: border-box;
}

html, body {
  padding: 0;
  margin: 0;
}

body {
  font-family: 'Work Sans';
  font-weight: 400;
  line-height: 1.3;
  font-size: 18px;
  background-color: #f9f9f9;
  color: #333;
  min-width: 320px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  margin: 0;
  line-height: 1;
  font-family: 'Russo One', sans-serif;
  font-size: 64px;
  color: #333;
  letter-spacing: 0.05em;
}

p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}

a {
  color: hsl(2, 84%, 56%);
  box-shadow: 0 1px 0 0 currentColor;
  text-decoration: none;
}

a:hover {
  box-shadow: none;
}

.wrapper {
  height: 100vh;
  width: 100%;
  box-sizing: border-box;
}

.container {
  max-width: 710px;
  width: 100%;
  margin: 0 auto;
}

.header {
  width: 100%;
  padding: 20px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f3ebeb;
}

.footer {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-top: 20px;
  border-top: 2px solid #f3ebeb;
  text-align: right;
}

.footer .fa-canadian-maple-leaf {
  color: hsl(2, 84%, 56%);
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.block {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 160px;
  width: calc(50% - 13px);
  margin: 5px;
  padding: 32px;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 2px 2px 2px 0px #dedada;
  text-decoration: none;
}

.block__overlay {
  display: block;
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  align-items: center;
  justify-content: center;
  top: 0;
  display: flex;
  left: 0;
  transition: transform cubic-bezier(0.3, 0.04, 0.74, 0.05) 0.3s;
}

.block--github,
.block--github > .block__overlay {
  background-color: hsl(0, 0%, 20%);
  color: #fff;
}

.block--twitter,
.block--twitter > .block__overlay {
  background-color: hsl(203, 89%, 53%);
  color: #fff;
  box-shadow: none;
}

.block--instagram,
.block--instagram > .block__overlay {
  background-color: hsl(326, 57%, 48%);
  color: #fff;
}

.block--linkedin,
.block--linkedin > .block__overlay {
  background-color: hsl(201, 100%, 35%);
  color: #fff;
}

.block--blog,
.block--blog > .block__overlay {
  background-color: hsl(2, 61%, 60%);
  color: #fff;
}

.block--other,
.block--other > .block__overlay {
  background-color: hsl(53, 93%, 54%);
  color: #333;
}

@media (hover: hover) {
  .block--github:hover > .block__overlay {
    transform: translateY(-100%);
  }

  .block--twitter:hover > .block__overlay {
    transform: translateX(-100%);
  }

  .block--instagram:hover > .block__overlay {
    transform: translateY(100%);
  }

  .block--linkedin:hover > .block__overlay {
    transform: translateX(100%);
  }

  .block--blog:hover > .block__overlay {
    transform: translateY(-100%);
  }

  .block--other:hover > .block__overlay {
    transform: translateX(100%);
  }
}

@media (min-width: 630px) {
  .block {
    width: calc(33% - 13px);
    height: 200px;
  }

  .header {
    margin-top: 40px;
  }
}

@media(max-width: 768px) {
  h1 {font-size: 32px;}
  h2 {font-size: 24px;}
  .sections { flex-direction: column; align-items: inherit; }
  .about { border-left: 0; }
}

