.game-tile.selected {
	background-color: #b8e1ed;
	border-color: #59a5b9;
}

.hidden-title, .mobile-option {
	background-color: #7acbe2;
	border-color: #29a4c6;
	color: #ffffff;
	margin-right: 0.4rem;
	display: inline;
	text-align: center;
	font-weight: bold;
	cursor: pointer;
	padding: 0.3rem;
	border-radius: 0.7rem;
	border-width: 0.3rem;
	border-style: solid;
	line-height: 3rem;
	font-family: monospace;
	position: relative;
	z-index: 5;
	font-size: 1.3rem;
}

.hidden-title:hover:not(.selected) {
	background-color: #7acbe2;
	border-color: #29a4c6;
	color: #ffffff;
	box-shadow: 0 0 2rem 0rem rgb(41 164 198 / 39%)
}

.hidden-title.selected, .mobile-option.selected {
    background-color: #29a4c6;
    border-color: #7acbe2;
}

.hidden-content.selected {
	display: block;
}

.hidden-content {
	display: none;
	font-family: monospace;
	padding-left: 1rem;
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
	background-color: #f6fbfd;
	border-color: #29a4c6;
    border-style: solid;
    border-radius: 0.5rem;
    border-width: 0.6rem;
	position: relative;
	font-size: 1.3rem;
}

.controls-img {
	vertical-align: -10%;
    display: inline;
    width: auto;
}

.controls {
	font-weight: bold;
	background: url("../controls/bg_tabcontrols.gif") no-repeat 100% 50%;
	background-origin: padding-box;
	padding-right: 1rem;
	margin-right: 1rem;
	height: 2.2rem;
	min-height: fit-content;
	display: inline-flex;
    align-items: center;
}

.controls-key {
	background: url("../controls/icon_c_character.gif") no-repeat 50% 50%;
	height: 1.6rem;
    width: 1.4em;
	color: #5d5e4f;
	font-size: 1rem;
	background-size: 100% 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

.controls-key.home {
	width: 3em;
	font-size: 0.7rem;
}

.controls-key.delete {
	width: 2.5em;
	font-size: 0.7rem;
}

.controls-key.page {
	width: 3em;
	font-size: 0.7rem;
}

.controls-character {
	position: absolute;
	top: 0.6rem;
	line-height: 0;
	text-transform: uppercase;
	pointer-events: none;
}

.controls-text {
	margin-left: 0.4em;
}

.game-description:not(:empty) {
	margin-top: 0.5rem;
}

.date-text-wrapper {
	text-align: right;
	margin-bottom: 0.7rem;
}

.date-text {
	font-weight: bold;
	font-size: 1.1rem;
	margin-top: 0.2rem;
	color: #29a4c6;
	font-family: monospace;
	display: inline;
}

.player-container {
	position: relative;
	overflow: hidden;
	width: auto;
	max-height: 60rem;
	margin-bottom: 0.4rem;
}

#swf-container {
	width: 100%;
	height: 100%;
}

iframe {
	border: 0;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
}

@media (width < 650px) {
	.section-3 .side {
		width: 100%;
		text-align: center;
		margin-top: 1rem;
	}

	.section-3 .side-content {
		width: 90%;
		margin: 0 auto;
		padding-top: 0rem;
	}

	.side-games-section {
		background-image: linear-gradient(180deg, #61a74440 0, transparent 6rem);
		border-top-left-radius: 1.2rem;
		border-top-right-radius: 1.2rem;
		padding-top: 1.2rem;
	}

	.game-tiles-container {
		justify-content: center;
	}
}

/*Powder Game*/

.upload-card {
    padding: 0.5rem;
	border: 3px solid #486f82;
    border-radius: 0.5rem;
    background-image: linear-gradient(45deg, #498dae, transparent);
}

.upload-card img {
    width: 10rem;
    height: auto;
	float: left;
}

.level-data {
	display: inline-flex;
    flex-direction: column;
    padding: 0.5rem;
}

.level-selector {
	display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30rem, 1fr));
	gap: 0.4rem;
	padding: 0.6rem;
	min-width: fit-content;
}

.level-selector a {
	text-decoration: none;
	color: black;
	height: 100%;
	display: block;
}

.level-selector > a {
	text-align: center;
}

.level-selector > a:hover {
	text-decoration: underline;
}

.hidden-content:has(.level-selector) {
	padding: 0px;
}

details {
	cursor: pointer;
}

details summary:hover, details[open] summary {
	text-decoration: underline;
}

details .panel {
	margin-left: 2rem;
}

/* Stick Ranger Game */
#ranger-save {
	display: flex;
	flex-direction: column;
}