/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* General Styles */
html {
  font-size: 16px;
}

body {
  font-size: 1em;
  font-family: 'Roboto', sans-serif;
  color: #0079ce; /** #0079ce (light blue #2), #2a87dd (light blue #1), #010b8b (royal blue), #c58d01 (dark shade of golden yellow) **/
  background-color: white; /* Added default background for more consistency between browsers */
}

ul,
ol {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: #fecc50; /** #fecc50 (golden yellow), #c58d01 (dark shade of golden yellow), #0079ce (light blue #2), #2a87dd (light blue #1), #010b8b (royal blue) **/
  text-decoration: none;
  /* font-size: 1.25rem; /* 20px */
  background-color: #010b8b; /** royal blue **/
  padding: 10px 10px;
  border-radius: 30px;
}

h1 {
  color: #c58d01; /** dark shade of golden yellow **/
  font-family: 'Roboto Slab', serif;
  font-size: 1.75rem /*3.75rem*/; /* 28px vs 60px */
  line-height: 1.5;
  width: 100%;
  font-weight: bold;
  padding: 50px 0 0px 0;
  text-align: center;
}

h2 {
  color: #010b8b; /** royal blue **/
  background-color: #FBFBFB;
  font-family: 'Roboto', sans-serif;
  font-size: 1.25rem /*3rem*/; /* 20px vs 48px */
  line-height: 1.5;
  width: 100%;
  font-weight: normal;
  /* padding: 50px 0px 0 0px; */
  text-align: center;
}

h3 {
  font-size: 1.75rem; /* Or 28px */
}

h4 {
  font-size: 1.25rem; /* Or 20px */
}

h5 {
  font-size: 1.5rem; /* Or 24px */
}

.project-link,
.language-wrapper p,
.tool-wrapper p {
  text-transform: uppercase;
  font-size: 1.125rem; /* Or 18px */
  color: #0079ce; /** #0079ce (light blue #2), #2a87dd (light blue #1), #010b8b (royal blue), #c58d01 (dark shade of golden yellow) **/
}

.about-info h4,
.contact-title {
  font-weight: normal;
}

h3,
h4,
h5,
h6 {
  font-family: 'Roboto', sans-serif;
  line-height: 1.5;
  width: 100%;
}

p,
li {
  font-size: 1rem; /* Or 16px */
  line-height: 1.5;
}

span {
  font-weight: bold;
}

img {
  width: 100%;
}

figure {
  margin: 0;
}

address {
  font-style: normal;
}

/* Structural Styles */
header,
#work,
#skills,
#about,
footer {
  display: flex;
  justify-content: center;
  text-align: center;
  flex-flow: row wrap;
}

.content-wrapper {
  width: 85%;
}

#work p,
#about p {
  width: 100%;
  text-align: left;
}

/* set the margins & paddings for each section - these are only a suggestion :) */
/* setting all margins to zero removes all browser added default margins */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

/* then can set the margin & paddings for any element */
header {
  padding-top: 30px;
  padding-bottom: 60px;
}

nav {
  margin-bottom: 60px;
  margin-top: 60px;
}

#work {
  padding-top: 60px;
}

#skills {
  padding-bottom: 80px;
}

#about {
  padding-top: 60px;
  padding-bottom: 60px;
}

footer {
  padding: 80px 0;
}

h2 {
  margin-top: 60px;
}

h3 {
  margin-bottom: 20px;
}

h4 {
  margin: 0 0 40px 0;
}

.project-description {
  margin: 0 0 30px 0;
}

.project-link {
  margin: 40px 0 60px 0;
}

#skills {
  padding-top: 80px;
}

figure {
  margin: 20px 0 40px 0;
}

.skills-header {
  margin-bottom: 20px;
}

.about-info h3 {
  margin: 40px 0 40px 0;
}

.about-text {
  margin: 0 0 30px 0;
}

#contact h3 {
  margin-bottom: 60px;
}

.contact-info {
  margin:  0 0 60px 0;
}

.contact-title {
  margin: 0 0 40px 0;
}

/* -------------------- Base Header Styles -------------------- */
header {
  background: url('../img/hero-image.png') center no-repeat #010b8b;
  background-size: cover; /** 1400px auto;  width is 1400px, height is auto **/
  min-height: 500px;
  padding-bottom: 75px;
  display: flex;
  justify-content: center;
  flex-flow: row wrap;
}

header nav ul li {
  font-size: .75rem; /* Or 12px */
  margin-bottom: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

nav #contact-link {
  background-color: #010b8b; /** #010b8b (royal blue), #c58d01 (darker shade of golden yellow) **/
  padding: 10px 10px;
  border-radius: 30px;
}

nav ul {
  display: flex;
  justify-content: space-between;
}

header .home-title {
  margin-bottom: 100px;
}
header h1 {
  width: 100%;
  margin-top: 40px;
}

header h2 {
  width: 100%;
  margin-top: 40px;
  margin-bottom: 40px;
}

/* -------------------- Mobile Styles - Homepage -------------------- */

/* Portfolio */
#work,
#skills {
  width: 100%;
}

