@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;400;500;900&display=swap');

:root {
	--fs-title: clamp(2rem, 4vw, 5rem);
	--fw-title: 900;
	--fs-countdown: clamp(4rem, min(22vw, 55vh), 25rem);
	--fs-countdown-label: clamp(0.7rem, 1.5vw, 2rem);
	--fs-info: clamp(1.5rem, 3vw, 4rem);
	--fs-info-title: clamp(1rem, 2vw, 2.5rem);
	--fw-info: 100;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* DEBUG */
	/* outline: 1px dashed rgb(205, 50, 50) !important;
				background: rgb(0 100 0 / 0.05) !important; */
}

html, body {
	height: 100%;
	overflow: hidden;
}

body {
	font-family: 'Roboto', sans-serif;
	color: rgba(255, 255, 255, 0.9);
}

main {
	height: 100%;
}

.disable-select {
	user-select: none;
	/* supported by Chrome and Opera */
	-webkit-user-select: none;
	/* Safari */
	-khtml-user-select: none;
	/* Konqueror HTML */
	-moz-user-select: none;
	/* Firefox */
	-ms-user-select: none;
	/* Internet Explorer/Edge */
}

.fs-lg {
	font-size: calc(1.5rem + 1.5vw) !important;
}

.fs-lg2 {
	font-size: calc(2rem + 1.5vw) !important;
}

.fs-xl {
	font-size: calc(10rem + 1.5vw) !important;
}

.fs-xxl {
	font-size: calc(12rem + 1.5vw) !important;
}

.bg-color-trans {
	background: linear-gradient(40deg, #c32283, #bd2828, #cf8517, #819c16, #36931f, #169c4c, #169c9c, #2e65b8, #4e2dd2, #8b29a3);
	background-size: 2000% 2000%;
	animation: bgColorWheel 60s ease infinite;
}

@keyframes bgColorWheel {
	0%   { background-position: 0% 96% }
	50%  { background-position: 100% 5% }
	100% { background-position: 0% 96% }
}

/* Sidebar Buttons */
.icons {
	position: absolute;
	color: rgba(255, 255, 255, 0.1);
	transition: 0.5s;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 9999;
}

.fullscreen {
	top: 25px;
	right: 25px;
}

.fullscreen:hover {
	color: rgba(255, 255, 255, 1);
}

.settings {
	top: 70px;
	right: 25px;
}

.settings:hover {
	color: rgba(255, 255, 255, 1);
}

.repeat {
	top: 120px;
	right: 25px;
}

.repeat:hover {
	color: rgba(255, 255, 255, 1);
}

.repeat.is-active {
	color: rgba(255, 255, 255, 0.85);
}

.play-pause {
	top: 168px;
	right: 25px;
}

.play-pause:hover {
	color: rgba(255, 255, 255, 1);
}

.info {
	bottom: 3px;
	right: 245px;
}

.info:hover {
	color: rgb(0, 68, 255);
}

/* Footer Styles */
.footer {
	display: block;
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1030;
	padding-bottom: 0.5rem;
	text-align: right;
}

.footer span {
	color: rgba(255, 255, 255, .5);
	font-size: 1rem;
	background: rgba(0, 0, 0, 0.5);
	padding: 1em;
	border-top-left-radius: 1rem;
}

.footer span .poweredby {
	color: rgba(255, 255, 255, .5);
	font-size: 1.1rem;
	font-weight: bold;
	text-decoration: none;
	background: rgba(255, 255, 255, 0);
	padding: 0;
}


/* MAIN Styles */
.container {
	display: flex;
	justify-content: space-around;
	flex-direction: column;
	gap: 5px;
	height: 100vh;
}

.title {
	font-size: var(--fs-title);
	font-weight: 500;
	text-align: center;
}

.countdown-group {
	display: flex;
	justify-content: center;
	transition: transform 0.5s ease;
}

.hours::after,
.minutes::after,
.seconds::after {
	position: absolute;
	bottom: 0;
	left: 0;
	font-size: var(--fs-countdown-label);
	font-weight: 400;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 1rem;
	width: 100%;
	text-align: center;
	letter-spacing: 10px;
}

.hours::after {
	content: 'hours';
}

.minutes::after {
	content: 'minutes';
}

.seconds::after {
	content: 'seconds';
}

.hours,
.minutes,
.seconds {
	font-size: var(--fs-countdown);
	font-weight: 900;
	line-height: 1;
	position: relative;
	padding-bottom: calc(var(--fs-countdown-label) + 0.4rem);
}

.hours,
.minutes {
	margin-right: 1.5rem;
}

.adjust-hours,
.adjust-minutes,
.adjust-seconds {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	font-size: 1.5rem;
	cursor: pointer;
	z-index: 9999;
}

.adjust-hours .tooltip .tooltiptext,
.adjust-minutes .tooltip .tooltiptext,
.adjust-seconds .tooltip .tooltiptext {
	background-color: rgba(0, 0, 0, 0.7);
	font-weight: 400;
}

.adjust-hours .tooltiptext,
.adjust-minutes .tooltiptext,
.adjust-seconds .tooltiptext {
	font-style: normal;
}

.adjust-hours .tooltiptext::after,
.adjust-minutes .tooltiptext::after,
.adjust-seconds .tooltiptext::after {
	border-color: transparent transparent transparent rgba(0, 0, 0, 0.7) !important;
}

.plus,
.minus {
	color: rgba(255, 255, 255, 0.5);
	transition: 0.5s;
}

.adjust-hours .plus,
.adjust-minutes .plus {
	position: absolute;
	right: -1rem;
	top: 35%;
	transform: translateY(-50%);
}

.adjust-hours .minus,
.adjust-minutes .minus {
	position: absolute;
	right: -1rem;
	top: 65%;
	transform: translateY(-50%);
}

.adjust-hours .plus:hover,
.adjust-hours .minus:hover,
.adjust-minutes .plus:hover,
.adjust-minutes .minus:hover {
	color: rgba(255, 255, 255, 1);
}

.info-group {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 5%;
}

.event-group {
	width: 30%;
}

.event-title {
	font-size: var(--fs-info-title);
	font-weight: var(--fw-title);
	text-align: right;
	text-transform: uppercase;
}

.event-name {
	font-size: var(--fs-info);
	font-weight: var(--fw-info);
	text-align: right;
}

.logo-group {
	align-items: center;
	width: 25%;
}

.logo {
	padding: 10px;
}

.logo img {
	width: 100%;
	height: 100%;
	max-width: 500px;
	object-fit: cover;
}

.speaker-group {
	position: relative;
	width: 30%;
}

.speaker-title {
	font-size: var(--fs-info-title);
	font-weight: var(--fw-title);
	text-align: left;
	text-transform: uppercase;
	position: relative;
	display: inline-block;
}

.speaker-name {
	font-size: var(--fs-info);
	font-weight: var(--fw-info);
	text-align: left;
}

.speaker-status {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(50%, -50%);
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	text-transform: uppercase;
	color: white;
	padding: 0.35em 0.65em;
	border-radius: 50rem;
	cursor: pointer;
}

.speaker-status.away {
	background-color: red;
}

.speaker-status.available {
	background-color: green;
}

/* Tooltip Left */
.tooltip .tooltiptext {
	visibility: hidden;
	width: 120px;
	background-color: rgba(0, 0, 0, 0.3);
	font-size: 1rem;
	color: #fff;
	text-align: center;
	border-radius: 6px;
	padding: 10px;
	position: absolute;
	z-index: 1;
	top: -6px;
	right: 150%;
	opacity: 0;
	transition: opacity 1s;
	width: max-content;
}

.tooltip .tooltiptext::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	margin-top: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent transparent rgba(0, 0, 0, 0.3);
}

