/* Author: Low Kar Choon (P1727865)
   Class: DIT/FT/1A/01
   File name: styles.css
   */

/* reset styles */
a, header, nav, body, div, img, p, article, footer, h4 {
  border: 0;
  padding: 0;
  margin: 0 auto;
}

/* image styles */
img {
  max-width: 100%;
}
header img {
  width: 20%;
  position: relative;
  left: 200px;
}

/* backgroundimage */
html {
  background: url("../images/background.jpg") no-repeat center fixed;
  background-size: cover;
}

/* fonts */
@font-face {
  font-family: bebasneue;
  src: url(../fonts/bebas-neue-bold.woff);
  font-weight: 900;
}
@font-face {
  font-family: ambrosia;
  src: url(../fonts/ambrosia.ttf);
}
@font-face {
  font-family: dense;
  src: url(../fonts/dense-regular.woff);
}
@font-face {
  font-family: masterofbreak;
  src: url(../fonts/master-of-break.ttf);
}

/* body container style */
.container {
  min-width: 800px;
  max-width: 100%;
}

/* sitenavigation */
nav.sitenavigation {
  position: absolute;
}
.navigation-menu {
  display: none;
  position: absolute;
}
nav.sitenavigation li {
  list-style-type: none;
  display: none;
  font-family: bebasneue;
}
nav.sitenavigation a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* page navigation */
nav.pagenavigation {
  width: 400px;
}
nav.pagenavigation ul {
  text-align: left;
  list-style-position: inside;
}
nav.pagenavigation li {
  color: rgb(255, 255, 255);
}
nav.pagenavigation a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}

/* article section */
a {
  color: rgb(255, 255, 255);
  z-index: 1;
}
article {
  max-width: 100%;
}
article p {
  color: rgb(255, 255, 255);
  text-align: center;
}
article h1 {
  text-align: center;
}
article h1 a:hover {
  color: rgb(0, 0, 0);
  transition: 0.4s;
}
article h1 a {
  color: rgb(255, 255, 255);
}
#big {
  font-size: 60px;
  font-family: bebasneue;
}
#medium {
  font-size: 40px;
  padding-top: 50px;
  font-family: bebasneue;
}
.orange {
  background-color: rgb(255, 102, 51);
  margin-top: 50px;
  overflow: auto;
}
.orange figure {
  float: left;
  width: 20%;
}
.orange figure img{
  position: relative;
  width: 300px;
  padding-left: 20px;
  padding-top: 1px;
}
.orange figcaption {
  color: rgb(255, 255, 255);
  clear: left;
  text-align: center;
  padding-left: 20px;
  line-height: 40px;
  font-family: dense;
  font-size: 30px;
}
.orange img {
  position: absolute;
}
.turquoise {
  background-color: rgb(51, 204, 153);
  overflow: auto;
}
.turquoise figure {
  float: left;
  width: 20%;
}
.turquoise figure img {
  position: relative;
  padding-left: 20px;
  padding-top: 30px;
  width: 300px;
}
.turquoise figcaption {
  color: rgb(255, 255, 255);
  clear: left;
  font-family: dense;
  font-size: 30px;
}
.turquoise img {
  position: absolute;
}
.turquoise a:hover {
  color: rgb(0, 0, 0);
  transition: 0.3s;
}
.turquoise ul {
  text-align: left;
  line-height: 50px;
  color: rgb(255, 255, 255);
  list-style-position: inside;
  margin-left: 300px;
  font-size: 35px;
  font-family: dense;
}
.turquoise p img {
  margin-top: -25px;
  width: 95px;
}
.fix {
  max-width: 800px;
}
#white {
    background-color: rgb(255, 255, 255);
    overflow: auto;
}
#white p {
  color: rgb(0, 0, 0);
}
#white p:nth-child(1n+2) {
  text-align: left;
  line-height: 40px;
  font-size: 35px;
  font-family: dense;
}
.headln {
  font-size: 40px;
  text-align: center;
  text-decoration: underline;
  clear: left;
  font-family: ambrosia;
}
#coding {
  background-color: rgb(191, 191, 191);
  text-align: left;
  max-width: 500px;
}
code {
  color: rgb(153, 51, 0);
}
#coding p {
  color: rgb(0, 0, 0);
  margin-left: -30px;
  font-size: 15px;
}
.font {
  font-family: dense;
}

