@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Boogaloo&display=swap');
@import url('https://read.reizako.com/css/spectre-icons.min.css');

body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
  background-color: #DA5437; 
}


body {
  color: #18425f;
  font-family: "Open Sans", Helvetica, Roboto, Verdana, sans-serif;
  background: #F7EDE2 url('https://read.reizako.com/imgs/bg-main.jpg');
  margin: 0;
  padding: 0;
  font-size:16px;
  min-height: 100vh;
}

h1,h2,h3,h4,h5,h6{
    font-family:'Boogaloo', Comic Sans, cursive;
    color:#18425f;
}

h1, h2, h3{letter-spacing:5%;}

main{
	flex:1;
  margin:0 auto;
  padding-top:6em;
  padding-bottom:2em;
  background:url('../img/waves.png') center bottom no-repeat;
}

.container{
	margin:2em auto 0;
}
main .container{margin: auto; margin-bottom:3em;}

.columns.centered{align-items:center;}

.text-center{
  text-align:center;
}


.welcome{
	background-color: #F69C9A;
	background: url('https://read.reizako.com/imgs/welcome-top.png') left top repeat-x, url('https://read.reizako.com/imgs/welcome-bottom.png') left bottom repeat-x, url('https://read.reizako.com/imgs/bg-welcome.jpg') center center repeat !important;
	border: 2px solid #F28482;
  font-size:1.2rem;
  border-radius:15px;
  filter:hue-rotate(210deg);
  color:#FFF;
  padding:2em;
  max-width:80%;
  margin:0 auto;
}

	.welcome p{ text-align:center; padding:2em 0;}

/* clearfix hack to prevent image overflow. check out the W3Schools page on it. */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/*FONTS*/

/* header font */
#showComic, header, h1, h2, h3, h4, h5 {
  font-family: 'Boogaloo', cursive;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  margin: auto;
  margin-bottom: 10px;
  padding: 0px 12px 12px;
}

.subPage:not(.archivePage) {
  text-align:left;
}


.page-header{
	background: #F28482 url('https://read.reizako.com/imgs/bg-topnav.jpg');
  filter:hue-rotate(210deg);
  text-align:center;
}

.page-header:before{
	content: '';
	display: block;
	background: url('https://read.reizako.com/imgs/lace-top.png') center top repeat-x;
	height: 14px;
	position: relative;
	top: -0.9em;
	background-size: 21px;
}

.page-header h2{
	padding:0 1em .5em;
	margin: 0;
	color: #F7EDE2;
}

.page-header.no-decoration:before{background:none;}

.page-title{ 
	font-size:1.6em;
	font-family: "Boogaloo", Helvetica, Roboto, Verdana, sans-serif;
}


