.content-wrapper,
.logo-container,
body {
	position: relative;
	display: flex
}

.footer,
.server-item,
.splash-text {
	white-space: nowrap
}

.play-icon:hover,
.server-item {
	cursor: pointer
}

#message-box,
#popup {
	transform: translateX(-50%);
	padding: 10px 20px
}

#message-box,
.footer,
.multiplayer-title,
.splash-text {
	text-shadow: 2px 2px #000A
}

@font-face {
	font-family: mine;
	src: url('assets/minecraft-regular.ttf')
}

body {
	min-height: 100vh;
	margin: 0;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	overflow: hidden;
	color: #ddd;
	font-family: mine, 'Segoe UI', sans-serif;
	background-image: url('assets/background.jpg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat
}

.content-wrapper {
	z-index: 1;
	width: 100%;
	height: 100vh;
	flex-direction: column;
	align-items: center
}

.logo-container {
	margin-top: 14vh;
	margin-bottom: 10vh;
	width: 100%;
	justify-content: center;
	align-items: center;
	user-select: none
}

.footer,
.multiplayer-page {
	position: absolute;
	width: 100%
}

.logo {
	width: 80%;
	max-width: 600px;
	height: auto
}

.splash-text {
	position: absolute;
	color: #ff0;
	font-size: 1.7em;
	animation: 1s ease-in-out infinite splash;
	rotate: -25deg;
	margin-left: 40%
    
}

@keyframes splash {

	0%,
	100% {
		transform: scale(1.05)
	}

	50% {
		transform: scale(1)
	}
}

.menu-container-wrapper {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: flex-start
}

.menu-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 450px;
	margin-right: 4%
}

#credit-btn,
#credit-btn2,
.credits-back-button,
.dialog-button,
.discord-btn,
.menu-button,
.multiplayer-button,
.music-back-button,
.music-button,
.quit-button {
	background: url('assets/bgbtn.png') center/cover #999;
	image-rendering: pixelated;
	border: 2px solid #000;
	cursor: pointer;
	color: #ddd;
	text-shadow: 2px 2px #000A;
	box-shadow: inset -2px -4px #0006, inset 2px 2px #fff7;
	font-size: 1em;
	user-select: none
}

#credit-btn:hover,
.credits-back-button:hover,
.dialog-button:hover,
.discord-btn:hover,
.menu-button:hover,
.multiplayer-button:hover,
.music-back-button:hover,
.music-button:hover,
.quit-button:hover,
.server-item:hover {
	border: 2px solid #ddd
}

.menu-button {
	width: 90%;
	padding: 8px 9px 12px;
	margin: 4px 0
}

.bottom-buttons {
	display: flex;
	justify-content: space-between;
	width: 90%;
	margin-top: 8px
}

.bottom-button {
	width: 49%
}

.footer {
	bottom: .4em;
	display: flex;
	justify-content: space-between;
	padding: 0 20px;
	font-size: 1em;
	user-select: none
}

.footer-left {
	margin-left: .4em
}

.footer-right {
	margin-right: .4em
}

.multiplayer-page {
	display: none;
	height: 100vh;
	top: 0;
	left: 0;
	z-index: 10;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	background: inherit
}

.dialog-overlay,
.server-list {
	background-color: rgba(0, 0, 0, .5)
}

.credits-page,
.dialog-box,
.music-page,
.quit-page {
	background-image: url('assets/dirtbackgroundwebp.webp');
	background-size: cover;
	background-position: center;
	background-repeat: repeat;
	user-select: none
}

.multiplayer-title {
	font-size: 1.2em;
	margin-top: 2em;
	margin-bottom: 8px;
	text-align: center;
	color: #fff;
	user-select: none
}

.server-list {
	border: 2px solid #000;
	width: 100%;
	height: 65%;
	margin-bottom: 20px;
	padding: 10px;
	color: #fff;
	display: flex;
	justify-content: center
}

.server-item {
	margin-bottom: 5px;
	padding: 5px;
	width: 40%;
	height: fit-content;
	display: flex;
	user-select: none;
	position: relative
}

.server-item.selected {
	border: 2px solid #fff;
	background-color: rgba(0, 0, 0, .4)
}

.server-description {
	color: #3cc2c2;
	margin-top: 5px
}

.multiplayer-buttons {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	width: 90%;
	max-width: 600px;
	user-select: none
}

.multiplayer-button {
	width: 48%;
	margin: 4px;
	padding: 8px 9px 12px
}

.server-icon {
	width: 50px;
	height: 50px;
	margin-right: 10px
}

.play-icon {
	display: none;
	position: absolute;
	top: 7%;
	left: 3.7%;
	width: 2em;
	height: auto;
	transition: filter .3s
}

.dialog-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(2px);
	z-index: 10
}

#message-box,
#popup,
.dialog-box {
	position: fixed;
	left: 50%;
	color: #fff
}

