:root {
	--bg-color: #f4f7f9;
	--text-color: #333;
	--icey-color-pink: #E8355F;
	--icey-color-yellow: #F3C453;
	--icey-color-green: #01b58e;
	--container-bg: #ffffff;
	--icey-standard-padding: 2rem;
	--icey-border_radius: 0.5rem;
}
* {
	box-sizing: border-box;
}
::selection {
	background-color: var(--icey-color-green);
	color: black;
}
::-moz-selection {
	background-color: var(--icey-color-green);
	color: black;
}
@property --angle {
	syntax: "<angle>";
	initial-value: 0turn;
	inherits: true;
}
@keyframes rotate {
	to {
		--angle: 1turn;
	}
}
html {
	font-size: 100%;
	padding: 0;
	margin: 0;
	min-height: 100%;
	background-color: #0c1016;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #132033;
    color: var(--text-color);
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}
.icey-bg-canvas {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
}
.icey-bg-canvas-overlay {
	content: "";
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 2;
	pointer-events: none;
}
.container {
	position: relative;
	width: 100%;
	max-width: 800px;
	z-index: 10;
	padding: 15vh var(--icey-standard-padding) 2rem var(--icey-standard-padding);
	pointer-events: none;
}
h1 {
	font-size: 2.5em;
	margin-top: 0;
	margin-bottom: 1.5rem;
	color: white;
	pointer-events: none;
	text-align: left;
}
p {
	color: #bbb;
	margin-bottom: 2rem;
	line-height: 1.5;
}
#view-create, #view-link, #view-reveal, #view-error{
	pointer-events: initial;
	text-align: justify;
    padding: 2rem;
    border-radius: var(--icey-border_radius);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}
