html,
body {
	height: 100%;
}

@font-face {
	font-family: "Noto Sans Local";
	src: url("../fonts/NotoSans-Regular.ttf") format("truetype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Noto Sans Local";
	src: url("../fonts/NotoSans-Bold.ttf") format("truetype");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-night: #020617;
	--color-night-soft: #071235;
	--color-panel: rgba(15, 20, 43, 0.82);
	--color-panel-strong: rgba(22, 28, 55, 0.94);
	--color-border: rgba(238, 238, 255, 0.32);
	--color-border-strong: rgba(238, 238, 255, 0.68);
	--color-text: #fbfaff;
	--color-muted: #dbe1ff;
	--color-accent: #d7d1ff;
	--color-accent-strong: #f0edff;
	--color-success: #72ffa1;
	--color-error: #ff74df;
	--shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.28);
	--radius: 8px;
}

body {
	cursor: default;
	padding: 40px;
	background-color: var(--color-night);
	font-family: "Noto Sans Local", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 20px;
	line-height: 1.45;
	color: var(--color-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body:not(.backend) {
	height: auto;
	min-height: 100%;
	padding: 0;
	background-color: #020617;
	background-image:
		linear-gradient(rgba(1, 8, 31, 0.76), rgba(0, 4, 19, 0.88)),
		url("../img/facebook-card-template.png");
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	overflow-x: hidden;
}

*:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 4px;
}

.skip-link {
	position: absolute;
	z-index: 10;
	top: 10px;
	left: 10px;
	padding: 10px 15px;
	border-radius: var(--radius);
	background-color: var(--color-text);
	color: var(--color-night);
	transform: translateY(-150%);
}

.skip-link:focus {
	transform: translateY(0);
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

body.bg {
	background-image: url(../img/bg.jpg);
	background-size: cover;
	background-position: center;
}

body.backend {
	padding-top: 0;
	background-color: var(--color-night);
}

.site-main {
	position: relative;
	min-height: calc(100vh - 80px);
}

body:not(.backend) .site-main {
	min-height: 100vh;
	min-height: 100svh;
	overflow-x: hidden;
	overflow-y: visible;
	background:
		linear-gradient(180deg, rgba(1, 8, 31, 0.18), rgba(0, 3, 15, 0.46)),
		radial-gradient(ellipse at center, rgba(76, 111, 204, 0.18) 0%, rgba(7, 18, 53, 0.08) 42%, rgba(0, 3, 15, 0.38) 100%);
}

form {
	margin: 20px 0;
}

h1,
h2,
h3 {
	margin: 20px 0;
	font-family: inherit;
	font-weight: 800;
	letter-spacing: 0;
	text-transform: uppercase;
	text-shadow: 0 8px 28px rgba(51, 84, 150, 0.45);
}

h1 {
	font-size: 36px;
}

h2 {
	font-size: 24px;
}

small {
	font-size: 11px;
}

hr {
	margin: 35px 0;
	border-width: 0;
	border-top: 1px solid var(--color-border);
}

p {
	margin: 15px 0;
}

a {
	text-decoration: none;
	color: var(--color-text);
	transition: border-color 160ms ease, color 160ms ease, opacity 160ms ease, transform 160ms ease, background-color 160ms ease;
}

input[type=text],
input[type=password],
input[type=email] {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.92);
	color: var(--color-night);
	font: inherit;
	font-size: 16px;
	line-height: 1.3;
}

input[type=submit],
input[type=reset],
input[type=button],
button,
.button-link {
	cursor: pointer;
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--color-border-strong);
	border-radius: 6px;
	background-color: var(--color-text);
	color: var(--color-night);
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
	transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

input[type=submit]:hover,
input[type=reset]:hover,
input[type=button]:hover,
button:hover,
.button-link:hover {
	border-color: var(--color-accent);
	background-color: var(--color-night-soft);
	color: var(--color-text);
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.button-link.compact {
	margin-top: 10px;
	padding: 8px 14px;
	font-size: 12px;
}

button.button-tab {
	border: 0;
	margin-bottom: 0;
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--color-text);
	box-shadow: none;
}

button.button-tab.active {
	background-color: var(--color-text);
	color: var(--color-night);
}

#star_field {
	position: fixed;
	z-index: 0;
	top:  0;
	left: 0;
	width:  100%;
	height: 100%;
	pointer-events: none;
	opacity: 0.62;
}

.wrapper {
	position: relative;
	z-index: 4;
	display: grid;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	box-sizing: border-box;
	padding: clamp(34px, 6vh, 76px) 24px clamp(68px, 10vh, 128px);
	pointer-events: none;
}

.wrapper.backend {
	padding: 0 25px;
}

