:root {
    --bgcolor: #888;
    --spoilerbgcolor: rgba(0, 0, 0, 0.2);
    --accentcolor: #309174; /* Teal for now. This is the fas-fa and the like. */
    --lightcolor: #FFF;
    --darkcolor: #000;
    --subcolor: #555;
    --spoilercolor: #777;

    --mainfont: book antiqua, monospace;
    --headerfont: georgia;

    --symbolbgsize: 40pt;
}

/* Marquee try again. */
.marquee {
  width: 1000px;
  line-height: 50px;
 /* background-color: red; */
  color: white;
  white-space: nowrap;
  overflow: hidden;
/*  box-sizing: border-box; */ 
}
.marquee p {
  display: inline-block;
  padding-left: 100%;
  animation: marquee 15s linear infinite;
}
@keyframes marquee {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

/* Special Text (https://leonarnott.neocities.org/) */
/* Transitions */

@keyframes appear
{
	0% { opacity: 0 }
	100% { opacity: 1 }
}

@-webkit-keyframes appear
{
	0% { opacity: 0 }
	100% { opacity: 1 }
}

@keyframes fade-in-out
{
	0%,100% { opacity: 0 }
	50% { opacity: 1 }
}

@-webkit-keyframes fade-in-out
{
	0%,100% { opacity: 0 }
	50% { opacity: 1 }
}
/* Originally just Y, -0.2 */
@keyframes rumble 
{
	0%, 100% {}
	50% { transform: translateY(-1.5em) translateX(-0.9em)}
}

@-webkit-keyframes rumble 
{
	0%, 100% {}
	50% { -webkit-transform: translateY(-0.2em) }
}

@keyframes shudder 
{
	0%, 100% {}
	50% { transform: translateX(0.2em) }
}
@-webkit-keyframes shudder 
{
	0%, 100% {}
	50% { -webkit-transform: translateX(0.2em) }
}

mark
{
	color:rgba(0,0,0,0.6);
	background-color: #ff9;
}

ins
{
	color:rgba(0,0,0,0.6);
	background-color: hsla(45,100%,90%,0.5); /* Yellowed correction fluid */
	border-radius:0.5em;
	box-shadow: 0em 0em 0.2em hsl(45,100%,80%);
	text-decoration:none;
}

del
{
	background-color: #000; /* Censored text */
	text-decoration:none;
}

/* Who am I to tell authors not to use non-standard tags? */

center
{
	text-align:center;
	margin: 0 auto;
	width: 100%;
}

blink
{
	text-decoration: none;
	animation: fade-in-out 1s steps(1,end) infinite alternate;
	-webkit-animation: fade-in-out 1s steps(1,end) infinite alternate;
}

/* Secondary text styles, for general use by Twine authors */

.outline
{
	color: white;
	text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.shadow
{
	text-shadow: 0.08em 0.08em 0.08em #000;
}

.condense
{
	letter-spacing: -0.08em;
}

.expand
{
	letter-spacing: 0.1em;
}

.box
{
	border: 1px solid #222;
	border-radius: 0.1em;
}

.blur
{
	color:transparent;
	text-shadow: 0em 0em 0.08em #000;
}

.blurrier
{
	color:transparent;
	text-shadow: 0em 0em 0.2em #000;
}

.blurrier::selection {
	background-color:transparent;
	color:transparent;
}

.blurrier::-moz-selection {
	background-color:transparent;
	color:transparent;
}

/* Animated effects follow */

.fade-in-out
{
	text-decoration: none;
	animation: fade-in-out 2s ease-in-out infinite alternate;
	-webkit-animation: fade-in-out 2s ease-in-out infinite alternate;
}

.rumble 
{
	-webkit-animation: rumble linear 0.1s 0s infinite;
	animation: rumble linear 0.1s 0s infinite;
      display:inline-block;
}

.shudder 
{
	-webkit-animation: shudder linear 0.1s 0s infinite;
	animation: shudder linear 0.1s 0s infinite;
      display:inline-block;
}



/* Spin image*/

.image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    margin:-60px 0 0 -60px;
    -webkit-animation:spin 4s linear infinite;
    -moz-animation:spin 4s linear infinite;
    animation:spin 4s linear infinite;
}
@-moz-keyframes spin { 
    100% { -moz-transform: rotate(360deg); } 
}
@-webkit-keyframes spin { 
    100% { -webkit-transform: rotate(360deg); } 
}
@keyframes spin { 
    100% { 
        -webkit-transform: rotate(360deg); 
        transform:rotate(360deg); 
    } 
}
/*#d Spin image 3D. Originally 1s  */
.coin{
        width: 1200px;
        height: 100px;
        border-radius: 0%;
       background-color: red; 
        animation: animate 3s linear infinite;

    }
@keyframes animate {
    0%{
       transform: rotateY(0deg);
    }
    100%{
        transform: rotateY(360deg);
    }
}



/* 3D Spin text (From here: https://prismic.io/blog/css-text-animations) */

.spin-text {
    font-size: 5rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 
        1px 1px 0px #e63946, 
        2px 2px 0px #f77f00, 
        3px 3px 0px #fcbf49, 
        4px 4px 0px #a8dadc, 
        5px 5px 0px #457b9d;
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    animation: spin-3d 4s infinite linear;
}

@keyframes spin-3d {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}


/*Cabinet stuff (base)*/
* {
    box-sizing: border-box;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    display: none;
}

body {
    background-color: var(--bgcolor);
    font-family: var(--mainfont);
    margin: 0;
    overflow: hidden;
}

a {
    color: var(--lightcolor);
    transition: 0.2s;
}

a:hover {
    color: var(--accentcolor);
}


h1, h2, h3, h4 {
    font-family: var(--headerfont);
}

h1 {
    margin: 10px 0;
    font-variant: small-caps;
    color: var(--darkcolor);
    background-color: var(--subcolor);
    padding: 10px;
    border-radius: 10px;
}

h2 {
    font-size: 0.8em;
    margin: 5px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

h2 b, h2 i {
    font-family: var(--mainfont);
    font-size: 16px;
    background-color: var(--subcolor);
    padding: 3px 10px;
    margin: 5px 2px;
    border-radius: 5px;
}

h2 i {
    color: var(--darkcolor);
    font-style: normal;
    font-weight: normal;
}

h2 b {
    color: var(--accentcolor);
    background-color: var(--darkcolor);
}

h3 {
    margin: 0;
    font-variant: small-caps;
}

h4 {
    margin: 15px 5px;
    padding: 3px 0;
    font-size: 12px;
    color: var(--lightcolor);
    font-weight: normal;
    font-variant: small-caps;
    text-align: center;
    border-bottom: 2px solid var(--accentcolor);
}

hr {
    border-width: 0 0 1px 0;
    border-style: solid;
    border-color: var(--subcolor);
    margin: 0;
}




#container {
    display: flex;
    height: 100vh;
}
/* Changed width to 175 (originally 100) */
#cabinet {
    background-color: var(--darkcolor);
    height: 100vh;
    width: 100px;
    min-width: 100px;
    padding: 10px 5px;
    overflow-y: auto;
    overflow-x: hidden;
    transition: 0.2s;
    animation-timing-function: ease-in-out;
}

