/* Prevent adjustments of font size after orientation changes in IE on Windows Phone and in iOS.  */
html {-webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; min-height: 100vh;}
body {
    background-color: #1c1c1c;
    color: #efefef;
    font-family: 'Courier New', Courier, monospace;
}

header {
    background-color: #101010;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: #101010 0 2 4 0;
    h1 {
        margin: 0;
        padding: 20px 0 20px 20px;
        font-size: 2rem;
    }
    button {
        margin: 0;
        padding: 20px;
        font-size: 1.2rem;
        background-color: transparent;
        color: #efefef;
        border: none;
        cursor: pointer;
        img {
            width: 44px;
            height: auto;
        }
    }
}
nav {
    margin: 0;
    padding: 0;
    opacity: 0;
    height: 0;
    display: none;
    visibility: hidden;
    height: 0px;
    box-shadow: #101010 0 2 4 0;
}
nav.open {
    height: fit-content;
    transition: opacity 0.3s ease, transform 0.5s ease;
    visibility: visible;
    display: block;
    opacity: 1;
    margin: 0;
    
    box-shadow: 0px 0px 10px 2px rgba(0, 0, 0, 0.3);
    ul {
        list-style: none;
        margin: 0;
        padding: 10px 0;
        background-color: #141414;
        li {
            margin: 0;
            padding: 10px 20px;
            font-size: 1.2rem;
            a {
                color: #efefef;
                text-decoration: none;
                h2{
                    margin: 0;
                    padding: 7px 0;
                    font-size: 1.2rem;
                }
            }
        }
    }
}
a {
color: #efefef;
text-decoration: none;
}

ul {
    list-style: none;
    padding: 0;
}
h2 {
        margin: 0;
        padding: 20px 0 20px 20px;
        font-size: 1.6rem;
    }
h2.bio, .title-header {
  padding: 20px 20px 20px 0px;
}
/*  MAIN CONTENT STUFF GOES HERE */
main {
    min-height: 80vh;
}

/* To change Hero Image, change "background-img: url("../images/heroimg.JPG")"*/
main.landing {
  background-image: url("../images/heroimg.JPG");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 55%;
  min-height: clamp(420px, 70vh, 820px);
}

#landing-div {
  background: rgba(0, 0, 0, 0.4);
  padding: 2rem;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  backdrop-filter: blur(6px);
  max-width: 92vw;
  box-sizing: border-box;
}

#landing-div h2 {
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

#landing-div .contact {
  font-size: clamp(1rem, 3.5vw, 1.4rem);
}

.email {
  color: white;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.email:hover {
  color: #7fdfff;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.7);
}

.email:active {
  opacity: 0.7;
}



/* Normal sections should just exist */
section {
  margin: 2rem 20px;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  box-shadow: 2, 4, 0.5 white;
  padding: 5px 10px;
  background-color: #141414;
}

iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: none;
  border-radius: 10px;
  display: block;
}
iframe:hover {
  box-shadow: 0 0 6px rgba(127, 223, 255, 0.7);
}

.rendered-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rendered-section.visible {
  opacity: 1;
  transform: translateY(0);
}

iframe.sketchfab-frame {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: block;

  aspect-ratio: 4 / 3;
  height: auto;
}

main.bio-page {
  padding: 40px 20px; /* top/bottom, left/right */
}

.bio-layout {
  max-width: 1200px;
  margin: 0 auto;
}

.bio-text {
  max-width: 700px; /* readable but not narrow */
}

.bio-photo {
  align-self: start;
}

.bio-photo .contact {
  margin-top: 16px;
  text-align: center;
  font-size: 1.1rem;
}

#photography-viewer {
    margin: 0px 20px;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
    div {
        margin: 0;
        width: 100%;
        height: 300px;
        overflow: hidden;
        border: 1px solid black; 
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }
    }
}
#photography-viewer div img:hover {
    transition: 0.3s;
    opacity: 0.5;
    cursor: pointer;
}
img.heroimg {
    margin: 0;
    border-radius: 0;
}

/* BIO PAGE LAYOUT */

main.bio-page {
  padding: 20px;
}

.bio-layout {
  display: grid;
  grid-template-columns: 1fr; /* mobile stack */
}

.bio-photo img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
}

.bio-text p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
}

.bio-text .email {
  color: white;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: inline-block;
}

.bio-text .email:hover {
  color: #7fdfff;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.7);
}

.bio-text .email:active {
  opacity: 0.7;
}
div.blog-link {
  display: flex;
  justify-content: center;
}
a.inline-link {
  text-align: center;
  font-size: 1.4rem;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid rgba(127, 223, 255, 0.3);
  background: rgba(255,255,255,0.05);
  color: white;
  display: inline-block;
  transition: all 0.3s ease;
}

.inline-link:hover {
  color: #7fdfff;
  border-color: rgba(127, 223, 255, 0.8);
  box-shadow: 0 0 12px rgba(127, 223, 255, 0.4);
  transform: translateY(-2px);
}
a.inline-link:hover {
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(127, 223, 255, 0.7));
  transition: 0.3s  ;
}
/* BLOG LAYOUT*/
#postViewer {
  display: grid;
}
div.post-text h2{
  padding: 20px 0px
}
div.post-images figure {
  margin: 0;
  width: 100%;
  min-height:320px;
  height: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;

  :hover {
    opacity: 0.5;
    transition: 0.3s;
  }
  figcaption {
    text-align: center;
    padding: 5px;
    font-size: 1rem;
  }
}
img.post-image {
  width: 100%;
  height: 100%;
  max-height: 270px;
  object-fit: cover;
  object-position: center;
  border: 1px solid black;
  cursor: pointer;
}

