/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */

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

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

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

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

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

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

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

textarea {
  resize: vertical;
}

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

:root {
  --primary-color: #434a54;
  --secondary-color: #c9d8db;
  --darker-primary-color: #333841;
  --border-color: #5E666F;
  --highlight-color: white;
  --default-background-color: white;
  --default-text-color: black;

  --tertiary-color-1: #516F54;
  --tertiary-color-2: #eab555;
  --tertiary-color-3: #92412e;
  --tertiary-color-4: #f0eadc;
}
  
   /*-- Base Styles --*/

html {
  display: flex;
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  color: var(--primary-color);
  margin: auto;
  justify-content: center;
  max-width: 2000px;
}

body {
  width: 100%;
  padding: 0;
  margin: 0;
}

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

figure {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto;
  padding: 0 10px 20px 10px;
  max-width: 500px;
  height: auto;
}

figcaption {
  display: flex;
  color: var(--primary-color);
  font-size: .85em;
  font-style: italic;
  justify-content: right;
}

img {
  display: flex;
  border-radius: 5px;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: var(--primary-color);
}

h1 {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1.25em;
  font-weight: lighter;
  text-align: center;
}

h2 {
  font-family: "Caveat", Arial, Helvetica, sans-serif;
  font-size: 3em;
  line-height: .5em;
}

h3 {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1.25em;
  font-weight:normal;
  margin: 0.5em 0em;
}

h4 {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1.15em;
  font-weight:600;
  line-height: .1em;
  margin: 1em 0em 0.5em 0em;
}

h5 {
  font-family: "Source Sans 3", Arial, Helvetica, sans-serif;
  font-size: 1em;
  font-weight:600;
  line-height: 1em;
  margin: 1em 0em 0em 0em;
}

.content-wrapper {
  margin: 0;
  padding: 0.1em 1.5em 1.5em 1.5em;
  max-width: 2000px;
  justify-content: center;
  margin-right: auto;
}

#goToTopButton {
  display: none;
  position: fixed;
  bottom: 1em;
  right: 1.25em;
  z-index: 99;
  border: none;
  outline: none;
  background-color: var(--default-background-color);
  color: var(--darker-primary-color);
  cursor: pointer;
  padding: .5em;
  border-radius: 50%;
  font-size: 1.75em;
  font-weight: bold;
}

#goToTopButton:hover {
  background-color: var(--darker-primary-color);
  color: var(--default-background-color)
}

.social ul {
  font-size: 2.5em;
  display: flex;
  flex-wrap: wrap;
  gap: .8em;
  list-style-type: none;
}

/*-- Header Styles --*/

header {
  display: flex;
  justify-content: center;
  background-color: var(--secondary-color);
  margin: 0;
  width: 100%;
}

nav {
  background-color: var(--secondary-color);
  width: 100%;
  margin: 0;
  padding: 15px 0;
  font-size: 1.125em;
  font-weight: bold;
  text-transform: uppercase;
  color: var(--primary-color);
  position: sticky;
  top: 0px;
}

nav ul {
  display: flex;
  justify-content: space-around;
  margin-block-start: 1em;
  margin-top: 0;
  max-width: 2000px;
  align-content: center;
  margin: auto;
}

nav ul li {
  font-family: "Caveat", Arial, Helvetica, sans-serif;
  font-size: 1em;
}

nav ul li a {
  background-color: transparent;
  border-radius: .5em;
  padding: .5em;
}

nav ul li a:hover {
  color: var(--secondary-color);
  background-color: var(--primary-color);
  border-radius: .5em;
  padding: .5em;
}

/*-- Section Styles --*/

#about .content-wrapper {
  background-color: white;
  justify-content: center;
  align-items: center;
  padding: 1.6px 48px;
}

#about .text {
  width: 100%;
}

#about h2 {
  line-height: 1em;
}

#about figure {
  justify-content: right;
  padding: 10px 20px;
  margin: 25px auto;
  max-width: 300px;
}

#about ul {
  padding: 0.1em;
}

#skills {
  background: var(--tertiary-color-4);
  color: var(--primary-color);
  margin: 0;
  width: 100%;
}

#skills h2 {
  padding-left: 0.5em;
}

#skills ul {
  gap: 1em;
  list-style: disc;
  margin-left: 2em;
}

#skills ul span {
  font-size: 1.25em;
  font-weight: bold;
}

#projects {
  background-color: white;
}

#projects h2 {
  padding-left: 0.5em;
  margin-bottom: 0.5em;
}

#projects .content {
  justify-content: space-between;
  gap: 1em;
}

.project {
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  border: 2px solid var(--border-color);
  padding: 1em 1em;
  margin: 2em 0em;
}

.project img {
  box-shadow: 0px 4px 25px 0px rgba(0, 0, 0, 0.1);
}

.project span {
  text-decoration: underline;
}

.project a:hover {
  cursor: pointer;
}

.project ul {
  gap: 1em;
  width: 90%;
  margin: 1em;
  list-style: disc;
}

.links {
  margin-top: auto;
}

.button {
  display: flex;
  font-size: 1.15em;
  background-color: var(--tertiary-color-2);
  border: none;
  border-radius: 5px;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  margin: 4px 2px;
  cursor: pointer;
  -webkit-transition-duration: 0.4s; /* Safari */
  transition-duration: 0.4s;
}

.button a {
  text-decoration: none;
}

.button:hover {
  box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
}

/*-- Footer Styles --*/

footer {
  display: flex;
  justify-content: center;
  background-color: var(--secondary-color);
  margin: 0;
  width: 100%;
}

footer h2 {
  text-align: center;
}

footer ul {
  justify-content: center;
}

footer p {
  display: flex;
  font-size: .9em;
  justify-content: center; 
  line-height: .5em;
}

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

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

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

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

.invisible {
  visibility: hidden;
}

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

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   Media Queries for Responsive Design.
   ========================================================================== */


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

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

  h1 {
    font-size: 1.75em;
  }

  nav ul li {
    font-size: 1.5em;
  }

  #about .content-wrapper {
    display: flex;
    justify-content: space-around;
    flex-direction: row-reverse;
  }

  #projects .content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  
  .project {
    width: 42%;
  }

  .social ul {
    font-size: 3em;
    gap: 1em;
  }  

}

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

  #about .content-wrapper {
    display: flex;
    justify-content: space-around;
    flex-direction: row-reverse;
  }
  
  #projects .content {
    display: flex;
    flex-wrap: nowrap;
  }

  .project {
    width: 32%;
  }

  figure {
    padding: 2em;
  }

}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
}

/* ==========================================================================
   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;
    font-size: 1em;
  }

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

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

  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;
    width: 350px;
  }

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

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

  .social ul {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.8em;
  }
}
}