@import url('https://fonts.googleapis.com/css?family=Open+Sans:light');
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', sans-serif;
}
#intro {
  width: 100%;
  height: 100vh;
  background: url(lib/blue-pro-bg.png);
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  background-position: center center;
  flex-direction: column;
  background-size: 200px 200px;
  filter: hue-rotate(10deg);
}
#hello {
  background-color: rgba(84, 84, 84, 0.75);
  height: auto;
  padding: 20px 5px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-flow: column wrap;
  justify-content: space-evenly;
  align-items: center;
  padding: 2% 3%;
}
#hello > h1 {
  white-space: nowrap;
  font-size: 4em;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
  opacity: 0.9;
}
#hello > span {
  font-size: 1.4em;
  text-shadow: 1px 1px 3px black;
  color: #fff;
  font-weight: 100;
  opacity: 0.9;
}
@media (max-width: 425px) {
  #hello > h1 {
    font-size: 15vw;
  }
  #hello > span {
    font-size: 5vw;
  }
}
#newSection1 {
  background: #383838;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  padding: 5vh;
}
#newSection1 > a {
  color: #fff;
  text-decoration: none;
}
#newSection1 > a:not(first-of-type) {
  padding-left: 4%;
}
#second {
  text-align: center;
  padding: 75px 10%;
}
#second > h2:after,
#second > h2:before,
#third > h2:after,
#third > h2:before,
.separate-page > h2:after,
.separate-page > h2:before,
#fourth > h2:after,
#fourth > h2:before {
  content: '-';
  padding: 0 10px;
}
#second > p:first-of-type {
  padding-top: 25px;
}
#second > p:last-of-type {
  padding-bottom: 25px;
}
#projectsBelow ~ a[href*='third'] {
  animation: nickFlash 1s linear infinite;
}
@-webkit-keyframes nickFlash {
  50% {
    opacity: 0;
  }
}
@keyframes nickFlash {
  50% {
    opacity: 0;
  }
}
body#js-functions section:nth-of-type(2n) {
  background: #fff;
}
body#js-functions section article > p {
  font-size: 1em;
}
/* @media (min-width: 768px) {
  .pfgrid article:first-child {
    grid-column: 2;
  }
} */
#third,
#fourth,
.separate-page,
body#js-functions section {
  text-align: center;
  padding: 75px 10%;
  background: #ebf4f9;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.separate-page {
  height: 100vh;
  background: #f3f3f3;
  align-items: stretch;
}
#third {
  background: #5285c4;
}
.white-area {
  background: white;
  padding: 3em;
  width: 100%;
  text-align: left;
  min-height: 50vh;
}
.white-area * {
  line-height: 1.8;
}
.white-area p, .white-area ul {
  font-size: 1rem;
}
.white-area ul {
  padding-left: 2em;
}
#devGrid {
  display: grid;
  grid-column-gap: 2%;
  grid-template-columns: 1fr 1fr 1fr;
}
#devGrid > article {
  background: #fff;
  padding: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
#devGrid > article:first-child {
  border: 5px solid #393939;
  position: relative;
  background: #f0f0f0;
}
#devGrid > article:first-child:before {
  content: 'Favourite';
  position: absolute;
  top: 0;
  right: 0;
  background: #393939;
  transform: translate(17%, -50%) rotate(22deg);
  padding: 0.5em;
  border-radius: 0.5em;
  font-weight: 700;
  pointer-events: none;
  border: 2px solid #5285c4;
  color: #fff;
}
@media (max-width: 768px) {
  #devGrid > article .button + .button {
    margin-top: 0.5em;
  }
}
#devGrid > article h3,
#devGrid > article p {
  padding: 2% 0;
  font-size: 1rem;
}
@media (min-width: 1025px) {
  /*
    #devGrid > article:nth-of-type(5) { grid-column: 3 / span 2; grid-row: 1 }
    #devGrid > article:nth-of-type(6) { grid-column: 1; grid-row: 1 }
    #devGrid > article:nth-of-type(7) { grid-column: 2; grid-row: 1 }
    #devGrid > article:nth-of-type(n+5) { margin-bottom: 4% }
    #devGrid > article:nth-of-type(n+6) { margin-bottom: 8% }*/
  #devGrid > article:nth-of-type(n + 5) {
    margin-top: 8%;
  }
}
@media (max-width: 1024px) and (min-width: 768px) {
  /*
    #devGrid { grid-template-columns: 1fr 1fr 1fr }
    #devGrid > article:nth-of-type(n+4) { margin-top: 7% }
    #devGrid > article:nth-of-type(7) { grid-column: 1 / span 3; margin-top: 2% }*/
}
@media (max-width: 767px) {
  #devGrid {
    grid-template-columns: 1fr 1fr;
  }
  #devGrid > article:nth-of-type(n + 3) {
    margin-top: 4%;
  } /*
    #devGrid > article:nth-of-type(7) { grid-column: 1 / span 2; margin-top: 2% }*/
}
@media (max-width: 500px) {
  #devGrid {
    grid-template-columns: 1fr;
  }
  #devGrid > article:nth-of-type(n) {
    margin-top: 6%;
  } /*
    #devGrid > article:nth-of-type(7) { grid-column: 1 }*/
}
#fourth {
  padding: 75px 10% 0;
  background: #fff;
}
#third > div,
#fourth > div,
.separate-page > div,
body#js-functions article {
  background: #fff;
  border: 1px solid #3b5998;
  min-height: 150px;
  height: auto;
  flex: 0 0 250px;
  margin: 1%;
  padding: 10px;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#third > div,
