:root,
input[type="text"] {
	font-size: 16px;
	font-family: "Chivo";
}
body {
	padding-top: 60px;
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #333;
	width: 100%;
	margin: 0;
}
#container {
	position: fixed;
}
input[type="text"] {
	padding: 0.8em;
	width: 100%;
	max-width: 300px;
	font-size: 1.2em;
	border: none;
	border-radius: 0.2em;
	background: gray;
	transition: background 0.3s;
	text-align: center;
}
input[type="text"]:focus {
	background: white;
}
input[type="text"]::placeholder {
	color: rgba(0, 0, 0, 0.5);
}
input[type="text"]:focus + .ghost {
	background: rgba(255, 255, 255, 0.2);
	color: transparent;
}
input[type="text"]:focus + .ghost .ghost__torso {
	transform: translate(-50%, 42px) scaleY(0.9);
}
input[type="text"]:focus + .ghost .ghost__eyes * {
	background: rgba(255, 255, 255, 0.6);
}
input[type="text"]:focus + .ghost .ghost__face {
	transform: translate(-50%, 0.4em);
}
input[type="text"]:focus + .ghost .ghost__mouth {
	transform: scaleY(0.6);
	border-color: rgba(255, 255, 255, 0.6);
}
input[type="text"]:focus + .ghost .ghost__hands {
	transform: translate(-50%, 0.2em);
}
input[type="text"]:focus + .ghost .ghost__hands * {
	background: transparent;
}
input[type="text"]:focus + .ghost .ghost__legs {
	border-bottom-left-radius: 2em;
	border-bottom-right-radius: 0.6em;
	transform: translateX(-50%) scaleY(0.85);
	transform-origin: top;
}
.chat-bubble {
	position: fixed;
	top: 25%;
	left: 50%;
	transform: translateX(-50%);
	font-size: 120px;
	color: white;
	text-align: center;
	z-index: 10;
}
.chat-score {
	position: static;
	transform: none;
	font-size: 1.5em;
	margin: 0;
	padding: 5px 10px;
}
.player {
	position: fixed;
	bottom: 20px;
	left: 20px;
	color:aqua;
	z-index: 100;
}

.player a {
	font-size: 2em;
	padding: 10px;
	color: aqua;
}

#container {
	animation: float 3s infinite alternate;
}
@keyframes float {
	from {
		transform: translateY(0.5em);
	}
	to {
		transform: translateY(-0.5em);
	}
}
.ghost {
	background: white;
	color: white;
}
.ghost * {
	transition: all 0.3s;
}
.ghost > * {
	position: absolute;
	left: 50%;
	bottom: 100%;
	transform: translateX(-50%);
}
.ghost__face {
	margin-bottom: 1em;
	background: none;
}
.ghost__face .ghost__eyes-l,
.ghost__face .ghost__eyes-r {
	width: 0.8em;
	height: 0.8em;
	background: #333;
	border-radius: 100%;
	position: absolute;
	bottom: 0.4em;
}
.ghost__face .ghost__eyes-l {
	right: 1em;
}
.ghost__face .ghost__eyes-r {
	left: 1em;
}
.ghost__face .ghost__mouth {
	width: 0.5em;
	height: 0.3em;
	border-radius: 50px;
	border: 0.2em solid #333;
	border-top: none;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}
.ghost__face .ghost__mouth--open {
	border-top: 0.2em solid #333;
	height: 0.2em;
}
.ghost__torso {
	width: 5em;
	height: 7em;
	background: inherit;
	border-radius: 100px;
	box-shadow: 0 0 12px rgba(66, 66, 66, 1);
	transition: all 0.3s background 0.4s 0.1s;
	transform: translate(-50%, 50px);
	z-index: -1;
}
.ghost__hands {
	color: inherit;
}
.ghost__hands-r,
.ghost__hands-l {
	border-radius: 100px;
	width: 1em;
	height: 1.5em;
	background: white;
	box-shadow: 0 4px 4px rgba(51, 51, 51, 0.3);
}
.ghost__hands-r {
	transform: translate(1.5em, 1em) rotate(15deg);
}
.ghost__hands-l {
	transform: translate(-1.5em, 2.5em) rotate(-15deg);
}
.ghost__legs {
	width: 5em;
	height: 1.5em;
	top: 100%;
	background: inherit;
	box-shadow: 0 0 12px rgba(66, 66, 66, 1);
	border-bottom-left-radius: 0.4em;
	border-bottom-right-radius: 0.4em;
}

