@font-face {
	font-family: 'SF Pro Display';
	src: url('../font/SFProDisplay-Medium.woff2') format('woff2');
	font-weight: 500;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('../font/SFProDisplay-Bold.woff2') format('woff2');
	font-weight: bold;
}

@font-face {
	font-family: 'SF Pro Display';
	src: url('../font/SFProDisplay-Black.woff2') format('woff2');
	font-weight: 900;
}

@font-face {
	font-family: 'SF Pro Rounded';
	src: url('../font/SFProRounded-Bold.woff2') format('woff2');
	font-weight: bold;
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	-webkit-tap-highlight-color: transparent;

}

html, body {
	overflow-x: hidden;
}

body {
	font-family: 'SF Pro Display', sans-serif;
	background: #fff;
	color: #000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	padding-top: 10px;
	min-height: 100vh;
	transition: background-color 0.5s ease;
}

body.quiz-active {
	background-color: #ffffff;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url('../img/background.svg');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 1;
	z-index: -1;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

body.quiz-active::before {
	opacity: 0;
}

.creator-profile-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 1000px;
	margin: 0 auto;
	padding: 5px 20px 10px;
}

.profile-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.profile-info img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #eaeaea;
	background-color: #f0f0f0;
}

.creator-nickname {
	font-weight: 700;
	font-size: 16px;
	color: #111;
	font-family: 'SF Pro Rounded', sans-serif;
}

.twitter-follow-btn {
	background-color: #1DA1F2;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	padding: 8px 16px;
	border-radius: 9999px;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.2s ease;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
}

@media (hover: hover) {
	.twitter-follow-btn:hover {
		background-color: #1a91da;
		transform: translateY(-1px);
	}
}

.home-container {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
}

.hero-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
	min-height: calc(100vh - 80px);
	width: 100%;
	max-width: 600px;
}

.main-title {
	font-size: 32px;
	font-weight: 800;
	color: #111;
	margin-bottom: 24px;
	letter-spacing: -0.5px;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
}

.main-image {
	width: 100%;
	max-width: 250px;
	height: auto;
	border-radius: 16px;
	margin-bottom: 24px;
	object-fit: cover;
}

.main-description {
	font-size: 18px;
	font-weight: 300;
	color: #666;
	margin-bottom: 32px;
	line-height: 1.4;
	font-family: 'SF Pro Display', sans-serif;

}

.start-btn {
	background-color: #1DA1F2;
	color: #fff;
	font-weight: bold;
	font-size: 22px;
	padding: 12px 32px;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
}

@media (hover: hover) {
	.start-btn:hover {
		background-color: #1a91da;
		transform: translateY(-2px);
	}
}

.national-pride {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 50px;
	background: rgba(227, 10, 23, 0.06);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid rgba(227, 10, 23, 0.15);
	border-radius: 16px;
	padding: 12px 24px;
	box-shadow: 0 4px 20px rgba(227, 10, 23, 0.06);
}

.tr-flag {
	width: 45px;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pride-text {
	font-size: 22px;
	font-weight: 800;
	color: #111;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	letter-spacing: -0.5px;
}

.gr-container {
	position: relative;
	display: inline-block;
	line-height: 0;
}

.block-char {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 38px;
	color: #ff3b30;
	font-weight: 900;
	z-index: 2;
	font-family: serif;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.gr-flag {
	width: 35px;
	border-radius: 3px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: block;
}

/* ========================================= */
/* QUIZ UI STYLES                            */
/* ========================================= */

.hidden {
	display: none !important;
}

#quiz-section {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.quiz-container {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
	padding: 10px 15px;
	background: transparent;
	text-align: center;
}

.quiz-step {
	margin-bottom: 20px;
	padding: 20px 15px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.04);
	border: 1px solid #f9f9f9;
	transition: opacity 0.5s ease;
}

.quiz-step h2, .quiz-step h3 {
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	color: #111;
	margin-bottom: 16px;
	font-size: 20px;
	letter-spacing: -0.5px;
}

.options-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.choice-btn {
	background: #fcfcfc;
	color: #222;
	border: 2px solid #eaeaea;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.25s ease;
	font-family: 'SF Pro Display', sans-serif;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) {
	.choice-btn:not(.selected-btn):not(.disabled-btn):hover {
		border-color: #1DA1F2;
		background: #f4faff;
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(29, 161, 242, 0.1);
	}
}

.choice-btn.selected-btn {
	background: #1DA1F2;
	color: #fff;
	border-color: #1DA1F2;
}