#work h3 {
  width: 100%;
}

.portfolio-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-flow: row wrap;
}

.portfolio-piece {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.portfolio-piece h4 {
  font-weight: bold;
}

.portfolio-piece figure {
  width: 100%;
  filter: drop-shadow(1px 2px 6px lightgrey);
}

.project-link {
  background-color: #010b8b; /** #010b8b (royal blue) **/
  padding: .75rem 3.75rem; /* 12px 60px */
  border-radius: 30px;
  color: #FFFFFF;
}

.project-link:hover {
  background-color: #0079ce; /** #0079ce (light blue #2), #2a87dd (light blue #1), #010b8b (royal blue), #c58d01 (dark shade of golden yellow) **/
  color: #010b8b; /** #010b8b (royal blue), #0079ce (light blue #2), #2a87dd (light blue #1), #c58d01 (dark shade of golden yellow) **/
}

#skills {
  background-color: #010b8b; /** #010b8b (royal blue) **/
}

#skills h4 {
  margin: 40px 0 40px 0;
  font-weight: bold;
}

.language-wrapper p,
.tool-wrapper p {
  background-color: #ffffff; /** #ffffff (white), #0079ce (light blue #2), #2a87dd (light blue #1), #010b8b (royal blue), #c58d01 (dark shade of golden yellow) **/
  color: #010b8b; /** #010b8b (royal blue) **/
  border-radius: 30px;
  padding: 15px 0px; /* .5rem 1rem, .9375rem 0rem (15px 0px), .75rem 3.75rem (12px 60px) */
  margin: 20px 0; /* .5rem 0 */
}

/* .language-wrapper,
.skill p,
.tool-wrapper,
.tool p {
  display: flex;
  flex-flow: row-wrap;
  align-items: center;
  justify-content: center;
  padding: .5rem 1rem
} */

.tool {
  width: 100%;
}

/* About */
#about {
  width: 100%;
  background-color: #101b8b; /** #101b8b (royal blue #2), #010b8b (royal blue), #0079ce (light blue #2), #2a87dd (light blue #1) **/
}

#profile-image {
  width: 90%;
}

#about h3,
#about h4,
#about p {
  color: #FFFFFF;
}

/* -------------------- Base Header Styles -------------------- */
footer {
  background-color: #010b8b; /** #010b8b (royal blue) **/
}

footer .contact-wrapper {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: flex-start;
}

footer .contact-info {
  width: 60%;
}

footer h4 {
  width: 100%;
}

footer .follow-section {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}

footer .social-icons {
  display: flex;
  justify-content: space-around;
}

footer ul {
  width: 100%;
}

footer .social-icons li {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* This will be useful if going to use fontawesome icons instead of the image files. Will need to add fontawesome code into html head section */
footer .social-icons li i {
  font-size: 1.875rem; /* 30px */
  color: #fecc50; /** #fecc50 (golden yellow), #c58d01 (dark shade of golden yellow) **/
}

footer h3,
footer h5,
footer a,
footer p {
  color: #FFFFFF;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/* -------------------- Tablet Styles - Homepage -------------------- */

@media only screen and (min-width:768px) {
  /*Tablet styles here*/

  /* General styles */
  .content-wrapper {
    max-width: 640px;
  }

  /* font styles */
  h1 {
    font-size: 2.5rem; /* 40px */
  }

  h2 {
    font-size: 1.5rem; /* 24px */
  }

  h3 {
    font-size: 2rem; /* 32px */
  }

  h4 {
    font-size: 1.25rem; /* 20px */
  }

  h5 {
    font-size: 1.5rem; /* 24px */
  }

  header nav ul li {
    font-size: 1rem; /* 16px */
  }

  /* element margins */
  /* the list element have 20px of bottom margin already */
  header {
    padding-top: 60px;
    padding-bottom: 80px;
    min-height: 600px;
  }

  nav {
    margin: 0 0 80px 0;
  }

  /* #work */
  #work {
    padding-top: 80px;
  }

  #skills {
    padding-bottom: 80px;
  }

  footer {
    padding: 140px 0;
  }

  #about {
    padding: 80px 0;
  }

  footer {
    padding-bottom: 80px;
  }

  h2 {
    margin-top: 80px;
  }

  .portfolio-header {
    margin: 0 0 60px 0;
  }

  .project-description {
    margin: 0 0 30px 0;
  }

  .project-link {
    margin: 40px 0 60px 0;
  }

  #skills {
    padding-top: 80px;
  }

  .skills-header {
    margin-bottom: 40px;
  }

  #skills h4 {
    margin: 40px 0 20px 0;
  }

  .about-info h3 {
    margin: 80px 0;
  }

  .about-info h4 {
    margin: 0 0 60px 0;
  }

  .about-text {
    margin: 0 0 30px 0;
  }

  .contact-info {
    margin: 80px 0;
  }

  .contact-title {
    margin: 0 0 30px 0;
  }

  /* header */
  header .content-wrapper {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
  }

  header nav {
    /* keep if using hamburger menu */
    display: flex;
    justify-content: center;
    width: 100%;
    text-transform: uppercase;
  }

  header nav ul {
    /* keep if using hamburger menu */
    display: flex;
    justify-content: space-between;
    width: 80%;
  }

  .home-title {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
  }

  .home-title h2 {
    max-width: 80%;
  }

  /* portfolio */
  .portfolio-wrapper {
    justify-content: space-around;
  }

  .portfolio-piece {
    width: 45%;
    align-items: center;
  }

  .project-description {
    width: 95%;
  }

  .language-wrapper,
  .tool-wrapper {
    display: flex;
    justify-content:space-evenly;
    width: 100%;
    flex-flow: row wrap;
    text-transform: uppercase;
  }

  .skill,
  .tool {
    /* width: auto; */
    width: 45%;
  }

  .language-wrapper p,
  .tool-wrapper p {
    padding: 15px 0;
  }

  /* about */
  .about-content-wrapper {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
  }

  #about figure {
    width: 60%;
  }

  .about-info h4 {
    text-align: left;
  }

  /* Footer */
  footer .contact-wrapper {
    display: flex;
    justify-content: space-between;
  }

  footer .contact-info {
    width: 33%;
  }

  footer ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    width: 100%;
  }

  footer .social-icons {
    width: 12.5em; /* 200px */
    justify-content: space-between;
  }

  footer .social-icons li i {
    font-size: 2rem; /* 32px */
  }

  footer .copyright {
    width: 100%;
  }
}

