@import url('https://fonts.googleapis.com/css2?family=Spectral:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Special+Gothic:wght@400&display=swap');

:root {
    --bodyfont: 'Special Gothic', sans-serif;
    --headerfont: 'Spectral', serif;
    --titlefont: serif;

/* Dracula (dark) mode */
  --pagebg: #191A21;
  --boxbg: #21222C;
  --color: #F8F8F2;
  --headers: #F8F8F2;
  --link: #8BE9FD;
  --linkhover: #FF79C6;
  --titlecolor: #F8F8F2;
  --titlebg: #282A36;
  --sidebarbg: #21222C;
  --menubg: none;
  --menucolor: #F8F8F2;
  --menubghover: none;
  --menucolorhover: #FF79C6;
  --menuborder: none;
  --formbg: #282A36;
  --formcolor: #F8F8F2;
  --detailsbg: #343746;
  --hr: #6272A4;
  
  --red: #FF5555;
  --orange: #FFB86C;
  --yellow: #F1FA8C;
  --green: #50FA7B;
  --cyan: #8BE9FD;
  --purple: #BD93F9;
  --pink: #FF79C6;
}

html.night {
  --pagebg: #191A21;
  --boxbg: #21222C;
  --color: #F8F8F2;
  --headers: #F8F8F2;
  --link: #8BE9FD;
  --linkhover: #FF79C6;
  --titlecolor: #F8F8F2;
  --titlebg: #282A36;
  --sidebarbg: #21222C;
  --menucolor: #F8F8F2;
  --menucolorhover: #FF79C6;
  --formbg: #282A36;
  --formcolor: #F8F8F2;
  --detailsbg: #343746;
  --hr: #6272A4;
}
@media (prefers-color-scheme: light) {
  :root {
--pagebg: #DEDCCF;
--boxbg: #FFFBEB;
--color: #1F1F1F;
--headers: #6C664B;
--link: #036A96;
--linkhover: #A3144D;
--titlecolor: #1F1F1F;
--titlebg: #ECE9DF;
--sidebarbg: #FFFBEB;
--menubg: none;
--menucolor: #1F1F1F;
--menubghover: none;
--menucolorhover: #A3144D;
--menuborder: none;
--formbg: #FFFBEB;
--formcolor: #1F1F1F;
--detailsbg: #CECCC0;
--hr: #6C664B;

 --red: #CB3A2A;
 --orange: #A34D14;
 --yellow: #846E15;
 --green: #14710A;
 --cyan: #036A96;
 --purple: #644AC9;
 --pink: #A3144D;
  }
}

    
* { margin: 0; padding: 0; }
img { margin:2px; max-width: 100%; height:auto; }





body { 
    background: var(--pagebg);
    color:var(--color);
    font: 1.05rem 'Special Gothic', sans-serif; 
    letter-spacing:.5px;
}

#skip a {
    position:absolute;
    display:inline-block;
    left:0px;
    top:-1000px;
    overflow:hidden;
    background:var(--boxbg);
    color:var(--link);
    z-index:1000;
    padding:5px;
}
 
#skip a:focus {
    top: 0;
}

#container {
    display:flex;
    flex-wrap:wrap;
}


/* MENU */

#sidebar-container {
    flex: 1 1 calc(10% - 20px);
    min-width: 150px;
    background:var(--sidebarbg);
}

#sidebar {
    position:sticky;
    width: calc(100% - 20px);
    padding:5px;
    text-align:center;
    font:1.3rem var(--headerfont);
    top:10px;
}

#main-navigation ul { list-style-type:none; }

#main-navigation li { margin-bottom:10px; }

#main-navigation li a {
    text-decoration: none; 
    display: inline-block;
    width: 80%;
    background: var(--titlebg);
    padding: 10px;
    text-align: center;
    color: var(--menucolor);
    clip-path: polygon(
        100% 30%,  
        100% 70%,
        75% 100%,  
        0% 80%,    
        0% 20%,   
        75% 0%     
    );
}
#main-navigation li:nth-child(2) a {
    clip-path: polygon(
        0% 30%,   
        0% 70%,   
        25% 100%, 
        100% 80%, 
        100% 20%, 
        25% 0%   
    );
}

