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

/* ==========================================================================
   Color Pallete
   ========================================================================== */

:root {
  --primary_color: #640e8f;
  --secondary_color: #3B0764;
  --accent_color: #4C1D95;
  --background_color: #DCD6EB;
  --text_color: #1F2937;
  --text_background_color: #FAF8FF;
}

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

body {
  overflow-x: hidden;
}

.topbar {
  background-color: var(--secondary_color);
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10; /* Sets 'layer' to render on. Used to render in front of default elements (z-index 0) */
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.topbar a {
  float: left;
  display: block;
  padding: 6px 12px;
  font-size: 18px;
  color: white;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s ease
}

.topbar a:hover:not(.active) {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.08);
}

.topbar a.active {
  background: linear-gradient(135deg,var(--primary_color), var(--accent_color));
}

body{
  margin:0;
  background-color: var(--background_color);
}

p{
  font-size:20px;
  padding:20px;
}
h1{
  color: var(--secondary_color);
  padding:20px; margin-top: -30px;
}

.pageTitle {
  position: relative;
}

.pageTitle h1 {
  position: absolute;
  top: 25%;
  width: 100%;
  text-align: center;
  font-size: 15vw;
}

/* Below styles are for the timeline in the Projects page
*/

.timeline {
  position: relative;
}

#ProjectTimelineBorder {
  position: absolute;
  left: calc(50vw - 0.25vw);        /* midpoint between text and images */
  top: 0;              /* top of timeline section = already below hero image */
  width: 2px;
  height: 80vh;

  /* Customize the border*/
  --border_center_color_width: 20%;
  background: linear-gradient(
    transparent 0%,
    var(--primary_color) var(--border_center_color_width),
    var(--primary_color) calc(100% - var(--border_center_color_width)),
    transparent 100%);
  box-shadow: 0 0 6px rgba(124, 58, 237, 0.25);
}

#ProjectTimelineBorder::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  background: var(--primary_color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
}

.staticParent {
  position: absolute;
}

.enableFixed {
  position: fixed;
}

.static {
  top: 0;
  border: none;
  width: 100vw;
  height: 100vh;
}

.timeline .item {
  position: relative;
  height: 400px;
  overflow: visible; /* was hidden, potentially clipping content */
  margin-bottom: 20px;
}

.timeline .item-text {
  position: absolute;
  left: 24vw;
  top: 50%;
  transform: translate(-50%, -50%); /* vertically centers in item */
  width: 20vw;
  overflow-wrap: break-word;
  opacity: 0;
  text-align: center;
  color: var(--text_color);

  background: var(--text_background_color);
  border-radius: 6px;
  border: 1px solid var(--secondary_color);
  box-shadow:0 12px 30px rgba(70,30,130,0.12);
}

.project-desc {
  font-size: 2vh;
}

.timeline .item-display {
  position: absolute;
  left: 65vw;           /* moved left from 80% */
  top: 50%;
  transform: translateY(-50%); /* matches text alignment */
  color: white;
  overflow-wrap: break-word;
}


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

