/* These are the default colour codes for the layout.
Changing the colour code here will update it for any element that uses it. */
:root {
    --bg-color: #FCFCFC;
    --wrap-color: #F1F1EF;
    --win-color: #F7F7F5;
    --win-header: #EAEAE2;
    --menu: #F1F1EF;
    --menu-bord: #E6D7B2;
    --bold-color: #E6D7B2;
    --title-color: #C6B997;
    --accent1: #2D8191;
    --accent2: #E1AE5F;
    --highlight: #FAEEB8;
    --font: #1B575D;
    --link: #2D8191;
    --linkhover: #E1AE5F ;
    --scrollbarcol: #1B575D #1b585d7e;
    --h1-color: #2D8191;
    --h2-color: #997948;
    --h3-color: #1B575D;
}
  
/* ------- Themes ------- */
  
[data-theme="default"] {
    --bg-color: #3A4466;
    --wrap-color: #5A6988;
    --win-color: #5A6988;
    --win-header: #3A4466;
    --menu: #5A6988;
    --menu-bord: #181425;
    --bold-color: #181425;
    --title-color: #3A4466;
    --accent1: #ff0044;
    --accent2: #FF0044;
    --highlight: #95a3bf;
    --font: #181425;
    --link: #95a3bf;
    --linkhover: #FF0044;
    --scrollbarcol: #181425 #18142588;
    --h1-color: #FF0044;
    --h2-color: #181425;
    --h3-color: #181425;
}
  
[data-theme="Minmows95"] {
    --bg-color: #00827D;
    --wrap-color: #E3E3E3;
    --win-color: #C0C0C0;
    --win-header: #0000b1;
    --menu: #C0C0C0;
    --menu-bord: #505050;
    --bold-color: #505050;
    --title-color: #0000b1;
    --accent1: #ffffff;
    --accent2: #80807E;
    --highlight: #ffffff;
    --font: #000000;
    --h1-color: #000000;
    --h2-color: #000000;
    --h3-color: #000000;
    --link: #0000b1;
    --linkhover: #5985ff;
    --scrollbarcol: #80807E #80807e69;
}
  
[data-theme="cafe"] {
    --bg-color: #BBFAFF;
    --wrap-color: #A49882;
    --win-color: #FDF6E4;
    --win-header: #847360;
    --menu: #A49882;
    --menu-bord: #665B47;
    --bold-color: #665B47;
    --title-color: #FDF6E4;
    --accent1: #665B47;
    --accent2: #C3F3F7;
    --highlight: #E6FBFD;
    --font: #242010;
    --link: #F9B885;
    --linkhover: #C3F3F7;
    --scrollbarcol: #665B47 #665b4777;
    --h1-color: #242010;
    --h2-color: #242010;
    --h3-color: #242010;
}
  
[data-theme="spring"] {
    --bg-color: #cffaff;
    --wrap-color: #24A34A;
    --win-color: #FAD3C9;
    --win-header: #E49191;
    --menu: #E49191;
    --menu-bord: #611D30;
    --bold-color: #053613;
    --title-color: #053613;
    --accent1: #BADD7F;
    --accent2: #611D30;
    --highlight: #EBEDEE;
    --font: #053613;
    --link: #993b56;
    --linkhover: #611D30;
    --scrollbarcol: #993b56 #993b5680;
    --h1-color: #611D30;
    --h2-color: #053613;
    --h3-color: #053613;
}
  
[data-theme="summer"] {
    --bg-color: #5094B9;
    --wrap-color: #40552d;
    --win-color: #406768;
    --win-header: #19350C;
    --menu: #406768;
    --menu-bord: #19350C;
    --bold-color: #0C2908;
    --title-color: #ECA945;
    --accent1: #A44F3C;
    --accent2: #D5D3CC;
    --highlight: #687D31;
    --font: #0C2908;
    --link: #401D15;
    --linkhover: #F2600C;
    --scrollbarcol: #A44F3C #d03b007a;
    --h1-color: #0C2908;
    --h2-color: #0C2908;
    --h3-color: #0C2908;
}


