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

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

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

/* Theme colors */
/* #78785F - main background */
/* #E3BC62 - accent color */
/* #CB8C8B - text color */
/* #38382B - menu background */
/* #5F6D78 - secondary background color */
/* #785F5F - mauve */

/* Custom CSS */
@font-face {
  font-family: "Olibrick";
  src: url("../fonts/Olibrick-1jn00.ttf") format("truetype"),
    url("../fonts/Olibrick-nAL6V.otf") format("otf"),
    url("../fonts/Olibrick-c72a.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Cassandra";
  src: url("../fonts/Cassandra-3BjG.ttf") format("truetype");
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}
#wrapper {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
main {
  flex: 1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

.container {
  display: block;
  width: 80%;
  margin: auto;
  overflow: hidden;
}
/* Top Menu */
menu {
  margin: 0;
  background: #38382b;
}
menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
}
#menu-items {
  /* width: 50%;
  padding-left: 49vw; */
  display: flex;
}
menu ul li {
  margin: 0 15px;
  color: #ffffff;
  transition: all 0.3s ease-in-out;
}
menu ul li a:hover {
  color: #b86261;
}

#social-nav {
  margin-left: auto;
}

#social-nav li a {
  padding: 2px 0px;
  font-size: 38px;
}

menu ul li a {
  color: #cb8c8b;
  text-decoration: none;
  display: block;
  padding: 0 20px;
  justify-content: center;
  line-height: 45px;
  cursor: pointer;
}
#logo {
  float: left;
  padding: 12px 20px;
}
a#home {
  font-family: "Cassandra";
  color: #cb8c8b;
  text-decoration: none;
}
#lead {
  position: relative;
  text-align: center;
  color: white;
}

#lead header {
  padding-top: 5rem;
  width: 50%;
  padding-left: 10rem;
}

#lead h2 {
  font-family: "Olibrick";
  color: #cb8c8b;
  font-size: 10em;
}

#lead {
  background-position: 100% 50%;
  background-image: url("../img/charline-banner-web.jpg");
  background-size: cover;
  display: flex;
  min-height: 70vh;
}

#two {
  padding-bottom: 2em;
  position: relative;
}
#two h2 {
  font-family: "Cassandra";
  text-align: center;
  color: #78785f;
  padding-top: 1em;
  padding-bottom: 1em;
}

#two:before {
  border-bottom: solid 1.5px;
  border-top: solid 1.5px;
  content: "";
  height: 7px;
  opacity: 0.5;
  position: absolute;
  top: 4.5em;
  width: 40%;
  left: 30%;
  border-color: #555;
}

/* #headshots {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}
#headshots > div {
  flex: 1 0 auto;
  width: 20%;
  padding: 0.5rem;
}
#headshots > div img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  box-shadow: 1px 1px 7px -2px #555;
}
#headshots-lightbox {
} */
#headshots-lightbox a {
  text-decoration: none;
}
#headshots-lightbox img {
  width: 24%;
  box-shadow: 1px 1px 7px -2px #555;
  margin: 5px;
}

#photocredit {
  font-size: 13px;
  margin-top: 4px;
  margin-left: 11px;
}

#photocredit a {
  color: #cb8c8b;
  font-family: "Cassandra";
}

#media {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  flex-direction: row;
}
#media > div {
  flex: 1 0 auto;
  width: 45%;
  padding: 0.5rem;
}

.video {
  display: flex;
  justify-content: center;
}
iframe {
  aspect-ratio: 16 / 9;
  width: 100% !important;
}

#charline-portrait {
  margin-top: 2rem;
}
#charline-portrait img {
  width: 200px;
  height: auto;
  border-radius: 50%;
  border: 1px solid rgba(85, 85, 85, 1);
}

