/*! 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: #8DB7B8;
  text-shadow: none;
}

::selection {
  background: #8DB7B8;
  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
   ========================================================================== */

/*** Colors
#304D63 (dark blue)
#B2E7E8 (light blue)
#8FB9AA (green)
#F2D096 (yellow)
#ED8975 (red) ***/



/*****************BASE STYLES******************/
body {
    color: #304D63;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    margin: 0 auto;
    overflow: auto;
    padding: 0;
}

header, #about {
    background: #F2D096;
    display: flex;
    justify-content: center;
}

#projects, #skills, #contact {
    background: #B2E7e8;
    display: flex;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 80%;
}

h1, h2, h3, h4, .link {
    font-family: 'Alata', sans-serif;
    margin: 0 auto;
    text-align: center;
}

h1 {
    font-size: 2.25em;
}

h2 {
    font-size: 1.5em;
}

h3 {
    font-size: 2em;
}

h4 {
    font-size: 1.25em;
}

a {
    color: #304D63;
    text-decoration: none;
}

img {  
	width: 100%; 
} 

/*****************HEADER********************/
nav {
    float: left;
    margin: 30px auto;
    width: 100%;
}

nav ul {
    display: flex;
    justify-content: space-around;
    padding: 0;
}

nav ul li {
    display: inline-block;
    font-weight: bold;
    padding-right: 10px;
}

#title {
    clear: both;
    margin: 30px auto;
}

/*******************PROJECTS******************/
#projects .container {
    margin-top: 80px;
}

#projects h3 {
    clear: both;
}

#projects figure {
    margin: 20px auto;
    width: 100%;
}

#projects h4 {
    margin-bottom: 40px;
}

.despcription {
    margin-bottom: 30px;
}

.live-link {
    align-items: center;
    background: #ED8975;
    border: 0;
    border-radius: 50px;
    color: #121621;
    display: flex;
    font-size: 1.125em;
    font-weight: 900;
    justify-content: center;
    margin: 30px auto 60px;
    padding: 1em 3em;
    text-transform: uppercase;
}

/*****************SKILLS*******************/
#skills {
    padding-bottom: 80px;
}

#skills h3 {
    margin: 20px auto;
}

#skills h4 {
    margin: 30px auto;
}

#skills ul {
    padding: 0;
}

#skills ul li {
    background: #F2D096;
    border: 0;
    display: flex;
    flex-direction: column;
    font-weight: 700;
    justify-content: center;
    margin: 10px 0;
    padding: 1em 3em;
    text-align: center;    
}

/******************ABOUT********************/
#about .container {
    margin: 80px auto;
}

#about figure {
    border: 20px solid white ;
    display: flex;
    justify-content: center;
    margin: auto;
    width: 60%;
}

#about h3 {
    margin: 40px 0 15px;
}

#about h4 {
    margin-bottom: 40px;
}

/*******************CONTACT*******************/
#contact .container {
    margin: 80px auto;
}

#contact p {
    margin: 60px auto;
    text-align: center;
    text-decoration: underline;
}

#contact ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    margin: 30px auto;
    padding: 0;
}

#contact ul li {
    display: inline-block;
    padding: 0 2em;
}

i {
    font-size: 1.5em;
}


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

/* ==========================================================================
   Media Queries Start Here
   ========================================================================== */

@media all and (min-width: 765px) {
  /************ Tablet Styles ************/
  /*Base Styles*/  
  h1 {
    font-size: 3em;
  }

  h2 {
    font-size: 2.25em;
  }

  h3 {
    font-size: 2.5em;
  }

  h4 {
    font-size: 1.5em;
  }

  p {
    font-size: 1.0625em;
  }
  
  /*Header Styles*/
  nav {
    margin: 60px auto;
  }

  nav ul li {
    text-transform: uppercase;
  }
  
  #title {
    margin-bottom: 80px;
  }

  /*Projects Styles*/
  #projects .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
  }

  #projects h3 {
    margin-bottom: 60px;
    width: 100%;
  }

  .project {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    width: 45%;
  }

  .project-text {
    display: flex;
    flex-flow: column wrap;
    justify-content: flex-start;
  }

  /*Skills Styles*/
  #skills .container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
  }

  #skills h3 {
    margin: 40px auto;
    width: 100%;
  }

  #skills h4 {
    margin: 0 0 30px;
    width: 100%;
  }

  #skills ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    margin: 0 0 40px;
  }

  #skills li {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    width: 30%;
  }

  /*About Styles*/
  
  #about .container {
    margin: 120px auto;
  }
  
  #about figure {
    width: 40%;
  }

  /*Contact Styles*/
  #contact .container {
    margin: 120px auto;
  }
}

@media all and (min-width: 1200px) {
    /************Computer Styles***********/

    /*Base Styles*/
    h1 {
        font-size: 3.25em;
    }
        
    h2 {
        font-size: 2.5em;
    }

    h3 {
        font-size: 2.75em;
    }
    
    h4 {
        font-size: 1.75em;
    }
    
    p {
        font-size: 1.125em;
    }

    /*Header Styles*/
    nav {
        float: right;
        width: 50%;
    }

    nav li {
        font-size: 1.125em;
    }

    #title h1 {
        margin-bottom: 15px;
    }

    /*Projects Styles*/
    #projects h3 {
        margin: 40px auto;
    }

    .project {
        margin: 40px auto;
    }

    /*Skills Styles*/
    #skills ul {
        justify-content: space-evenly;
        width: 100%;
    }
    
    #skills li {
        font-size: 1.125em;
        width: 20%;
    }

    /*About Styles*/
    #about .container {
        align-items: center;
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-around;
        margin: 140px auto;
    }
      
    #about-image {
        display: flex;
        flex-basis: 50%;
        justify-content: center;
    }

    #about figure {
        margin: 0;
        width: 60%;
    }

    #about-content {
        flex-basis: 50%;
    }

    #about h3 {
        margin-top: 0;
        text-align: left;
    }

    #about h4 {
        margin: 0 0 40px;
        text-align: left;
    }
}

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