.cell {
	position: relative;
	display: grid;
	align-items: center;
	width: 100%;
	min-height: 100%;
}

.horoscope {
	isolation: isolate;
	display: none;
	position: relative;
	box-sizing: border-box;
	width: min(780px, calc(100vw - 48px));
	margin: auto;
	padding: 22px 0 0;
	border: 0;
	border-radius: 0;
	background-color: transparent;
	backdrop-filter: none;
	box-shadow: none;
	line-height: 1.5;
	font-size: 20px;
	text-align: center;
	text-shadow: 0 12px 42px rgba(7, 18, 53, 0.92), 0 2px 2px rgba(0, 0, 0, 0.78);
	pointer-events: auto;
}

.horoscope::before {
	content: "";
	position: absolute;
	z-index: -1;
	inset: -54px -86px -68px;
	background:
		radial-gradient(ellipse at center, rgba(5, 11, 34, 0.97) 0%, rgba(5, 11, 34, 0.84) 45%, rgba(5, 11, 34, 0) 74%),
		linear-gradient(90deg, rgba(5, 11, 34, 0), rgba(5, 11, 34, 0.68) 22%, rgba(5, 11, 34, 0.72) 78%, rgba(5, 11, 34, 0));
	pointer-events: none;
}

.horoscope h1 {
	width: 100%;
	margin: 0;
	line-height: 1;
	font-size: clamp(40px, min(5.6vw, 9.8vh), 78px);
	text-align: center;
}

.horoscope h1 a {
	display: inline-block;
	color: var(--color-text);
	text-shadow: 0 14px 42px rgba(122, 154, 255, 0.42), 0 3px 5px rgba(0, 0, 0, 0.76);
}

.horoscope h1 a:hover {
	color: var(--color-accent-strong);
}

.horoscope h2 {
	margin: 0;
	margin-bottom: 25px;
	font-size: 18px;
}

.date-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 10px 0 clamp(28px, 4.8vh, 44px);
	font-family: inherit;
	font-size: clamp(21px, min(2.2vw, 4.2vh), 31px);
	font-weight: 800;
	text-shadow: 0 12px 34px rgba(7, 18, 53, 0.92), 0 2px 2px rgba(0, 0, 0, 0.82);
	color: var(--color-muted);
}

.date-nav time {
	color: var(--color-text);
}

.horoscope a.nav-prev,
.horoscope a.nav-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: 1px solid transparent;
	border-radius: 50%;
	background-color: transparent;
	color: #c8ceea;
}

.horoscope a.nav-prev:hover,
.horoscope a.nav-next:hover {
	border-color: rgba(251, 250, 255, 0.42);
	background-color: rgba(251, 250, 255, 0.1);
	color: var(--color-text);
}

.horoscope .disabled {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: #aeb7dc;
}

.horoscope-text {
	margin: 0 auto 34px;
	max-width: 760px;
	color: var(--color-text);
	font-size: clamp(21px, min(2.1vw, 3.7vh), 32px);
	line-height: 1.48;
	font-weight: 400;
	text-wrap: pretty;
}

.mobile .horoscope {
	line-height: 1.5;
}

.mobile .horoscope h1 {
	font-size: 34px;
}

.mobile .horoscope p {
	font-size: 18px;
}

.zodiac-list,
.zodiac-item {
	padding: 0;
	margin: 0;
	list-style: none;
}

