/*! 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 {
  scroll-behavior: smooth;
}

body {
  font-size: 1em;
  font-family: 'Open Sans', sans-serif;
  color: #CFCFCB;
  background-color: #CFCFCB;
  /* Sometimes the default background for a browser isn't exactly white. Adding a default allows more consistency between browsers. */
}

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

a {
  color: #CFCFCB;
  text-decoration: none;
}

h1 {
  color: #3CC47C;
  font-family: 'Bree Serif', serif;
  font-size: 1.75rem;
  line-height: 1.5;
  width: 100%;
  letter-spacing: 2px;
}

h2 {
  color: #CFCFCB;
  font-family: 'Bree Serif', serif;
  font-size: 1.25rem;
  width: 100%;
  font-weight: 400;
  letter-spacing: 2px;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.5rem;
}

.project-link,
.language-wrapper p,
.tool-wrapper p {
  text-transform: uppercase;
  font-size: 1.125rem;
  color: #CFCFCB;
}



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

h3,
h4,
h5,
h6 {
  font-family: 'Bree Serif', serif;
  line-height: 1.5;
  width: 100%;
  letter-spacing: 2px;
}

p,
li {
  font-size: 1rem;
  line-height: 1.5;
}

span {
  font-weight: bold;
}

img {
  width: 100%;
}

figure {
  margin: 0;
}

address {
  font-style: normal;
}

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

.content-wrapper {
  width: 85%;
}

#projects p,
#about p {
  color: #545455;
  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;
}

#projects {
  padding-top: 60px;
}

#skills {
  padding-bottom: 80px;
}

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

footer {
  padding: 20px 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 {
  color: #3CC47C;
  margin-bottom: 10px;
}

.contact-info {
  color: #3CC47C;
  margin: 0 0 60px 0;
}

.contact-info p {
  color: #CFCFCB;
}

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

/* -------------------- Base Header Styles -------------------- */

header {
  background-color: #545455;
}

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

nav #contact-link {
  color: #545455;
  background-color: #FCD130;
  padding: 10px 10px;
  border-radius: 30px;
}

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

header h1 {
  width: 100%;
}

header h2 {
  width: 100%
}

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

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

#projects h3 {
  width: 100%;
  color: #545455;
}

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

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

.home-portfolio-piece h4 {
  font-weight: bold;
  color: #545455;
}

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

.project-link {
  background-color: #FCD130;
  padding: .75rem 3.75rem;
  border-radius: 30px;
  color: #545455;
  font-weight: 700;
}

.project-link:hover {
  background-color: #FFFC8A;
  color: #545455;
}

#skills {
  background-color: #545455;
}

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

.language-wrapper p,
.tool-wrapper p {
  color: #545455;
  background-color: #CFCFCB;
  padding: 15px 0;
  margin: 20px 0;
}

.tool {
  width: 100%;
}

/* About */
#about {
  width: 100%;
}

#profile-image {
  width: 90%;
}

#about h3,
#about p {
  color: #545455;
}

#about h4 {
  color: #545455;
  line-height: 40px;
}

/* -------------------- Base Header Styles -------------------- */
footer {
  background-color: #545455;
}

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 a:hover {
  color: #FFFC8A;
}

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;
}

footer .social-icons li a {
  font-size: 1.875rem;
  color: #CFCFCB;
}

footer .social-icons li a:hover {
  color: #FFFC8A;
}


/* ==========================================================================
   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.
   ========================================================================== */

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

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

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

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  header nav ul li {
    font-size: 1rem;
  }

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

  nav {
    margin: 0 0 80px 0;
  }

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

  #skills {
    padding-bottom: 80px;
    color: #3CC47C;
  }

  footer {
    padding: 50px 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;
  }

  .home-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: 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 */
  .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;
    justify-content: space-between;
  }

  footer .social-icons li i {
    font-size: 2rem;
  }

  footer .copyright {
    width: 100%;
  }

  #clock {

  }
}

@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;
  }
}

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

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

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

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 2.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.5rem;
  }

  .about-info h3 {
    font-size: 3.75rem;
    text-align: left;
  }

  .about-info h4 {
    font-size: 2rem;
  }

  p {
    font-size: 1.25rem;
  }

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

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

  nav {
    margin-bottom: 80px;
  }

  #projects {
    padding-top: 80px;
  }

  #skills {
    padding-bottom: 120px;
  }

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

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

  h2 {
    margin: 40px 0 0 0;
  }

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

  .project-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: 40px 0;
  }

  .about-text {
    margin: 0 0 30px 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: #FFFC8A;
    color: #545455;
    padding: 10px 10px;
    border-radius: 30px;
  }

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

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

  /* 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: 58%;
  }

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

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


/* ==========================================================================
   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;
  }
}

