body {
	position: relative;
	/* font-family: monospace; */
	background-color: #fdfdfd;
	background-size: 8px 8px, 8px 8px;
	background-position: center, center;
	background-image: linear-gradient(#ebf4f9 1px, transparent 1px),
		linear-gradient(90deg, #ebf4f9 1px, transparent 1px);
	width: 100vw;
	min-height: 100vh;
	overflow: hidden;
}

.settings {
	min-height: calc(100vh - 20vh);
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap-reverse;
	top: -80px;
}

h1 {
	position: sticky;
	top: 0;
	display: grid;
	place-items: center;
	grid-auto-flow: column;
	height: 15vh;
	/* width: 100%; */
	padding: 0 10rem;
	background-color: white;
	color: #111;
	white-space: nowrap;
	overflow-x: auto;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
	scroll-snap-type: x mandatory;
	pointer-events: none;
}

h1 b {
	scroll-snap-align: center;
	padding: 0 1rem;
}

h1::-webkit-scrollbar {
	display: none;
	height: 0;
	width: 0;
}

.settings .form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 500px;
	padding: 2rem 3rem;
	margin: 0 1rem;
	font-size: 20px;
	line-height: 2rem;
}

.settings .form-item {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.settings .form-item input {
	border-radius: 4px;
	padding: 0.4rem 0.6rem;
	font-weight: bold;
	font-size: large;
}

.settings .form-item .details {
	font-style: italic;
	color: #070707;
	font-size: 15px;
}

.settings a {
	margin-top: 0.4rem;
	border-radius: 4px;
	padding: 0.8rem;
	font-weight: bold;
	background: #333;
	color: #fff;
	cursor: pointer;
	letter-spacing: 4px;
	text-align: center;
}

.settings a:hover {
	background: rgb(75, 75, 75);
}

.settings a:active {
	background: rgb(70, 70, 70);
}

.instructions li {
	hyphens: auto;
	text-align: justify;
	letter-spacing: 0.8px;
	word-spacing: -1.8px;
}

input:out-of-range {
	border: 5px solid red;
}

input:out-of-range+.error::after {
	content: "Please enter value between 5 and 30";
	font-size: 12px;
	font-style: italic;
	font-family: sans-serif;
	color: hsl(0, 100%, 40%);
}

input:out-of-range+.player::after {
	content: "Please enter value between 2 and 6";
	font-size: 12px;
	font-style: italic;
	font-family: sans-serif;
	color: hsl(0, 100%, 40%);
}

.difficulty {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	background-color: #0d1117;
	justify-content: center;
	border-radius: 5px;
	padding: 0.9rem;
}

.d-type {
	background-color: transparent;
	border: none;
	padding: 10px;
	color: white;
	display: flex;
	position: relative;
	gap: 5px;
	cursor: pointer;
	border-radius: 4px;
	width: 42.5%;
	margin: 0.5rem;
}

.d-type:not(:active):hover,
.d-type:focus {
	background-color: #21262c;
}

.active {
	background-color: #1a1f24 !important;
	outline: none !important;
}

.d-type::before {
	content: "";
	position: absolute;
	top: 5px;
	left: -10px;
	width: 5px;
	height: 80%;
	background-color: #2f81f7;
	border-radius: 5px;
	opacity: 0;
}

.active::before {
	opacity: 1;
}

.difficulty:hover> :not(.d-type:hover) {
	transition: 300ms;
	filter: blur(1px);
	transform: scale(0.95, 0.95);
}

.sticky-button {
	/* position: fixed;
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
	background-color: #007bff;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer; */

	transform: rotate(-90deg);
	padding: 12px;

	position: fixed;
	left: 0px;
	font-family: verdana;
	font-size: 15px;
	color: rgb(255, 255, 255);
	background: rgb(245, 146, 2);
	z-index: 999;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	border-radius: 0px 0px 5px 5px;
	margin-left: -34.5px;
	top: 50%;
	margin-top: -16px;
	text-shadow: none;
}

.sticky-button:hover {
	background-color: grey;
}

p,
h3,
h2 {
	font-family: 'Press Start 2P', cursive !important;
}


/* Modal styles */
.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 150%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(5px);
}

.modal-content {
	background-color: white;
	margin: 15% auto;
	padding: 20px;
	border-radius: 10px;
	width: 50%;
	max-width: 650px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	animation: fadeIn 0.5s;
}

.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

.form-group label {
	margin-bottom: 5px;
	font-weight: bold;
	color: white;
	text-shadow: 1px 1px 5px rgba(255, 0, 0, 0.685);
}

.form-group-1 {
	display: flex;
}


.submitbtn {
	display: flex;
	justify-content: space-between;
}

.floating-social {
    position: fixed;
    top: 50%;
    right: 20px; 
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000; 
}

.social-icon {
    background: #333; 
    color: #fff; 
    border-radius: 50%;
    padding: 10px;
    margin: 5px;
    font-size: 25px;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: #555;
    transform: scale(1.1);
}


@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}