/* 4th button - horizontally flipped */
#main-navigation li:nth-child(4) a {
    clip-path: polygon(
        0% 30%,   
        0% 70%,    
        25% 100%,  
        100% 80%,  
        100% 20%, 
        25% 0%     
    );
}

#main-navigation li a:hover, nav li a:focus {
    color:var(--menucolorhover);
}

/* HEADER */

#main-header {
    font: 1em var(--titlefont);
    color: var(--titlecolor);
    border: 2px dashed var(--color);
    font-style: italic;
}

/* CONTENT */

main {
    padding:10px;
    display:flex;
    flex-wrap:wrap;
    flex: 1 1 calc(85% - 20px);
}

main section, #footer {
    padding:15px;
    margin:12px;
    background: var(--boxbg);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    
        --notchSize: 20px;
    clip-path: 
      polygon(
        0% var(--notchSize), 
        var(--notchSize) 0%, 
        calc(100% - var(--notchSize)) 0%, 
        100% var(--notchSize), 
        100% calc(100% - var(--notchSize)), 
        calc(100% - var(--notchSize)) 100%, 
        var(--notchSize) 100%, 
        0% calc(100% - var(--notchSize))
      );
}

#footer {
    text-align:center;
    margin-top:20px;
    flex: 1 1 100%;
    padding:15px;
    background: var(--boxbg);
}

main a {
    color:var(--link);
}

main a:hover, main a:focus {
    color: var(--linkhover);
}

main a img:hover, main a:focus img {
    opacity:0.7;
}

main p {
    margin:10px 0px 10px 0px;
    line-height:1.5;
    margin-bottom: 1.5rem;
}

section > p:first-of-type::first-letter {
  font-size: 1.30em;
  font-family: 'Spectral', serif;
}

main h1, main h2 {
    font-family: var(--headerfont);
    color: var(--headers);
    background: var(--titlebg);
    padding: 5px;
    padding-left: 1em;
    margin: 15px 0px;
    --notchSize: 20px;
    clip-path: polygon(
        0% var(--notchSize),
        var(--notchSize) 0%,
        calc(100% - var(--notchSize)) 0%,
        100% var(--notchSize),
        100% calc(100% - var(--notchSize)),
        calc(100% - var(--notchSize)) 100%,
        var(--notchSize) 100%,
        0% calc(100% - var(--notchSize))
    ); 
}


main h3, main h4, main h5, main h6 {
    font-family: var(--headerfont);
    color: var(--headers);
    padding: 5px;
    margin: 15px 0px;
}

main h1 { font-size: 1.6em; }
main h2 { font-size: 1.4em; }
main h3 { font-size: 1.3em; }
main h4 { font-size: 1.2em; }
main h5 { font-size: 1.1em; }
main h6 { font-size: 1em; }


main ul, ol { 
    list-style-position: outside;
}

main li {
    margin:5px 0 5px 0;
    line-height:1.4;
    text-indent: 0.5em;
    margin-bottom: 20px;
}
dl dt {
  font-size: 1.1em;
  font-weight: bold;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}

dl dd {
  padding-top: 0.5em;
  padding-bottom: 1em;
}

dl dd:after {
  content: "†††";
  display: block;
  text-align: center;
  color: var(--titlebg);
  margin-top: 1em; /* space between dd content and the asterism */
}

 main summary {
  border-bottom: 1px dashed var(--titlebg); 
}

main details:nth-of-type(1) summary:hover {
  border-bottom: 1px dashed var(--red); 
}
main details:nth-of-type(2) summary:hover {
  border-bottom: 1px dashed var(--orange);
}
main details:nth-of-type(3) summary:hover {
  border-bottom: 1px dashed var(--yellow);
}
main details:nth-of-type(4) summary:hover {
  border-bottom: 1px dashed var(--green); 
}
main details:nth-of-type(5) summary:hover {
  border-bottom: 1px dashed var(--cyan);    
}
main details:nth-of-type(6) summary:hover {
  border-bottom: 1px dashed var(--purple);
}
main details:nth-of-type(7) summary:hover {
  border-bottom: 1px dashed var(--pink);    
} 

