/*! HTML5 Boilerplate v7.3.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.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;
  height: 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
  margin: 0.2em 0;
  background: #ccc;
  color: #000;
  padding: 0.2em 0;
}

/* ==========================================================================
   Zoe's custom styles
   ========================================================================== */
   /****** BASE STYLES ******/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; 
}

body {
  margin: 0;
}

.bg {
  animation:slide 5s ease-in-out infinite alternate;
  background-image: linear-gradient(-60deg, #e84182 50%, #3f5efb 50%);
  bottom:0;
  left:-50%;
  opacity:.5;
  position:fixed;
  right:-50%;
  top:0;
  z-index:-1;
}

.bg2 {
  animation-direction:alternate-reverse;
  animation-duration:4s;
}

.bg3 {
  animation-duration:5s;
}

@keyframes slide {
  0% {
    transform:translateX(-25%);
  }
  100% {
    transform:translateX(25%);
  }
}

li {
   list-style: none;
}

a {
   text-decoration: none;
}

h1 {
    color: #03092c;
    font-family: 'Italiana', serif;
    font-size: 3em;
    padding: 1em;
}

h2 {
    color: #184c61;
    font-family: 'Voltaire', sans-serif;
    display: flex;
    justify-content: center;
    font-size: 1.3em;
    padding: 1em;
}

h3 {
  color: #184c61;
  font-family: 'Voltaire', sans-serif;
  padding: 1.2em;
}

p {
    color: #03092c;
    font-family: 'Bitter', serif;
    font-size: 1em;
    padding: 1em;
}

button {
  background-color: #ffffff;
  border: #ffffff solid 1px;
  border-radius: 10px;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
  font-family: 'Bitter', serif;
  padding:  0.5em;
  margin:  0.5em;
}

button:hover {
  background-color: #fff7e2;
  border: #fff7e2;
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
}

.section-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.6em;
}
/******* NAV BAR ********/

header {
  height: 4em;
  margin-bottom: 1em;
}

.navbar {
  font-size: 18px;
  background: rgba( 255, 255, 255, 0.7 );
  box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
  backdrop-filter: blur( 4px );
  -webkit-backdrop-filter: blur( 38px );
  border-radius: 10px;
  border: 1px solid rgba( 255, 255, 255, 0.18 );
  padding-top: 0.62em;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
}

.main-nav {
  list-style-type: none;
  display: none;
}

.nav-links, .logo {
  font-family: 'Bitter', serif;
  text-decoration: none;
  color: #03092c;
}

.main-nav li {
  text-align: center;
  margin: 15px auto;
}

.logo {
  display: inline-block;
  font-family: 'Italiana', serif;
  font-size: 22px;
  margin-top: 10px;
  margin-left: 20px;
}

.navbar-toggle {
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  color: #03092c;
  font-size: 24px;
}

.active {
  display: block;
}

/****** HERO HEADER SECTION ******/

.header-hero {
    height: 40%;
    align-items: left;
    margin: 2em;
    padding: 2em;
    background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1em;
}

.contact-button a {
  color: #5e3488;
}

/****** PROJECTS SECTION ******/

#projects {
    display: flex;
    flex-direction: column;
    margin:  1em;
    padding: 1em;
}

.Project-Title {
  background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin:  1em;
    padding:  0.5em;
}

.project-section-Wd {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.project-section-Vd {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.project-container {
    background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin:  1em;
    padding:  0.5em;
    height:  30em;
    width:  33%;
}

.project-img, img {
  width: 10em;
  height: auto;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
}

/****** ABOUT SECTION ******/

#about {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1em;
    padding: 1em;
}

.about-section {
    background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: row; 
}
    
.bio-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin: 1em;
}

.img-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin: 1em;
}

img {
    max-width:  100%;
    height:  auto;
    margin: 1em;
    padding:  1em;
    align-items: center;
}

/****** CONTACTS SECTION ******/

#contacts {
    display: flex;
    flex-direction: column;
    margin:  1em;
    padding: 1em;
}

.contact-area {
    background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: row;
    margin:  1em;
    padding:  1em;
    justify-content: center;
    align-items: center;
}

.contact-container {
  display: flex;
  width: 50%;
}

