/* ========================================
   CSS-VARIABLER - Ändra färger här
   ======================================== */
:root {
	--color-main: #7ac525; /* Huvudfärg */
	--color-border: #3aff3936; /* Border-färg */
	--color-dim: white; /* Sekundär/dämpad text */
	--color-bg: #0e1304; /* Bakgrund */
	--color-panel: #1a1a1a; /* Paneler/kort */
}

/* ========================================
   GRUNDLÄGGANDE STILAR
   ======================================== */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Share Tech Mono", monospace;
	background-color: var(--color-bg);
	color: var(--color-main);
	min-height: 100vh;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 2rem 0;
}

/* Scanline-effekt för retro-känsla */
body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0px, rgba(0, 0, 0, 0.1) 1px, transparent 1px, transparent 2px);
	z-index: 1000;
}

.container {
	text-align: center;
	padding: 2rem;
	position: relative;
	z-index: 1;
}

/* ========================================
   TITEL
   ======================================== */
.title {
	font-size: 2.5rem;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.3em;
	margin-bottom: 0.5rem;
	color: var(--color-main);
}

.subtitle {
	font-size: 20px;
	color: var(--color-dim);
	letter-spacing: 0.2em;
	margin-bottom: 1.5rem;
}

.subtitle code {
	background: var(--color-panel);
	padding: 10px;
	display: inline-block;
	border: 1px solid white;
	border-radius: 8px;
	text-transform: uppercase;
	font-size: 18px;
}

/* ========================================
   NEDRÄKNING
   ======================================== */
