/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.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
 *
 * 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 */

  body {
    font-size: 1em;
    font-family: 'Open Sans', sans-serif;
    color: #351D77;
    background-color: white;
    /* To set the default background color in case it is not white in the browser by default. */
   }

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

  a {
  color: #351d77;
  text-decoration: none;
	}

  h1 {
    color: #351D77;
    font-family: "Alata", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.75rem;
    line-height: 1.5;
    width: 100%;
  }

  h2 {
    color: #351D77;
    font-family: "Alata", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.25rem;
    line-height: 1.5;
    width: 100%;
  }

  h3 { 
    font-size: 1.75rem;
  }

  h4 { 
    font-size: 1.25rem;
  }

  h5 { 
    font-size: 1.5rem;
  }

  .project-link,
  .language-wrapper,
  .tool-wrapper p {
    font-size: 1.125rem;
    color: #351d77;
  }

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

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

  p {
    font-family:"Nunito Sans", sans-serif;
  }

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

  span {
    font-weight: bold;
  }

  img {
    width: 100%;
  }

  figure {
    margin: 0;
  }

  address {
    font-style: normal;
  }

  .fab {
    font-family: "Font Awesome 5 Brands";
  }

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

  @media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;  
    }
}

  /* Setting margins to zero to remove all browser default margins */

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin: 0;
  }

  p {
    margin: 0;
  }

  /* Margins & Padding */
  header {
    padding-top: 30px;
    padding-bottom: 60px;
  }

  nav {
    margin-bottom: 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-color: #eee4f0;
  }

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

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

  nav #contact-link:hover {
    background-color: #f4bedc;
  }

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

  header h1,
  header h2 {
    width: 100%;
  }

  #backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #f4bedc; 
    opacity: 0.7;
    color: #351d77;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
  }

  #backToTopBtn:hover {
    background-color: #eC91c4;
    color: white;
  }

  .visually-hidden {
    /* Hides the text for the anchor link in the icons while making it accessible to screen readers */
    display: inline-block;
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
  }

  /* -----Mobile Styles ----- */
  
  /* Portfolio */

  #work,
  #work h3,
  #skills {
    width: 100%
  }

  .portfolio-wrapper {
    display: flex;
    justify-content: center;
    align-items: stretch;
    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;
  }

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

  .flex-fill {
    flex-grow: 1;
  }

  .project-link {
    background-color: #ec91c4;
    text-transform: uppercase;
    padding: .75rem 3.75rem;
    border-radius: 30px;
    color: #351d77;
  }

  .project-link:hover {
    background-color: #f4bedc;
    color:#351d77;
  }

  #skills {
    background-color: #eee4f0;
  }

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

  .language-wrapper p,
  .tool-wrapper p {
      background-color: #ec91c4;
      padding: 15px 0;
      margin: 20px 0;
    }
  
  .tool {
    width: 100%
  }

  /* About */

  #about {
    width: 100%
  }

  #profile-image {
    width: 90%;
  }

  #about h3,
  #about h4,
  #about p {
    color: #351d77;
  }

  /* ----- Base Footer Styles -----*/

  footer {
    background-color: #eee4f0;
  }

  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%;
    font-size: 1.5rem;
  }

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

  footer .social-icons li i {
    font-size: 1.875rem;
    color: #351d77;
  }

  
  






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

.visually-hidden {
  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 .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.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
 *
 * 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) {
  /* Style adjustments for tablets */

  /* General Styles */

  .content-wrapper {
    max-width: 640px;
  }

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

  h2 {
    margin-top: 80px;
  }

  h2, 
  h5 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  /* Element margins */
  header {
    padding-top: 60px;
    padding-bottom: 80px;
  }

  nav {
    margin: 0 0 80px 0;
  }

  #work {
    padding-top: 80px;
  }

  #skills {
    padding: 80px 0;
  }

  #about {
    padding: 80px 0;
  }

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

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

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

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

  footer {
    padding: 140px 0 80px 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 {
    display: flex;
    justify-content: center;
    width: 100%;
    text-transform: uppercase;
  }

  header nav ul {
    display: flex;
    justify-content: space-between;
    width: 80%;
  }

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

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

  .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;
    flex-direction: row;
    align-items: center;
    width: 100%;
  }

  footer .social-icons {
    width: 12.5em;
  }

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

  footer .copyright {
    width: 100%;
  }

}

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

  .project-description {
    flex-grow: 1;
  }

  .about-info h3 {
    font-size: 3.5rem;
  }
}

@media only screen and (min-width: 1200px) {
  /* Style adjustments for Desktop */
  .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 */

  header {
    padding-top: 80px;
    padding-bottom: 140px;
  }

  nav {
    margin-bottom: 80px;
  }

  h2 {
    margin: 40px 0 0 0;
  }

  #work {
    padding-top: 80px;
  }

  #skills {
    padding-bottom: 120px;
  }

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

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

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

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

  footer {
    padding: 140px 0;
  }

  .contact-info {
    margin: 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;
  }

  nav ul li a:hover,
  nav #contact-link:hover {
    background-color: #351d77;
    color: #d4d3e9;
    padding: 10px;
    border-radius: 30px;
  }

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

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

  /* portfolio */

  .home-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;
    display:flex;
    align-self: center;
  }

  .about-info {
    width: 58%;
  }

  /* contact */

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

}

@media (prefers-reduced-motion: no-preference) {
  html {
      scroll-behavior: smooth;  
  }
}

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

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

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

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

