@import url('https://fonts.googleapis.com/css2?family=Hepta+Slab:wght@1..900&display=swap');

/* Theming */
.gruvbox, :root {
    --bg0: #282828;
    --bg1: #3c3836;
    --bg2: #584845;
    --bg3: #665c54;
    --fg0: #fbf1c7;
    --fg1: #ebdbb2;
    --fg2: #d5c4a1;
    --fg3: #bdae93;
    --ac0: #d65d0e;
    --ac1: #fe8819;
    --ac2: #928374;
    --ac3: #1d2021;
    --shadow: rgba(0, 0, 0, 0.5);
}

.lightbox, :root {
    --bg0: #fbf1c7;
    --bg1: #ebdbb2;
    --bg2: #d5c4a1;
    --bg3: #bdae93;
    --fg0: #282828;
    --fg1: #3c3836;
    --fg2: #584845;
    --fg3: #665c54;
    --ac0: #d65d0e;
    --ac1: #fe8819;
    --ac2: #928374;
    --ac3: #1d2021;
    --shadow: rgba(0, 0, 0, 0.5);
}

.nord-light, :root {
    --bg0: #a9b1c0;
    --bg1: #d8dee9;
    --bg2: #e5e9f0;
    --bg3: #eceff4;
    --fg0: #2e3440;
    --fg1: #3b4252;
    --fg2: #434c5e;
    --fg3: #4c566a;
    --ac0: #8fbcbb;
    --ac1: #88c0d0;
    --ac2: #81a1c1;
    --ac3: #5e81ac;
    --shadow: rgba(0, 0, 0, 0.5);
}

.nord-dark, :root{
    --bg0: #2e3440;
    --bg1: #3b4252;
    --bg2: #434c5e;
    --bg3: #4c566a;
    --fg0: #a9b1c0;
    --fg1: #d8dee9;
    --fg2: #e5e9f0;
    --fg3: #eceff4;
    --ac0: #8fbcbb;
    --ac1: #88c0d0;
    --ac2: #81a1c1;
    --ac3: #5e81ac;
    --shadow: rgba(0, 0, 0, 0.5);
}

.dracula, :root{
    --bg0: #282a36;
    --bg1: #44475a;
    --bg2: #44485f;
    --bg3: #3a4258;
    --fg0: #f8f8f2;
    --fg1: #f1cef0;
    --fg2: #ff79c6;
    --fg3: #cc8fb2;
    --ac0: #d65d0e;
    --ac1: #fe8819;
    --ac2: #928374;
    --ac3: #1d2021;
    --shadow: rgba(0, 0, 0, 0.5);
}

.catlatte, :root{
    --bg0: #dce0e8;
    --bg1: #e6e9ef;
    --bg2: #eff1f5;
    --bg3: #ccd0da;
    --fg0: #4c4f69;
    --fg1: #5c5f77;
    --fg2: #6c6f85;
    --fg3: #7c7f93;
    --ac0: #e64553;
    --ac1: #8839ef;
    --ac2: #40a02b;
    --ac3: #04a5e5;
    --shadow: rgba(0, 0, 0, 0.5);
}

.catfrappe, :root{
    --bg0: #232634;
    --bg1: #292c3c;
    --bg2: #303446;
    --bg3: #414559;
    --fg0: #c6d0f5;
    --fg1: #b5bfe2;
    --fg2: #949cbb;
    --fg3: #838ba7;
    --ac0: #ea999c;
    --ac1: #ca9ee6;
    --ac2: #a6d189;
    --ac3: #8caaee;
    --shadow: rgba(0, 0, 0, 0.5);
}

/* Structure */
* {
    box-sizing: border-box;
    font-family: "Hepta Slab", serif;
    font-weight: 400;

    transition: 0.5s;
}

svg {
    display: flex;
}

body {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    margin: 0px;
    min-height: 100vh;

    background-color: var(--bg1);
    color: var(--fg1);
}

