:root {
  color-scheme: dark;

  --header-font-family: Rowdies, Verdana, sans-serif;
  --main-font-family: Montserrat, Verdana, sans-serif;
  --monospace-font-family: Courier, monospace;

  --main-font-size: 1rem;
  --small-font-size: .9em;
  --large-icon-size: 1.7rem;
  --small-icon-size: 1.2rem;
  --round-edge: 6px;

  --body-bg: rgb(28, 27, 34);

  --tp-light: rgba(45, 45, 54, 0.555);
  --tp-medium: rgba(12, 12, 15, 0.473);
  --tp-dark: rgba(4, 4, 5, 0.336);
  --tp-black: rgba(0, 0, 0, 0.479);

  --white-solid: rgb(240, 241, 246);
  --red-solid: rgb(226, 89, 112);
  --red-tp: rgba(211, 81, 103, 0.247);
  --green-solid: rgb(165, 204, 133);
  --green-tp: rgb(165, 204, 133, 0.247);
  --blue-tp: rgba(124, 138, 218, 0.301);
  --yellow-solid: rgb(250, 226, 148);
  --yellow-tp: rgb(250, 226, 148, 0.247);
  --grey-light: rgb(231, 231, 248);
  --grey-medium: rgb(191, 191, 202);
  --grey-dark: rgb(64, 64, 77);
  --grey-black: rgb(20, 19, 24);
  --grey-blackest: rgb(15, 14, 18);
}

/* ----- MAIN ----- */

body {
  background: var(--body-bg);
  color: var(--white-solid);
  font-family: var(--main-font-family); 
  margin: 0;
  overflow-y: scroll;
  /* scrollbar-gutter: stable; */
}
p {
  font-size: var(--main-font-size);
  line-height: 1.5em;
}
u {
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.25em;
}
.small-text {
  font-size: var(--small-font-size);
}
#container {
  background: var(--grey-black);
  /* box-shadow: 0.5em 0.5em var(--grey-blackest); */
  line-height: 1.5em;
  max-width: 60em;
  margin: auto;
  margin-top: 0em;
  margin-bottom: 2em;
  padding: 4em 4em .3em 4em;
  border-radius: 0 0 var(--round-edge) var(--round-edge);
}
#content {
  padding: 1.5em 0em 1.5em 0em;
}

/* ----- IMAGES ----- */

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--round-edge);
}
.unrounded {
  border-radius: 0;
}
.right {
  float: right;
  margin: 0em 0em 0em 1em;
}
.left {
  float: left;
  margin: 0em 1em 0em 0em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}
.fl-margin img {
  width: 220px;
  height: 220px;
}
@media only screen and (min-width: 600px) {
  .small {
    max-width: 60%;
    height: auto;
  }
}

/* ----- LINKS ----- */

a {
  color: var(--white-solid);
  background:
    linear-gradient(
      to bottom,
      var(--white-solid) 0%,
      var(--white-solid) 100%
    );
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 2px 2px;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s;
}
a:hover {
  color: var(--body-bg);
  background-size: 2px 50px;
}
a.img-link {
  background: transparent;
  border-bottom: 0;
  text-decoration: none;
}
a.img-link:hover {
  color: var(--grey-medium);
}

/* ----- BUTTONS ----- */

.button-list {
  margin: 0 auto;
  display: grid;
  gap: .7rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.button-link {
  background: var(--grey-blackest);
  border: 1px solid var(--white-solid);
  border-radius: var(--round-edge);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  padding: .6em 0em .6em 0em;
  /* margin: .3em .3em 0em 0em; */
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
}
.button-link:hover {
  background: var(--white-solid);
  color: var(--grey-blackest);
}
.large-icon {
  font-size: var(--large-icon-size);
}

/* ----- HEADINGS ----- */

h1 {
  font-size: 1.8rem;
  margin: 0em 0em 1em 0em;
}
h2 {
  font-size: 1.6rem;
  margin: .5em 0em 1em 0em;
}
h3 {
  font-size: 1.4rem;
  margin: .5em 0em 1em 0em;
}
h4 {
  font-size: 1.2rem;
  margin: 1em 0em 1em 0em;
}
h5 {
  font-size: 1rem;
  margin: 1em 0em 1em 0em;
}
h1, h2, h3, h4, h5 {
  font-family: var(--header-font-family);
  color: var(--white-solid);
  font-weight: 500;
  line-height: 1.5em;
}

/* ----- LISTS ----- */

#header {
  background-color: var(--grey-blackest);
  border: 1px solid var(--white-solid);
  border-radius: var(--round-edge);
  text-transform: uppercase;
  font-weight: 600;
  padding: 1em;
}

