html {
    margin: 0;
    padding: 0;
    background-size: 64px 64px;
    /* background-color: rgb(58, 4, 4); */
	background-color: #0c0c0c;
	accent-color: orangered;
	font-family: Montserrat, sans-serif;
	font-weight: normal;
	/* overflow-wrap: break-word;
	cursor: url("media/cursor.png"), none; */
}

/* a:hover {
	cursor: url("media/cursor-hover.png"), none;
} */

@keyframes fade-in-body {
	from
	{
		opacity: 0%;
	}
	to {
		opacity: 100%;
	}
}

body {
	padding-top: 0;
	padding-left: 25px;
	padding-right: 25px;
	padding-bottom: 25px;
	/* background-color: #14192c; */
	background-color: rgb(68, 24, 24);
	background-color: #1a1a1a;
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
	/* animation-name: fade-in-body;
	animation-duration: 300ms;
	transition-property: opacity;
	transition-duration: 300ms; */
	justify-content: center;  /* horizontal centering */
	align-items: center;      /* vertical centering */
}

body#subframe {
	padding: 0 25px 0 25px;
	background-color: #404065;
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
}

.audioarea {
	display: flex;
  	justify-content: center;
  	align-items: center;
	margin: 16px;
}

a {
	color: #f8ef64;
	text-decoration: none;
	border-bottom: 1px dotted #f8ef64;
	max-width: 100%;
}

a:hover {
	color: #f8ef64;
	text-decoration: none;
	border-bottom: 1px solid #f8ef64;
}

h1 {
	text-decoration: none;
	font-size: 3em;
	font-weight: normal;
	color: #fff;
	margin-top: 3px;
}

p {
	text-decoration: none;
	font-size: 24pt;
	color: #fff;
	/*
	position: absolute;
	white-space: nowrap;
	line-height: 30px;
	*/
	margin: 0;
	text-align: center;
}

h2 {
	margin: 0px;
	margin-left: 80px;
	margin-right: 80px;
	padding: 0px;
	font-weight: normal;
	color: #fff;
	/* color: #f8ef64; */
	text-align: center;
}

h3 {
	font-weight: normal;
	text-align: center;
}

h1#page-header {
	padding: 0;
	text-align: center;
	font-weight: normal;
	padding-bottom: 0%;
	margin: 5px;	
	/* background: url(/hopcast_small.png) no-repeat center;
	background-position: top;
	background-size: cover; */
	text-align: center;
}

img#logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 128px;
	max-height: 128px;
	padding: 5px 0;
	filter: drop-shadow(0 0 6px rgb(0, 0, 0));
}

img#big-logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 196px;
	max-height: 196px;
	padding: 5px 0;
}

code {
	font-family: Consolas, "courier new";
	color: crimson;
	background-color: #262626;
	padding: 2px;
	/* font-size: 100%; */
}

.button {
	background-color: #fff;
	color: #000;
	border-color: #000;
	border-radius: 4px;
	padding-top: 5px;
	padding-bottom: 5px;
	padding-left: 10px;
	padding-right: 10px;
	margin: 2px;
	text-decoration: none;
	border-style: none;
	transition-property: font;
	transition-duration: 100ms;
	font-size: 18pt;
}

.button:hover {
	color: #000;
	text-decoration: none;
	border-style: none;
	transition-property: font;
	transition-duration: 100ms;
	font-size: 20pt;
}

.button:active {
	color: #000;
	background-color: #c0ffc0;
	text-decoration: none;
	border-style: none;
	transition-property: font;
	transition-duration: 50ms;
	font-size: 22pt;
}

.disabled-button {
	background-color: #b3b3b3;
	color: #000000a2;
	border-color: #000;
	border-radius: 2px;
	padding: 3px;
	margin: 2px;
	text-decoration: none;
	border-style: none;
	transition-property: font;
	transition-duration: 150ms;
	font-size: 18pt;
	cursor: not-allowed;
}

.disabled-button:hover {
	color: #000000a2;
	text-decoration: none;
	border-style: none;
	transition-property: font;
	transition-duration: 150ms;
	font-size: 20pt;
}

.button-small {
	transition-property: font;
	transition-duration: 150ms;
	font-size: 16pt;
	text-align: center;
}

.button-small:hover {
	transition-property: font;
	transition-duration: 150ms;
	font-size: 18pt;
}

#menu {
	/* border-top: 3px dotted #757575; */
	display: flex;
	border-bottom: 3px dotted #757575;
	text-align: center;
	margin: 0 auto 15px auto;
	justify-content: center;
	max-width: 95%;
}

#icon {
	margin-top: 4px;
	margin-bottom: 4px;
	width: 32px;
	height: 32px;
}

#menu ul {
	margin: 0;
	list-style: none;
	display: flex;
	align-items: center;
	padding: 0;
}