.wrapper {
    display: flex;
    flex-direction: row;
    overflow: hidden;
    z-index: 1;

    margin: 60px 0px;
    min-height: 620px;
    width: 850px;
    border-radius: 15px;

    box-shadow: 0px 0px 15px 5px var(--shadow);

    

}

.container {
    display: flex;
    flex-direction: column;
    z-index: 2;

    min-height: 100%;
    width: 80%;
    padding: 10px;

    background-color: var(--bg0);
    box-shadow: 0px 0px 10px 5px var(--shadow);

    
}

.background {
    all: unset;

    position: fixed;
    display:block;
    z-index: -50;

    top: -200px;
    left: -250px;

    height: 200%;
    width: 200%;

    stroke: var(--bg0);
}


/* Sidebar */
.sidebar {
    display: flex;
    
    flex-direction: column;
    align-items: center;

    min-height: 100%;
    width: 20%;
    padding: 0px;

    background-color: var(--fg0);
    color: var(--bg0);

    
}

.logo {
    margin: 5px;
    width: 90%;
    margin: 10px;
    margin-bottom: 0px;
}

.side-category {
    width: 100%;
    padding: 4px 10px;
    margin-top: 10px;
    font-size: 11pt;

    border-bottom: 1px solid var(--bg3);
}

.side-item {
    width: 100%;
    padding: 4px 20px;
    font-size: 9pt;

    border-bottom: 1px solid var(--bg3);
    background-color: var(--fg2);

    
}

.side-item:hover {
    background-color: var(--bg3);
    color: var(--fg1);
}

.icons {
    margin-top: auto;
    display: flex;
    flex-direction: row;
}

.icon {
    height: 35px;

    fill: var(--bg0);

    
}

.icon:hover {
    fill: var(--bg2);
}

.info {
    margin-bottom: 3px;
    font-size: 5pt;
}

/* Theme Switcher */
#switcher {
    align-self: center;
    text-align: center;
    
    padding: 4px 5px;
    width: 165px;
    border-radius: 5px;
    margin-bottom: 5px;
    border: 0px;

    font-size: 12px;
    font-weight: 550;

    color: var(--fg1);
    background-color: var(--bg0);

    
}

#switcher:hover {
    background-color: var(--bg2);
}

/* Text & Formatting */
a {
    color: var(--fg3);
}

a:visited {
    color: var(--ac1);
}

.title {
    align-self: center;

    margin: 10px 0px 0px 0px;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 24pt;
    font-weight: 700;

    background-color: var(--fg0);
    color: var(--bg1);
    box-shadow: inset 0px 0px 5px 1px var(--shadow);

    
}

h1 {
    margin: 15px 0px 10px 0px;
    font-size: 24pt;
    font-weight: 600;
    color: var(--fg0);
}

h2 {
    margin: 5px 0px 10px 0px;
    font-size: 20pt;
    font-weight: 500;
    color: var(--fg1);
}

h3 {
    margin: 5px 0px 10px 0px;
    font-size: 14pt;
    font-weight: 600;
    color: var(--fg1);
}

p {
    margin: 2px 0px 10px 0px;
    font-size: 12pt;
    color: var(--fg2);
}

small {
    margin: 0px 0px 5px 0px;
    font-size: 8pt;

    color: var(--fg3);
}

.split {
    align-self: center;
    width: 70%;
    height: 1px;
    margin: 10px;

    background-color: var(--fg3);
}

.columns {
    display: flex;
    flex-direction: row;
}

.column {
    padding-right: 20px;
}


/* 88x31's */
.wrapperx31 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    margin: auto auto 12px auto;
    max-width: 600px;
}

.containerx31 {
    align-items: center;
    justify-content: center;

    width: 88px;
    height: 31px;
}

.containerx31:hover {
    z-index: 5;
}

.x31 {
    width: 88px;
    height: 31px;
    
}

.x31:hover {
    width: 98px;
    height: 35px;
    margin-left: -5px;
    margin-top: -2px;
}

