/*
  TABLE OF CONTENTS
  -----------------
  1. FONT IMPORTS & DEFINITIONS
  2. GLOBAL STYLES & RESETS
  3. TYPOGRAPHY
  4. LINKS & CURSORS
  5. LAYOUT & CORE COMPONENTS
  6. PAGE-SPECIFIC STYLES
  7. UTILITY & MISCELLANEOUS
  8. MEDIA QUERIES (RESPONSIVE)
*/


/* =================================== */
/* 1. FONT IMPORTS & DEFINITIONS      */
/* =================================== */
@import url('https://fonts.googleapis.com/css2?family=Young+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/materialicons/v143/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2) format('woff2');
}


/* =================================== */
/* 2. GLOBAL STYLES & RESETS          */
/* =================================== */
body {
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  font-size: 15px;
  color: black;
  background-color: #3b0f77;
  background-image: url("assets/brownbg.gif");
  background-repeat: repeat;
  padding-top: 20px;
  padding-bottom: 50px;
  cursor: url("assets/default.png"), auto;
}

h1, h2, h3, h4, h5 {
  font-weight: normal;
  margin: 0;
  padding: 0;
}

table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}


/* =================================== */
/* 3. TYPOGRAPHY                      */
/* =================================== */
h1 {
  font-family: 'Young Serif', sans-serif;
  font-size: 30pt;
  color: #ffffff;
  background: #eeae40;
  text-align: center;
  border-radius: 10px;
}

h2 {
  font-family: 'Young Serif', sans-serif;
  font-size: 20pt;
  color: #ffffff;
  background: #eeae40;
  text-align: center;
  margin-bottom: 0.3em;
  border-radius: 10px;
}

h3 {
  font-family: 'Young Serif', sans-serif;
  font-size: 15pt;
  color: #eeae40;
  text-align: center;
}

h4 {
  font-family: 'Young Serif', sans-serif;
  font-size: 20px;
  color: #eeae40;
}

h5 {
  font-family: Tahoma;
  font-size: 15px;
  color: #ffffff;
}

p {
  font-size: 20px;
  color: #f7efda;
  text-align: center;
}

.p-character {
  font-size: 20px;
  color: #f7efda;
  text-align: justify;
  margin: 10px;
}

blockquote {
  font-size: 20px;
  color: #f7efda;
  margin: 1em;
}

hr.rounded {
  border-top: 8px solid #eeae40;
  border-radius: 5px;
  width: 90%;
  margin-top: 1em;
  margin-bottom: 1em;
}


/* =================================== */
/* 4. LINKS & CURSORS                 */
/* =================================== */
a:visited {
  color: #eeae40;
  text-decoration: none;
}

a:hover {
  filter: brightness(120%);
  cursor: url("assets/clickable.png"), pointer;
}


/* =================================== */
/* 5. LAYOUT & CORE COMPONENTS        */
/* =================================== */
#box {
  width: 950px;
  margin: 0 auto 1em;
  padding: 5px;
  border: 4px solid #eeae40;
  border-radius: 8px;
  background-color: #353b70;
}

#box a {
  text-decoration: none;
  color: #eeae40;
}

#navbar {
  width: 950px;
  margin: 0 auto 1em;
  padding: 5px;
  border: 4px solid #eeae40;
  border-radius: 8px;
  background-color: #353b70;
  text-align: center;
}

#navbar a {
  font-size: 0;
  line-height: 0;
}

#navbar a img {
  vertical-align: middle;
}

#banner {
  width: 950px;
  padding: 5px;
  border-radius: 5px;
}

footer {
  padding-top: 30px;
  font-size: 12.5px;
  color: #f7efda;
  text-align: center;
}


/* =================================== */
/* 6. PAGE-SPECIFIC STYLES            */
/* =================================== */

/* --- Slideshow --- */
.slideshow-container {
  width: 94%;
  margin: 20px auto;
  border: 4px solid #eeae40;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.slideshow-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Fixes for rendering artifacts */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

.slideshow-image {
  width: 100%;
  flex-shrink: 0;
  vertical-align: top; 
}

/* --- Slideshow Controls --- */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  user-select: none;
  background-color: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 2;
}

.prev {
  left: 0;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.slideshow-container:hover .prev,
.slideshow-container:hover .next {
  opacity: 1;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}


/* --- Character Pages --- */
.main-content {
  display: flex;
  flex-wrap: wrap; 
  justify-content: center;
  width: 950px;
  margin: 20px auto;
  padding: 5px;
  background-color: #353b70;
  border: 4px solid #eeae40;
  border-radius: 8px;
}

.info-column,
.image-column {
  flex: 1; 
  max-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
}

/* =================================== */
/* 7. UTILITY & MISCELLANEOUS         */
/* =================================== */
#thumbnails {
  width: 150px;
  height: auto;
  border-radius: 2px;
}

.playTrack {
  height: 100%;
  width: 100%;
  display: block;
  cursor: pointer;
}

.arrow-play {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #8d8d8d;
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -moz-font-feature-settings: 'liga';
  -moz-osx-font-smoothing: grayscale;
}


/* =================================== */
/* 8. MEDIA QUERIES (RESPONSIVE)      */
/* =================================== */
@media (max-width: 768px) {
  body {
    font-size: 13px;
  }
  h2 {
    font-size: 20px;
  }
  h3 {
    font-size: 16px;
  }
  h4 {
    font-size: 14px;
  }
  #box {
    padding: 8px;
  }
  blockquote {
    font-size: 14px;
  }
  footer {
    font-size: 10px;
    text-align: center;
  }
}