/* CSS is how you can add style to your website, such as colors, fonts, and positioning of your
  HTML content. To learn how to do something, just try searching Google for questions like
   "how to change link color." */

.hidden {
   display:none;
}


body, div, main, section, article {
  box-sizing: border-box; 
}

/* universal background color */
body {
   background: #2F2A3F;
   background-image:url('../img/patternBackground.png');
   background-size:20vw;

}

/* header image */
header img {
  width: 30vw;
  max-width: 98%;
}

/* header background*/

header.header {
   background-image:url('../img/headerImg.png');
   background-size:cover;
   background-repeat:no-repeat;
}

div.ttb-strip {
   background: #000000;
   background: -webkit-linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(77, 77, 77, 1) 50%, rgba(0, 0, 0, 1) 100%);
   background: -moz-linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(77, 77, 77, 1) 50%, rgba(0, 0, 0, 1) 100%);
   background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(77, 77, 77, 1) 50%, rgba(0, 0, 0, 1) 100%);
   filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#000000", endColorstr="#000000", GradientType=0);

   font-family:serif;
   text-align:end;
   font-size:0.8rem;

   color:white;
   padding:5px 1vw;
}

/* 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: 'Cherry Cream Soda', cursive;
}

.writePageTitle {
   color:white;
}

/* body font */
.subPage p, footer, #authorNotes, .archiveTable {
  font-family: 'Open Sans', sans-serif;
  font-size: large;
}

/* STYLING FOR SUBPAGES (about, characters, etc) */

/*general*/

.subPage {
  width: 1000px;
  max-width: 98%;
  background-color: #ffffff;
  margin: auto;
  margin-top: 5vw;
  padding: 0px 12px 12px;
  border-radius:20px;
  padding:5vw;
  box-shadow:inset 0px 0px 24px 7px rgba(0, 0, 0, 0.25);
}

.subPage:not(.archivePage) {
  text-align: center;
}

/* 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;
      transition:ease-in-out .2s;
    }

a:hover {
      color: #396887;
    }

/* HEADER */
div#nav {
  display:flex;
  align-items:center;
  justify-content:center;
  outline: 3px solid #000000;
  font-size: 20px;
  width: 90%;
  height:6vw;
  margin: auto;
  font-family: 'Cherry Cream Soda', cursive;

  border-radius:0px 0px 20px 20px;

  background: #ACACAC;
  background: -webkit-linear-gradient(180deg, rgba(172, 172, 172, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(172, 172, 172, 1) 100%);
  background: -moz-linear-gradient(180deg, rgba(172, 172, 172, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(172, 172, 172, 1) 100%);
  background: linear-gradient(180deg, rgba(172, 172, 172, 1) 0%, rgba(255, 255, 255, 1) 50%, rgba(172, 172, 172, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ACACAC", endColorstr="#ACACAC", GradientType=0);
}

div#nav>* {
   margin-left:1vw;
}

/* HOMEPAGE */

/* style nav button images */
.comicNav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  margin: 2vw 0vw;
  height:11vw;
}
.comicNav img{
  width: 11vw;
  max-width: 98%;
  padding-right: 2vw;
  transition:ease-in .2s;
}


.comicNav img:hover{
   filter:drop-shadow(1vw 1vw 0vw rgba(10, 10, 10, 0.6));
   margin-bottom:1vw;
}


/* style comic page image */
.comicPage img {
  width: 900px;
  max-width: 98%;
}

/* style author notes */
#authorNotes {
  background-color:#ffffff;
  outline: 3px solid #000000;
  margin: auto;
  padding: 3px;
  padding-top: 0px;
  width: 900px;
  max-width: 98%;
}

/* ARCHIVE PAGE */

/* style table in which archive is displayed */
.archiveTable {
  width: 90%;
  border-collapse:collapse;
}

/* style archive table cells */
.archiveTable td {
  padding: 3px;
  vertical-align: center;
  
}

/* 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: #396887;
  cursor: pointer;
}

/* FOOTER */
footer {
  color: #ffffff;
  padding: 20px 0px;
  float: left;
  width: 100%;
  font-size: 12px;

  margin-top:15px;
  background: #D3215A;
  background: -webkit-linear-gradient(88deg, rgba(211, 33, 90, 1) 0%, rgba(0, 106, 227, 1) 100%);
  background: -moz-linear-gradient(88deg, rgba(211, 33, 90, 1) 0%, rgba(0, 106, 227, 1) 100%);
  background: linear-gradient(88deg, rgba(211, 33, 90, 1) 0%, rgba(0, 106, 227, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#D3215A", endColorstr="#006AE3", GradientType=0);
}

footer p {
  margin: auto;
}

footer a {
  color: #c8d32b
}

footer a:hover {
  color: #868d26
}

/* take away margins from the edges of the screen */
html, body {
  margin: 0;
}

@media only screen 
and (max-width : 600px) {
   .comicNav {
      height:15vw;
   }
   .comicNav img {
      width:15vw;
      padding-right:1vw;
   }
   .comicNav img:hover{
   filter:drop-shadow(0vw 0vw 0vw rgba(40, 40, 40, 0));
   margin-bottom:1vw;
}
   div.ttb-strip {
      font-size:0.6rem;
   }
   header img {
     width: 60vw;
     max-width: 98%;
   }
}

/* Characters page */
/* Pagina da Trupe */


div.character-bio {
   display:flex;
   align-items:center;
   text-align:start;
   gap:1rem;
}
div.character-bio img{
   width:15vw;
}

div.row-reverse {
   flex-direction:row-reverse;
}

/* TaTeamBuilders */

img.ttb-logo {
   width: 36vw;
   margin-bottom:-4vw;
   margin-top:-8vw;
} 

div.builder-container {
   display:flex;
   flex-wrap:wrap;
   justify-content:center;
}
div.builder {
   display:flex;
   gap:3rem;
}
div.builder img{
   width: 90px;
}

 
@media only screen 
and (max-width : 600px) {
   header img {
     width: 70vw;
     max-width: 98%;
   }
   div.subPage {
      width:100vw;
   }
   div.character-bio {
      flex-direction:column !important;
   }
   div.character-bio img{
      width:30vw;
   }
}