/* Width and height originally 80. This is for icons. */
#cabinet div {
    position: relative;
    background-color: var(--darkcolor);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    height: 80px;
    width: 80px;
    border-radius: 80px;
    transition: 0.4s;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 10px;
    overflow: hidden;
    cursor: pointer;
}

#cabinet div i {
    position: absolute;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accentcolor);
    font-size: var(--symbolbgsize);
    transition: 0.4s;
}

#cabinet span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--headerfont);
    font-variant: small-caps;
    color: var(--lightcolor);
    font-size: 14px;
    text-shadow: 1px 1px 3px var(--darkcolor), -1px -1px 3px var(--darkcolor), 1px -1px 3px var(--darkcolor), -1px 1px 3px var(--darkcolor);
}

#cabinet div:hover {
    transform: scale(1.1);
}

#cabinet div:hover i {
    color: var(--lightcolor);
}

/* Added from Dossier and changed to cabinet. */

/* Text on the sidebar*/
#cabinet h2 {
    background-color: var(--spoilercolor);
    color: var(--darkcolor);
    font-family: var(--headerfont);
    font-weight: normal;
    font-variant: small-caps;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
    background-color: var(--subcolor);
    padding: 5px;
    margin: 0 5px 10px 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}


/* close button, NOT the character buttons */
/* Margin-right was -25, but that made 'characters' too close. Changed to -10 */
#buttons {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    margin-right: 0px;
    z-index: 9;
}