main details {
    border-bottom: 1px dashed var(--titlebg);
    margin-bottom: 20px;
}
summary::-webkit-details-marker {
    display: none;
}
summary::marker {
    content: none;
}

.weirdword {
  border-bottom: 1px dashed var(--titlebg);
  transition: border-color 0.2s ease;
}

.weirdword:hover {
  border-color: var(--purple);
  font-style: italic;
}

main hr {
    border:1px dashed var(--titlebg);
    margin:10px;
}

main blockquote {
    padding:10px;
    border-left: 2px dashed var(--titlebg);
    background: none;
}

/* FLEX AND GRID */

.flexcontainer {
    display:flex;
    flex-wrap:wrap;
    margin:auto;
}

.full { flex: 1 1 calc(100% - 30px);}
.half { flex: 1 1 calc(50% - 55px); }
.third { flex: 1 1 calc(33% - 55px); }
.twothird { flex: 1 1 calc(66% - 55px); }
.quarter { flex: 1 1 calc(25% - 60px); }
.threequarter { flex: 1 1 calc(75% - 55px); }

.half {
  position: relative;
}

.half::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 2px;
  pointer-events: none;
  transition: background 1s ease; 
}

.half:nth-of-type(3)::before { background: var(--red); }     
.half:nth-of-type(4)::before { background: var(--orange); }  
.half:nth-of-type(5)::before { background: var(--yellow); } 
.half:nth-of-type(6)::before { background: var(--green); }
.half:nth-of-type(7)::before { background: var(--cyan); }
.half:nth-of-type(8)::before { background: var(--purple); }
.half:nth-of-type(9)::before { background: var(--pink); }


.half:hover::before {
  background: var(--titlebg);
}


@media screen and (max-width: 1024px) {    
    main {
        padding:0;
        flex: 0 0 100%;
        display:block;
    }

    .flexcontainer {
        display:block;
    }

    #footer {
        margin-top: 20px;
    }

    #sidebar-container {
        flex:0 0 100%;
    }
    
    #sidebar {
        position:relative;
        height:auto;
        text-align:center;
        margin-bottom:1em;
    }

    #main-navigation li {
        display:inline-block;
        margin-bottom:.75em;
    }
    
    #main-navigation li a {
        display: inline;
    }
}

  .module {
  --notchSize: 20px;
  clip-path: 
    polygon(
      0% var(--notchSize), 
      var(--notchSize) 0%, 
      calc(100% - var(--notchSize)) 0%, 
      100% var(--notchSize), 
      100% calc(100% - var(--notchSize)), 
      calc(100% - var(--notchSize)) 100%, 
      var(--notchSize) 100%, 
      0% calc(100% - var(--notchSize))
    );
}
.button {
  position: relative;
  background: var(--titlebg);
  width: 100%;
  border: solid 1px var(--titlebg);
  font-size: 1.1rem;
  font-family: 'Spectral', serif;
  margin: 0.3rem 0;
  color: var(--color);
  padding: 0.7rem 0.7rem;
  text-align: center;
}

.button::before,
.button::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--pagebg);
  transition: 1s ease; 
}

.button::before { left: 10px; }
.button::after  { left: 20px; }

/* Combined hover rules – lines + border in one block per button */

main section:hover .button:nth-of-type(1),
#footer:hover .button:nth-of-type(1) {
  border-color: var(--red);
}
main section:hover .button:nth-of-type(1)::before,
main section:hover .button:nth-of-type(1)::after,
#footer:hover .button:nth-of-type(1)::before,
#footer:hover .button:nth-of-type(1)::after {
  background: var(--red);
}

main section:hover .button:nth-of-type(2),
#footer:hover .button:nth-of-type(2) {
  border-color: var(--orange);
}
main section:hover .button:nth-of-type(2)::before,
main section:hover .button:nth-of-type(2)::after,
#footer:hover .button:nth-of-type(2)::before,
#footer:hover .button:nth-of-type(2)::after {
  background: var(--orange);
}