.page{
	background:#FFFCF9 url('https://read.reizako.com/imgs/bg-container.jpg');
	box-shadow: 0 2px 4px 0 #FBE0C3;
	padding: 2em;
	margin-bottom: 3em;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

.columns{
  display:flex;
  justify-content: center;
  align-items: center;
}

.mobile-reverse{flex-direction: column-reverse;}

.row{
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding:1em;
}


.row.half{
  width:50%;
}

.row.thirds{width:33.3%;}


.author{margin:3em 0 0;}

.chara{text-align:center; margin-top:2em;}
.chara h2{font-size:1.5rem;}

/* for pictures displayed to the left */
.leftPic {
  clear: left;
  float:right;
  margin-left:20px;
}

/* for pictures displayed to the left */
.rightPic {
  clear: right;
  float:left;
  margin-left:20px;
}

/* specific to Characters */
.charTable, .charTable td { 
  width: 100%;
}

/* link colors */
a {
      color: #000000;
    }

a:hover {
      color: #DA5437;
    }

/* HEADER */

header {
  background-color:#1b6ae0;
  background: url('../img/banner.png') center center no-repeat;
  background-size: fill;
  padding: 8em 0;
  border-bottom: 15px solid #60a8dd;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position:relative;
}

header nav {
  position:absolute;
  bottom:-2.5em;
  display:flex;
  justify-content:center;
  align-items:center;
  background: #F28482 url('https://read.reizako.com/imgs/bg-topnav.jpg');
  border: 15px solid transparent;
  border-image: url('https://read.reizako.com/imgs/lace-borders.png') 28 round;
  border-image-outset: 15px 15px;
  box-shadow: 0px -6px 16px 15px rgba(108, 46, 46, 0.5);
  filter:hue-rotate(210deg);
}

header nav a{
  text-decoration:none;
  font-size:1.5em;
  display:inline-block;
  text-transform: uppercase;
  color: #FFF !IMPORTANT;
  text-decoration: none;
  padding: .5rem .4rem;
  margin-right: 0.5em;
  border-radius:6px;
  transition: all 0.2s ease-in-out 0s;
}

  header nav a:hover{background:url('https://read.reizako.com/imgs/bg-topnav-hover.jpg');}
    header nav a:last-child{border:0; margin-right:0;}


.return a{
  box-shadow: 0px 0 4px 0 rgba(108, 46, 46, 0.85);
  border: 1px dashed rgba(255,255,255,.75);
  background: #F28482 url('https://read.reizako.com/imgs/bg-topnav.jpg');
  border-radius:3px;
  filter:hue-rotate(210deg);
  text-transform:uppercase;
  display:inline-block;
  position:absolute;
  top:1em;
  left:1em;
  color:#FFF;
  text-decoration:none;
  padding: .5em 1em;
}

  .return a:hover{
    background:url('https://read.reizako.com/imgs/bg-topnav-hover.jpg');
    border: 1px dashed rgba(255,255,255,.75);
  }

/* HOMEPAGE */

#notice{
  text-align:center;
  font-family:'Boogaloo', cursive;
  font-size:1.3em;
  text-transform:uppercase;
}

#showComic{ text-align:center;}

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  padding: 1em 0px 2em;
}
.comicNav img {
  filter:hue-rotate(210deg);
}

/* style comic page image */
.comicPage img {
  margin:0 auto;
}

/*TRANSCRIPT*/

#transcript {
	margin-top:3em;
}

#transcript details {
  &[open] summary::after {
    rotate: -180deg;
  }
}

  #transcript:before{
    content: '';
    display: block;
    background: url('https://read.reizako.com/imgs/lace-top.png') center top repeat-x;
    height: 14px;
    position: relative;
    top: 0;
    background-size: 21px;  
    filter:hue-rotate(210deg);
  }

/* From https://codepen.io/alexlehner86/pen/KwVPYOw */

  #transcript summary {
    /* Override default "display: list-item" and position the summary text as well as the custom arrow icon */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;

    /* General styling */
    cursor: pointer;
    font-size: 1.4rem;
		color: #F7EDE2;
		padding: .5em 1em;
		font-family:'boogaloo', 'comic sans', cursive;
		letter-spacing:5%;
		font-weight: 500;
		line-height: 1.2;
		background: #F28482 url('https://read.reizako.com/imgs/bg-topnav.jpg');
		font-size:32px;
    filter:hue-rotate(210deg);

    /* Fallback code to hide standard marker, especially on Safari */
    &::marker,
    &::-webkit-details-marker {
      display: none;
    }

    &::after {
      /* CSS for chevron shape from https://css-shape.com/chevron/ */
      --shape-chevron-width: 1.4rem;
      --s: calc(var(--shape-chevron-width) / 4);

      /* Styling */
      content: "";
      aspect-ratio: 7/5;
      background: currentColor;
      clip-path: polygon(
        0 0,
        0 var(--s),
        50% 100%,
        100% var(--s),
        100% 0,
        50% calc(100% - var(--s))
      );
      flex-shrink: 0;
      width: var(--shape-chevron-width);

      /* Animation */
      rotate: 0deg;
      transition: rotate 0.35s ease;
    }
  }

	#transcript .writeTranscript{
		font-family:'Courier New', Courier, monospace;
		font-size:14px;
		border: 1px solid rgba(80, 22, 22, 0.15);
    border-bottom:0;
		padding:2.5em 2em;
		margin:0;
		background: #FFF9F2 url('https://read.reizako.com/imgs/bg-transcript.jpg');
	}

	#transcript .accordion-container p:last-child{
		margin-bottom:0;
	}

