/* start light mode styling */
	:root {
		--text: #272727;
		--accent: #001d80;
		--bg: rgba(220, 227, 225, 0);
		--gradientTop: rgb(200, 236, 255);
		--gradientBottom: rgba(255, 255, 255, 0.69);
	}
	header {
		background: url('/media/jaam_header_notext.png');
	}

* { 
	box-sizing: border-box;
}

@font-face {
	font-family:'RM Typerighter', 'MS PGothic', sans-serif;
	src: url('https://animeman.us/rm_typerighter.ttf');
}

body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);
	/* page background pattern */
	background-color: var(--gradientTop);
	background-image: url('/media/whitenblue4_flip.png');
	background-size: 4000px 1800px;
	background-position: 0 0, 0 0, 10px 18px, 10px 18px, 0 0, 10px 18px;
}


.container {
	max-width: 60rem;
	margin: 5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 1px solid var(--gradientTop);
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;

	/* container background pattern */
	background-color: var(--gradientBottom);
}
/* these control the column widths */
.small { flex: 1 1 1%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }


header {
	background-size: cover;
	background-position: center;
	width: 100%;
	height: 200px; /* change banner height here*/
	border: 2px ridge var(--border);
	position: relative;
}
header span {
	font-size: 2.5rem;
	position: absolute;
	bottom: 0;
	right: 10px;
	margin: 10px;
	font-weight: bold;
	text-shadow: 1px 1px var(--text),
		-1px 1px var(--text),
		1px -1px var(--accent),
		-1px -1px var(--accent);
	color: var(--gradientTop);
}


nav {
	border: 2px ridge var(--border);
	padding: 5px;
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}
nav a {
	display: block;
	margin: 5px;
	background: linear-gradient(to right,var(--bg),var(--gradientBottom));
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited { 
	color: var(--text);
}
nav a:hover, nav a:focus {
	background: linear-gradient(to right,var(--bg), var(--gradientBottom), var(--gradientTop));
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
}


section {
	border: 2px ridge var(--border);
	background: linear-gradient(var(--gradientTop),var(--gradientBottom));
	padding: 5px;
}


footer {
	text-align: center;
	margin-bottom: 5vw;
	font-size: 0.8rem;
}
footer a { 
	text-decoration: none;
}


h1, h2, h3, h4, h5, h6, p  { 
	margin: 5px;
	line-height: 1.2;
}
h1 { 
	font-size: 1.4rem;
	letter-spacing: 2px;
	font-weight: normal;
	text-align: center;
	border-bottom: 2px ridge var(--border);
	padding-bottom: 5px;
}
h2 { 
	font-size: 1.25rem;
	font-weight: normal;
	text-align: center;
}
h3 { 
	font-size: 1.1rem;
}
h4 { 
	font-size: 1rem;
	color: var(--accent);
	padding-left: 12px;
}

#bigword {
	font-family: 'RM Typerighter', 'MS PGothic', sans-serif;
	font-size: clamp(5rem, calc(7vw + 1rem), 11.4rem);
	text-align: center;
	line-height: 0.35;
}

#medword {
	font-family: 'RM Typerighter', 'MS PGothic', sans-serif;
	font-size: clamp(3rem, calc(7vw + 1rem), 6rem);
	line-height: 0.5;
}

.center-text {
    text-align: center;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }


a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

.wrapper {
  max-width: 100%;
  overflow: hidden;
}

.marquee {
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  animation: marquee 10s linear infinite;
}

.marquee p {
  display: inline-block;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 2;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.12;
  }
  5% {
  opacity: 0.09;
  }
  10% {
  opacity: 0.04;
  }
  15% {
  opacity: 0.05;
  }
  20% {
  opacity: 0.09;
  }
  25% {
  opacity: 0.06;
  }
  30% {
  opacity: 0.05;
  }
  35% {
  opacity: 0.05;
  }
}

.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}

/*mobile stuff below*/ 

@media only screen and (max-width: 745px) {

.container {
    margin: auto;
}

img {
	max-width: 100%;
	height: auto;
	aspect-ratio: 1 / 1; 
	object-fit: contain;
}

header {
	background-size: contain;
	aspect-ratio: 1 / 2;
}