main section:hover .button:nth-of-type(3),
#footer:hover .button:nth-of-type(3) {
  border-color: var(--yellow);
}
main section:hover .button:nth-of-type(3)::before,
main section:hover .button:nth-of-type(3)::after,
#footer:hover .button:nth-of-type(3)::before,
#footer:hover .button:nth-of-type(3)::after {
  background: var(--yellow);
}

main section:hover .button:nth-of-type(4),
#footer:hover .button:nth-of-type(4) {
  border-color: var(--green);
}
main section:hover .button:nth-of-type(4)::before,
main section:hover .button:nth-of-type(4)::after,
#footer:hover .button:nth-of-type(4)::before,
#footer:hover .button:nth-of-type(4)::after {
  background: var(--green);
}

main section:hover .button:nth-of-type(5),
#footer:hover .button:nth-of-type(5) {
  border-color: var(--cyan);
}
main section:hover .button:nth-of-type(5)::before,
main section:hover .button:nth-of-type(5)::after,
#footer:hover .button:nth-of-type(5)::before,
#footer:hover .button:nth-of-type(5)::after {
  background: var(--cyan);
}

main section:hover .button:nth-of-type(6),
#footer:hover .button:nth-of-type(6) {
  border-color: var(--purple);
}
main section:hover .button:nth-of-type(6)::before,
main section:hover .button:nth-of-type(6)::after,
#footer:hover .button:nth-of-type(6)::before,
#footer:hover .button:nth-of-type(6)::after {
  background: var(--purple);
}

main section:hover .button:nth-of-type(7),
#footer:hover .button:nth-of-type(7) {
  border-color: var(--pink);
}
main section:hover .button:nth-of-type(7)::before,
main section:hover .button:nth-of-type(7)::after,
#footer:hover .button:nth-of-type(7)::before,
#footer:hover .button:nth-of-type(7)::after {
  background: var(--pink);
}

.bisexual:nth-of-type(1):hover {
  border-color: var(--pink);
}

.bisexual:nth-of-type(2):hover {
  border-color: var(--purple);
}

.bisexual:nth-of-type(3):hover {
  border-color: var(--cyan);
}

.bisexual {
  background: var(--titlebg);
  width: 100%;
  border: solid 1px var(--titlebg);
  font-size: 1.1rem;
  font-family: 'Spectral', serif;
  margin: 0.3rem 0;
  color: var(--color);
  padding: 0.7rem 0.7rem;
  text-align: center;
}

 .listing {
    background: var(--titlebg);
    max-width: 25%;
    font-size: 1rem;
    border: hidden 1px;
    font-family: 'Spectral', serif;
    margin: 0.3rem 0;
    color: var(--color);
      clip-path: polygon(
100% 30%,  /* rotated top right */
    100% 70%,  /* rotated bottom right */
    75% 100%,  /* rotated bottom */
    0% 80%,    /* rotated bottom left */
    0% 20%,    /* rotated top left */
    75% 0%     /* rotated top */
  );
    padding: 0.7rem 0.7rem;  
    text-align: center;
    }
    
    .listing:nth-of-type(1):hover {
 color: var(--pink);
}

.listing:nth-of-type(2):hover {
  color: var(--purple);
}

.listing:nth-of-type(3):hover {
  color: var(--cyan);
}

/* Textbox */
  .scrollbox {
  background: var(--boxbg);
  padding: 5px;
  max-height: 250px;
  
  overflow: auto;
  }
  
  #site-footer {
  text-align: center;
  font-size: 0.8em;
  padding: 1em 0; 
  font-style: italic;
}

@media (max-width: 1024px) {
  #mobile-hide {
    display: none;
  }
}
  

@media (min-width: 1025px) {
  #desktop-hide {
    display: none;
  }
}

