.press-start-2p-regular {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
}

.rubik-80s-fade-regular {
  font-family: "Rubik 80s Fade", system-ui;
  font-weight: 300;
  font-style: normal;
}

.workbench-regular {
  font-family: "Workbench", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
  font-variation-settings:
    "BLED" 0,
    "SCAN" 0;
}

.cutive-mono-regular {
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
}

body {
    background: #222 url("/images/background.jpg");
    background-size: cover;
      background-attachment: fixed;
    background-position:center;
      color: white;
      font-size: 13.5px;
      font-family: "Open Sans", sans-serif;
    }
    
  a {
    color: #33c1ff;
    text-decoration: none;
    }
    
  a:hover {
    color: #ade6ff;
    }

  h1 {
    color: #42ecff;
    font: normal 400 3.5em "Press Start 2P", system-ui;
    font-weight: 350;
    text-shadow: 3px 3px 0px #c229e1;
    text-align: center;
    word-break: break-word;
  }

  @media (max-width: 600px) {
    h1 {
      font-size: 2em;
      padding-left: 5px;
      padding-right: 5px;
    }
  }

  h2 {
      color: #c827e9;
      font: normal 400 1.2em "Press Start 2P", system-ui;
      font-weight: 350;
      text-shadow: 1.5px 1.5px 0px #04707c;
      text-align: center;
    }

  h3 {
      color: #42ecff;
      font: normal 400 2em "Rubik 80s Fade", system-ui;
      font-weight: 350;
      text-shadow: 2px 2px 0px #c229e1;
      text-align: center;
    }

  h4 {
      color: #e770ff;
      font: normal 100 4em "Rubik 80s Fade", system-ui;
      font-weight: 350;
      text-shadow: 3px 3px 0px #42ecff;
      text-align: center;
  }
    
  .links {
    border-top: 1px solid rgb(108, 226, 255);
    background: rgb(238, 238, 238, 0.05);
    padding-left: 25px;
    padding-right: 25px;
    font-weight: 400;
    font-size: 1em;
    text-shadow: 1px 1px 4px #abe3ff, -1px -1px 4px #abe3ff;
    list-style-type: none;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5em;
  }

  .link-first,
  .link,
  .link-last {
    display: inline-block;
    border-right: 1px solid rgb(108, 226, 255);
    padding: 5px 20px 15px 20px;
    text-align: center;
    white-space: nowrap;
  }

  .link-first {
    padding-left: 0;
  }

  .link-last {
    border-right: none;
    padding-right: 0;
  }

  /* Stack links vertically on small screens */
  @media (max-width: 600px) {
    .links {
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      padding-left: 5px;
      padding-right: 5px;
    }
    .link-first,
    .link,
    .link-last {
      display: block;
      border-right: none;
      border-bottom: 1px solid rgb(108, 226, 255);
      padding: 10px 0;
      text-align: center;
    }
    .link-last {
      border-bottom: none;
    }
  }
  .main {
    margin: 0 auto;
    width: 820px;
    background: rgb(10, 10, 10, 0.9);
    border-radius: 20px;
    margin-top: 30px;
    margin-bottom: 40px;
    box-shadow: 0px 0px 15px 2px #42c6ff;
    }
  
  .main-inner {
    padding: 25px;
    padding-top: 15px;
    padding-bottom: 15px;
    }
    

  /*Prevent image overflow*/  
  .main img {
    max-width: 100%;
    height: auto;
    }
    
  .footer {
    margin: 0 auto;
    padding: 15px;
    padding-top: 0px;
    margin-top: -20px;
    text-align: center;
    font-size: 12px;
    }

.blurb {
    color: #3ae8ff;
    font: normal 400 1.3em "Cutive Mono";
    text-shadow: 1px 1px 5px #d3ffff;
    text-shadow: -1px -1px 5px #d3ffff;
    font-weight: 350;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
    }

.article-quote {
    text-indent: 30px;
    color: #84f1ff;
    font: normal 400 1.3em "Cutive Mono";
    font-weight: 350;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    }

.article-quote b {
    color: #b9f7ff;
    }

.citation {
    color: #aa5aff;
    font: normal 400 1.2em "Cutive Mono";
    font-weight: 350;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 10px;
    }

 .tab { 
  margin-left: 40px; 
}