/*AUTHOR NOTES + COMMENTS*/

#authorNotes {
	background:#FFFCF9 url('https://read.reizako.com/imgs/bg-container.jpg');
	padding: 0.5em 2em 2em;
	border: 1px solid rgba(80, 22, 22, 0.15);
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
}

	#authorNotes h2 {
		margin-bottom:0;
    font-size:32px;
	}

	#authorNotes .meta {
		color:#F69C9A;
		margin-bottom:1em;
	}

  #authorNotes p:last-child{margin-bottom:0;padding-bottom:0;}

#comments{
  max-width:800px;
  margin:2em auto;
}

#comments .filter{
  filter:hue-rotate(250deg);
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
  width:75%;
  margin:0 auto;
  border-collapse:collapse;
}

/* style archive table cells */
.archiveTable td {
  padding: 3px;
  vertical-align: middle;
}
.archiveTable tr{border-bottom:1px solid #61a7df;}
.archiveTable tr:last-child{border:0;}

/* style table cell in which page title is displayed */
.archiveCellTitle:not(.leftAlignTableText) {
  max-width: 300px;
  text-align: center;
}

.archiveCellDate {
  text-align: right;
  min-width: 120px;
}

.archiveCellNum {
  text-align: center;
  min-width: 30px;
}

/* style the thumbnails on the archive page */
.archiveCellThumb {
    width: 500px;
    max-width: 60px;
}
.archiveCellThumb img{
    max-width: 100%;
  }

/* for left aligning the text in a table cell */
.leftAlignTableText td {
  text-align: left;
}

/* highlight a table row and make pointer into hand when moused over */
.archiveRow:hover {
  background-color: #61a7df;
  cursor: pointer;
  color:#FFF;
}

/* FOOTER */

.chibi{padding:3em 0 1em;}

footer{
  background-color:#60a8dd;
  background: url('https://read.reizako.com/imgs/bg-stripes-sf.jpg');
  padding: 3em 0;
  border-top: 15px solid #60a8dd;
  text-shadow: 0 2px 2px #60a8dd;
  text-align:center;
  font-size:.8rem;
}

footer:before{
  content:'';
  display:block;
  background:url('https://read.reizako.com/imgs/lace-footer.png') center top repeat-x;
  height:23px;
  position: relative;
  filter: hue-rotate(210deg);
  top:-6em;
}

footer .container{
  margin:0 auto;
}

footer a{
  color: #fff;
}

footer a:hover, footer a:focus, footer a:visited{
  color:#FFF;
  text-decoration: none;
}


/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

/* ! --- Utility */

.hidden{display:none;}

.scrollTop {
	position: fixed;
	right: 1%;
	bottom: 2%;
	opacity: 0;
	padding: 8px 10px 8px;
	transition: all 0.2s ease-in-out 0s;
	background: #C88087 !important;
  filter:hue-rotate(230deg);
  border-radius:100%;
}

	.scrollTop:hover{
		opacity: 1 !important;
	}

	.scrollTop a {
		font-size: 18px;
		color: #fff;
	}


	
/* ! ------ IMAGES */

/* We recommend you leave this alone unless you understand RWD.
 * Learn more at https://css-tricks.com/almanac/properties/m/max-width/
 */

 a img { border: none; }
 img { max-width: 100%; }
 figure { margin: 0; }
 
 
 /* ! ------  MEDIA QUERIES */

 @media only screen and (min-width: 1300px) {
   .container{max-width:1000px;}
   .mobile-reverse{flex-direction:row;}
 } 
 
 @media only screen and (max-width: 1280px) {
  body{font-size:14px;}
  h1,h2,h3{font-size:1.6rem;)}
  .container { width:100%;}
  .columns{display:block;}
  .row{
    display:block;
  }
  .row.half, .row.thirds{width:auto;}
   header{background-position: 80% top; padding:8em 2em; background-size:cover;}
   header nav{width:auto;}
   header nav a{font-size:1rem;}
   .page{padding:1em; border-radius:0;}
   .welcome{
    background:none !important; 
    color:#18425f; 
    padding:0;
    max-width:100%; 
    font-size:inherit;
    border:none;
  }
 }
 