@media only screen and (min-width: 1024px) {
  /* added for landscape tablets and iPad Pro */
  .content-wrapper {
    max-width: 900px;
  }

  .about-info h3 {
    font-size: 3.5rem; /* 56px */
  }
}

/* -------------------- Desktop Styles - Homepage -------------------- */

@media only screen and (min-width:1200px) {

  /* Desktop styles here*/
  .content-wrapper {
    max-width: 1450px;
  }

  /* font styles */
  h1 {
    font-size: 4rem; /* 64px */
  }

  h2 {
    font-size: 3rem; /* 48px */
  }

  h3 {
    font-size: 2.5rem; /* 40px */
  }

  h4 {
    font-size: 1.25rem; /* 20px */
  }

  h5 {
    font-size: 1.5rem; /* 24px */
  }

  .about-info h3 {
    font-size: 3.25rem; /* 52px */
    text-align: left;
  }

  .about-info h4 {
    font-size: 2.25rem; /* 36px */
  }

  p {
    font-size: 1.125rem; /* 18px */
  }

  .project-link,
  .language-wrapper p,
  .tool-wrapper p {
    font-size: 1rem; /* 16px */
  }

  /* element margins */
  /* the list of element have 20px of bottom margin already */
  header {
    padding-top: 80px;
    padding-bottom: 140px;
  }

  nav {
    margin-bottom: 80px;
  }

  #work {
    padding-top: 80px;
  }

  #skills {
    padding-bottom: 120px;
  }

  #about {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  footer {
    padding: 140px 0 140px 0;
  }

  h2 {
    margin: 40px 0 0 0;
  }

  .portfolio-header {
    margin: 0 0 60px 0;
  }

  .portfolio-description {
    margin: 0 0 30px 0;
  }

  .project-link {
    margin: 40px 0 80px 0;
  }

  #skills {
    padding-top: 120px;
  }

  #skills .content-wrapper {
    max-width: 900px;
  }

  .skills-header {
    margin-bottom: 40px;
  }

  .about-info h3 {
    margin: 0;
  }

  .about-info h4 {
    margin: 20px 0;
  }

  .about-text {
    margin: 0 0 20px 0;
  }

  .contact-info {
    margin: 80px 0 80px 0;
  }

  .contact-title {
    margin: 0 0 30px 0;
  }

  /* header */
  header .content-wrapper {
    justify-content: flex-end;
  }

  header nav {
    justify-content: flex-end;
    width: 45%;
  }

  nav ul li a {
    padding: 10px 10px;
  }

  nav ul li a:hover,
  nav #contact-link:hover {
    background-color: #010b8b; /** #010b8b (royal blue) **/
    color: #ffffff; /** #ffffff (white), #c58d01 (dark shade of golden yellow), #fecc50 (golden yellow) **/
    padding: 10px 10px;
    border-radius: 30px;
  }

  .home-title {
    max-width: 95%;
  }

  .home-title h1 {
    margin-top: 150px;
  }

  .home-title h2 {
    max-width: 80%;
  }

  /* portfolio */
  .portfolio-piece {
    width: 30%;
  }

  /* skills */
  .skill,
  .tool {
    width: 30%;
  }

  /* about */
  .about-content-wrapper {
    display: flex;
    justify-content: space-between;
  }

  #about figure {
    width: 35%;
    margin-top: 0;
  }

  .about-info {
    width: 64%;
  }

  /* contact */
  footer .content-wrapper {
    max-width: 70%;
  }

  footer .social-icons {
    width: 12.5em;
    justify-content: space-between;
  }
}

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  /*
   * Printing Tables:
   * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
   */
  thead {
    display: table-header-group;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}