blockquote {
  padding-left: 1.5em;
  margin: 1em 0px 1em 0px;
}
li {
  padding-left: 0em;
  list-style-type: square;
}
ul {
  padding-left: 1.5em;
}
ol li {
  list-style-type: decimal;
}
ol > li::marker {
  font-weight: bold;
}

.bulleted ul {
  padding-left: 1.5em;
}
.bulleted li {
  list-style-type: none;
}
.bulleted li:before {
  content: '┇ ';
  padding-right: .2em;
  padding-left: .2em;
}
.non-bulleted li {
  list-style-type: none;
}
.no-margin {
  padding-left: 0em;
}

#postlistdiv ul,
#recentpostlistdiv ul {
  font-size: 1.2rem;
  padding: 0;
}
#postlistdiv li,
#recentpostlistdiv li {
  list-style-type: none;
  line-height: 1.5em;
}
#tagList li {
  display: inline-block;
  list-style-type: none;
  margin-top: 1.5em;
}
#tagList a {
  background: var(--grey-blackest);
  border: 1px solid var(--white-solid);
  border-radius: var(--round-edge);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  padding: .6em;
  margin: 0em .5em 0em 0em;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
}
#tagList a:hover {
  background: var(--white-solid);
  color: var(--grey-blackest);
}
#taggedPosts li {
  font-size: 1.2rem;
  list-style-type: none;
}

/* ----- TABLES ----- */

table {
  width: 100%;
  text-align: left;
  margin: 1em 0em 1em 0em;
}
table th {
  background-color: #0a0a0d;
  text-align: left;
  padding: .2em .2em .2em .5em;
  font-weight: bold;
  position: sticky;
  top: 0;
}
table td {
  padding: .2em .2em .2em .2em;
}
table tr:nth-child(even) {
  background-color: var(--tp-dark);
}

.media-table table td:nth-child(1) {
  width: 10%;
}
.media-table table td:nth-child(2) {
  text-align: left;
  width: 15%;
  padding: .1em .2em .1em .5em;
  white-space: nowrap;
}
.media-table table td:nth-child(3) {
  text-align: left;
  padding: .1em .2em .1em .5em;
}

/* ----- PLAYLIST ----- */

.short-list {
  background: var(--tp-dark);
  font-size: var(--small-font-size);
  text-align: left;
  line-height: 1.5em;
  border-radius: 0 0 var(--round-edge) var(--round-edge);
}
.short-list a {
  background: transparent;
  color: var(--grey-medium);
  text-decoration: none;
}
.short-list a:hover {
  cursor: pointer;
  color: var(--grey-light);
}
.short-list li {
  padding: .5em 1em .5em 1em;
  list-style-type: none;
}
.short-list li:nth-child(even) {
  background: var(--tp-dark);
}
.short-list li:last-child {
  margin-bottom: 1.5em;
  border-radius: 0 0 var(--round-edge) var(--round-edge);
}

/* ----- TO TOP BUTTON ----- */

.up-btn {
  background: var(--grey-blackest);
  border: 1px solid var(--white-solid);
  color: var(--white-solid);
  position: fixed;
  /* display: none; */
  font-size: 1rem;
  bottom: 20px;
  right: 30px;
  z-index: 1;
  padding: 15px;
  border-radius: 6px;
  box-shadow: none;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-transition: all 0.2s;
}
.up-btn:hover {
  background: var(--white-solid);
  color: var(--body-bg);
  box-shadow: none;
}

/* ----- GALLERY-GRID ----- */