/* field styles */

fieldset {
  border: 0px;
}
.contactinfo input, textarea {
  padding: 5px;
  transition: 0.5s;
  border-radius: 5px;
  display: block;
  margin-top: 5px;
}
label {
  line-height: 20px;
  font-size: 22px;
  margin-top: 40px;
  display: block;
  padding-left: 200px;
  font-family: dense;
  color: rgb(255, 255, 255);
}
#nameinput, #emailinput {
  width: 40%;
}
#messageinput {
  width: 60%;
  transition: 0.5s;
}
#submit {
  border: 3px solid rgb(255, 255, 255);
  background: transparent;
  padding: 5px 20px;
  font-size: 15px;
  font-weight: bold;
  margin-left: 250px;
  margin-top: 30px;
  transition: 0.5s;
  color: rgb(255, 255, 255);
}
#submit:hover {
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  border: 3px solid rgb(0, 0, 0);
}

/* footer & social icons section */
footer {
  text-align: center;
  font-size: 25px;
  background-color: rgb(0, 0, 0);
  color: rgb(255, 255, 255);
  padding: 10px;
  overflow: auto;
}
footer h4 {
  font-family: bebasneue;
}
footer p {
  font-family: masterofbreak;
}
.footer-social-icons {
  width: 350px;
  display: block;
  margin: 0 auto;
}
footer ul {
  padding: 0;
  list-style: none;
}
footer a {
  text-decoration: none;
}
.social-icon {
  color: rgb(255, 255, 255);
}
.social-icons li {
  vertical-align: top;
  display: inline;
  height: 100px;
}
.social-icons a {
  color: rgb(255, 255, 255);
  text-decoration: none;
}
ul.social-icons {
  margin-top: 10px;
}
.fa-facebook {
  padding: 10px 14px;
  transition: 0.5s;
  background-color: rgb(0, 0, 0);
}
.fa-facebook:hover {
  background-color: #3d5b99;
}
.fa-instagram {
  padding: 10px 12px;
  transition: 0.5s;
  background-color: rgb(0, 0, 0);
}
.fa-instagram:hover {
  background-color: rgb(153, 51, 0);
}
.fa-twitter {
  padding: 10px 14px;
  transition: 0.5s;
  background-color: rgb(0, 0, 0);
}
.fa-twitter:hover {
  background-color: rgb(0, 172, 237);
}

/* styles for different screen sizes */
@media screen, print {
  #big {
    font-size: 60px;
  }
  .big2 {
    font-size: 30px;
    line-height: 100px;
    font-family: bebasneue;
  }
  #medium {
    font-size: 30px;
  }
  header img {
    width: 50%;
    padding-top: 30px;
    height: 100%;
  }
  .navigation-menu {
    display: block;
    width: 200px;
    padding-left: 250px;
    padding-top: 65px;
    z-index: 1;
  }
  nav.sitenavigation {
    width: 100%;
    max-width: 100%;
    background-color: rgba(128, 128, 128, 0.9);
    z-index: 1;
    transition: 0.5s;
    transform: translateX(-100%);
  }
  .navigation-menu.open {
    transform: translateX(-40%);
    transition: 0.5s;
  }
  nav.sitenavigation.open {
    transform: translateX(0);
    position: absolute;
  }
  nav.sitenavigation li {
    padding-top: 180px;
    font-size: 40px;
    display: block;
  }
  nav.pagenavigation li {
    font-size: 30px;
    line-height: 70px;
    font-family: bebasneue;
  }
  article {
    padding-top: 50px;
  }
  article p {
    padding-top: 20px;
  }
  .color {
    font-size: 22px;
    color: rgb(255, 255, 255);
    list-style-position: inside;
    text-align: center;
  }
  .color a {
    color: rgb(255, 255, 255);
    font-family: dense;
    font-size: 35px;
    transition: 0.3s;
  }
  .color a:hover {
    color: rgb(0, 0, 0);
  }
  .orange img {
    width: 110px;
    padding-left: 15px;
    padding-top: 60px;
  }
  .same {
    text-align: left;
    padding-left: 150px;
    padding-top: 30px;
    line-height: 40px;
    padding-bottom: 20px;
    width: 70%;
    font-size: 35px;
    font-family: dense;
  }
  .same a:hover {
    color: rgb(0, 0, 0);
    transition: 0.3s;
  }
  .turquoise img {
    width: 110px;
    margin-top: -20px;
  }
  .turquoise p:nth-child(1n+2) {
    line-height: 50px;
    padding-bottom: 20px;
    text-align: left;
    padding-left: 150px;
    width: 80%;
    font-size: 35px;
  }
  #white p:nth-child(1n+2) {
    padding-left: 50px;
    padding-right: 20px;
  }
}