.contact-container ul{ 
  display: flex; 
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.contact-container li{
  color: #184c61;
  font-size: 1.5em;
  padding: 1em;
}

.contact-container a{
  color: #184c61;
}

.contact-container a:hover {
  color: #e84182;
}

.social-container {
  display: flex;
  justify-content: center;
  width: 50%;
}

.social-container ul {
  display: flex;
}

.social-container a {
  color: #e84182;
  font-size: 1.8em;
  padding: 1em;
}

.social-container a:hover{
  color: #184c61;
}

/****** CASE STUDIES PAGE STYLES ******/
.CaseStudies-Title {
  background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin:  1em;
    padding:  0.5em;
}

#project1, #project2, #project3, #project4, #project5, #project6 {
  background: rgba( 255, 255, 255, 0.85 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 4.5px );
    -webkit-backdrop-filter: blur( 4.5px );
    border-radius: 10px;
    border: 1px solid rgba( 255, 255, 255, 0.18 );
    display: flex;
    flex-direction: row;
    margin: 1em;
    padding: 0.5em; 
}
.CS-content-container{
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em;
  margin: 1em;
}

.cs-img-container {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1em;
    margin: 1em;
}

img {
  width: 25em;
  height: auto;
}


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

/*
 * Hide visually and from screen readers
 */

.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: " ";
  /* 1 */
  display: table;
  /* 2 */
}

.clearfix:after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

/****** MOBILE SCREENS ******/
@media screen and (min-width: 768px) {
  .navbar {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0;
    height: 70px;
    align-items: center;
  }

  .main-nav {
    display: flex;
    margin-right: 30px;
    flex-direction: row;
    justify-content: flex-end;
  }

  .main-nav li {
    margin: 0;
  }

  .nav-links {
    margin-left: 40px;
  }

  .logo {
    margin-top: 0;
  }

  .navbar-toggle {
    display: none;
  }

  .logo:hover,
  .nav-links:hover {
    color: #5e3488;
  }
} 

    /*--- MOBILE STYLES HERO HEADER ---*/
@media (max-width: 768px) {
  h1 {
    font-size: 1.5em;
  }
  h2 {
    font-size: 1em;
  }
}      

/*--- MOBILE STYLES FOR PROJECT SECTION ---*/
@media (max-width: 768px) {
  .project-section-Wd, .project-section-Vd {
    flex-direction: column;
  }
  .project-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
  }
} 

    /*--- MOBILE STYLES FOR ABOUT SECTION ---*/
@media (max-width: 768px) {
  .about-section {
    flex-direction: column;
  }
  .bio-container {
    width: 90%;
  }
  .img-container {
    width: 90%;
  }
}    
    /*--- MOBILE STYLES FOR CONTACT SECTION ---*/
@media (max-width: 768px) {
  .contact-area {
    flex-direction: column;
  }
  .contact-container {
    width: 100%;
    justify-content: center;
  }
  .contact-container ul{
    flex-direction: column;
  }
  .contact-container li{
    font-size: 1em;
  }
  
}

/*--- MOBILE STYLES FOR CASE STUDIES PAGE ---*/
@media (max-width: 768px) {
  .CS-section {
    flex-direction: column;
  }

  #project1, #project2, #project3, #project4, #project5, #project6 {
    flex-direction: column;
  }  
  .CS-content-container {
    width: 90%;
  }
  .cs-img-container {
    width: 90%;
  }
}    

/****** TABLET STYLES ******/

    /*--- TABLET STYLES FOR CONTACT SECTION ---*/
@media screen and (min-width: 768px) {
  .contact-area{
    flex-direction: column;
  }
  .contact-container{
    width: 100%;
    justify-content: center;
  }
  .contact-container ul{
    flex-direction: row;
  }
  .contact-container li{
    font-size: 1em;
    padding: 1em;
  }
}

/****** DESKTOP STYLES ******/
/*--- DESKTOP STYLES FOR CONTACT SECTION ---*/
@media screen and (min-width: 1200px) {
  .contact-area{
    display: flex;
    flex-direction: row;
  }
  .contact-container li{
  font-size: 1.5em;
  padding: 1em;
  }

}

  
@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@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: transparent !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;
  }
}

