/**  
To emulate the phone:
 - huawei mate 10 resolution: 360 x 640
**/


/* Overall dark background and light text */
body {
	background-color: #121212;
	color: #e0e0e0;
	font-family: sans-serif;
	margin: 0;
	padding: 0;
}

/* Header */
h1 {
	display: flex;
	text-align: center;
	padding-top: 1rem;
	color: #ffffff;
	margin: 0;
}

.top-bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #2196f3;
	color: white;
	padding-top: 1rem;
	padding-bottom: 1rem;
	font-family: sans-serif;
	z-index: 1000;
}

.back-button {
	padding-left: 1rem;
}

.back-button svg {
	height: 1.75rem;
	fill: none;
	stroke: white;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.title-container {
	display: flex;
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 90%;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 0.2rem;
	pointer-events: none; /* prevent it from covering buttons */
}

.workout-title {
	margin: 0;
	font-size: clamp(0.5rem, 4vw, 2rem);
	font-weight: bold;
	color: white;
	text-align: center;
	padding: 0;
}

.main-title {
	margin: 0;
	font-size: clamp(1.5rem, 8vw, 4rem);
	font-weight: bold;
	color: white;
	text-align: center;
	padding: 1rem;
}

.spacer-vertical {
	display: flex;
	margin: 1em;
}

.spacer-vertical-fill {
	display: flex;
	padding: 2rem;
}

.spacer-vertical-mid {
	display: flex;
	margin: 0.5em;
}

/* Full-screen overlay */
.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(10, 10, 10, 0.9); /* dark background with opacity */
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	transition: opacity 0.2s ease;
}

/* Hidden by default */
.hidden {
	display: none;
}

/* Centered content box */
.overlay-content {
	background-color: #333;
	padding: 1.5rem;
	border-radius: 0.25rem;
	z-index: 1001;
	flex-direction: column;
	font-size: clamp(0.8rem, 5.5vw, 2.5rem);
	margin: 1rem;
	border: 1px solid #444;
}

.overlay-content-row {
	display: flex;
	justify-content: center;
	align-items:self-start;
	padding: 1rem 0;
	font-size: clamp(0.8rem, 4vw, 2.5rem);
	font-weight: normal;
}

.overlay-content-button-row {
	display: flex;
	justify-content: right;
	padding-top: 1rem;
}

/* Welcome temporary informations */
.welcome-window {
	width: 100%;
	display: flex;
	flex-direction: column;
}

.welcome-content {
	display: flex;
	flex-direction: column;
	padding-top: 1rem;
}

.welcome-main-title {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1.2rem, 5.5vw, 2.5rem);
	color: #ddd;
	padding: 0.5rem 2rem 0.5rem 2rem;
}

.welcome-title-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: lighter;
	font-size: clamp(0.8rem, 5vw, 1.5rem);
	color: #ccc;
	background-color: #333;
	padding: 0.25rem 2.5rem 0.25rem 1.5rem;
	border-top: 1px solid #333;
	border-bottom: 1px solid #333;
}

.welcome-title-icon {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.welcome-title-icon svg {
	height: 24px;
	fill: #2196f3;
}

.welcome-content-text {
	display: flex;
	font-size: clamp(0.8rem, 4.5vw, 1.5rem);
	color: #ccc;
	padding: 1rem 0.5rem 1rem 0.5rem;
	background-color: #222;
	flex-direction: column;
	gap: 1rem;
}