/* Variables */
:root {
    /* --bg-color: #333; */
    --bg-color: #555;
    --light-accent: rgb(243, 200, 122);
    --strong-accent: rgb(202, 144, 36);
    --border-radius: 0px;
}

/* General layout */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    background-color: var(--bg-color);
    color: #fff;
    /* font-family: "Bitter", serif; */
    font-family: "Jersey 10", sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    font-optical-sizing: auto;
    z-index: 1;
    overflow-x: hidden;
    background-image: radial-gradient(rgba(0, 0, 0, 0.1), black 180%);
}

/* Utility Classes */
mark {
    background-color: var(--strong-accent);
    padding-inline: 3px;
    color: white;
    border-radius: var(--border-radius);
    font-weight: 700;
}

h1 {
    font-family: "Zilla Slab", serif;
    font-weight: 300;
    font-style: normal;
    margin: 0;
    font-size: 4rem;
}

h1.retro {
  font-family: "Jersey 10", sans-serif;
  font-size: 5rem;
  font-style: normal;
}

a {
    color: #fff;
    font-weight: 600;
}

.parallax_low {
    z-index: -1;
}

.parallax_high {
    z-index: 5;
}

.retro {
  font-family: "Jersey 10", sans-serif;
  font-size: 1.3rem;
  font-style: normal;
  /* text-shadow: 0 0 2px #C8C8C8; */
}

.simple-border {
    /* border: solid white 3px; */
    /* border-radius: var(--border-radius); */
  background: 
    linear-gradient(#292929 0 0) padding-box, /*this is your grey background*/
    linear-gradient(to right top, #5e1b02, #bd6e00) border-box;
  border-radius: var(--border-radius);
  border: solid transparent 3px;
}

.center {
  text-align: center;
}

.text-box {
  height: fit-content;
  margin: 0 auto;
  display: inline-block;
  padding: 10px;
  margin: 10px 0;
  background: 
    linear-gradient(#292929 0 0) padding-box, /*this is your grey background*/
    linear-gradient(to right top, #eb4a00, #ffb01c) border-box;
  border-radius: var(--border-radius);
  border: solid transparent 3px;
}

.middle {
    width: calc(100vw - 40px);
    max-width: 800px;
    margin: auto;
}

section.large {
    width: calc(100vw - 80px);
    max-width: 1200px;
    margin: auto;
}


section.blog {
    max-width: 800px;
    margin: 20px auto;
    background-color: #272727;
    padding: 20px;
    border-radius: 20px;
    overflow: hidden;
}


section.display {
    max-width: 1200px;
}

section.blog img {
    /* margin-block: 20px; */
    border-radius: var(--border-radius);
}

section.blog p, section.blog ul, section.blog ol {
    margin: 20px auto;
    max-width: 800px;
    line-height: 140%;
}

section.blog .content {
  font-family: "Bitter", serif;
  font-size: 1rem;
}

div.blog_image {
    margin-bottom: 0;
    object-fit: cover;
    max-width: 50%;
}

div.blog_image.right {
    float: right;
    justify-content: right;
    padding-left: 1em;
}

div.blog_image.left {
    float: left;
    justify-content: left;
    padding-right: 1em;
}

div.blog_image img {
    width: 100%;
}

div.blog_image p {
    font-size: 0.85em;
    margin-top: 0;
}

@media (max-width: 1000px) {
    section.blog {
      margin: 0px auto;
      padding: 10px;
    }

    section.blog p, section.blog ul, section.blog ol {
      margin: 10px auto;
    }
}

a.tags {
    text-decoration: none;
    font-size: 0.8em;
}

a.tags:hover {
    text-decoration:underline;
}

#in_progress {
    padding: 1em;
    font-size: 0.9em;
    background-color: rgb(223, 162, 49);
    border-radius: var(--border-radius);
    border: #4b3909 1px solid;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    margin: 1.5em;
}

@media (max-width: 800px) {
    #in_progress {
        margin: 0;
        margin-bottom: 1.5em;
        padding: 0.5em;
    }
}

/* Header */
#header {
    /* position: fixed; */
    /* height: auto; */
    font-size: 1.3em;
    background-color: var(--bg-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10;
    background-color: #272727;
}

#header nav {
    padding: 15px;
}

#header nav a {
    text-decoration: none;
    font-weight: 300;
    font-size: 1em;
    margin-right: 20px;
    transition: 0.3s ease;
}

#header nav a:hover {
    color: var(--light-accent);
}

#header .line {
    width: 100vw;
}

.line {
    border: solid 1px var(--light-accent);
    width: 100%;
    overflow: hidden;
}

@media (max-width: 800px) {
    #header nav a {
        font-size: 0.9em;
        margin-right: 10px;
    }
}

/* Welcome */
#welcome {
    display: grid;
    width: calc(100vw - 40px);

    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 0.5fr 3fr 0.5fr 1fr;
    grid-template-areas: 
                        "welcome   welcome"
                        "tags    tags"
                        "portrait        portrait"
                        "quote        quote"
                        "bio    bio"
                        ;
    height: 800px;
    gap: 20px;
    margin-bottom: 60px;
    

}