@media screen and (min-width: 400px) {
  #big {
    font-size: 70px;
  }
  #medium {
    font-size: 35px;
  }

  header img {
    width: 50%;
  }
  .navigation-menu {
    display: block;
    width: 200px;
    padding-left: 250px;
    padding-top: 60px;
  }
  nav.sitenavigation {
    max-width: 400px;
  }
  nav.sitenavigation li {
    display: block;
  }
}
@media screen and (min-width: 600px) {
  #big {
    font-size: 70px;
  }
  #medium {
    font-size: 35px;
  }
  header img {
    width: 50%;
  }
  .navigation-menu {
    display: block;
    width: 230px;
    padding-left: 250px;
    padding-top: 45px;
  }
  nav.sitenavigation li {
    display: block;
  }
}

@media screen and (min-width: 800px) {
  .navigation-menu {
    display: none;
  }
  nav.sitenavigation {
    transform: translateX(0);
    background-color: transparent;
  }
  #big {
    font-size: 80px;
  }
  .big2 {
    font-size: 40px;
  }
  #medium {
    font-size: 25px;
  }
  #line {
    text-decoration: underline;
  }
  header img {
    width: 30%;
    padding-top: 20px;
    left: 0;
    height: 100%;
    position: relative;
  }
  .animated {/* this was from jquery plugin */
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-in-out, visibility .8s ease-in-out;
  }
  .animated-in {/* this is also from the same jquery plugin */
    opacity: 1;
    visibility: visible;
  }
  nav.sitenavigation {
    width: 100%;
    max-width: none;
    position: absolute;
  }
  nav.sitenavigation ul {
    text-align: right;
  }
  nav.sitenavigation li {
    display: inline-block;
    font-size: 20px;
    padding-left: initial;
    padding-top: 30px;
    padding-right: 30px;
    white-space: nowrap;
  }
  .underline:after{/*used for underline animation for nav bar on desktop view*/
    content: '';
    display: block;
    width: 0;
    height: 4px;
    background: rgb(255, 255, 255);
    transition: width 0.5s;
  }
  .underline:hover:after {
    width: 100%;
    transition: width 0.5s;
  }
  .activepage {
    border-bottom: 4px solid rgb(255, 255, 255);
  }
  .orange {
    margin-top: 140px;
  }
  .orange img {
    width: 130px;
  }
  .orange p:nth-child(1n+2) {
    max-width: 650px;
  }
  .turquoise p:nth-child(1n+2) {
    max-width: 650px;
  }
  #white p:nth-child(1n+2) {
    max-width: 650px;
  }
}

@media screen and (min-width: 950px) {
  #big {
    font-size: 80px;
  }
  #medium {
    font-size: 30px;
  }
  nav.sitenavigation li {
    font-size: 20px;
    padding-right: 30px;
  }
  .orange img {
    width: 200px;
  }
}

@media screen and (min-width: 1200px) {
  .big2 {
    font-size: 45px;
  }
  nav.sitenavigation li {
    font-size: 25px;
    padding-right: 50px;
  }
  .big {
    font-size: 70px;
  }
  .medium {
    font-size: 25px;
  }
}
