@import "/UI/Style.scss";

Menu {
	position: absolute;
	left: 0px;
	top: 0px;

	width: 100%;
	height: 100%;

	justify-content: space-between;

	background-image: url(ui/pause/background.png);
	background-size: contain;
	background-image-tint: rgba(black, 0.9);
	background-repeat: no-repeat;

	font-family: $font-main;

	transition: opacity 0.25s ease-in-out;

	&:intro {
		opacity: 0;
	}

	&:outro {
		opacity: 0;
	}

	.alternatives {
		position: absolute;

		right: 0;
		bottom: 0;

		width: 400px;

		gap: 6px;
		padding: 40px;

		flex-direction: column;
		align-items: center;

		transition: transform 0.5s ease-in-out;

		&:intro {
			transform: translateX(100%);
		}

		.cheeky-title {
			color: white;
			font-size: 35;
			text-shadow: 4px 4px 0px rgba(0, 0, 0, 1);
		}

		Button {
			width: 100%;
			font-size: 48;
			background-color: #802d22;

			&:hover {
				background-color: #ac4638;
			}
		}
	}

	> .content {
		position: relative;
		width: 600px;
		height: 100%;
		transition: transform 0.5s ease-in-out;

		&:intro {
			transform: translateX(-100%);
		}

		> .logo {
			position: absolute;
			width: 100%;
			height: 450px;
			align-items: center;
			flex-direction: column;
			padding: 20px;

			> img {
				width: 500px;
				background-size: contain;
				background-repeat: no-repeat;
				background-position: center;
				animation: Rotate 1.5s linear alternate infinite;
			}

			> .text {
				flex-shrink: 0;
				justify-content: center;
				align-items: center;
				padding: 5px 20px;
				width: 400px;
				font-size: 32px;
				background-color: #ea361f;
				color: $white;
			}
		}

		> .buttons {
			position: absolute;
			bottom: 0px;

			height: 650px;
			width: 100%;

			gap: 20px;
			padding-right: 50px;
			padding-top: 80px;

			flex-direction: column;

			background-image: url(ui/pause/background_things.png);
			background-size: contain;
			background-repeat: no-repeat;

			> .spacer {
				margin-top: 10px;
				margin-bottom: 10px;
			}

			> .row {
				position: relative;
				align-items: center;

				> .line {
					position: absolute;
					background-color: $gray-darker;
					box-shadow: 0px 0px 2px $gray-darker;
				}

				> Button {
					width: 100%;
					height: 50px;
					margin-left: 110px;
				}

				&.multiple {
					flex-direction: row;
					padding-top: 20px;
					gap: 10px;
					margin-left: 110px;
					width: 100%;
					justify-content: center;

					> Button {
						width: 32%;
						margin-left: 0px;
						font-size: 20px;
					}
				}
			}
		}
	}

	> .tab {
		width: 60%;
		height: 100%;

		min-width: 900px;

		padding-right: 40px;

		align-items: center;
		justify-content: center;

		> .content {
			width: 100%;
			min-height: 500px;
			max-height: 900px;

			padding-top: 20px;

			flex-direction: column;
			background-color: $gray-darker;

			> .top-bar {
				width: 100%;
				justify-content: space-between;
				flex-shrink: 0;
				align-items: center;
				padding: 5px 50px;

				> .title-area {
					align-items: center;
					gap: 20px;

					> .title {
						font-size: 56px;
						color: $white;
						flex-shrink: 0;
					}

					TextEntry.lobby-name {
						background-color: transparent;
						border-bottom: 2px solid $smoke-gray;
						color: $smoke-gray;
						font-size: 32px;
						min-width: 280px;
						padding: 0px 8px 4px 8px;
						transition:
							border-color 0.2s ease,
							color 0.2s ease;

						&:hover {
							cursor: text;
							border-bottom: 2px solid $white-dark;
							color: $white-dark;
						}

						&:focus {
							border-bottom: 2px solid $white;
							color: $white;
						}

						label {
							color: $smoke-gray;
						}
					}
				}
			}
		}
	}

	&.ingame {
		background-color: rgba(black, 0.8);
	}

	&.mainmenu {
	}
}

@keyframes Rotate {
	0% {
		transform: translateY(0px);
	}

	100% {
		transform: translateY(2px);
	}
}