.form-container {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/* border: 5px solid transparent; */
	z-index: 999;
	/* background-color: rgba(255, 255, 255, 0.9); */
}


.form-content {
	position: relative;
	cursor: move;
	background: linear-gradient(135deg, #8ce3fd, #0059ce);
	padding: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	text-align: left;
	border-radius: 9px;
	width: 400px;
	max-height: 90vh;
	/* overflow-y: auto; */
	color: #333;
	/* border: 5px solid transparent; */
	border-image-slice: 1;
	animation: formAppear 0.5s ease-out;
}

.right-background {
	font-family: 'Press Start 2P', cursive;
}

@keyframes formAppear {
	from {
		opacity: 0;
		transform: scale(0.8);

	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.sub {
	margin-top: 5px;
	display: flex;
	justify-content: center;
	align-items: center;
}


.sub h5 {
	font-size: 27px;
	color: #fffefe;
	margin: 0;
	font-family: Tahoma, Geneva, Verdana, sans-serif;
	text-align: center;
	text-shadow: 2px 2px 2px rgba(0, 20, 123, 0.87), 2px 2px 4px rgba(157, 0, 255, 0.81), 2px 6px 7px rgba(248, 112, 255, 0.81);
}

.close-button {
	font-size: 30px;
	color: #00fbff;
	cursor: pointer;
	transition: transform 0.3s ease;
	position: relative;
	bottom: 16px;
	left: 6px
}

.close-button:hover {
	transform: rotate(90deg) scale(1.2);
}

.wrapper {
	/* background: linear-gradient(45deg, #f6d365, #fda085); */
	/* border-radius: 15px; */
	padding: 15px;
	/* margin-bottom: 0px; */
	max-width: 400px;
	width: 100%;

	/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.content {
	padding: 15px;
	display: flex;
	align-items: center;
	flex-direction: column;
}

.outer {
	height: 135px;
	width: 135px;
	overflow: hidden;
}

.emojis {
	height: 500%;
	display: flex;
	flex-direction: column;
}

.emojis li {
	height: 20%;
	width: 100%;
	list-style: none;
	transition: all 0.3s ease;
}

.emojis li img {
	height: 80%;
	width: 80%;
}

#star-2:checked~.content .emojis .slideImg {
	margin-top: -135px;
}

#star-3:checked~.content .emojis .slideImg {
	margin-top: -270px;
}

#star-4:checked~.content .emojis .slideImg {
	margin-top: -405px;
}

#star-5:checked~.content .emojis .slideImg {
	margin-top: -540px;
}

.stars {
	position: relative;
	bottom: 5px;
}

.stars label {
	font-size: 32px;
	margin: 0 6px;
	color: #ccc;
	cursor: pointer;
	transition: color 0.3s ease, transform 0.3s ease;
}

.stars label:hover {
	transform: scale(1.2) rotate(15deg);
}