#buttons button {
    color: var(--accentcolor);
    background-color: var(--darkcolor);
    width: 100%;
    border: none;
    border-radius: 0 10px 10px 0;
    margin: 5px 0;
    padding: 15px 10px 15px 5px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

#buttons button:hover {
    color: var(--darkcolor);
    background-color: var(--accentcolor);
}

#close i {
    transition: 0.3s;
    transform: rotate(0deg);
    animation-timing-function: ease-in-out;
}

/* main display window */

main {
    height: 100%;
    flex-grow: 1;
    overflow: auto;
    -ms-overflow-style: auto !important;
    scrollbar-width: thin !important;
}

main::-webkit-scrollbar {
    display: auto !important;
}

/* article tabs and their coding */

main article {
    padding: 30px;
    display: none;
}

main section {
    background-color: var(--subcolor);
    color: var(--lightcolor);
    padding: 10px;
    border-radius: 10px;
}

main p {
    margin: 15px 0;
    text-indent: 20px;
}

main img {
    max-width: 100%;
}

main details {
    background-color: var(--spoilercolor);
    border-radius: 10px;
    padding: 15px;
    transition: 0.3s;
    margin-bottom: 10px;
}

main summary {
    font-family: var(--headerfont);
    font-weight: bold;
    cursor: pointer;
}

h3 img, main summary img {
    vertical-align: middle;
}

.warning {
    background-color: var(--darkcolor);
    border-radius: 10px;
    color: var(--lightcolor);
    padding: 20px;
    margin: 10px 0;
}

.warning h1 {
    margin: 0 0 10px 0;
    padding: 0;
    background-color: transparent;
    color: var(--lightcolor);
}

/* character icons */

.characters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* Character buttons, like it says on the tin. The links for them. */
.characters button {
    background-color: var(--subcolor);
    position: relative;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 100px;
    width: 100px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 5px;
    transition: 0.3s;
}

.characters button i {
    position: absolute;
    bottom: 0;
    right: 0;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--lightcolor);
    background-color: #000;
    padding: 5px;
    width: 25px;
    height: 25px;
}

.characters button span {
    visibility: hidden;
    width: 100px;
    background-color: var(--darkcolor);
    color: #fff;
    font-family: var(--headerfont);
    font-variant: small-caps;
    font-size: 14px;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.characters button span hr {
    margin: 0 0 5px 0;
    border: none;
}

.characters button span::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--darkcolor) transparent transparent transparent;
}

.characters button:hover span {
    visibility: visible;
    opacity: 1;
}

.characters button:hover {
    box-shadow: 0 0 10px var(--lightcolor);
}

/* credit button coding */

#cred {
    z-index: 10;
    font-size: 10px;
    position: fixed;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--lightcolor);
    border: none;
    border-radius: 50px 0 0 0;
    padding: 10px 5px 5px 10px;
    transition: 0.3s;
    cursor: pointer;
}

#cred:hover {
    background-color: var(--darkcolor);
    color: var(--accentcolor);
}

@media all and (max-width: 600px) {
  
    main {
      padding-bottom: 100px;
    }

    #cabinet {
        padding: 10px 5px 100px 5px;
    }

  }