.two-image-grid,
.three-image-grid, 
.four-image-grid {
  display: grid;
  grid-column-gap: .5em;
  width: min(100%);
  margin-inline: auto;
  margin: 1em 0em 1em 0em;
}
.two-image-grid {
  grid-auto-columns: 1fr 1fr;
  grid-template-areas: 'one' 'two';
}
.three-image-grid {
  grid-auto-columns: 1fr 1fr 1fr;
  grid-template-areas: 'one' 'two' 'three';
}
.four-image-grid {
  grid-auto-columns: 1fr 1fr 1fr 1fr;
  grid-template-areas: 'one' 'two' 'three' 'four';
}
.two-image-grid img {
  border-radius: var(--round-edge);
  margin-bottom: 1px;
}
.three-image-grid img,
.four-image-grid img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--round-edge);
  margin-bottom: 1px;
}
.two-image-grid-column li,
.three-image-grid-column li,
.four-image-grid-column li {
  margin-top: 0;
  margin-bottom: 1em;
}
.two-image-grid-column:nth-child(1),
.three-image-grid-column:nth-child(1), 
.four-image-grid-column:nth-child(1) { 
  grid-area: one; 
}
.two-image-grid-column:nth-child(2),
.three-image-grid-column:nth-child(2),
.four-image-grid-column:nth-child(2) { 
  grid-area: two;
}
.three-image-grid-column:nth-child(3),
.four-image-grid-column:nth-child(3) { 
  grid-area: three;
}
.four-image-grid-column:nth-child(4) { 
  grid-area: four;
}

.open {
  color: var(--green-solid);
  text-transform: uppercase;
}
.closed {
  color: var(--red-solid);
  text-transform: uppercase;
}

#full-size img {
  aspect-ratio: auto;
}
#same-size img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

@media only screen and (min-width: 100px) {
  .two-image-grid { grid-template-areas: 'one two'; }
  .three-image-grid { grid-template-areas: 'one two three'; }
  .four-image-grid { grid-template-areas: 'one two three four'; }
}

@media screen and (max-width: 560px) {
  .two-image-grid { grid-template-areas: 'one' 'two'; }
  .three-image-grid { grid-template-areas: 'one' 'two' 'three'; }
  .four-image-grid { grid-template-areas: 'one two' 'three four'; }
}

/* ----- PROFILE-GRID ----- */

.profile-grid {
  display: grid;
  gap: 1rem;
  width: min(100%, 55rem);
  margin-inline: auto;
  
  grid-auto-columns: 1fr 1.2fr;
  grid-template-areas: 'one' 'two';
}

.profile:nth-child(1) { grid-area: one; }
.profile:nth-child(2) { grid-area: two; }

@media screen and (min-width: 940px) {
  .profile-grid { grid-template-areas: "one two"; }
}

/* ----- BASIC-GRID ----- */

.basic-grid-2 {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  margin: 1em 0em 0em 0em;
  text-align: center;
  
  grid-auto-columns: .7fr 1.5fr;
  grid-template-areas: 'one' 'two';
}
.basic-grid-2-equal {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  margin: 2em 0em 0em 0em;
  
  grid-auto-columns: 1fr 1fr;
  grid-template-areas: 'one' 'two';
}
.basic-grid-3 {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  margin: 1em 0em 1em 0em;
  text-align: center;
  
  grid-auto-columns: .8fr 1.5fr .5fr ;
  grid-template-areas: 'one' 'two' 'three';
}

.basic-2:nth-child(1) { grid-area: one; }
.basic-2:nth-child(2) { grid-area: two; max-width: 523px; margin: auto; }

.basic-2-equal:nth-child(1) { grid-area: one; }
.basic-2-equal:nth-child(2) { grid-area: two; }

.basic-3:nth-child(1) { grid-area: one; }
.basic-3:nth-child(2) { grid-area: two; }
.basic-3:nth-child(3) { grid-area: three; }

@media screen and (min-width: 945px) {
  .basic-grid-2, .basic-grid-2-equal { grid-template-areas: "one two"; }
  .basic-grid-3 { grid-template-areas: "one two three"; }
}
@media screen and (max-width: 945px) {
  .basic-grid-2 { grid-auto-columns: 1fr 1fr;  margin-bottom: 1em; }
  .basic-grid-3 { grid-auto-columns: 1fr 1fr 1fr; }
}

/* ----- MISC ----- */