#star-1:hover~.content .stars .star-1,
#star-1:checked~.content .stars .star-1,
#star-2:hover~.content .stars .star-1,
#star-2:hover~.content .stars .star-2,
#star-2:checked~.content .stars .star-1,
#star-2:checked~.content .stars .star-2,
#star-3:hover~.content .stars .star-1,
#star-3:hover~.content .stars .star-2,
#star-3:hover~.content .stars .star-3,
#star-3:checked~.content .stars .star-1,
#star-3:checked~.content .stars .star-2,
#star-3:checked~.content .stars .star-3,
#star-4:hover~.content .stars .star-1,
#star-4:hover~.content .stars .star-2,
#star-4:hover~.content .stars .star-3,
#star-4:hover~.content .stars .star-4,
#star-4:checked~.content .stars .star-1,
#star-4:checked~.content .stars .star-2,
#star-4:checked~.content .stars .star-3,
#star-4:checked~.content .stars .star-4,
#star-5:hover~.content .stars .star-1,
#star-5:hover~.content .stars .star-2,
#star-5:hover~.content .stars .star-3,
#star-5:hover~.content .stars .star-4,
#star-5:hover~.content .stars .star-5,
#star-5:checked~.content .stars .star-1,
#star-5:checked~.content .stars .star-2,
#star-5:checked~.content .stars .star-3,
#star-5:checked~.content .stars .star-4,
#star-5:checked~.content .stars .star-5 {
	color: gold;
	text-shadow: 0 0 5px #ff8800;
	animation: starPulse 0.5s infinite alternate;
}

@keyframes starPulse {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(1.1);
	}
}

/* General reset for margin and padding */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
}

/* Footer Styling */
footer {
	background-color: #222;
	color: #fff;
	padding: 20px 0;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	text-align: center;
}

.social-icons {
	display: flex;
	justify-content: flex-end;
	/* Aligns the icons to the right */
	gap: 10px;
	/* Adds space between the icons */
}

.social-icons a {
	color: inherit;
	/* Ensures the icon color matches the current text color */
	text-decoration: none;
	/* Removes the underline from the links */
}

#copyright {
	margin-top: 20px;
	/* Adjust the value as needed to move it down */
	text-align: center;
	/* Center-align the text if desired */
	font-size: 14px;
	/* Optional: Adjust the font size */
}

.footer-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.footer-links li {
	margin: 10px 0;
}

.footer-links a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #ffd700;
	/* Gold color on hover */
}

body {
	font-family: Arial, sans-serif;
}

/* Footer Styling */
footer {
	background-color: #222;
	color: #fff;
	padding: 20px 0;
}

.footer-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
	text-align: center;
}

.social-icons {
	display: flex;
	justify-content: flex-end;
	/* Aligns the icons to the right */
	gap: 10px;
	/* Adds space between the icons */
}

.social-icons a {
	color: inherit;
	/* Ensures the icon color matches the current text color */
	text-decoration: none;
	/* Removes the underline from the links */
}

#copyright {
	margin-top: 20px;
	/* Adjust the value as needed to move it down */
	text-align: center;
	/* Center-align the text if desired */
	font-size: 14px;
	/* Optional: Adjust the font size */
}

.footer-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
}

.footer-links li {
	margin: 10px 0;
}

.footer-links a {
	color: #fff;
	text-decoration: none;
	font-size: 16px;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: #ffd700;
	/* Gold color on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
	.footer-links {
		flex-direction: column;
		gap: 10px;
	}


	.footer span {
		font-size: 18px;
		font-weight: 600;
		color: #eeeeee;
		font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
		text-shadow: 1px 1px 2px rgb(48, 158, 209), 0 0 1em rgb(7, 0, 109), 0 0 0.4em rgb(7, 0, 109);
	}
}

input[type="radio"] {
	display: none;
}


input[type="text"],
input[type="email"] {
	background-color: #fff;
	border: 2px solid #0168ce;
	border-radius: 10px;
	color: #333;
	padding: 10px;
	width: 90%;
	box-sizing: border-box;
	font-size: 14px;
	transition: all 0.3s ease;
}

textarea {
	background-color: #fff;
	border: 2px solid #0168ce;
	border-radius: 10px;
	color: #333;
	padding: 10px;
	width: 100%;
	box-sizing: border-box;
	font-size: 14px;
	transition: all 0.3s ease;
}

textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus {
	border-color: #00438e;
	outline: none;
}

.buttons {
	/* background: linear-gradient(45deg, #4ecdc4, #45b7aa); */
	background: linear-gradient(45deg, #cd4e4e, #fe165f);
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 25px;
	margin: 7px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;

}

.buttons:hover {
	background: linear-gradient(135deg, #fe165f, #cd4e4e);
	transform: scale(1.05);
	box-shadow: 2px 2px 10px rgba(58, 242, 255, 0.5);
}

.main {
	display: flex;
	justify-content: space-between;
}

.main input {
	width: 48%;
}

.submitbtn {
	display: flex;
	justify-content: center;
	margin-top: 5px;
}

.button {
	background: linear-gradient(45deg, #4ecdc4, #45b7aa);
	color: #fff;
	border: none;
	padding: 10px 15px;
	border-radius: 25px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
	transition: all 0.3s ease;
	font-family: "Comic Sans MS", cursive, sans-serif;
}

.button:hover {
	background: linear-gradient(45deg, #45b7aa, #4ecdc4);
	transform: scale(1.05);
	box-shadow: 0 0 10px rgba(255, 58, 140, 0.5);
}

.footer .text::before {
	content: "Rate Your Experience! 🚀";
}

.footer .numb::before {
	content: "0 out of 5";
}

#star-1:checked~.footer .text::before {
	content: "I just hate it 😣";
}

#star-1:checked~.footer .numb::before {
	content: "1 out of 5";
}

#star-2:checked~.footer .text::before {
	content: "I don't like it 😓";
}

#star-2:checked~.footer .numb::before {
	content: "2 out of 5";
}