#fourth > div {
  justify-content: flex-start;
}
body#js-functions #javascript-essentials > article {
  min-height: auto !important;
}
.separate-page > div {
  min-height: 75px;
}
#third > div:hover,
#fourth > div:hover,
.separate-page > div:hover {
  transition-duration: 0.4s;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
#third > div:hover h3,
#fourth > div:hover h3,
.separate-page > div:hover h3 {
  color: #3b5998;
  transition-duration: 0.4s;
}
#third > div > p,
#fourth > div > p,
.separate-page > div > p {
  font-size: 1em;
  padding: 10px 0;
}
h2 {
  font-size: 2em;
  flex-basis: 100%;
}
p {
  font-size: 1.2em;
  line-height: 1.5em;
}
.white {
  color: #fff;
}
.text-shadow {
  text-shadow: 0px 0px 4px #383838;
}
#fourth * {
  transition: all 0.4s ease;
}
#fourth > p {
  flex-basis: 100%;
  padding: 10px 0 20px 0;
  font-size: 1em;
}
.button,
button {
  background: #3b5998;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  text-decoration: none;
  font-size: 1em;
  margin-top: auto;
  transition: 0.4s ease all;
}
.button:hover,
.button-flex:hover,
button:hover {
  cursor: pointer;
  background: #ff6c00;
  transition-duration: 0.4s;
  padding: 5px 15px;
}
.span-flex {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#fifth {
  background: #5285c4;
  padding: 20px 10%;
  text-align: center;
  margin-top: 50px;
  color: #fff;
}
#fifth > p {
  font-size: 1em;
}
#fifth > p > a {
  text-decoration: underline;
  color: #fff;
  opacity: 0.9;
  font-weight: bold;
}
#fifth > p > a:hover {
  text-decoration: underline;
}
img {
  width: 100%;
}
i[class*='fa fa-code'],
#fourth i {
  font-size: 2em;
  padding-bottom: 5%;
}
body#ukrd section > div {
  flex-basis: 40%;
}

/* NEW */
#newSection2 ul li a {
  color: #5285c4;
}
.portfolioProfArea {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: center;
  background: #f8f8f8;
  width: 100%;
  height: auto;
  text-align: center;
  padding: 100px 10%;
  box-sizing: border-box;
}
.portfolioProfArea > img,
.portfolioProfArea > div {
  width: 50%;
}
.portfolioProfArea > div {
  padding-left: 15%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.portfolioProfArea > div p {
  padding: 5% 0 !important;
}
.portfolioProfArea > div *:not(.ctaBtn) {
  text-align: left;
  padding: 0;
}
#ctaBtn1 {
  margin-top: 5%;
}
.ctaBtn {
  text-align: center;
  padding: 15px 35px;
  align-self: flex-start;
  background: #5285c4;
  color: #fff;
  text-decoration: none;
}
#firstCTABtn {
  align-self: center;
  margin-top: 5%;
  background: #ff7254;
}
.portfolioProfArea ul li {
  font-weight: 400;
  margin-left: 3%;
  list-style-type: none;
  line-height: 1.5em;
}
.portfolioProfArea ul li:before {
  content: '• ';
  color: #5285c4;
}
#tests-wrap.separate-page > div {
  flex-basis: 48%;
  justify-content: flex-start;
}

/* Fades In */
#hello,
#firstCTABtn,
#portfolio-folder,
.portfolioProfArea > div {
  opacity: 0;
}

@media (max-width: 767px) {
  #hello {
    padding: 4% 6%;
  }
  #second {
    padding: 25px 5%;
  }
  #third > div,
  #fourth > div {
    flex-basis: 48%;
  }
  .portfolioProfArea {
    flex-direction: column;
    padding: 10% 5%;
  }
  .portfolioProfArea > img,
  .portfolioProfArea > div {
    width: 100%;
    padding: 0;
  }
  .portfolioProfArea > div {
    padding-top: 5%;
  }
  .portfolioProfArea > div * {
    text-align: center !important;
  }
  #ctaBtn1 {
    align-self: center;
  }
  body#ukrd section > div,
  #tests-wrap.separate-page > div {
    flex-basis: 100%;
  }
}
@media (max-width: 500px) {
  #third > div,
  #fourth > div {
    flex-basis: 99%;
  }
  body#js-functions article {
    flex-basis: 100%;
  }
}