.choice-btn.disabled-btn {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Slider Styles */
.slider-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.styled-slider {
	-webkit-appearance: none;
	width: 100%;
	height: 10px;
	border-radius: 5px;
	background: #eee;
	outline: none;
}

.styled-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1DA1F2;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(29, 161, 242, 0.5);
	transition: transform 0.2s ease;
}

.styled-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

.slider-value {
	font-size: 32px;
	font-weight: 900;
	color: #1DA1F2;
	font-family: 'SF Pro Rounded', sans-serif;
}

.confirm-btn {
	background: #34c759;
	color: #fff;
	border-color: #34c759;
	width: 100%;
}

.confirm-btn:hover:not(.disabled-btn) {
	background: #2ebd4e;
	border-color: #2ebd4e;
	box-shadow: 0 4px 12px rgba(52, 199, 89, 0.2);
}

.result-card {
	padding: 40px 20px;
}

.result-title {
	font-size: 34px;
	color: #1DA1F2;
	margin-top: 25px;
	font-family: 'SF Pro Rounded', sans-serif;
	line-height: 1.2;
}

.start-btn.disabled-btn {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
	background-color: #aab8c2;
}

.fade-in {
	animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(15px); }
	to { opacity: 1; transform: translateY(0); }
}

.fade-out {
	animation: fadeOut 0.4s ease-out forwards;
}

@keyframes fadeOut {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(-15px); }
}

/* Loading Styles */
.loading-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
}

.spinner {
	width: 50px;
	height: 50px;
	border: 5px solid #f3f3f3;
	border-top: 5px solid #1DA1F2;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-text {
	font-size: 20px;
	font-weight: 600;
	color: #111;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	text-align: center;
	min-height: 30px;
	transition: opacity 0.3s ease;
}

/* Results UI Redesign */
#capture-area {
	padding: 80px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 20px;
	position: relative;
}

.result-image {
	width: 200px;
	height: auto;
	margin-bottom: 24px;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.result-kilo-title {
	font-size: 36px;
	font-weight: 900;
	color: #111;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	text-align: center;
	line-height: 1.1;
	text-transform: uppercase;
	margin-bottom: 10px;
	position: relative;
	z-index: 10;
	text-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 1), 0 0 5px rgba(255, 255, 255, 1);
}

.result-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	max-width: 300px;
	margin: 0 auto;
}

.twitter-share-btn, .download-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 20px;
	font-size: 18px;
	font-weight: bold;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	font-family: 'SF Pro Rounded', 'SF Pro Display', sans-serif;
	text-decoration: none;
}

.twitter-share-btn svg, .download-btn svg {
	width: 24px;
	height: 24px;
}

.twitter-share-btn {
	background-color: #1DA1F2;
	color: #fff;
}

@media (hover: hover) {
	.twitter-share-btn:hover {
		background-color: #1a91da;
		transform: translateY(-2px);
	}
}

.download-btn {
	background-color: #f1f3f4;
	color: #202124;
	border: 2px solid #dadce0;
}

@media (hover: hover) {
	.download-btn:hover {
		background-color: #e8eaed;
		transform: translateY(-2px);
	}
}

.restart-btn {
	background-color: #1DA1F2;
	color: #fff;
	border-color: #1DA1F2;
	margin-top: 10px;
	border-radius: 9999px;
	padding: 14px 20px;
	font-size: 18px;
}

@media (hover: hover) {
	.restart-btn:hover {
		background-color: #1a91da;
		box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
	}
}

/* Creator Popup Styles */
.creator-popup {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.15);
	z-index: 1000;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: calc(100% - 40px);
	max-width: 320px;
	border: 1px solid #f0f0f0;
}

.creator-popup .close-popup {
	position: absolute;
	top: 10px;
	right: 15px;
	background: none;
	border: none;
	font-size: 24px;
	color: #999;
	cursor: pointer;
}

.creator-popup img {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
	margin-bottom: 10px;
	border: 2px solid #eaeaea;
}

.creator-popup h3 {
	font-family: 'SF Pro Rounded', sans-serif;
	font-size: 18px;
	color: #111;
	margin-bottom: 5px;
}

.creator-popup p {
	font-size: 14px;
	color: #666;
	margin-bottom: 15px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	.creator-popup {
		bottom: 20px;
		left: 50%;
		transform: translateX(-50%);
		right: auto;
	}
	.creator-popup.fade-in {
		animation: popInMobile 0.4s ease-out forwards;
	}
}

@keyframes popInMobile {
	from { opacity: 0; transform: translate(-50%, 20px); }
	to { opacity: 1; transform: translate(-50%, 0); }
}