.zodiac {
	position: absolute;
	z-index: 3;
	display: block;
	width: 96px;
	padding: 8px 4px;
	border: 1px solid transparent;
	border-radius: var(--radius);
	color: var(--color-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.25;
	text-align:      center;
	text-decoration: none;
	text-transform:  uppercase;
	text-shadow: 0 7px 22px rgba(0, 0, 0, 0.86), 0 1px 1px rgba(0, 0, 0, 0.9);
	opacity: 0.54;
}

.mobile .zodiac {
	font-size: 10px;
}

.zodiac.active,
.desktop .zodiac:hover {
	border-color: var(--color-border);
	background-color: rgba(7, 18, 53, 0.56);
	color: var(--color-text);
	opacity: 0.96;
	transform: translateY(-2px);
	box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.zodiac img {
	display: inline-block;
	margin-bottom: 10px;
	opacity: 0.78;
	filter: drop-shadow(0 10px 22px rgba(122, 154, 255, 0.24));
	width: 86px;
	max-width: 100%;
	height: auto;
}

.zodiac-name,
.zodiac-dates {
	display: block;
}

.zodiac-name {
	margin-top: 4px;
}

.zodiac-dates {
	margin-top: 2px;
	color: #e2e6ff;
}

.zodiac.active img,
.desktop .zodiac:hover img {
	opacity: 1;
}

.zodiac-taurus {
	top:   2%;
	left: 50%;
	margin-left: -48px;
}

.zodiac-gemini {
	top:   8%;
	right: 29%;
}

.zodiac-cancer {
	top:   22%;
	right: 13%;
}

.zodiac-leo {
	top:  42%;
	right: 3%;
}

.zodiac-virgo {
	bottom: 17%;
	right:  17%;
}

.zodiac-libra {
	bottom:  6%;
	right:  30%;
}

.zodiac-scorpio {
	bottom: 2%;
	left:  49%;
	margin-left: -48px;
}

.zodiac-sagittarius {
	bottom: 11%;
	left:  28%;
}

.zodiac-capricorn {
	bottom: 20%;
	left:   14%;
}

.zodiac-aquarius {
	top:  42%;
	left:  3%;
}

.zodiac-pisces {
	top:  12%;
	left: 15%;
}

.zodiac-aries {
	top:  8%;
	left: 29%;
}

.share-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: 44px;
	margin-bottom: 0;
}

.share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 18px;
	border: 1px solid rgba(251, 250, 255, 0.78);
	border-radius: 999px;
	background-color: rgba(251, 250, 255, 0.96);
	color: var(--color-night);
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	text-shadow: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.facebook-share-button {
	background-color: rgba(215, 209, 255, 0.16);
	color: var(--color-text);
}

.share-button:hover {
	border-color: var(--color-accent-strong);
	background-color: var(--color-accent-strong);
	color: var(--color-night);
	transform: translateY(-1px);
}

@media (max-height: 760px) and (min-width: 1101px) {
	.wrapper {
		padding-top: 24px;
		padding-bottom: 52px;
	}

	.horoscope {
		width: min(720px, calc(100vw - 48px));
		padding-top: 12px;
	}

	.horoscope h1 {
		font-size: clamp(38px, min(5vw, 9vh), 62px);
	}

	.date-nav {
		margin: 8px 0 20px;
		font-size: clamp(19px, min(2vw, 3.8vh), 25px);
	}

	.horoscope-text {
		margin-bottom: 22px;
		font-size: clamp(19px, min(1.8vw, 3.35vh), 25px);
		line-height: 1.42;
	}

	.zodiac {
		width: 86px;
		font-size: 10px;
		opacity: 0.48;
	}

	.zodiac img {
		width: 74px;
	}
}

/* Admin */

.backend-main {
	display: block;
	width: min(100%, 1040px);
	margin: 0 auto;
	padding: 28px 0 60px;
}

.admin-tabs {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.date-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	min-height: 30px;
	margin: 0 4px;
}

.msg,
.error {
	display: inline-block;
	width: auto;
	min-width: 200px;
	padding: 15px;
	border-width: 2px;
	border-style: solid;
	border-radius: var(--radius);
	background-color: rgba(0, 0, 0, 0.18);
	text-align: center;
}

.msg {
	border-color: var(--color-success);
	color: var(--color-success);
}

.error {
	border-color: var(--color-error);
	color: var(--color-error);
}

.border-form {
	padding: 22px 25px;
	margin: 0;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background-color: var(--color-panel);
	box-shadow: var(--shadow-soft);
	backdrop-filter: blur(8px);
}

.codes {
	clear: both;
	display: block;
	width: 100%;
	margin-top: -15px;
}

.codes .code {
	 float: left;
	 margin-right: 50px;
	 margin-bottom: 15px;
}

.codes .code .desc {
	color: #d8d8e8;
}

.item-date {
	color: #e1e1ee;
}

#generate-text-form {
	display: block;
	margin: auto;
	margin-top: 30px;
	text-align: center;
}

.item {
	margin: 0;
	padding: 15px;
	background-color: rgba(255, 255, 255, 0.08);
}

.item.odd {
	background-color: rgba(255, 255, 255, 0.12);
}

.tab {
	display: inline-block;
	padding: 8px 12px;
	margin: 15px 0;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	background-color: rgba(255, 255, 255, 0.06);
	color: var(--color-text);
	text-decoration: none;
}

.desktop .tab:hover,
.tab.active {
	border-color: var(--color-text);
	background-color: var(--color-text);
	color: var(--color-night);
}

.tab-content {
	margin: 0;
	margin-bottom: 35px;
}

.tab-content .option {
	float: right;
	display: block;
	margin-left: 15px;
	font-size: 11px;
	font-weight: 800;
	text-decoration: none;
	text-transform: uppercase;
}

.total_items,
.tab-content .category_items {
	font-size: 12px;
	text-align: center;
	text-transform: uppercase;
}

.tab-content .category_items {
	margin-bottom: 15px;
}

.disabled {
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
	filter: alpha(opacity=50);
	-moz-opacity:   0.5;
	-khtml-opacity: 0.5;
	opacity:        0.5;
}

