*
{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.faculty-glyphic-regular
{
	font-family: 'Faculty Glyphic', sans-serif;
	font-weight: 400;
	font-style: normal;
}

body
{
	font-family: 'Faculty Glyphic', sans-serif;
	background: linear-gradient(-45deg, #ee7752 0%, #e73c7e 25%, #23a6d5 50%, #23d5ab 75%, #ee7752 100%);
	background-size: 400% 400%;
	animation: body_gradient 15s ease infinite;
	min-height: 100vh;
	padding: 15px;
}

.container
{
	max-width: 1200px;
	margin: 0 auto;
}

.header
{
	text-align: center;
	margin-bottom: 20px;
	color: white;
}

.header h1
{
	font-size: 2.2em;
	margin-bottom: 5px;
	text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}

.header p
{
	font-size: 1em;
	opacity: .9;
}

.cultures-grid
{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 20px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 640px)
{
	.cultures-grid
	{
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}
}

@media (max-width: 1024px) and (min-width: 641px)
{
	.cultures-grid
	{
		grid-template-columns: repeat(2, 1fr);
		grid-template-rows: auto;
	}
}

.cultures-grid
{
	margin-top: 20px;
}

.culture-card
{
	background: white;
	border-radius: 25px;
	corner-shape: squircle;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: all .3s ease;
	box-shadow: 0 0 60px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.2) inset;
	overflow: hidden;
}

.culture-card:hover
{
	transform: scale(1.05);
	box-shadow: 0 0 10px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.2) inset;
}

.culture-icon
{
	font-size: 4em;
	margin-bottom: 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 60px;
}

.culture-icon img
{
	width: 70%;
	height: 70%;
	object-fit: contain;
	transition: transform .3s ease;
}

.culture-card:hover img
{
	transform: scale(1.1);
}

.culture-name
{
	font-size: 1.1em;
	font-weight: 600;
	color: #333;
	transition: all .3s ease;
	line-height: 1.1rem;
}

.culture-card:hover .culture-name
{
	font-size: 1.2em;
	transform: translateY(-5px);
	line-height: 1.1rem;
}

#fortune-result
{
	margin-bottom: 40px;
}

.fortune-card
{
	background: white;
	border-radius: 15px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 0 60px rgba(0,0,0,.4), 0 0 30px rgba(0,0,0,.2) inset;
	animation: fadeIn .5s ease-in;
}

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

.fortune-header
{
	margin-bottom: 30px;
}

.fortune-icon
{
	font-size: 5em;
	margin-bottom: 15px;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 120px;
}

.fortune-icon .culture-icon
{
	width: 200px;
	height: 200px;
	object-fit: contain;
}

.fortune-culture
{
	font-size: 1.5em;
	color: #666;
	font-weight: 500;
}

.fortune-text
{
	font-size: 1.8em;
	line-height: 1.6;
	color: #333;
	font-weight: 300;
	font-style: italic;
	margin-bottom: 30px;
}

.back-button
{
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 15px 30px;
	border-radius: 25px;
	font-size: 1.1em;
	cursor: pointer;
	transition: all .3s ease;
}

.back-button:hover
{
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

.loading
{
	text-align: center;
	padding: 40px;
	font-size: 1.2em;
	color: #666;
}

.htmx-request .culture-card
{
	opacity: .6;
	transform: scale(.98);
}

.error
{
	background: #ff4757;
	color: white;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	font-weight: 500;
}

.language-switcher
{
	position: absolute;
	top: 20px;
	right: 20px;
	z-index: 1000;
}

.language-switcher select
{
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 10px;
	padding: 10px 35px 10px 15px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9em;
	color: #333;
	backdrop-filter: blur(10px);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
	transition: all 0.3s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	font-family: 'Faculty Glyphic', sans-serif;
}

.language-switcher select:hover
{
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
	background-color: white;
	border-color: rgba(102, 126, 234, 0.5);
}

.language-switcher select:focus
{
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.language-switcher select option
{
	padding: 10px;
	background: white;
	color: #333;
	font-weight: 600;
}

.container
{
	position: relative;
}

@media (max-width: 640px)
{
	.language-switcher
	{
		top: 10px;
		right: 10px;
	}
	
	.language-switcher select
	{
		padding: 8px 30px 8px 12px;
		font-size: 0.85em;
		background-position: right 8px center;
	}
}

/* Animated gradient background */
@keyframes body_gradient
{
	0%
	{
		background-position: 0 50%;
	}
	50%
	{
		background-position: 100% 100%;
	}
	100%
	{
		background-position: 0 50%;
	}
}