.welcome {
    grid-area: welcome;
    font-size: 17vw;
    white-space: nowrap;
}

.tags {
    grid-area: tags;

}

.portrait {
    grid-area: portrait;
    object-fit: cover;
    object-position: 90% 20%;
    width: 100%;
    height: 90%;
    /* margin: 0 auto; */
    overflow: hidden;

}

.bio {
    grid-area: bio;
    align-self: center;
}

.quote {
    grid-area: quote;
}

@media (min-width: 800px) {
    #welcome {
        grid-template-columns: 1.6fr 1fr;
        grid-template-rows: 5.5fr 1fr 5fr 1fr;
        grid-template-areas:    "welcome    portrait"
                                "tags       portrait"
                                "bio        portrait"
                                "bio        quote";
        height: 600px;
        margin-bottom: 60px;
    }

    .welcome {
        white-space: nowrap;
        font-size: 90px;
        overflow: hidden;
    }

    .portrait {
        width: 100%;
        height: 90%;
        margin: auto;
    }

    .bio {
        margin: 0;
    }

}

/* Columns */
.columns {
    display: grid;
    grid-template-columns: 1fr;
    /* gap: 20px; */
    column-gap: 20px;
    /* padding: 20px; */
    /* padding-block: 40px; */
}

.columns img {
    max-width: 80vw;
    max-height: 40vw;
    object-fit: cover;
    object-position: 50% 90%;
    margin: auto;
    /* aspect-ratio: 21 / 9; */
}

/* .columns div {
    padding: 40px;
} */

@media (min-width: 1000px) {

    .columns {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        align-items: center;
    }

    .columns img {
        width: 100%;
        height: 100%;
    }


}

/* Enlargeable */

/* .enlargeable {
    width: 100%;
    height: 100px;
    object-fit: cover;
    object-position: 50% 80%;
    transition: width 0.3s ease;
}

.enlargeable:hover {
    width: 100%;
    height: auto;
    aspect-ratio: 21/9;
} */

/* Gallery */

section.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

section.gallery img {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border: solid white 2px;
    aspect-ratio: 1 / 1;
    border-radius: var(--border-radius);
}

/* Music Player */

.yt-music {
  /*position: fixed;
  top: 200px;
  right: calc(50vw - 670px);
  overflow: hidden;*/
  background-color: rgb(30,30,30);
  border-radius: var(--border-radius);
  border: solid rgb(80, 80, 80) 2px;
  padding: 10px;
  width: 350px;
  margin-bottom: 20px;
  overflow: hidden;
  height: auto;
  margin-left: auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.yt-music__bottom {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.5rem;
}

.yt-music__controls {
  display: grid;
  gap: 0.25rem;
}

.yt-music__controls button {
  color: #fff;
}

.yt-music__controls button:hover {
  border: solid rgba(255,255,255,0.3) 3px;
}

.yt-music__volume {
  display: grid;
  gap: 0.25rem;
}

.yt-music__slider {
  width: 20px;
  writing-mode: vertical-rl;
  direction: rtl;
  height: 120px;
}

.yt-music__header {
  padding-bottom: 5px;
}

@media (max-width: 800px) {
  .yt-music {
    position: fixed;
    top: auto;
    height: 80px;
    bottom: -10px;
    right: 10px;
    width: calc(100% - 40px);
    grid-template-columns: 1fr 1fr;
  }

  .yt-music__controls {
    display: flex;
    gap: 0.5rem;
  }

  .yt-music__volume {
    /*writing-mode: horizontal-tb;
    direction: ltr;*/
    width: auto;
    height: 80px;
    display: none;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
}

.lightbox.is-open { display: flex; }

.lightbox__img {
  max-width: min(1400px, 96vw);
  max-height: 92vh;
  object-fit: contain;
}

.lightbox__close {
  position: fixed;
  top: 12px;
  right: 16px;
  font-size: 34px;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  line-height: 1;
}

img.lightboxable {
  cursor: zoom-in;
  width: 100%;
  height: 100%;
}

/* Info Box */

.info-box {
    position: absolute; /* Allows absolute positioning for the hover state */
    background-color: rgb(80, 80, 80);
    border: solid rgb(124, 124, 124);
    border-radius: var(--border-radius);
    padding: 5px;
    right: 20px;
    transform: translateY(-140px);
    z-index: -1;
}

/* Footer */

#footer {
    background-color: #272727;
    border-radius: var(--border-radius);
    padding: 5em;
    font-size: 0.9em;
}

#footer div.flex {
    display: flex;
    padding: 0px;
    max-width: 800px;
    margin: 0 auto;
    gap: 15%;
}

@media (max-width: 600px) {

    #footer {
        padding: 1em 15px;
    }

    #footer div.flex {
        display: block;
        gap: 0;
    }


}

#footer a {
    text-decoration: none;
}

#foot a:hover {
    text-decoration: solid;
}