.dialog-box {
	top: 45%;
	transform: translate(-50%, -50%);
	background-color: #c6c6c6;
	border: 2px solid #000;
	padding: 0 10px 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	z-index: 1001;
	width: 50%;
	height: 60%;
	overflow-y: hidden
}

.dialog-button {
	margin: 1em 10px 0;
	padding: 9px 5px 13px;
	width: 80%
}

#info {
	border: 1px solid #000;
	background-color: #00000075;
	padding: 10px;
	width: 78%
}

.server-item:hover .play-icon {
	display: block
}

.loading-boxes-right {
	display: flex;
	justify-content: center;
	align-items: flex-end;
	gap: 2px;
	position: absolute;
	right: 10px;
	top: 15%
}

.loading-boxes-right .box {
	width: 2px;
	height: 13px;
	background-color: #76767a;
	animation: 2.5s infinite loadingSequence
}

.loading-boxes-right .box:first-child {
	height: 1px;
	animation-delay: 0s
}

.loading-boxes-right .box:nth-child(2) {
	height: 4px;
	animation-delay: .5s
}

.loading-boxes-right .box:nth-child(3) {
	height: 7px;
	animation-delay: 1s
}

.loading-boxes-right .box:nth-child(4) {
	height: 10px;
	animation-delay: 1.5s
}

.loading-boxes-right .box:nth-child(5) {
	height: 13px;
	animation-delay: 2s
}

#popup {
	bottom: 3em;
	background-color: rgba(0, 0, 0, .664);
	border-radius: 5px;
	display: none;
	z-index: 14
}

#credit,
.credits-box {
	width: fit-content;
	display: flex
}

@keyframes loadingSequence {
	0% {
		background-color: #00f
	}

	100% {
		background-color: #76767a
	}
}

.green-box {
	background-color: #0f0 !important;
	animation: none
}

#credit {
	height: 98.5%;
	flex-direction: column;
	justify-content: flex-end;
	z-index: 1;
	align-self: flex-start;
	margin-right: -10px;
	user-select: none
}

#credit-btn img {
	width: 2.2em;
	height: auto
}

.credits-box {
	background-color: rgba(0, 0, 0, .7);
	padding: 10px;
	border: 2px solid #ddd;
	color: #fff;
	font-size: 1.5em;
	margin-bottom: 20px;
	align-items: center;
	justify-content: space-between
}

.credits-page,
.music-page,
.quit-page {
	display: none;
	width: 100%;
	height: 100vh;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	flex-direction: column;
	align-items: center;
	justify-content: center
}

.player-info {
	display: flex;
	flex-direction: column
}

.player-name {
	margin-bottom: 5px;
	font-size: .8em
}

.player-status {
	font-size: .65em
}

.status-online {
	color: #0f0
}

.credits-box img {
	width: 2em;
	height: auto;
	margin-right: 15px
}

.credits-back-button,
.music-back-button {
	width: 200px;
	padding: 8px 9px 12px
}

.credits-content {
	display: flex;
	align-items: center
}

.discord-btn {
	width: fit-content;
	padding: 5px 0;
	margin-left: 10px
}

.discord-btn img {
	width: 1.2em;
	height: auto;
	margin-left: 12px
}

#credit2 {
	display: none;
	width: 90%;
	height: fit-content;
	margin: 4px 0
}

.music-button {
	width: 200px;
	padding: 8px 9px 12px;
	margin-bottom: 20px
}

#message-box {
	border-radius: 5px;
	display: none;
	z-index: 10;
	user-select: none
}

.quit-box {
	padding: 20px;
	color: #ddd;
	font-size: 1.5em;
	text-align: center;
	margin-bottom: 2.5em
}

.quit-buttons {
	display: flex;
	justify-content: center;
	gap: 3em
}

.quit-button {
	width: fit-content;
	padding: 8px 40px 12px
}

@keyframes slideUp {
	from {
		bottom: 3.8em;
		opacity: 50%
	}

	to {
		bottom: 5.5em;
		opacity: 100%
	}
}

#message-box.show {
	display: block;
	animation: .2s ease-out forwards slideUp
}

@media (max-width:984px) {
	.dialog-box {
		width: 70%
	}
}

@media (max-width:768px) {

	.logo,
	.server-item {
		width: 90%
	}

	.menu-container {
		width: 95%
	}

	.footer {
		font-size: .6em;
		width: 90%
	}

	.footer-left,
	.footer-right {
		margin: 0;
		white-space: wrap
	}

	.splash-text {
		font-size: 1em;
		margin-left: 60%
	}

	.multiplayer-button {
		width: 100%
	}

	#credit {
		display: none
	}

	#credit2 {
		display: flex
	}

	#message-box {
		width: 100%;
		text-align: center;
		white-space: wrap
	}

	.dialog-box {
		width: 95%;
		height: 72%
	}

	#aternos {
		font-size: .9em
	}
}

@media (max-width:466px) {
	#aternos {
		font-size: .6em
	}

	.loading-boxes-right {
		top: 55%
	}

	#popup {
		font-size: 1em
	}
}