@media (max-width: 600px) {
	.chat-bubble {
		font-size: 40px;
		top: 20%;
	}
	.chat-score {
		font-size: 1.2em;
	}
	.player {
		position: fixed;
		bottom: 20px;
		left: 20px;
		color:aqua;
	}
	#container {
		transform: scale(0.7);
	}
	input[type="text"] {
		font-size: 16px;
		padding: 12px;
	}
}
@media (max-height: 400px) {
	.chat-bubble {
		font-size: 30px;
		top: 15%;
	}
	#container {
		transform: scale(0.5);
	}
}
.timer-display {
	position: static;
	transform: none;
	font-size: 1.5em;
	margin: 0;
	padding: 5px 10px;
}

.final-score {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.9);
	padding: 2em;
	border: 2px solid #0f0;
	border-radius: 5px;
	box-shadow: 0 0 20px #0f0;
	color: #0f0;
	font-family: 'Courier New', monospace;
	text-align: center;
	z-index: 1000;
}

.final-score h2 {
	font-size: 2em;
	margin-bottom: 0.5em;
	text-shadow: 0 0 5px #0f0;
}

.final-score p {
	font-size: 1.5em;
	margin: 0.5em 0;
}

.retry-btn {
	margin-top: 1em;
	padding: 0.5em 2em;
	font-size: 1.2em;
	font-family: 'Courier New', monospace;
	color: #0f0;
	background: #000;
	border: 2px solid #0f0;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 2px;
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.retry-btn:hover {
	background: #0f0;
	color: #000;
	box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}

@media (max-width: 600px) {
	.final-score {
		width: 90%;
		padding: 1em;
	}
	
	.final-score h2 {
		font-size: 1.5em;
	}
	
	.final-score p {
		font-size: 1.2em;
	}
	
	.retry-btn {
		font-size: 1em;
		padding: 0.4em 1.5em;
	}
}

.Player a {
	font-size: 2em;
	padding: 10px;
	color: aqua;
	cursor: pointer;
	transition: color 0.3s ease;
}

.Player a.fa-pause {
	color: red;
}

.Player a.fa-play {
	color: aqua;
}

.Player a:hover {
	opacity: 0.8;
}

@media (max-width: 600px) {
	.timer-display {
		font-size: 1.2em;
	}
}

.topbar {
	position: fixed;
	color: #0f0;
	top: 0;
	left: 0;
	right: 0;
	background: rgba(0, 0, 0, 0.9);
	padding: 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 1000;
	border-bottom: 2px solid #0f0;
	box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.topbar #timer,
.topbar .chat-score {
	color: #0f0 !important;
	font-family: 'Courier New', monospace;
	text-shadow: 0 0 5px #0f0;
}

.topbar #timer:hover,
.topbar .chat-score:hover {
	color: #00ff00 !important;
	text-shadow: 0 0 8px #0f0;
}

/* Add these styles */
body.noscroll {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Update container positioning for mobile */
@media (max-width: 600px) {
    #container {
        position: fixed;
        bottom: 55%;
        transform: translateX(-50%);
        width: 100%;
        max-width: 300px;
        z-index: 100;
    }

    /* Adjust chat bubble spacing */
    .chat-bubble {
        position: fixed;
        top: 5%;
        left: 50%;
        transform: translateX(-50%);
        font-size: 60px;
        z-index: 10;
        margin-bottom: 10px;
    }
}

/* Very small screens */
@media (max-height: 500px) {
    #container {
        bottom: 2%;
    }
    
    .chat-bubble {
        top: 15%;
        font-size: 40px;
    }
}