.intro-preamble {
	color: white;
	font-size: 1rem;
	pointer-events: none;
}
.intro-preamble span {
	display: inline-block;
	padding-bottom: 0.3em;
	width: 100%;
	font-size: 1.2rem;
}
a {
	color: #067b62;
	text-underline-offset: 0.3em;
	text-decoration: underline 1.5px;
	transition: 0.3s ease-in;
}
a:hover {
	text-underline-offset: 0.5em;
}
u{
	text-underline-offset: 0.2em;
}
form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 2rem;
	width: 100%;
	align-items: flex-end;
}
textarea {
	width: 100%;
	min-height: 180px;
	background: rgba(255, 255, 255, 0.95);
	border: 6px solid var(--icey-color-green);
	border-radius: var(--icey-border_radius);
	padding: 1rem;
	font-family: inherit;
	font-size: 1.1rem;
	resize: vertical;
	transition: all 0.3s ease;
	box-shadow: 0 0 0 0px var(--icey-color-yellow);
	color: #333;
}
textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px var(--icey-color-yellow);
	border-color: var(--icey-color-yellow);
}
.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: #fff;
    pointer-events: none;
}
.form-actions {
	display: flex;
	justify-content: center;
	margin-top: 1rem;
}
.reveal-btn-wrapper{
	width: 100%;
	display: flex;
	justify-content: flex-end;
	padding-top: 1rem;
}
button[type="submit"],
#reveal-btn,
.flashy-button {
	position: relative;
	cursor: pointer;
	text-decoration: none;
	font: inherit;
	font-size: 1.1rem;
	color: black;
	padding: 0.8em 2.5em;
	border-radius: var(--icey-border_radius);
	border: 6px solid transparent;
	background: linear-gradient(transparent 0 0) padding-box,
		conic-gradient(from var(--angle), var(--icey-color-green), transparent, var(--icey-color-green)) border-box;
	animation: rotate 3s linear infinite;
	animation-play-state: paused;
	transition: 0.5s all ease;
	font-weight: 500;
}
button[type="submit"]:hover,
button[type="submit"]:focus-visible,
#reveal-btn:hover,
.flashy-button:hover {
	animation-play-state: running;
}
button[type="submit"]::before,
#reveal-btn::before,
.flashy-button::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #fff;
	border-radius: var(--icey-border_radius);
	z-index: 1;
	transition: 0.3s inset ease;
}
button[type="submit"]:hover::before,
button[type="submit"]:focus-visible::before,
#reveal-btn:hover::before,
#flashy-button:hover::before {
	inset: 4px;
}
button[type="submit"] span,
#reveal-btn span,
.flashy-button span {
	position: relative;
	z-index: 2;
}
button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}
.result-box {
    text-align: left;
}
.result-box h2 {
	margin-top: 0;
	margin-bottom: 1rem;
	color: #fff;
	font-weight: 500;
}
.result-box p {
	color: #fff;
}
.link-display {
	display: flex;
	gap: 0.5rem;
	margin: 1.5rem 0;
}
.link-display input[type="text"] {
	width: 100%;
	border: 2px solid #ddd;
	padding: 0.8rem;
	border-radius: var(--icey-border_radius);
	background: #f8f9fa;
	color: #333;
	font-family: monospace;
	font-size: 1rem;
}
.link-display input[type="text"]:focus {
	outline: none;
	border-color: var(--icey-color-green);
}
.btn-small {
	padding: 1rem 1.5rem;
	background: var(--icey-color-green);
	color: #000;
	border-radius: var(--icey-border_radius);
	cursor: pointer;
	font-weight: bold;
	font-size: 0.95rem;
	transition: all 0.3s;
	white-space: nowrap;
	border: none;
	text-decoration: none;
}
.btn-small:hover {
	background-color: var(--icey-color-yellow);
}
.small-info {
	font-size: 0.85rem;
	color: #888;
	margin-top: 0.5rem;
}
pre#decrypted-content {
	white-space: pre-wrap;
	word-break: break-all;
	background: #f4f4f4;
	padding: 1.5rem;
	border-radius: var(--icey-border_radius);
	font-size: 1.1rem;
	color: var(--text-color);
	margin: 0;
}
.error {
	color: var(--icey-color-pink);
}
.error-message {
    background-color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--icey-border_radius);
    color: var(--icey-color-pink);
    font-weight: 500;
    margin-top: 0;
    width: 100%;
    text-align: center;
}
.hidden {
	display: none !important;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
.icey_made_by, .icey_made_by:hover {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	color: #fff;
	text-decoration: none;
	font-size: 0.9rem;
	z-index: 3;
}
body.error-page {
	font-family: 'Courier New', Courier, monospace;
	overflow: hidden;
	align-items: center;
}
.container-error {
    border: 2px solid var(--icey-color-pink);
    box-shadow: 0 0 20px rgba(232, 53, 95, 0.2);
    background: rgba(255, 255, 255, 0.05);
    pointer-events: initial;
    text-align: justify;
    border-radius: var(--icey-border_radius);
    backdrop-filter: blur(5px);
    margin: 2rem var(--icey-standard-padding) 2rem var(--icey-standard-padding);
    width: auto;
}
.container-error h1 {
	color: var(--icey-color-pink);
	font-size: 3rem;
	text-transform: uppercase;
	letter-spacing: 2px;
}
.container-error p {
	color: #fff;
}
#view-error{
	display: flex;
	flex-direction: column;
	align-items: center;
}
#view-error h2{
	color: #fff;
	font-weight: 400;
	margin-top: 0;
}
.code-display {
	background: #000;
	padding: 1rem;
	border-radius: var(--icey-border_radius);
	margin-bottom: 2rem;
	color: var(--icey-color-green);
	font-size: 0.9rem;
	text-align: left;
	border: 1px solid #333;
}
.blinking-cursor {
	display: inline-block;
	width: 10px;
	height: 18px;
	background-color: var(--icey-color-green);
	animation: blink 1s step-end infinite;
	vertical-align: middle;
}
@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}
@media (max-width: 768px) {
	:root {
		--icey-standard-padding: 1rem;
	}
	h1 {
		font-size: 1.8rem;
	}
	.container {
		padding-top: 3rem;
	}
	.result-box {
		padding: 1.2rem;
	}
	.link-display {
		flex-direction: column;
	}
	.btn-small {
		padding: 0.8rem;
		width: 100%;
	}
}
/* ##### language */
html[lang="sv"] .lang.en {
    display: none !important;
}
html[lang="en"] .lang.sv {
    display: none !important;
}