.section-label {
	font-size: 0.8rem;
	color: var(--color-dim);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

.countdown-wrapper {
	background: var(--color-panel);
	border: 2px solid var(--color-border);
	border-radius: 10px;
	padding: 1.5rem 2rem;
	margin-bottom: 1rem;
}

.countdown {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.5rem;
}

.time-block {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.time-label {
	font-size: 0.7rem;
	color: var(--color-dim);
	letter-spacing: 0.2em;
	margin-top: 0.5rem;
}

.separator {
	font-size: 3rem;
	color: var(--color-main);
	animation: blink 1s ease-in-out infinite;
	margin-bottom: 1.5rem;
}

@keyframes blink {
	0%,
	50% {
		opacity: 1;
	}
	51%,
	100% {
		opacity: 0.3;
	}
}

/* ========================================
   FLIP.JS STYLING - Grönt tema
   ======================================== */
.tick {
	font-family: "Share Tech Mono", monospace;
	font-size: 3.5rem;
	white-space: nowrap;
}

/* Flip-kort bakgrund och text */
.tick-flip {
	font-family: "Share Tech Mono", monospace;
}

.tick-flip-panel {
	background-color: var(--color-panel) !important;
	color: var(--color-main) !important;
	border-radius: 6px;
}

/* Övre och undre paneler */
.tick-flip-panel-front,
.tick-flip-panel-back {
	background: linear-gradient(180deg, var(--color-panel) 0%, #252525 50%, var(--color-panel) 50%, #1a1a1a 100%) !important;
}

/* Text på flip-korten */
.tick-flip-panel-text-wrapper {
	color: var(--color-main) !important;
}

.tick-flip-panel-text {
	color: var(--color-main) !important;
}

/* Linje i mitten av flip-kortet */
.tick-flip-panel::after {
	background-color: rgba(0, 0, 0, 0.4) !important;
}

/* Skugga under flip-korten */
.tick-flip-shadow {
	background: transparent !important;
}

/* Kant/ram runt varje siffra */
.tick-flip {
	border-radius: 6px;
	margin: 0 2px;
}

/* ========================================
   ARBETSDAGAR
   ======================================== */
.workdays-wrapper {
	margin-top: 1rem;
}

.workdays {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1.5rem 2rem;
	background: var(--color-panel);
	border: 1px solid var(--color-border);
	border-radius: 8px;
}

.workdays-label {
	font-size: 0.8rem;
	color: var(--color-dim);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.workdays-value {
	font-size: 2.5rem;
	font-weight: 400;
	color: var(--color-main);
}

/* ========================================
   SEMESTER
   ======================================== */
.vacation-wrapper {
	margin-top: 1rem;
}

.vacation {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	padding: 1rem 2rem;
}

.vacation-label {
	font-size: 0.8rem;
	color: var(--color-dim);
	letter-spacing: 0.15em;
	text-transform: uppercase;
}

.vacation-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 320px;
}

.vacation-btn {
	font-family: "Share Tech Mono", monospace;
	font-size: 1.5rem;
	width: 3rem;
	height: 3rem;
	background: var(--color-bg);
	color: var(--color-main);
	border: 2px solid var(--color-border);
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
@media screen and (max-width: 767px) {
	.vacation {
		padding: 0;
		margin-top: 60px;
	}
}

.vacation-btn:hover {
	background: var(--color-main);
	color: var(--color-bg);
}

.vacation-btn:active {
	transform: scale(0.95);
}

.vacation-btn-small {
	width: 2.2rem;
	height: 2.2rem;
	font-size: 1.2rem;
}

.vacation-value {
	font-size: 2rem;
	color: var(--color-main);
	min-width: 3rem;
	text-align: center;
}

.vacation-unit {
	font-size: 0.9rem;

	text-transform: uppercase;
}

.copy-btn {
	font-family: "Share Tech Mono", monospace;
	font-size: 0.8rem;
	padding: 0.5rem 1rem;
	margin-top: 0.5rem;
	background: transparent;
	color: white;
	border: 1px solid var(--color-border);
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	display: none;
}

.copy-btn.visible {
	display: block;
}

.copy-btn:hover {
	background: var(--color-main);
	color: var(--color-bg);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
	margin-top: 1rem;
	color: var(--color-dim);
	font-size: 0.8rem;
	letter-spacing: 0.3em;
}

/* ========================================
   RESPONSIV DESIGN
   ======================================== */
@media (max-width: 768px) {
	.container {
		padding: 1rem;
	}

	.title {
		font-size: 1.8rem;
		letter-spacing: 0.15em;
	}

	.subtitle {
		font-size: 14px;
		letter-spacing: 0.1em;
	}

	.subtitle code {
		font-size: 12px;
		padding: 6px;
	}

	.countdown-wrapper {
		padding: 1.5rem 1rem;
	}

	/* Vertikal layout på mobil */
	.countdown {
		flex-direction: column;
		gap: 1rem;
	}

	.time-block {
		flex-direction: row;
		gap: 1rem;
	}

	.time-label {
		font-size: 0.8rem;
		min-width: 5rem;
		text-align: left;
		margin-top: 0;
	}

	.separator {
		display: none;
	}

	.tick {
		font-size: 2.5rem;
	}

	.workdays-value {
		font-size: 2rem;
	}

	.vacation-controls {
		max-width: 100%;
	}

	.vacation-btn {
		width: 3.5rem;
		height: 3.5rem;
		font-size: 1.8rem;
	}

	.vacation-btn-small {
		width: 3rem;
		height: 3rem;
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.title {
		font-size: 1.4rem;
		letter-spacing: 0.1em;
	}

	.subtitle {
		font-size: 12px;
	}

	.subtitle code {
		font-size: 11px;
		padding: 5px;
	}

	.countdown-wrapper {
		padding: 1rem 0.8rem;
	}

	.countdown {
		gap: 0.8rem;
	}

	.time-block {
		gap: 0.8rem;
	}

	.tick {
		font-size: 2rem;
	}

	.time-label {
		font-size: 0.7rem;
		min-width: 4.5rem;
	}

	.workdays-value {
		font-size: 1.8rem;
	}

	.vacation-btn {
		width: 2.8rem;
		height: 2.8rem;
		font-size: 1.4rem;
	}

	.vacation-btn-small {
		width: 2.3rem;
		height: 2.3rem;
		font-size: 1.2rem;
	}

	.vacation-value {
		font-size: 1.4rem;
		min-width: 2rem;
	}
}

.tick-credits {
	display: none !important;
}
