/*----- fonts -----*/


@font-face {
  font-family: 'Montserrat';
  src: url("_fonts/Montserrat.woff2");
}

@font-face {
  font-family: 'Cinzel Decorative';
  src: url("_fonts/CinzelDecorative.woff2");
}



/*----- end fonts -----*/






/*----- DELETE AFTER -----*/

a {color: purple;}


/*----- end DELETE AFTER -----*/






/*----- ground level -----*/
.spare {display: none;} /*Needed at least to hide the span for the home button*/
* {
  margin: 0;
  font-family: 'Montserrat';
  color: #333;
}

html {
  background-image: url(../_images/ecailles.png);
  background-repeat: repeat;
  font-size: 14px;
}


html, body {          /*LAYOUT FOR ADAPTIVE MAIN DIV, TAKEN FROM https://stackoverflow.com/questions/90178/make-a-div-fill-the-height-of-the-remaining-screen-space*/
  height: 100%;
}
.outer {
  display: flex;
  flex-flow: column;
  height: 100%;
}
.outer .header {
  flex: 0 1 auto;
  /* The above is shorthand for:
  flex-grow: 0,
  flex-shrink: 1,
  flex-basis: auto
  */
}
.outer .inner {
  flex: 1 1 auto;
}
.outer footer {
  flex: 0 1 auto;
}



hr {
  width: 60%;
  max-width: 500px;
  margin: 50px auto;
}

/*----- end ground level -----*/






/*----- header -----*/
.header {
  margin: 0;
  position: relative;
  background-image: url(../_images/marble.jpg);
  background-size: cover;
  background-position: center;
  border-bottom: ridge #e5c366;
}


.bubblenav {
  position: relative;
  max-width: 800px;
  margin: auto;
}


.pagename {
  position: absolute;
  top: 30px;
  left: 55%;
  transform: translatex(-50%);

  padding: 10px 15px;
  background-color: #e5c36633;
  box-shadow: 0 0 3px whitesmoke inset, 0 0 5px 2px #e5c36633;
  border-radius: 50px;

  font-family: 'Cinzel Decorative';
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 0 0 5px black;
  color: black;
}


.bubble {
  position: absolute;
  /*paddin*/
}
.bubble a, .historyback button { 
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  text-decoration: none;
  font-variant-caps: all-small-caps;
  font-family: 'Cinzel Decorative';

  background-color: #e5c36633;
  box-shadow: 0 0 3px whitesmoke inset, 0 0 5px 2px #151e3d;
  color: #151e3d00;
}

.splash {
  top: 15px;
  left: 3vw;
}
.splash a {
  font-size: 1.7rem;
  padding: 10px;
}

.historyback {
  top: 50px;
  left: 15vw;
}
.historyback button {
  font-size: 1.2rem;
  width: 50px;
}

.stamps {
  top: 20px;
  right: 3vw;
}
.stamps a {
  font-size: 1.2rem;
  text-shadow: 0 0 5px whitesmoke;
  padding: 10px;
}

.bubble a:hover, .historyback button:hover {
  box-shadow: 0 0 10px 5px #e5c366, 0 0 10px 5px whitesmoke inset;
  font-weight: bold;
  color: #151e3d;
}