#star-3:checked~.footer .text::before {
	content: "This is awesome 😄";
}

#star-3:checked~.footer .numb::before {
	content: "3 out of 5";
}

#star-4:checked~.footer .text::before {
	content: "I just like it 😃";
}

#star-4:checked~.footer .numb::before {
	content: "4 out of 5";
}

#star-5:checked~.footer .text::before {
	content: "I just love it ❤️";
}

#star-5:checked~.footer .numb::before {
	content: "5 out of 5";
}

/* Styles for draggability */
.form-container.dragging {
	user-select: none;
	cursor: grabbing;
}

/* Responsive adjustments */
@media (max-width: 480px) {
	.form-content {
		width: 90%;
		max-width: 350px;
	}

	.sub h5 {
		font-size: 20px;
	}

	.stars label {
		font-size: 28px;
	}

	.button {
		font-size: 14px;
		padding: 8px 12px;
	}

	body {
		max-width: 100vw !important;
		overflow-x: hidden !important;
	}

	.settings {
		max-width: 100vw !important;
	}

	.whole-background {
		top: 15vh !important;
		margin-right: 0;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
		overflow-x: hidden !important;
	}

	.whole-background .form {
		width: 100% !important;
		margin-left: 0 !important;
		padding-left: 0px !important;
		margin-right: 0px !important;
	}

	.heading {
		width: max-content;
		font-size: 1.2rem;
	}

	button.d-type {
		width: 100% !important;
		font-size: small !important;
	}

	.button-container {
		width: 100% !important;
		flex-wrap: wrap !important;
	}

	.button-container button {
		width: 100% !important;
	}

	.form .right-background {
		margin-bottom: 300px !important;
	}

	.author {
		position: fixed !important;
		bottom: 0 !important;
	}

}

.button1 {
	display: block;
	font-size: 0.7em;
	padding: 12px;
	height: 56.5px;
	margin-top: 6.4px;
}

.circle {
	position: absolute;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, #ff6600, #ffb584a5);
	transition: transform 0.1s, left 0.1s, top 0.1s;
}

.circle-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
}

@media (max-width: 768px) {
	.circle-container {
		display: none;
	}
}

@media (max-width: 768px) {
	.whole-background {
		position: absolute;
		overflow: visible;
		gap: 30px;
		top: 25vh;
	}

	body {
		overflow: visible !important;
	}

	.settings .form {
		padding: 1rem 6rem;
		margin: 4px 13rem;
		left: 15%;
		position: relative;
	}

	.settings {
		top: -33px;
	}
}

#copyright {
	color: white;
}


/* Permission box */

#permission {
	position: absolute;
	bottom: 0;
	left: 0;
	top: 0;
	right: 0;
	margin: auto;
	background: #fff;
	padding: 2rem;
	border-radius: 25px;
	text-align: center;
	z-index: 10000;
	width: fit-content;
	height: fit-content;
}

#permission::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: -1;

}

#permission div {
	font-size: 1.25rem;
}

.req1,
.req2 {
	font-size: 1rem;
	margin: 2rem 1rem 0 1rem;
	padding: 0.75rem 1.25rem;
	border-radius: 10px;
	border: none;
	background: silver;
}

.disabled {
	opacity: 0.75;
}