#menu ul li {
	padding-left: 25px;
	padding-right: 25px;
}

#menu ul li a {
	text-decoration: none;
	color: #cccccc;
	font-size: 22pt;
	border: none;
	transition-property: color;
	transition-duration: 150ms;
}

#menu ul li a:hover {
	color: #f8ef64;
}

@media (max-width: 900px) {
	#menu ul {
		flex-direction: column;
	}

	#menu ul li {
		padding: 2px 0;
	}

	#menu ul li a {
		font-size: 20pt;
	}

	#icon {
		justify-content: right;
	}
}

.container {
    display: grid;
    /* grid-template-columns: 0.4fr 1fr;
    gap: 20px; */
    justify-content: center;
}

.uncontained {
    display: grid;
    gap: 20px; /* Space between elements */
    justify-content: center;
}

.picturebox {
    background-color: rgb(46, 46, 46);
	align-items: center;
	justify-content: center;
    display: inline-flex;
    flex-direction: column;
    margin: 0 auto;
	margin-bottom: 10px;
    border-radius: 10px;
    padding: 10px;
    max-width: fit-content;
	box-shadow: 0 0 4px 4px rgba(10, 10, 10, 0.8);
}

.picturebox > p {
	color: #ffffff;
}

.picturebox > .button {
	margin-bottom: 20px;
}

.picturemap > img {
	margin: 5px;
	/* transform: rotate(2deg); */
	/* image-rendering: optimizeQuality; */
	max-width: 512px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.8);
}

.picturemap {
  	position: relative;
  	display: inline-block;
}

.picturemap img {
  	display: block;
  	max-width: 100%;
  	height: auto;
}

.hotspot {
	position: absolute;
	border: 2px solid black;
	cursor: pointer;
	text-decoration: none;
	animation: colorBounce 1s ease infinite alternate;
	border-radius: 8px;
}

.hotspot:hover {
  	border-color: rgb(217, 72, 72);
  	background-color: rgba(0, 0, 0, 0.05);
	animation: none;
}

@keyframes colorBounce {
	0% {
		border-color: rgba(0, 0, 0, 0);
	}
	100% {
		border-color: gray;
	}
}

.alertimg {
	height: auto;
	border-radius: 5px;
}

.notice {
	max-width: 560px;
	margin: 0 auto;
	margin-top: 10px;
	margin-bottom: 10px;
	padding: 6px;
	border-radius: 4px;
	background-color: rgba(40, 40, 40, 0.25);
	border-style: solid;
	border-width: 2px;
	font-size: 12pt;
}

/* Footer */

#footer {
	border-top: 1px groove #ACACAC;
	margin-top: 20px;
	padding: 10px;
	font-size: 80%;
}

@media (max-width: 800px) {

	body {
		padding: 0;
	}

	.roundbox {
		width: auto;
		border-radius: 0;
	}

	.roundbox table.yellowkeys tr td {
		display: block;
		padding: 5px 5px 0 0;
	}

	.roundbox table.yellowkeys tr td:last-child {
		margin-bottom: 5px;
		margin-left: 5px;
	}

	.scrolltable {
		overflow: auto;
	}

}

@media (max-width: 320px) {
	ul.nav, #menu ul {
		display: block;
	}

	ul.nav li, #menu ul li {
		float: none;
	}

	ul.nav li a, #menu ul li a {
		display: block;
	}

	ul.nav li + li, #menu ul li + li {
		border-top: 1px solid #ACACAC;
	}

	a.play {
		margin-left: 15px;
	}
}

#updateOverlay {
	position: fixed;
	background-color: rgba(0, 0, 0, 0);
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
}
  
.overlay-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(6px);
	background-color: rgba(0, 0, 0, 0.8);
}
  
.overlay-dialog {
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	background-color: #404065;
	padding: 2em;
	border-radius: 16px;
	box-shadow: 0px 0px 25px 15px #14192C;
	max-width: 90%;
	text-align: center;
}

.images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  text-align: center;
}

.images img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.images {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.images img {
    width: 100%;
    height: auto;
}

.images .overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
}

.flashA {
	box-shadow: 0px 0px 25px 5px black;
}

.flashB {
    animation: flashB 2s infinite;
}

@keyframes flashB {
    0%   { opacity: 1; }
    50% { opacity: 0; }
	100% { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { background-color: var(--orig-color, blueviolet); }
  50% { background-color: rgb(167, 72, 255); }
}

@keyframes pulse-text {
  0%, 100% { color: yellow; }
  50% { color: rgb(255, 166, 0); }
}

.runtime-button.pulse {
  animation: pulse 2s infinite ease-in-out;
}

.runtime-text.pulse-text {
  animation: pulse-text 2s infinite ease-in-out;
}