@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=Silkscreen&display=swap');
html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbarcol);
  }
    
body {
    text-align: center;
    overflow-x: hidden;
    margin: 0;
    padding: 20px;
    font-family: "IBM Plex Mono", monospace;
    background-color: var(--bg-color);
}

p {
  color: var(--font);
}

ul {
  color: var(--font);
  margin-left: 20%;
  text-align: left;
}

.imgcenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  border-radius: 50%;
}

/*--- Header Styling ---*/
h1 {
  display: block;
  font-size: 24px;
  margin: 5px 0px 10px 0px;
  font-family: Merriweather;
  font-weight: bold;
  color: var(--h1-color);
  z-index: 2 !important;
}

h2 {

  font-size: 18px;
  margin: 3px 0px 7px 0px;
  font-family: Merriweather;
  font-weight: bold;
  color: var(--h2-color);
  z-index: 2 !important;
}

h3 {
  display: block;
  font-size: 16px;
  margin: 5px 0px 3px 0px;
  font-family: Merriweather;
  color: var(--h3-color);
  z-index: 2 !important;
}


/*logo thing idk*/

.wrapper {
  position: relative;
  width: 200px;
  height: 180px;
  border-radius: 5px;
  margin: auto;
  margin-top: calc(45vh - 400px);
  border: 3px solid var(--bold-color);
  box-shadow: 3px 3px 0 var(--highlight);
  background-color: var(--wrap-color);
}

/*--- Search Bar styles ---*/
.searchbar {
  overflow: hidden;
  width: 500px;
  margin: auto;
  padding-bottom: 5px;
}
  
#searchInput {
  width: 400px;
  padding: 8px;
  font-family: "Silkscreen", sans-serif;
  font-size: 12px;
  margin-bottom: 10px;
  background-color: var(--win-color);
}

.searchbar button {
  margin: auto;
  margin-bottom: 10px;
  padding: 8px 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  background-color: var(--win-header);
  outline: none;
}

.searchbar button:hover {
  filter: brightness(80%);
  cursor: pointer;
}

.searchbar button:active {
  filter: brightness(50%) saturate(125%);
  cursor: pointer;
}

#searchResults {
  margin: auto;
  width: 450px;
  background: var(--win-color);
  max-height: 500px;
  overflow: hidden;
}

.search-result {
  margin-bottom: 10px;
}

.search-result a {
  font-weight: bold;
  text-decoration: none;
  color: var(--link);
}


/* --- Side navigation bar --- */

.sidenav {
  margin-left: 100px;
  padding: 0;
  top: 100px;
  width: 200px;
  position: fixed;
  height: 100%;
  overflow: auto;
}

.sidenav a {
  padding: 6px 8px 6px 16px;
  text-decoration: none;
  font-size: 25px;
  color: var(--font);
  display: block;
}

.sidenav a:hover {
  color: var(--linkhover);
}

/* --- Wiki "Article" styles ---*/
* {
  box-sizing: border-box;
}

/* Left column */
.leftcolumn {   
  float:left;
  width: 65%;
}

/* Right column */
.rightcolumn {
  float: right;
  width: 35%;
  padding-left: 5px;
  padding-right: 5px;
}

/* Fake image */
.fakeimg {
  display: block;
  background-color: var(--bg-color);
  width: 100%;
  padding: 5px;
}

/* Profile image */
.profileimg {
  display: block;
  height:600px;
  width: 355px;
  padding: 5px;
}

/* CUTE LIL SIDE ICONS */
.icon-wrapper {
  position: relative;
}

/* Base style for all icons */
.icons {
  position: absolute;
  z-index: 2;
}

.icon-1 {
  right: -5px;
  top: -2px;
  color: var(--accent2);
}

.icon-2 {
  right: -35px;
  top: 60px;
  color: var(--accent1);
}

.icon-3 {
  right: 2px;
  top: 100px;
  color: var(--accent2);
}


/* About */
.info-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: sans-serif;
  font-size: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
}

.info-left,
.info-right {
  width: 48%;
  padding: 4px;
}

.info-right {
  text-align: center;
}

