:root {
  --text: darkslategrey;
  --border: #50697a;
  --accent: #799793;
  --bg: rgba(12, 18, 28, 0.95);
  --gradientTop: #1c2a3b;
  --gradientBottom: #30485c;
}

header {
  background: linear-gradient(to bottom, var(--gradientTop), var(--gradientBottom)), url('***dark mode banner image***');

}


* {
	box-sizing: border-box;
}
body {
	padding: 10px;
	font-family: 'MS PGothic', sans-serif;
	color: var(--text);
	font-size: .95rem;

	/* page background pattern */
  background-color: var(--gradientBottom);
	background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, var(--gradientBottom) 9px ), repeating-linear-gradient( var(--bg), var(--bg));
  text-transform: lowercase; 
}


.container {
	max-width: 56rem;
	margin: 0.5vw auto 12px auto;
	border: 6px ridge var(--border);
	outline: 3px solid var(--gradientTop);
	outline-offset: 4px;
	border-radius: 10px;
	display: flex;
	flex-wrap: wrap;
	padding: 5px;
	gap: 5px;
}
/* these control the column widths */
.small { flex: 1 1 9%; }
.large { flex: 1 1 82%; }
.full { flex: 1 1 100%; }
.half { flex: 1 1 49%; }


header {
	background-size: cover;
	background-position: center;
  background-image:  url(../images/shrines/arrival/header.png);
	width: 100%;
	height: 120px; /* change banner height here*/
	border: 2px ridge var(--border);
	border-radius: 5px;
	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);
	border-radius: 5px;
	padding: 5px;
	background-image:  url(../images/shrines/arrival/bg.png);
    background-repeat: repeat;
}
nav div {
	text-align: center;
	font-size: 1.25rem;
	margin: 5px 5px 10px 5px;
}
nav a {
	display: block;
	margin: 5px;
	border-radius: 5px;
	padding: 2px 7px;
	text-decoration: none;
}
nav a:link, nav a:visited {
	color: var(--text);
}
a:hover, a:focus {
	font-style: italic;
}
a:visited {
	color: var(--accent);
}

a:link {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent);
}

/* optional button styling like in the preview */
div.small > img {
	display: block;
	margin: 5px auto;
	border:2px ridge var(--border);
	border-radius: 5px;
}


section {
	border: 2px ridge var(--border);
	border-radius: 5px;
	background-image:  url(../images/shrines/arrival/bg.png);
	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);
}

blockquote {
	border-left: 4px solid var(--accent);
	margin: 0 0 0 3px;
	padding-left: 4px;
	color: var(--text);
}

#button:hover {
	transform: scale(1.3);
}

#ref {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

#ref a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* prevents overflow on smaller screens */
img { max-width: 100%; }
pre { overflow-x: auto; }

	#cd {
		display: flex;
    justify-content: center;
		align-items: center;
		height: auto;
		gap: 10px;
	}	

@media (max-width: 768px) {
.half { flex: 1 1 100%; }
.full { flex: 1 1 100%; }	
	
#cd {
	  flex-direction: column;
	}	
#ref {
		flex: 1 1 100%;
	}	
	}