.container {
  display: flex;
  justify-content: space-between; 
  align-items: flex-start;       
  gap: 2rem;                      
}

.left-container {
  flex: 1;   
  justify-content: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.right-container {
  flex-shrink: 0; 
  padding: 1rem;
  justify-content: center;     
}

/* Stack left and right containers vertically on mobile */
@media (max-width: 600px) {
  .container {
    flex-direction: column;
    gap: 1rem;
  }
  .left-container,
  .right-container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/*Mobile compatibility*/
  @media(orientation: portrait) {
      .main {
        width: 80%;
        }
    }

			/* SECTION FOR PAGE CELLS */
			.section-header {
				position: relative;
				padding: 10px;
				border-bottom-style: solid;
				border-width: 1px;
				border-color: rgb(88, 219, 255);
			}

			.section-pages {
				position: relative;
				flex-grow: 1;
				justify-content: center;
				align-content: center;
				display: flex;
				flex-direction: column;
				gap: 1em;
				padding: 20px;
			}

			.pages-grid {
				display: flex;
				flex-wrap: wrap;
				justify-content: center;
				gap: 1em;
				z-index: 1;
			}

			/* CELLS */
			.page-cell-wrapper {
				box-sizing: border-box;
				background-color: rgb(9, 133, 152);
				border-radius: var(--cell-border-radius);
			}
			.page-cell {
				display: flex;
				flex-direction: column;
				box-sizing: border-box;
				width: 200px;
				height: 200px;

				border-style: solid;
				border-width: 1px;
				border-color: rgb(108, 226, 255);
				border-radius: var(--cell-border-radius);

				transition: 0.2s !important;
				position: relative;
				image-rendering: auto;
			}

      .page-cell img {
        width: 200px;
        height: 200px;
        object-fit: fill; 
        border-radius: inherit; 
      }

			.page-icon {
				width: calc(700px / 5);
				height: calc(1000px / 5);
				object-position: 0px -10px;
				object-fit: cover;
				border-radius: var(--cell-border-radius);
			}
			.page-label {
				position: absolute;
				bottom: 0%;
				width: 100%;
				font-family: "Press Start 2P", system-ui;
				font-size: 1em;
        text-align: center;
				text-transform: uppercase;
				background-color: rgb(0, 0, 0);
				color: rgb(108, 226, 255);
				margin: 0;
				padding: 5px 0px;
				transition: 0.2s !important;
				border-top-style: solid;
				border-width: 1px;
				border-color: var(--lime-green);
				border-bottom-left-radius: var(--cell-border-radius);
				border-bottom-right-radius: var(--cell-border-radius);
			}
			.page-cell-wrapper:hover .page-cell {
				transform: translateY(-5px) rotateZ(2deg);
				transition: none !important;
			}
			.page-cell-wrapper:hover .page-label {
				background-color: rgb(98, 250, 255);
				color: black;
				transition: none !important;
			}

/* Character Sheet */
#character-stats {
    font-size: 1.2em;
    font-family: 'Workbench', sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    justify-content: center;
}
.stat {
    width: fit-content;
    margin: 0;
    color: var(--lime-green);
}
.stat-label {
    text-transform: uppercase;
    color: rgb(255, 89, 249);
    font-weight: bold;
}

.stat-content {
    text-transform: uppercase;
    color: rgb(178, 238, 255);
}

.character-description {
    font-size: 2em;
    font-family: 'Press Start 2P', system-ui;
    color: rgb(128, 22, 164);
    text-align: center;
    margin-top: 20px;
}

.author-description {
    font-size: 1.5em;
    font-family: 'Press Start 2P', system-ui;
    color: rgb(252, 59, 255);
    text-align: center;
    justify-content: center;
    margin-top: 20px;
}

.hover-enlarge img {
  transition: transform 0.2s;
}
.hover-enlarge:hover img {
  transform: scale(1.15);
}

.blinkies {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: 100%;
}
.blinkies img, .blinkies > * {
  max-width: 100%;
  height: auto;
}

/* Start https://www.cursors-4u.com */ * {
  cursor: url(https://ani.cursors-4u.net/cursors/cur-13/cur1162.ani), url(https://ani.cursors-4u.net/cursors/cur-13/cur1162.png), auto !important;} 
/* End https://www.cursors-4u.com */