.label {
  margin: auto;
  font-size: 10px;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--h1-color);
}

.value {
  margin: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}


/*card effect for articles */
.card {
  background-color: var(--wrap-color);
  border: 1px solid var(--highlight);
  padding: 5px;
  margin-top: 5px;
}

/* Clear floats after the columns */
.row:after {
  content: "";
  display: table;
  clear: both;
}

/* --- Accordian menu --- */

.accordion {
  background-color: var(--win-header);
  cursor: pointer;
  padding: 18px;
  margin-top: 10px;
  width: 702px;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
  transition: 0.4s;
}

.accordion:hover {
  background-color: var(--win-color);
  display: block;
}

.accordian-content {
  padding: 0 5px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  text-align: left;
  text-indent: 20px
}

/* --- Color swatches --- */

.color-palette {
  display: flex;
  justify-content: center;
  padding-top: 10px;
  gap: 8px;
}

.swatch {
  width: 95px;
  height: 25px;
  border-radius: 4px;
  box-shadow: 0 0 0 1px var(--bold-color);
  position: relative;
  cursor: pointer;
}

.swatch::before {
  content: attr(data-hex);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.swatch:hover::before {
  opacity: 1;
}

.swatch::before {
  color: var(--text-color, #000);
}

/* --- Stats and Trivia --- */

.trivia-card {
  background-color: var(--bg-color);
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 14px;
  color: var(--h1-color);
}

.trivia-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.trivia-item {
  flex: 1 1 50%;
  display: flex;
  justify-content: space-between;
  padding: 4px 8px;
  border-bottom: 1px dashed var(--bold-color);
}

.stats-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--h3-color);
}