#about-section {
  /* background: #78785f;
  color: #fff; */
  background: #f7f7f7;
  color: #777;
  position: relative;
}
#about-section:before {
  border-bottom: solid 1.5px;
  border-top: solid 1.5px;
  content: "";
  height: 7px;
  opacity: 0.5;
  position: absolute;
  top: 6em;
  width: 40%;
  left: 30%;
  border-color: #555;
}

#charline-portrait {
  display: inline-block;
}

#about {
  padding: 0 2rem;
  /* color: #38382b; */
  font-size: 1.2em;
}

#about-section h2 {
  font-family: "Cassandra";
  text-align: center;
  color: #78785f;
  padding-top: 1em;
  padding-bottom: 1em;
  text-align: center;
  width: 100%;
  position: absolute;
}

#social i {
  font-size: 4em;
  color: #cb8c8b;
  transition: all 0.3s ease-in-out;
}
#social i:hover {
  color: #b86261;
}

#social-items {
  display: flex;
  justify-content: center;
  gap: 1em;
}

/* Contact */
#contact {
  color: #777;
  text-align: center;
}
#contact h2 {
  font-family: "Cassandra";
  text-align: center;
  color: #78785f;
  padding-top: 1em;
  padding-bottom: 1em;
}
#contact-form {
  display: flex;
  flex-direction: column;
  width: 50%;
  margin: auto;
  position: relative;
}

#contact-form label {
  display: block;
  text-align: left;
  margin-bottom: 0.5em;
  color: #777;
  font-weight: bold;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 1em;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 1em;
  font-family: Arial, sans-serif;
  border: none;
  box-shadow: 1px 1px 3px 1px #e7e7e4;
}

#contact-form input:focus,
#contact-form textarea:focus {
  outline: 2px solid #cb8c8b;
  border-color: #cb8c8b;
}

#contact-form button {
  padding: 0.7em;
  background-color: #cb8c8b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: Arial, sans-serif;
  transition: background-color 0.3s ease;
  width: 50%;
  margin: 0 auto;
  max-width: 250px;
}

#contact-form button:hover {
  background-color: #b86261;
}
#contact-form:before {
  border-bottom: solid 1.5px;
  border-top: solid 1.5px;
  content: "";
  height: 7px;
  opacity: 0.5;
  position: absolute;
  top: -1.5em;
  width: 100%;
  left: 0;
  border-color: #555;
}
.required {
  color: red;
  font-size: 0.9em;
  margin-left: 0.2em;
}
.note {
  color: #999;
  font-size: 0.9em;
  position: relative;
  left: 1em;
  top: -0.5em;
}

footer {
  margin-top: 2em;
  padding: 2em;
  text-align: center;
  background: #38382b;
  color: #fff;
}

/* Media Queries */
@media (max-width: 768px) {
  #logo {
    margin-right: 4px;
  }
  a#home {
    font-size: 12px;
  }
  menu {
    padding-left: 0;
  }

  menu #logo {
    padding: 12px 5px;
  }
  menu ul li {
    margin: 0;
    padding: 0;
  }
  menu ul li a {
    margin: 0;
    padding: 0;
    padding-right: 6px;
    font-size: 11px;
  }
  #lead h2 {
    font-size: 3em;
  }
  #lead {
    background-position: 75% 50%;
  }
  #lead header {
    padding-left: 0;
  }
  .container {
    width: 90%;
  }
  #headshots-lightbox a {
    width: 48%;
    display: inline-block;
  }
  #headshots-lightbox img {
    width: 100%;
  }
  #headshots > div {
    width: 40%;
  }

  #media > div {
    width: 100%;
  }

  #about-section h2 {
    top: 0em;
  }
  #about-section:before {
    top: 5.75em;
  }
  #charline-portrait {
    width: 100%;
    margin-top: 5em;
  }
  #charline-portrait img {
    margin: 0 auto;
    display: block;
  }
  #about {
    padding: 0;
    padding-top: 1em;
  }
  #contact-form {
    width: 90%;
  }
  #contact-form:before {
    width: 50%;
    left: 25%;
    top: -1.8em;
  }
}
