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

/*General Styles*/
body {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: column wrap;
  color: #351d77;
}

.content-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  flex-flow: row wrap;
}

h1,
h2,
h3 {
  font-family: "Alata", serif;
}

h1 {
  font-size: 2.25em;
}

h2 {
  font-size: 1.875em;
}

h3 {
  font-size: 1.25em;
}

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

/***Header Styles ***/
header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e8f0e4;
}

/*Nav Section*/
nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

nav .content-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

ul.navigation {
  display: flex;
  flex-direction: row;
  width: 100%;
  justify-self: center;
  align-items: center;
  margin-bottom: 10px;
  margin-left: 0;
  padding-left: 0;
}

.navigation li {
  list-style-type: none;
  width: 30%;
  margin-bottom: 25px;
  font-size: 1.25em;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation li a:hover {
  background-color: #eee4f0;
  padding: 10px;
  border-radius: 12px;
}

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

.highlight a {
  background-color: #d4d3e9;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
}

/*Divide Styles */
.divide {
  background-color: #fff;
  height: 2px;
  width: 100%;
}

/*Intro Styles */
.intro {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  width: 100%;
  padding-bottom: 40px;
}

.intro p {
  text-align: center;
  width: 80%;
}

/*** Main Section Styles ***/
main {
  width: 100%;
}

/* Projects Styles */
#projects {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  background-color: #fff;
  padding-top: 40px;
}

#projects div.content-wrapper h2 {
  padding-bottom: 40px;
}

.project {
  width: 100%;
  justify-content: center;
  align-items: center;
}

.project-img {
  display: flex;
  justify-content: center;
  width: 100%;
}
.project-img img {
  width: 100%;
  object-fit: contain;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.cat-rescue {
  border: 2px solid #fff;
}

.project h3 {
  align-self: self-start;
  text-align: center;
}

.project h3,
.project p {
  width: 100%;
}

.site {
  display: flex;
  justify-content: space-around;
  width: 100%;
  margin-bottom: 60px;
}

.site a {
  text-decoration: none;
  background-color: #351d77;
  border-radius: 12px;
  padding: 10px 60px;
  color: #fff;
  width: 100%;
}

.site a:hover {
  background-color: #eee4f0;
  color: #351d77;
}

/*Project Skills and Tools Styles */
.project .skills {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

.project .tools {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

/*Skills Styles */
#skills {
  margin-top: 40px;
  background-color: #e8f0e4;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 0;
}

#skills .skills li {
  list-style-type: none;
  margin-bottom: 10px;
  background-color: #fff;
  padding: 10px 20px;
}

.skills,
.tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-flow: column wrap;
  margin-bottom: 60px;
  width: 100%;
}

.skills h3,
.tools h3,
.skills h2 {
  width: 100%;
  text-align: center;
}

#skills ul {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  width: 100%;
}

.skills li,
.tools li {
  font-size: 1.125em;
  text-align: center;
  width: 100%;
}

.project .tools {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

div.tools ul,
.skills ul {
  padding: 0;
  margin: 0;
}

.tools li {
  list-style-type: none;
  margin-bottom: 10px;
  background-color: #d4d3e9;
  padding: 10px 20px;
}

/* About Styles */
#about {
  margin: 40px 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.prof-img {
  display: flex;
  justify-content: center;
  background-color: white;
  width: 100%;
}

#about p {
  width: 100%;
}

#about img {
  height: 250px;
}

/* Footer and Contact Styles */
footer {
  background-color: #e8f0e4;
  width: 100%;
}

#contact {
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact h2,
.social h2 {
  width: 100%;
  text-align: center;
}

.email {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
}

.email a {
  width: 100%;
  text-align: center;
  color: #351d77;
  text-decoration: none;
  font-size: 1.253em;
}

.email p {
  width: 100%;
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-flow: row wrap;
  width: 100%;
}

.social ul {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0;
}

.social li {
  list-style-type: none;
}

.social i {
  font-size: 2em;
}

.social li a {
  width: 20%;
  padding-right: 20px;
  color: #351d77;
}

.social li a:hover {
  color: #f8d697;
}

.year {
  display: flex;
  justify-content: center;
  width: 100%;
}

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

/* ==========================================================================
   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 screen and (min-width: 768px) {
  /*General Styles */
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2.25em;
  }

  h3 {
    font-size: 1.5em;
    margin-top: 20px;
  }
  main {
    flex-flow: row wrap;
  }

  /*Project Styles */
  #projects {
    margin: 40px 0;
  }

  #projects .content-wrapper {
    flex-flow: row wrap;
    align-items: flex-start;
    justify-content: space-around;
  }

  #projects .content-wrapper h2 {
    width: 100%;
    text-align: center;
  }
  .project {
    width: 45%;
    margin-right: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-flow: row wrap;
  }

  .repo {
    margin-top: 0;
  }

  .stretch {
    align-self: stretch;
  }

  .project .skills,
  .project .tools {
    display: flex;
    justify-content: flex-start;
  }

  div.site {
    display: flex;
    align-items: flex-end;
    align-self: self-end;
  }

  /*Skills and Tools Styles */
  .abilities {
    padding-bottom: 40px;
  }

  .skills,
  .tools {
    width: 100%;
  }

  .skills h2,
  .tools h2 {
    width: 100%;
    text-align: center;
  }

  .skills ul,
  .tools ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row wrap;
  }

  .skills li,
  .tools li {
    margin: 5px 5px;
    width: 40%;
  }

  /*About Styles */
  #about .content-wrapper {
    justify-content: space-around;
  }

  .prof-img {
    width: 40%;
  }

  #about img {
    object-fit: contain;
    width: 100%;
  }

  .about-text {
    width: 40%;
  }

  /*Footer Styles */
  #contact {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-flow: column wrap;
  }

  .email,
  .social {
    width: 40%;
    align-self: flex-start;
  }

  .social ul {
    justify-content: center;
  }
}

.social li {
  margin: 0 30px;
}

@media only screen and (min-width: 1200px) {
  /* General Styles */
  h1 {
    font-size: 3.75em;
  }

  h2 {
    font-size: 2.5em;
  }

  h3 {
    font-size: 1.875em;
  }

  p {
    font-size: 1.25em;
  }

  /*Header Styles */
  nav {
    width: 100%;
    justify-content: flex-end;
  }

  nav .content-wrapper {
    width: 50%;
  }

  h1 {
    font-size: 4em;
  }

  /* Project Styles */
  .project {
    width: 30%;
    margin-bottom: 40px;
  }

  .dv-stretch {
    align-self: stretch;
  }

  /*Skills and Tools Styles */
  #skills .skills li,
  #skills .tools li {
    margin-bottom: 10px;
    font-size: 1.25em;
    width: 25%;
  }

  /*About Styles*/
  #about {
    height: 400px;
  }

  /*Footer Styles */
  #contact {
    height: 400px;
  }

  #contact .content-wrapper {
    height: 100%;
    padding-top: 30px;
  }

  div.social {
    justify-content: flex-end;
  }
  .social ul {
    justify-content: center;
  }

  .year {
    align-items: flex-end;
  }
}

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

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

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