.hidden {
	display: none;
}

[hidden] {
	display: none !important;
}

.clear {
	clear: both;
}

@media (max-width: 1100px) {
	html,
	body {
		height: auto;
		min-height: 100%;
	}

	body {
		padding: 18px;
	}

	body:not(.backend) {
		padding: 0;
		background-attachment: scroll;
	}

	#star_field {
		position: fixed;
	}

	.site-main {
		min-height: auto;
		padding: 54px 0 28px;
	}

	body:not(.backend) .site-main {
		min-height: 100vh;
		overflow: visible;
		padding: 44px 18px 28px;
	}

	.wrapper {
		display: block;
		position: relative;
		height: auto;
		min-height: 0;
		padding: 0;
	}

	.cell {
		display: block;
		height: auto;
	}

	.horoscope {
		width: 100%;
		padding: 24px 0 26px;
		font-size: 18px;
	}

	.horoscope::before {
		inset: -28px -18px -30px;
	}

	.horoscope h1 {
		max-width: 100%;
		font-size: clamp(32px, 8vw, 48px);
		line-height: 1.04;
		overflow-wrap: anywhere;
	}

	.date-nav {
		gap: 8px;
		margin: 10px 0 24px;
		font-size: 20px;
	}

	.horoscope a.nav-prev,
	.horoscope a.nav-next,
	.horoscope .disabled {
		width: 44px;
		height: 44px;
	}

	.horoscope-text {
		margin-bottom: 30px;
		font-size: clamp(18px, 4.6vw, 24px);
		line-height: 1.5;
	}

	.share-actions {
		gap: 14px;
		margin-bottom: 18px;
	}

	.zodiac {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		width: 100%;
		min-height: 150px;
		box-sizing: border-box;
		margin: 0;
		padding: 16px 12px 18px;
		border-color: rgba(238, 238, 255, 0.28);
		background-color: rgba(7, 18, 53, 0.74);
		color: var(--color-text);
		font-size: 13px;
		line-height: 1.3;
		scroll-snap-align: center;
		text-shadow: 0 7px 22px rgba(0, 0, 0, 0.86), 0 1px 1px rgba(0, 0, 0, 0.9);
	}

	.zodiac-navigation {
		position: relative;
		z-index: 3;
		width: 100%;
		max-width: 100%;
		margin: 12px auto 0;
	}

	.zodiac-list {
		display: flex;
		gap: 18px;
		width: 100%;
		box-sizing: border-box;
		padding: 8px 4px 18px;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-padding-inline: 18px;
		scroll-snap-type: x mandatory;
		scrollbar-color: rgba(251, 250, 255, 0.48) rgba(251, 250, 255, 0.08);
		-webkit-overflow-scrolling: touch;
	}

	.zodiac-list::-webkit-scrollbar {
		height: 8px;
	}

	.zodiac-list::-webkit-scrollbar-track {
		border-radius: 999px;
		background: rgba(251, 250, 255, 0.08);
	}

	.zodiac-list::-webkit-scrollbar-thumb {
		border-radius: 999px;
		background: rgba(251, 250, 255, 0.48);
	}

	.zodiac-item {
		flex: 0 0 clamp(220px, 58vw, 320px);
		scroll-snap-align: center;
	}

	.zodiac.active {
		min-height: 162px;
		border-color: rgba(251, 250, 255, 0.82);
		background:
			linear-gradient(180deg, rgba(55, 82, 151, 0.82), rgba(9, 19, 52, 0.9));
		transform: none;
	}

	.zodiac.active::after {
		content: "";
		position: absolute;
		right: 22px;
		bottom: 10px;
		left: 22px;
		height: 3px;
		border-radius: 999px;
		background-color: var(--color-accent-strong);
		box-shadow: 0 0 18px rgba(215, 209, 255, 0.64);
	}

	.zodiac img {
		width: 56px;
		margin-bottom: 10px;
	}

	.zodiac-name {
		margin-top: 0;
		font-size: 14px;
	}

	.zodiac-dates {
		margin-top: 4px;
		font-size: 12px;
		color: #f0f2ff;
	}
}

@media (max-width: 380px) {
	body:not(.backend) .site-main {
		padding-right: 14px;
		padding-left: 14px;
	}

	.horoscope h1 {
		font-size: clamp(31px, 9vw, 36px);
	}

	.horoscope::before {
		inset: -28px -14px -30px;
	}

	.date-nav {
		font-size: 19px;
	}

	.horoscope-text {
		font-size: clamp(18px, 5.1vw, 20px);
	}

	.zodiac-item {
		flex-basis: clamp(210px, 74vw, 280px);
	}
}
