body {
	font-family: "Comic Sans MS", cursive;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 0 20px 0 20px;
	min-height: 100vh;
	margin: 0;
	background: linear-gradient(135deg, #ffebf3, #ffe5d9);
}

.background {
	position: fixed; /* Membuat div latar belakang tetap */
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: url("https://fkip.umma.ac.id/wp-content/uploads/2021/08/Header-Math-scaled.jpg"); /* Path to your image */
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	filter: brightness(0.65);
	z-index: -1;
}

h1 {
	color: #ffefef;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
	font-size: 2.5em;
	margin-bottom: 30px;
	animation: bounce 2s infinite;
}

@keyframes bounce {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-10px);
	}
}

.content {
	display: flex; /* Enable flexbox */
	flex-direction: column; /* Stack children vertically */
	justify-content: center; /* Center items vertically */
	align-items: center; /* Center items horizontally */
	height: 100%; /* Full height of the body */
}

.container {
	background: linear-gradient(white, #fff5f7);
	padding: 30px;
	border-radius: 25px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	margin: 20px;
	text-align: center;
	max-width: 800px;
	width: 90%;
	border: 3px solid #ffd1dc;
}

.fruit-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 30px;
	margin: 30px 0;
	padding: 20px;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 15px;
	position: relative;
}

.fruit {
	width: 70px;
	height: 70px;
	transition: transform 0.3s;
	opacity: 1;
}

.fruit.bounce {
	animation: countBounce 0.5s ease-out;
}

@keyframes countBounce {
	0% {
		transform: translateY(0) scale(1);
	}
	50% {
		transform: translateY(-30px) scale(1.2);
	}
	100% {
		transform: translateY(0) scale(1);
	}
}

.fruit.fade {
	opacity: 0.3;
}

.result {
	font-size: 28px;
	margin: 25px;
	padding: 15px;
	border-radius: 15px;
	background-color: rgba(255, 255, 255, 0.7);
}

input {
	font-size: 24px;
	padding: 10px 20px;
	border: 3px solid #ff9999;
	border-radius: 15px;
	width: 150px;
	text-align: center;
	margin: 20px;
	outline: none;
	transition: border-color 0.3s;
}

input:focus {
	border-color: #ff6b6b;
	box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

button {
	background: linear-gradient(to bottom right, #ff6b6b, #ff4757);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 50px;
	cursor: pointer;
	font-size: 20px;
	margin: 15px;
	transition: transform 0.3s, box-shadow 0.3s;
	font-family: "Comic Sans MS", cursive;
	text-transform: uppercase;
	letter-spacing: 1px;
}

button:hover {
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.math-symbol {
	font-size: 40px;
	color: #ff6b6b;
	font-weight: bold;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.input-container {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 20px;
}

.number-button {
	background: #ff9999;
	color: white;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 24px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s, background-color 0.2s;
}

.number-button:hover {
	background: #ff6b6b;
	transform: scale(1.1);
}

.score {
	position: fixed;
	top: 20px;
	right: 20px;
	background: linear-gradient(to bottom right, #ff6b6b, #ff4757);
	color: white;
	padding: 15px 25px;
	border-radius: 25px;
	font-size: 24px;
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
	100% {
		transform: scale(1);
	}
}

.copyright {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 15px;
	text-align: center;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.8),
		rgba(255, 107, 107, 0.8),
		rgba(0, 0, 0, 0.8)
	);
	color: white;
	font-size: 14px;
	z-index: 1000;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(5px);
}

.copyright a {
	color: #ffd1dc;
	text-decoration: none;
	transition: color 0.3s;
}

.copyright a:hover {
	color: #ff9999;
}

.count-display {
	font-size: 36px;
	font-weight: bold;
	margin: 10px;
	transition: color 0.3s;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.9);
	padding: 10px 20px;
	border-radius: 15px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	opacity: 0;
	pointer-events: none;
	z-index: 10;
}

.count-display.show {
	opacity: 1;
}

.count-display.error {
	color: #ff0000;
	animation: shake 0.5s ease-in-out;
}

.sound-toggle {
	position: fixed;
	top: 20px;
	left: 20px;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: #ffeaea;
	border: none;
	color: white;
	font-size: 24px;
	cursor: pointer;
	transition: transform 0.3s;
	box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
	display: flex; /* Use flexbox */
	align-items: center; /* Center vertically */
	justify-content: center; /* Center horizontally */
}

.sound-toggle:hover {
	transform: scale(1.1);
}

.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 2000;
}

.modal {
	background: linear-gradient(135deg, #fff5f7, #ffebf3);
	padding: 30px;
	border-radius: 25px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	text-align: center;
	max-width: 500px;
	width: 90%;
	animation: slideIn 0.5s ease-out;
	border: 3px solid #ffd1dc;
}

@keyframes slideIn {
	from {
		transform: translateY(-100px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.modal h2 {
	color: #ff6b6b;
	margin-bottom: 20px;
}

.modal p {
	margin: 15px 0;
	line-height: 1.5;
}

.modal button {
	margin-top: 20px;
}

.credits {
	font-family: "Poppins", sans-serif;
	margin: 20px 0;
	padding: 15px;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 15px;
}

.credits h3 {
	color: #ff6b6b;
	margin-bottom: 10px;
}

.credits ul {
	list-style: none;
	padding: 0;
}

.credits li {
	margin: 5px 0;
	color: #2b2b2b;
}