.stats-header hr {
  flex-grow: 1;
  border: none;
  border-top: 1px solid var(--bold-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.stat .label {
  text-align: center;
  font-size: 14px;
  margin-bottom: 4px;
}

.bar {
  height: 5px;
  background-color: var(--bg-color);
  border-radius: 3px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background-color: var(--bold-color);
}

.divider {
  width: 75%;
  margin: 1rem auto;
  border: none;
  border-top: 1px solid var(--bold-color);
}



/* --- Wiki Footer Box --- */

.wikibox body {
    background-color: transparent;
}

.wikibox * {
    font-family: "IBM Plex Mono", monospace;
}

.wikibox a:link,
.wikibox a:visited {
    color: var(--link);
    font-weight: normal;
    text-decoration: none;
}

.wikibox a:hover {
    color: var(--linkhover);
    font-weight: bold;
    font-style: italic;
    text-decoration: none;
}

.subtitle a {
    color: var(--linkhover);
    text-decoration: underline;
    border-bottom: none;
    font-weight: bold;
}

.wikibox details {
    padding: 3px;
    background-color: var(--wrap-color);
}

.wikibox summary {
    background: var(--bold-color);
    padding: 0.25em 1em;
    line-height: 1.5em;
    text-align: center;
    font-weight: bold;
    color: var(--font);
    margin-bottom: 3px;
    font-style: italic;
}

.wikibox {
    background: transparent;
    clear: both;
    width: 900px;
    margin: auto;
    text-align: center;
    padding: 3px;
    line-height: 1.5em;
    font-family: "IBM Plex Mono", monospace;
}

.wikibox .subtitle {
    background: var(--bold-color);
}

.linklist a:after {
    content: " · ";
    font-weight: bold;
}

.linklist a:last-child:after {
    content: "";
}

.linklist a {
    white-space: nowrap;
}

.wikibox p {
    margin: 0;
}

.title {
    font-weight: bold;
}

.split {
    display: flex;
    flex-direction: row;
    margin-bottom: 3px;
    border-bottom: 1px var(--bold-color) solid;
}

.split .subtitle,
.subsubtitle {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    justify-content: flex-end;
    flex-shrink: 0;
    padding: 0 7px 0 2px;
    width: 100px;
    overflow: hidden;
    height: auto;
    text-align: right;
    font-weight: bold;
}

.split .subtitle {
    width: 100px;
    overflow: hidden;
    color: var(--font);
    font-size: 16px;
}

.split .subsubtitle {
    width: 85px;
    margin-left: 3px;
    background: var(--bold-color);
    color: var(--font);
    font-size: 12px;
}

.links {
    text-align: left;
    padding: 0 5px 0 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.links a {
    justify-content: flex-start;
}

.categorylist>.category {
    border-bottom: 1px solid var(--bold-color);
}

.categorylist>.category:last-of-type {
    border-bottom: none;
}


.category {
    display: flex;
    flex-direction: row;
    margin: 1px 0 0 0;
    width: 100%;
    height: auto;
}

.categorylist {
    display: flex;
    flex-direction: column;
    width: 100%;
}

details p:last-child {
    padding-bottom: .2em;
}

details p:first-of-type {
    padding-top: .2em;
}

details p {
    padding-left: .2em;
    padding-right: .2em;
}

p a:link {
    border-bottom: none;
}

/* --- Music player --- */
.music-container {
  width: 100%;
  max-width: 480px;
  padding: 0;
  margin: 0.5rem auto;
  position: relative;
  text-align: left;
  font-family: sans-serif;
}

.music-title {
  padding: 0.5rem;
  background-color: var(--accent1);
  border: 1px solid var(--bold-color);
  font-size: 1rem;
  color: var(--highlight);
}

.music-disc {
  position: absolute;
  right: -9px;
  bottom: -9px;
  padding: 0.5rem;
  border-radius: 50%;
  overflow: hidden;
  z-index: 2;
  background-color: var(--accent1);
  cursor: pointer;
}

.spinning-disc {
  font-size: 2.5rem;
  color: var(--accent2);
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.music-iframe {
  position: absolute;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
}

/* !!!! Mobile Support Settings !!!! */
@media only screen and (max-width: 360px) {

    body, html {
    padding: 0;
    margin: 0;
    overflow-x: visible; /* Prevent horizontal scrolling */
    }

    .wrapper {
    max-width: 340px;
    margin-top: 10px !important;
    }

    .searchbar{
    float: none;
    display: block;
    width: 300px;
    margin: auto;
    }

    .searchbar button {
    position: relative;
    }

    .wikibox {
      max-width: 300px
    }

    .split {
        flex-direction: column;
        margin-bottom: 0px;

    }

    .split .subtitle,
    .subsubtitle {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .category {
        flex-direction: column;
    }

    .split .subsubtitle {
        width: 100%;
        margin: 0px;
    }

    .links {
        text-align: center;
    }

    .leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
    }

    .profileimg {
    width: 75%;
    }

    .sidenav {
      display: none;
    }

    .accordion {
      width:100%;
    }

}


/* !!!! Mobile Support Settings !!!! */
  @media only screen and (max-width: 1600px) {
    body, html {
    padding: 0;
    margin: 0;
    overflow-x: visible; /* Prevent horizontal scrolling */
    }

    .wrapper {
    max-width: 340px;
    margin-top: 5px !important; /* Ensure it's visible */
    /*padding-top: 10px;  Extra spacing */
    }

    .searchbar{
    float: none;
    display: block;
    width: 300px;
    margin: auto;
    padding: 8px;
    }

    .searchbar button {
    margin: auto;
    }

    .wikibox {
      max-width: 350px
    }

    .split {
        flex-direction: column;
        margin-bottom: 0px;

    }

    .split .subtitle,
    .subsubtitle {
        width: 100%;
        justify-content: center;
        padding: 0;
    }

    .category {
        flex-direction: column;
    }

    .split .subsubtitle {
        width: 100%;
        margin: 0px;
    }

    .links {
        text-align: center;
    }

    .leftcolumn, .rightcolumn {
    margin: auto;
    float: none;  
    width: 80%;
    padding: 0;
    }

    .profileimg {
    margin: auto;
    height:600px;
    width: 275px;
    }

    .sidenav {
    margin-top: 100px;
    margin-left: -300px;
    top: 5px;
    left: 30%;
    width: 100px;
    }
    .sidenav a {float: left;}
    .content {margin-left: 0;}

    .accordion {
    width:100%;
    }

  }