nav {
  padding-top: 100px; /*remove top padding for phone size*/
  padding-bottom: 10px;
}
nav ul {
  list-style-type: none;  
  padding: 10px 0 0; /*necessary since <ul> automatically has padding => remove top padding for phone size*/
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav ul li {
  display: flex;
  border-style: ridge;
  border-color: #e5c366;
  margin: 10px 5px 0;
}
nav ul li a.menu {
  background-color: rgba(21, 30, 61, 0.9);
  color: whitesmoke;
  font-variant-caps: small-caps;
  text-decoration: none;
  padding: 15px 25px;

  font-family: 'Cinzel Decorative';
  font-size: 1.2rem;
  letter-spacing: 2px;
}
.menu:hover, .menu.active:hover {
  background-color: rgba(234, 203, 119, 0.5);
  color: #0e142a;
  text-decoration: underline 1px dotted;
}
.menu.active {
  background-color: #0e142a;
}


.submenu {
  display: none;
}

/*----- end header -----*/






/*----- footer -----*/
footer {
  background-color: #0e142a;
  background-color: red;
  height: fit-content;
}
/*-----end footer -----*/





/*----- body layout -----*/

.inner {
  width: calc(100% - 20px);
  max-width: 800px;
  margin: 10px auto;
  background-color: rgba(234, 203, 119, 0.25);
  box-shadow: 0 0 5px black inset;
  border-radius: 3px;
}


.levelup {
  width: fit-content;
  padding: 15px 0 0 15px;
}
.levelup a { 
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 5px;
  border-radius: 50%;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  font-variant-caps: all-small-caps;
  text-decoration: none;
  line-height: 0.5;
  font-weight: bold;
  font-size: 1rem;

  background-color: #e5c36633;
  box-shadow: 0 0 3px whitesmoke inset, 0 0 5px 2px #151e3d;
  color: #151e3d;
}

.levelup a:hover {
  box-shadow: 0 0 10px 5px #e5c366, 0 0 10px 5px whitesmoke inset;
}


.inner.longscroll {
  position: relative;
  display: flex;
  flex-flow: column;
}



.slidertop {
  width: 0;
  position: absolute;
  top: 0;
  right: 60px;
  height: calc(100% - 80vh);
  margin-top: 80vh;
  display: flex;
}

.backtotop {
  position: sticky;
  bottom: 0px;
  right: 15px;

  margin: auto 0 0 auto;
}




.arrowup {
  background-color: rgba(255, 255, 255, 0.65);
  margin-bottom: 15px;
  padding: 5px 8px 8px;

  border-radius: 3px;
  border: ridge rgba(234, 203, 119, 1) 1px;

  text-decoration: none;
  font-size: 0.75rem;
  font-weight: bold;
  font-variant-caps: small-caps;
  color: rgba(51, 51, 51, 0.75);
}
.arrowup:hover {
  background-color: rgba(234, 203, 119, 0.25);
  text-decoration: none;
  font-weight: bold;
  font-variant-caps: small-caps;
  color: rgb(51,51,51);
}
.arrowup span {
  vertical-align: super;
  font-size: 1rem;
}




/*-----end body layout -----*/







/*-------------------------*/
/*----- PAGE SPECIFIC -----*/
/*-------------------------*/

/*----- worktext -----*/

.worktext {
  margin: 10px 15px;
}

.worktext h1 {
  width: fit-content;
  margin: 25px auto 50px;
  font-family: 'Cinzel Decorative';
  font-size: 2rem;
  text-align: center;

  
  padding: 0px 10px 0px;      /*FOR THE BOTTOM BORDER AKA 2nd UNDERLINE*/
  text-decoration: underline dotted 1px;
  text-underline-offset: 7px;
}

.worktext h2 {
  font-family: 'Cinzel Decorative';
  font-variant: small-caps;
  margin: 50px 0 15px;
  font-size: 1.5rem;
}

.worktext p, .worktext p * {
  text-align: justify;
  margin-bottom: 1em;
  font-size: 1rem;
  line-height: 1.5em;
  color: #333;
}
.longfic > p:last-of-type {
  margin-bottom: 0px;
}

.longscroll .longfic p:last-of-type {
  margin-bottom: 100px;
}


.ao3redirect {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-style: italic;
  font-size: 0.8rem;
  margin: 0;
  color: #555;
}
.ao3redirect a {
  color: #141198;
  font-weight: bold;
  text-decoration: underline dotted 1px;
}


/*-----end worktext -----*/





/*----- quickjump menu -----*/

.intro {
  display: flex;
  flex-wrap: wrap;
  flex-flow: column;
}

h3 {
  font-family: 'Cinzel Decorative';
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.quickjump {
  width: fit-content;
  border: outset 2px #e5c366;
  box-shadow: #333 0 0 5px;
  border-radius: 0px;
  padding: 8px 10px;
  margin: 10px auto 15px 10px;
  background-color: rgba(245, 245, 245, 0.5);
}

.quickjump ul {
  list-style-type: none;
  padding: 0;
}

.quickjump ul li {
  margin-top: 5px;

}

.quickjump ul li::before {
  content: '◈ ';
  font-size: 0.75rem;
  vertical-align: middle;
}

.quickjump ul li a {
  text-decoration: none;
  font-style: italic;
  font-size: 0.9rem;
  color: #141198;
}





/*-----end quickjump menu -----*/





/*----- entries -----*/

details {
  margin-bottom: 25px;
}

details > summary {
  list-style-type: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary::before {
  content: '⮚';
  padding-right: 5px;
}
details[open] > summary::before {
  content: '⮛';
}


.entry.fic + .entry.fic {
  margin-top: 15px;
}


.entry summary {
  font-variant: small-caps;
  font-size: 110%;
}
.entry summary a {
  font-weight: bold;
  text-decoration: none;
  color: #141198;
  text-underline-offset: 3px;
}
.entry summary a:hover {
  text-decoration: underline dotted 1px rgba(229, 195, 102, 0.75);
  color: rgba(229, 195, 102, 1);
}
.fic.entry div.ficsummary {
  margin-top: 10px;
  margin: 10px auto;
}
.ficsummary p {
  text-align: justify;
  margin: 5px 0 0;
}


.fic.entry div:first-of-type p.workseries {
  text-align: center;
  font-size: 0.8rem;
}
.fic.entry div:first-of-type p.workseries .ficseriestitle {
  font-weight: bold;
  font-style: italic;
  font-size: inherit;
  text-decoration: none;
  color: #141198;
}
.fic.entry div:first-of-type p.workseries:has(> a:empty) {
  display: none;
}


.metadata {
  width: fit-content;
}

.metadata-stats {
  margin-bottom: 10px;
  list-style-type: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.metadata-stats li {
  display: flex;
  padding: 5px 10px 0 8px;
  font-size: 70%;
  font-style: italic;
  font-variant-caps: small-caps;
  border-right: solid 0.5px #aaa;
}
.metadata-stats li:first-child {
  padding-left: 0;
}
.metadata-stats li:last-child {
  border-right: none;
}
.ficstatus {
  font-weight: bold;
}


.metadata-tags {
  list-style-type: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
}

.metadata-tags li {
  display: flex;
  margin: 6px 3px 0;
}

.metadata-tags li a, .metadata-tags li p {
  padding: 5px 8px;
  margin: 0;
  font-variant-caps: small-caps;
  text-decoration: none;
  font-size: 65%;
  color: #333;
  border-radius: 5px;
  box-shadow: inset #141198 0 0 5px;
}

.metadata-tags li p {
  box-shadow: inset #661A1A 0 0 5px;
}

.metadata-tags li p.mature {
  box-shadow: inset #900 0 0 5px;
  color: #900;
  font-weight: bold;
}

.metadata-tags li p.relationship {
  box-shadow: inset #333 0 0 5px;
}

.metadata-tags li a:hover {
  background-color: rgb(20, 17, 152, 0.5);
  color: white;
  text-shadow: 0 0 3px white;
  font-weight: bold;
}

.metadata-tags li p:hover {
  background-color: #ffffff00;
  color: auto;
}



/*-----end entries -----*/






/*-----  -----*/
/*-----end  -----*/




/*-----  -----*/
/*-----end  -----*/




/*-----  -----*/
/*-----end  -----*/




/*-----  -----*/
/*-----end  -----*/




/*-----  -----*/
/*-----end  -----*/




/*-----  -----*/
/*-----end  -----*/









/*----- mechanics -----*/
.navig {
  display: none;
}
.upyougo .navig {
  display: contents;
}

.backtotop {
  display: none;
}
.longscroll .backtotop {
  display: flex;
}



/*-----end mechanics -----*/





/*----- TEST PHASE -----*/




@media screen and (max-width: 480px) {
  html {
    font-size: 12px;
  }

  nav ul li a.menu {
    padding: 5% 10px;

  }
}