.arrowx31 {
    top: 0;
    position: absolute;
    margin: -10px 25px;
    width: 20px;
    height: 20px;
    transform:rotate(45deg);

    background-color: var(--bg3);
    transition: 0s;
}

.contextx31 p {
    margin: 2px 0px;

    transition: 0s;
}

.contextx31 h3 {
    transition: 0s;
}

.contextx31 small {
    transition: 0s;
}

.contextx31 {
    visibility: hidden;
    display: flex;
    position: fixed;
    flex-direction: column;

    margin: 2px -20px ;
    padding: 10px;
    border-radius: 5px;
    max-width: 400px;

    background-color: var(--bg3);
    box-shadow: 0px 0px 5px 2px var(--shadow);
    transition: 0s;
}

@keyframes context {
  0%   {opacity: 0;}
  30%  {opacity: 0;}
  100% {opacity: 1;}
}

.x31:hover+.contextx31, .contextx31:hover {
    animation: context 2s;
    visibility: visible;
}

.categoryx31 {
    position:absolute;
    right: 0;
    
    padding: 5px;
    margin-right: 10px;
    font-weight: 700;
    border-radius: 5px;

    background-color: var(--fg1);
    color: var(--bg1);
    transition: 0s;
}

/* Image Galleries */
.gallery {
    justify-content: center;
    flex-wrap: wrap;
    display: flex;

    max-width: 600px;
}

.example {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;

    width: 190px;
    margin-bottom: 15px;
}

.example img {
    object-fit: cover;

    width: 160px;
    height: 100px;
    border-radius: 5px;
}

.reference {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;

    width: 190px;
    margin-bottom: 15px;
}

.reference img {
    object-fit: cover;
    
    width: 280px;
    height: 200px;
    border-radius: 5px;

    border: solid 2px var(--fg3);
}

.gpose {
    align-items: center;
    justify-content: center;
    display: flex;
    flex-direction: column;

    width: 190px;
    margin-bottom: 15px;
    
}

.gpose img {
    object-fit: cover;

    width: 160px;
    height: 160px;
    border-radius: 5px;

    border: solid 2px var(--fg3);
}

/* Modtab */
.mod {
    display: flex;
    border-radius: 10px;
    height: 160px;
    width: 100%;
    margin-top: 5px;
    margin-bottom: 10px;
    
    background-color: var(--bg2);
}

.mod img {
    margin: 18px 15px;
    border: solid 2px;
    border-radius: 5px;
    height: 120px;

}

.description {
    height: 120px;
    display: flex;
    flex-direction: column;
    margin: 18px 5px;
}

.description small{
    display:flex;
    margin-top: auto;
    margin-bottom: 2px;
}

/* Lore */
.read {
    display: flex;
}

.worldoptions{
    display:flex;
    flex-direction: row;
}

.worldoptions .item{
    text-align: center;
    width: 100px;
    padding: 5px;
    margin:0px auto;
}

.item {
    padding: 5px 15px;

    border-radius: 10px;

    color: var(--bg2);
    background-color: var(--fg0);
    box-shadow: inset 0px 0px 5px 1px var(--shadow);
}

.read .item {
    margin: 0px 5px auto auto;
}

.item:hover {
    color: var(--bg0);
    background-color: var(--fg3);
}

/* Timeline */

.timeline {
    padding-left: 10px;
}

.date {
    border-radius: 5px;
    padding: 5px 5px 5px 10px;
    margin: 5px 5px 15px 5px;
    background-color: var(--bg1);
    box-shadow: 0px 0px 15px var(--shadow);
}

.event {
    border-radius: 5px;
    padding: 5px 50px 5px 10px;
    margin: 5px 10px 5px 0px;
    background-color: var(--fg3);
    
}
.event p {
    color: var(--bg0);
    padding-left: 2px;
}

.event small {
    color: var(--bg3);
    margin-top: 0px;
    padding-top: 0px;
}

.event h3 {
    color: var(--bg0);
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.era h1{
    margin-bottom: 0px;
}