.tooltip:hover .tooltiptext {
	visibility: visible;
	opacity: 1;
}

.shrink-countdown {
	transform: scale(0.6);
}

.end-message {
	font-size: 5rem;
	/* Adjust as needed */
	font-weight: bold;
	text-align: center;
	color: #fff;
	/* Matches existing theme */
}

/* Fade-in and grow animation for the end message */
.fade-in-grow {
	opacity: 0;
	transform: scale(0.5);
	animation: fadeInGrow 1s ease forwards;
}

@keyframes fadeInGrow {
	0% {
		opacity: 0;
		transform: scale(0.5);
	}

	100% {
		opacity: 1;
		transform: scale(1);
	}
}

#logoPreview {
	text-align: center;
}

/* === Info Modal === */
.info-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(0, 0, 0, 0.6);
	align-items: center;
	justify-content: center;
	padding: 1rem;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.info-modal-overlay.is-open {
	display: flex;
}

.info-modal-overlay.is-visible {
	opacity: 1;
}

.info-modal-dialog {
	background: rgba(15, 15, 25, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 1rem;
	backdrop-filter: blur(12px);
	color: rgba(255, 255, 255, 0.9);
	width: 100%;
	max-width: 480px;
	transform: translateY(-20px);
	transition: transform 0.2s ease;
	user-select: text;
}

.info-modal-overlay.is-visible .info-modal-dialog {
	transform: translateY(0);
}

.info-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-modal-title {
	font-size: 1.2rem;
	font-weight: 700;
}

.info-modal-title .bi {
	margin-right: 0.4rem;
	opacity: 0.75;
}

.info-modal-close {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 1rem;
	cursor: pointer;
	padding: 0.25rem 0.4rem;
	border-radius: 0.25rem;
	transition: color 0.15s;
	line-height: 1;
}

.info-modal-close:hover {
	color: rgba(255, 255, 255, 1);
}

.info-modal-body {
	padding: 1rem 1.5rem;
}

.info-modal-body p {
	margin-bottom: 0.65rem;
	font-size: 0.95rem;
	line-height: 1.5;
}

.info-modal-version {
	font-size: 0.75rem !important;
	opacity: 0.45;
	margin-bottom: 0.4rem !important;
}

.info-modal-divider {
	border: none;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	margin: 0.85rem 0;
}

.info-modal-section-title {
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.55;
	margin-bottom: 0.65rem !important;
}

.info-modal-shortcuts {
	width: 100%;
	border-collapse: collapse;
}

.info-modal-shortcuts td {
	padding: 0.3rem 0.5rem;
	vertical-align: middle;
	font-size: 0.9rem;
}

.info-modal-shortcuts td:first-child {
	white-space: nowrap;
	padding-right: 1.25rem;
}

kbd {
	display: inline-block;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 0.3rem;
	padding: 0.1rem 0.4rem;
	font-size: 0.78rem;
	font-family: monospace;
	color: rgba(255, 255, 255, 0.85);
}

.info-modal-footer {
	display: flex;
	justify-content: flex-end;
	padding: 0.75rem 1.5rem 1.1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-modal-footer a {
	color: rgba(255, 255, 255, 0.35);
	text-decoration: none;
	font-size: 0.82rem;
	transition: color 0.15s;
}

.info-modal-footer a:hover {
	color: rgba(255, 255, 255, 0.75);
}