.column {
  float: left;
  width: 30%;
    padding: 20px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

@media screen and (max-width: 1024px) {
  .column {
    width: 100%;
    text-align: center;
    float: none;
    padding: 10px 0;
  }
}

.fourcolumn {
  float: left;
  width: 23%;
  padding: 10px;
}

@media screen and (max-width: 1024px) {
  .fourcolumn {
    width: 100%;
    text-align: center;
    float: none;
    padding: 10px 0;
  }
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}


.coffin {
  width: 200px;
  height: 300px;
  clip-path: polygon(
    30% 0%,   /* Top left slant */
    70% 0%,   /* Top right slant */
    100% 25%, /* Upper right edge */
    80% 100%, /* Bottom right */
    20% 100%, /* Bottom left */
    0% 25%    /* Upper left edge */
  );
  box-sizing: border-box;
}


.coffin2 {
  background: var(--titlebg);
  clip-path: polygon(
100% 30%,  /* rotated top right */
    100% 70%,  /* rotated bottom right */
    75% 100%,  /* rotated bottom */
    0% 80%,    /* rotated bottom left */
    0% 20%,    /* rotated top left */
    75% 0%     /* rotated top */
  );
  box-sizing: border-box;
  display: block;
  text-align: center;
  padding: 30px;
}

.blurb {
    color:var(--color);
    font: 0.9rem 'Special Gothic', sans-serif; 
    font-style: italic;
  border-bottom: 1px dashed var(--titlebg);
    letter-spacing:.5px;
}
.block {
    padding: 0.7rem;
    border: 1px dashed;
    transition: color 0.3s;
}

details:nth-of-type(1) summary.block { border-color: var(--red); }
details:nth-of-type(2) summary.block { border-color: var(--orange); }
details:nth-of-type(3) summary.block { border-color: var(--yellow); }
details:nth-of-type(4) summary.block { border-color: var(--green); }
details:nth-of-type(5) summary.block { border-color: var(--cyan); }
details:nth-of-type(6) summary.block { border-color: var(--purple); }
details:nth-of-type(7) summary.block { border-color: var(--pink); }
details:nth-of-type(8) summary.block { border-color: var(--red); }
details:nth-of-type(9) summary.block { border-color: var(--orange); }

details summary.block:hover {
    color: inherit;
}

details:nth-of-type(1) summary.block:hover { color: var(--red); }
details:nth-of-type(2) summary.block:hover { color: var(--orange); }
details:nth-of-type(3) summary.block:hover { color: var(--yellow); }
details:nth-of-type(4) summary.block:hover { color: var(--green); }
details:nth-of-type(5) summary.block:hover { color: var(--cyan); }
details:nth-of-type(6) summary.block:hover { color: var(--purple); }
details:nth-of-type(7) summary.block:hover { color: var(--pink); }
details:nth-of-type(8) summary.block:hover { color: var(--red); }
details:nth-of-type(9) summary.block:hover { color: var(--orange); }

ul.coffins {
  list-style: none;
}

ul.coffins li::before {
  /* look up 'css code symbols' for more symbols */
  content: "⚰︎";
}


@media screen and (max-width: 1024px) {
  .ascii-art-label {
    max-width: 300px;               
    overflow-x: auto;            
    -webkit-overflow-scrolling: touch; 
  }
}


html.night {
  --pagebg: #000000;
  --boxbg: #000000;
  --color: #F8F8F2;
  --headers: #F8F8F2;
  --link: #8BE9FD;
  --linkhover: #FF79C6;
  --titlecolor: #F8F8F2;
  --titlebg: #0b0c0f;
  --sidebarbg: #0b0c0f;
  --menucolor: #F8F8F2;
  --menucolorhover: #FF79C6;
  --formcolor: #F8F8F2;
  --detailsbg: #343746;
  --hr: #6272A4;
}





html.night .ascii-art-label span.slime {
  color: var(--green);
}

html.night .ascii-art-label span.worms {
  color: var(--pink);
}
html.night .ascii-art-label span.cauldron {
  color: var(--purple);
}

html.night .ascii-art-label span.jackOlantern {
  color: var(--orange);
}

