/*
 * Defaults
 */

html {font-size: 1em;line-height: 1.4;scroll-behavior: auto;}
::-moz-selection {background:#b3d4fc;text-shadow: none;}
::selection {background:#b3d4fc;text-shadow: none;}

a:hover{
  text-decoration: none;
}

/*
 * Header
 */

nav{
  width: 100%;
  display: flex;
  font-size:0.75em;
  position: relative;
  padding: 0 15px;
  margin-right: auto;
  margin-left: auto;
  text-align: left;
  margin-top: 20px;
  box-sizing: border-box;
  top: 0;
  a{
    text-decoration: none;
    padding-top: 15px;
  }
}

.head{
  font-size: 44px;
  text-align: left;
  position: relative;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 800px;
}

/*
 * Footer
 */

footer{
  padding-left: 15px;
  padding-right: 15px;
  margin-right: auto;
  margin-left: auto;
  max-width: 800px;
  font-size: 14px;
  line-height:24px;
  width: 100%;
  background: transparent;
  text-align: center;
  a{
    padding-right: 15px;
    padding-left: 15px;
  }
}

/*
 * Primary card
 */

#primaryCard {
  ::-moz-selection {background:transparent;text-shadow: none;}
  ::selection {background: #7f7f7f40;text-shadow: none;}
  pointer-events:auto;
  position: relative;
  margin-right: auto;
  margin-left: auto;
  padding-left: 15px;
  max-width: 800px;
  margin-top: 50px;
}

#primaryCard li {
  text-decoration: none;list-style: none;margin-bottom: 49px;
}

/*---------------------------------------------------------------------------*/

/*
 * The rest
 */

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 (max-width: 500px) {
  #secondaryCard{
    flex-direction: column;
    line-height: min(100px);
  }
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

@media (prefers-color-scheme: dark){
  .box{
    background-color: #4A4A4A;
  }
  html{
    color: #ffffff;
  }
  body{
    background-color: #575757;
  }
  a {
    color: #FFC53A;
  }
}


@media (prefers-color-scheme: light) {
  .box {
    background-color: #ffffff;
  }

  html {
    color: #222222;
  }

  body {
    background-color: #ffffff;
  }

  a{
    color: #16808C;
  }
}

/* ==========================================================================
   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;
  }
}

/*---------------------------------------------------------------------------*/

body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 28px;
  line-height: 1.28;
  /* letter-spacing: -0.01em; */
  animation: fadein 2.7s;
  padding: 0 15px;
}

pre code {
  white-space: pre-wrap;
}

.logo {
  position: absolute;
  width: 400px;
  height: 400px;
  top: 0;
  left: 0;
  margin-left: 50px;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.box
{
	position: relative;
    max-width: 800px;
    max-height: 600px;
    padding: 5%;
    margin: 5% auto;
	/*-webkit-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 0 0 4px rgba(0, 0, 0, 0.2), inset 0 0 50px rgba(0, 0, 0, 0.1);
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.2), inset 0 0 25px rgba(0, 0, 0, 0.1);*/
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    font-size: 1em;
}


@media only screen and (orientation: landscape) and (max-height: 415px){
  .pz-intercept {
    font-size: 18px;
    line-height: 1.5;
    margin: auto;
    padding-top: 65vh;
    text-align: center;
    width: auto;
  }
  /*body{
    background-color: #ff8f04;
  }*/
  .box{
    max-width: 80%;
  }
}

h1{
  font-size: 18px;
  font-weight: normal;
}


h2{
  font-size: 38px;
  font-weight: normal;
}

/*
 * Contact page
 */

form{
  padding: 5%;
  position: relative;
  margin-right: auto;
  margin-left: auto;
  max-width: 800px;
}

input{
  padding: 12px 20px;
  margin: 8px 0;
  float: left;
  width: 75%;
}

textarea{
  padding: 12px 20px;
  margin: 10px;
  resize:vertical;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
}

button{
  padding: 12px;
}

.formfield{
  display: block;
  margin-bottom: 20px;
}

label{
  padding: 12px 12px 12px 0;
  display: inline-block;
  float: left;
  width: 25%;
}

/*
 * Blog
 */

article{
  font-size: 1.5rem;
  word-wrap: break-word;
  text-wrap: wrap;
  align-self: center;
  line-height: 1.5;
  padding: 0 15px;
  margin-right: auto;
  margin-left: auto;
  a {
    text-decoration: underline 2px;
    text-underline-position: under;
  }
  max-width: 800px;
}
/*
 * Blog posts
 */

#postList {
  ::-moz-selection {background:#b3d4fc;text-shadow: none;}
  ::selection {background:#b3d4fc;text-shadow: none;}
  position: relative;
  margin-right: auto;
  margin-left: auto;
  max-width: 800px;
  margin-top: 50px;
  padding-left: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
}

#postList li {
  text-decoration: none;list-style: none;margin-bottom: 49px;
}

#postList li.itemend {
  margin-left: 73px;
}

/*---------------------------------------------------------------------------*/

/* Blogroll */

.blogroll {
    display: block;
    padding: 15px;
    margin: 25px;
    box-sizing: border-box;
    max-width: 800px;
}

.blogroll--data {
    padding: 5px 15px;
}

.blogroll--blog {
    word-wrap: break-word;
}

.blogroll--blog h3 {
    margin-bottom: 0;
}

.blogroll--blog h3 a {
    color: #000000 !important;
}

.blogroll--blog h3 a:hover {
    color: #db0a5b!important;
}

.blog--subtitle {
    margin-top: 0;
}

.blog--description{
  word-break: break-word;
  box-sizing: border-box;
  margin-bottom: 1em;
}

/*---------------------------------------------------------------------------*/

/*
 * Photography page
 */

/*testing*/

@media (max-width: 800px) {
  img{
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  .gallery-item{flex-direction: column;}
  figure{display: block;flex-direction: column; align-items: center}
}

@media(min-width: 800px) {
  figcaption{opacity: 0;}
  .gallery-item:hover{figcaption{animation: fadein 1.0s;opacity: 1}}
  figure{display: flex;flex-direction: row;align-items: center;}
  img{max-width: 80%;}
}

img{
  height: auto;
  margin-bottom: 5%;
  display: block;
  box-sizing: border-box;
}

.gallery{
  display: flex;
  flex-direction: column;
  padding-top: 10%;
  column-count: 1;
  padding-left: 10%;
  padding-right: 10%;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item{
  align-content: center;
  align-items: center;
  margin-right: auto;
  margin-left: auto;
}

figcaption {
  padding: 2px;
  font-size: 20px;
  text-align: left;
  margin-bottom: 10%;
}

/*Table of contents*/

.toc-list, .toc-list ol {
  list-style-type: none;
}

.toc-list {
  padding: 0;
}

.toc-list ol {
  padding-inline-start: 2ch;
}