hr {
  border: 1px solid var(--grey-dark);
  border-width: 2px 0 0 0;
}
hr.solid {
  margin: 3em 0em 3em 0em;
}
code {
  font-family: var(--monospace-font-family);
  font-size: var(--main-font-size);
  background: var(--tp-black);
  border-radius: var(--round-edge);
  padding: .1em .2em .1em .2em;
  overflow-wrap: break-word;
}
sup {
  vertical-align: top;
  font-size: .7rem;
}
sub {
  line-height: .1em;
}
.caption {
  margin-top: 0em;
  font-size: 0.9em;
  font-style: italic;
}
.tag-line {
  color: var(--grey-light);
  border-bottom: 2px dotted var(--grey-light);
}
.moreposts {
  font-size: 0.8em;
}
.clear {
  clear: both;   
}

#nextprev {
  text-align: center;
  margin-top: 1.4em;
}
#disqus_thread {
  margin-top: 1.6em;
}
#footer {
  font-size: 1em;
  padding-bottom: 1em;
}
#postDate {
  font-size: var(--main-font-size);
  margin-bottom: .2em;
}

/* ----- MOBILE ----- */

@media only screen and (min-width: 100px) {
  .box {
    border-radius: var(--round-edge);
    padding: 1em 2em 1em 2em;
    margin: 2em 0em 2em 0em;
  }
  .callout {
    border-radius: var(--round-edge);
    padding: .5em 2em .5em 2em;
    margin: 1em 0em 1em 0em;
  }
  .quote {
    /* text-align: center; */
    width: 50%;
    margin: auto;
    padding: 1em .1em 1em .1em;
  }
  .centered {
    text-align: center;
  }
  .fl-resize-smaller {
    width: 35%;
  }
  .fl-resize-larger {
    width: 40%;
  }
  .clear-bg {
    background: transparent;
    border: 1px solid var(--white-solid);
  }
  .white-bg { background: var(--white-solid); }
  .red-bg { background: var(--red-tp); }
  .yellow-bg { background: var(--yellow-tp); }
  .green-bg { background: var(--green-tp); }
  .blue-bg { background: var(--blue-tp); }
  .grey-bg { background: var(--grey-blackest); }
}

@media (max-width: 450px) {
  table {
    margin-bottom: 1em;
  }
}

@media screen and (max-width: 600px) {
  body {
    background: var(--grey-black);
  }
  a {
    white-space: wrap;
  }
  .unfloat,
  .unfloat-ss {
    width: 100%;
    display: block;
    float: none;
    margin: auto;
    text-align: center; 
  }
  .unfloat img { 
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: 50% 50%;
  }
  .unfloat-ss img { 
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
  }
  #container {
    margin-top: 0em;
    margin-bottom: 0em;
    padding: 0em .1em 2em .1em;
    box-shadow: none;
    border-radius: 0;
  }
  #content {
    padding: .5em;
  }
  #header {
    margin: .5em;
  }
  #footer {
    padding: 1.5em;
  }
}

@media screen and (max-width: 750px) {
  ul, ol { padding-left: 1em; }
  .box {
    padding: .1em 1em .1em 1em;
  }
  .callout {
    padding: .1em 1em .1em 1em;
    margin: 1.2em .2em 1.2em .2em;
  }
  .up-btn {
    bottom: 10px;
    right: 25px;
  }
}

@media (max-width: 970px) {
  .scrolling-table {
    margin-bottom: 1em;
    white-space: nowrap;
    overflow-x: scroll;
  }
  .quote {
    width: 100%;
  }
  /* #header li {
    padding-top: 1em;
    padding-bottom: 1em;
  }
  #header li a {
    margin: 0em .5em 0em 0em;
  } */
}

/* ----- ANGELS ----- */

.angels {
  width: 38vw;
  margin: auto;
  padding-bottom: 1px;
}
#angel-left {
  width: 119px;
  height: 113px;
  float: left;
  position: relative;
}
#angel-right {
  width: 119px;
  height: 113px;
  float: right;
  position: relative;
}
@media only screen and (min-device-width: 100px) and (max-device-width: 1250px) {
  .angels {
    padding-top: 1em;
    width: 75vw;
  }
  #angel-left { 
    padding-top: 1.5em;
    width: 25%;
  }
  #angel-right { 
    padding-top: 1.5em;
    width: 25%;
  }
}