/* mainMenu.css */

#mainMenu {
	background-color: rgba(0, 0, 0, 0.5);
	position: absolute;
	width: 100%;
	height: 100%;
	z-index: 40;
}

#menuContainer {
	width: 100%;
	white-space: nowrap;
	text-align: center;
	position: absolute;
	top: 45%;
	transform: translateY(-50%);
}

#gameName {
	font-size: 150px;
	margin-bottom: -25px;
	text-shadow:
		0 1px 0 #c4c4c4,
		0 2px 0 #c4c4c4,
		0 3px 0 #c4c4c4,
		0 4px 0 #c4c4c4,
		0 5px 0 #c4c4c4,
		0 6px 0 #c4c4c4,
		0 7px 0 #c4c4c4,
		0 8px 0 #c4c4c4,
		0 9px 0 #c4c4c4;
	color: #fff;
}

#loadingText {
	font-size: 45px;
	color: #fff;
	text-align: center;
}

#loadingText a {
	display: block;
}

#menuCardHolder {
	display: flex;
	gap: 8px;
	justify-content: center;
	align-items: flex-start;
	animation: menuFadeIn 0.5s ease-out;
	white-space: normal;
	padding: 0 20px;
}

@keyframes menuFadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.menuColumn {
	display: inline-flex;
	flex-direction: column;
	gap: 12px;
	vertical-align: top;
	flex-shrink: 0;
}

.centerColumn {
	width: var(--menu-card-width);
	animation: slideInCenter 0.6s ease-out;
	height: 440px;
}

.rightColumn {
	width: var(--menu-card-width);
	animation: slideInRight 0.6s ease-out;
	height: 440px;
}

@keyframes slideInCenter {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

#guideCard {
    padding: 16px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.keybindsCard {
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

.captureRoomKeyInfo {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-top: 4px;
}

.captureRoomKeyVal {
    letter-spacing: 2px;
}

#guideCard .sectionTitle {
    margin-bottom: 12px;
    flex-shrink: 0;
}

#nameInput {
    margin-bottom: 12px;
    flex-shrink: 0;
	text-align: center;
	font-size: 18px;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	outline: none;
	box-sizing: border-box;
	color: #333;
	background: #fff;
	width: 100%;
	border-radius: 8px;
	transition: all 0.3s ease;
	font-weight: 500;
}

#nameInput:hover {
	border-color: #c0c0c0;
	background: #f9fff7;
}

#nameInput:focus {
	border-color: #7ee559;
	box-shadow: 0 0 0 3px rgba(126, 229, 89, 0.2);
	background: #fff;
}

#characterPreviewRow {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#skinColorContainer {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

#skinColorLabelRow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

#skinColorLabelRow i, #gamemodeLabelRow i {
    font-size: 16px;
    color: #7ee559;
}

#skinColorLabelRow span, #gamemodeLabelRow span {
    font-size: 13px;
    font-weight: 600;
    color: #292929;
}

#gamemodeLabelRow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

#gamemodeToggle {
    display: flex;
    gap: 6px;
}

#characterPreviewContainer {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff 0%, #f5f5f5 100%);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    flex-shrink: 0;
}

#characterPreview {
    position: relative;
    z-index: 1;
}

#previewCanvas {
    border-radius: 10px;
    background: transparent;
    display: block;
}

#skinColorHolder {
	padding: 10px;
	background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
	border-radius: 8px;
	border: 1px solid #e0e0e0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 8px;
	justify-items: center;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skinColorItem {
	cursor: pointer;
	display: inline-block;
	width: 24px;
	height: 24px;
	border-radius: 8px;
	border: 2px solid #d0d0d0;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	position: relative;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.skinColorItem:hover {
	transform: scale(1.15) rotate(5deg);
	border-color: #7ee559;
	box-shadow: 0 4px 8px rgba(126, 229, 89, 0.4), 0 2px 4px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

.activeSkin {
	border-color: #7ee559 !important;
	border-width: 1.5px !important;
	transform: scale(1.2) rotate(0deg) !important;
	box-shadow: 0 0 8px rgba(126, 229, 89, 0.7), 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

.gamemodeBtn {
	flex: 1;
	padding: 8px 0;
	font-size: 13px;
	font-weight: 600;
	text-align: center;
	border: 2px solid #e0e0e0;
	border-radius: 6px;
	background: #fff;
	color: #666;
	cursor: pointer;
	transition: all 0.2s ease;
}

.gamemodeBtn:hover {
	border-color: #7ee559;
	background: #f9fff7;
	color: #333;
}

.gamemodeBtn.active {
	border-color: #7ee559;
	background: #7ee559;
	color: #fff;
	box-shadow: 0 2px 6px rgba(126, 229, 89, 0.3);
}

.gamemodeDescription {
	font-size: 12px;
	color: #888;
	line-height: 1.4;
	padding: 4px 0;
}

#enterGame {
    height: 36px;
    flex-shrink: 0;
    margin-top: auto;
}

#enterGame span {
    position: relative;
    top: calc(100% - 12px);
    font-size: 15px;
}

#settingsButton {
	position: absolute;
	cursor: pointer;
	display: none;
}

#featuredMootuber {
	position: absolute;
	top: 18px;
	left: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 20px;
	z-index: 41;
}

.ytLink {
	color: #6eb3ef;
	font-size: 24px;
	text-decoration: none;
}

.ytLink:hover {
	color: #5c96c9;
}

#featuredYoutube {
	color: #6eb3ef !important;
}

#featuredYoutube:hover {
	color: #5c96c9 !important;
}

#mainMenuBottomLinks {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	color: #fff;
	z-index: 41;
}

#mainMenuBottomLinks .menuLink {
	font-size: 20px;
}

.mainMenuLinksDivider {
	color: #fff;
	font-size: 20px;
}

#loginSection {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
}

#loginSection a {
    display: inline-block;
    background: #5865F2;
    color: #fff;
    border-radius: 8px;
    padding: 7px 14px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

#accountSection {
    display: flex;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1000;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.65);
    border-radius: 8px;
    padding: 6px 12px;
}

#accountAvatar {
    border-radius: 50%;
}

#accountUsername {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

#accountSection span.accountCoins {
    color: #ffd700;
    font-size: 13px;
}

#accountSection a.logoutLink {
    color: #bbb;
    font-size: 12px;
    text-decoration: none;
    margin-left: 4px;
}

@media only screen and (max-width: 896px) {
	#gameName {
		font-size: 80px;
		text-shadow:
			0 1px 0 #c4c4c4,
			0 2px 0 #c4c4c4,
			0 3px 0 #c4c4c4,
			0 4px 0 #c4c4c4,
			0 5px 0 #c4c4c4;
	}

	#menuCardHolder {
		margin-top: 20px;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	#loadingText {
		margin-top: 20px;
	}

	.centerColumn,
	.rightColumn {
		width: var(--menu-card-width);
	}

	#settingsButton {
		display: block;
		bottom: 28px;
		left: 50%;
		transform: translateX(-50%);
	}
}

@media only screen and (max-width: 480px) {
	#gameName {
		font-size: 60px;
	}
}
