/* styles.css */
body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100vh;
	transition: background-color 0.3s, color 0.3s;
}

.container {
	text-align: center;
	animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.flag {
	margin: 20px 0;
	animation: slideIn 1s ease-out;
}

.flag img {
	width: 150px;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.results {
	margin: 20px 0;
	padding: 10px;
	background: rgba(255, 255, 255, 0.0);
	border-radius: 10px;
	backdrop-filter: blur(10px);
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	animation: slideIn 1s ease-out;
}

.results .info-box {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(255, 255, 255, 0.1);
	padding: 5px;
	border-radius: 5px;
	margin: 5px 0;
	transition: background 0.3s;
	height: 40px;
}

.results .info-box span {
	display: flex;
	align-items: center;
}

.results .info-box button {
	background: #e12f29;
	border: none;
	cursor: pointer;
	font-size: 16px;
	color: white;
	padding: 5;
	width: 40px;
	height: 40px;
	border-radius: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
}

.results .info-box button:hover {
	background: #95130f;
}

.results .info-box button.success {
	background: green;
}

.results .info-box button i {
	pointer-events: none;
}

@keyframes slideIn {
	from {
		transform: translateY(20px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.buttons {
	margin-top: 20px;
}

button {
	padding: 10px 20px;
	font-size: 16px;
	cursor: pointer;
	background: #e12f29;
	color: white;
	border: none;
	border-radius: 5px;
	transition: background 0.3s;
	margin: 5px;
}

button:hover {
	background: #95130f;
}

button.success {
	background: green;
}

.header{
	position: fixed;
	left: 0;
	right: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
}

.header {
	top: 10px;
}

.footer {
	bottom: 10px;
}

.footer a {
	margin: 0 10px;
	display: inline-block;
	font-size: 24px;
	color: currentColor;
	transition: color 0.3s;
}

.footer a:hover {
	color: #007bff;
}

.switch {
	position: relative;
	display: inline-block;
	width: 60px;
	height: 34px;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .4s;
	border-radius: 34px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 26px;
	width: 26px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: .4s;
	border-radius: 50%;
}

input:checked+.slider {
	background-color: #2196F3;
}

input:checked+.slider:before {
	transform: translateX(26px);
}

body.light-mode {
	background-color: #f0f0f0;
	color: #000000;
}

body.dark-mode {
	background-color: #1e1f22;
	color: #ffffff;
}

#fallingRocksCanvas {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1; /* Ensures canvas stays behind content */
}