div.post-text ul {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 12px 0;
  list-style: none;
}

div.post-text ul li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(127, 223, 255, 0.35);
  color: #efefef;
  font-weight: 700;
  font-size: 0.9rem;
}

/* LIGHT BOX & IMAGE OVERLAY*/

#lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#lightbox-overlay.hidden {
  display: none;
}

#lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

/*  FOOTER STUFF GOES HERE */


footer {
    background-color: #101010;
    text-align: center;
    padding: 20px 0;
    position: relative;
    bottom: 0;
    width: 100%;
    p {
        margin: 0;
        padding: 0;
        font-size: 1rem;
    }
}

.wip {
    display: block;
}
.social-links {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1); /* makes black SVG white */
  transition: transform 0.2s ease, filter 0.3s ease;
}

.social-links a:hover img {
  transform: translateY(-3px);
  filter: brightness(0) invert(1) drop-shadow(0 0 6px rgba(127, 223, 255, 0.7));
}

.post-text a {
  color: #7fdfff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.post-text a:hover {
  text-shadow: 0 0 8px rgba(127, 223, 255, 0.7);
}

/* =========================
   WRITING PORTFOLIO
   ========================= */

.writing-page {
  padding: 20px;
}


/* Writer bio */

.writer-bio {
  max-width: 1100px;
  margin: 2rem auto 3rem auto;
  padding: 25px 35px;
}

.writer-bio h2 {
  padding: 0 0 15px 0;
}

.writer-bio p {
  font-size: 1.15rem;
  line-height: 1.6;
}


/* Writing samples heading */

.writing-heading {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
}


/* PDF grid */

#writing-viewer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;

  max-width: 1100px;
  margin: 0 auto 50px auto;
}


/* Individual writing sample */

.writing-card-header {
  padding: 18px 20px 15px 20px;
  background: #141414;
}

.writing-card-header h2 {
  margin: 0;
  padding: 0;

  font-size: 1.25rem;
  color: #7fdfff;
}

.writing-card-header p {
  margin: 5px 0 0 0;

  font-size: 0.9rem;
  opacity: 0.7;
}

.writing-preview-area {
  position: relative;
  overflow: hidden;
}

.writing-card {
  position: relative;
  overflow: hidden;

  background: #141414;
  border-radius: 12px;
  border: 1px solid rgba(127, 223, 255, 0.2);

  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    box-shadow 0.3s ease;
}

.writing-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.writing-card:hover {
  box-shadow: 0 0 18px rgba(127, 223, 255, 0.35);
}


/* PDF page preview */

canvas.pdf-preview {
  display: block;

  width: 100%;
  height: auto;

  background: white;

  pointer-events: none;
}


/* Hover information */

.writing-info {
  position: absolute;

  inset: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 30px;

  background: rgba(10, 10, 10, 0.92);

  opacity: 0;

  transition: opacity 0.3s ease;

  pointer-events: none;
}

.writing-card:hover .writing-info {
  opacity: 1;
}

.writing-info h2 {
  padding: 0;
  margin: 0 0 8px 0;

  color: #7fdfff;
}

.writing-type {
  margin: 0 0 20px 0;

  font-weight: bold;
  opacity: 0.75;
}

.writing-logline {
  line-height: 1.5;
}

.read-text {
  margin-top: 15px;

  font-weight: bold;
  color: #7fdfff;
}


/* Clickable invisible layer */

.pdf-click-area {
  position: absolute;

  inset: 0;

  width: 100%;

  background: transparent;
  border: none;

  cursor: pointer;

  z-index: 3;
}


/* Open PDF button */

.pdf-link {
  display: block;

  padding: 15px;

  text-align: center;

  color: white;
  background: #101010;

  border-top: 1px solid rgba(127, 223, 255, 0.25);

  transition:
    color 0.3s ease,
    background 0.3s ease,
    text-shadow 0.3s ease;
}

.pdf-link:hover {
  color: #7fdfff;

  background: #181818;

  text-shadow: 0 0 8px rgba(127, 223, 255, 0.7);
}


/* =========================
   FULLSCREEN PDF READER
   ========================= */

#pdf-overlay {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100%;

  padding: 60px 20px 20px 20px;

  background: rgba(0, 0, 0, 0.92);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 2000;
}

#pdf-overlay.hidden {
  display: none;
}


/* Override global iframe styling */

iframe#pdf-reader {
  width: min(100%, 1000px);
  height: 100%;

  aspect-ratio: auto;

  border: none;
  border-radius: 8px;

  background: white;
}


/* Close X */

#pdf-close {
  position: absolute;

  top: 15px;
  right: 25px;

  border: none;
  background: none;

  color: white;

  font-size: 2.5rem;
  line-height: 1;

  cursor: pointer;

  z-index: 2001;
}

#pdf-close:hover {
  color: #7fdfff;

  text-shadow: 0 0 8px rgba(127, 223, 255, 0.7);
}


/* Prevent page behind PDF from scrolling */

body.pdf-open {
  overflow: hidden;
}


/* Phones/tablets don't really have hover.
   Keep the information visible underneath instead. */

@media (hover: none) {

  .writing-info {
    position: static;

    opacity: 1;

    background: #141414;

    padding: 20px;

    pointer-events: auto;
  }

  .pdf-click-area {
    inset: 0;

    bottom: 200px;
  }

}

/*  apply a natural box layout model to all elements  */
* { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }

/*change*/