/* Selectors:
  # = specific element identified by 'id'
	. = all elements with a certain 'class'
	  = standard html elements
	.container #header = specific element id="header" inside an class="container"
	div.button = div elements, which also have class="button"
*/

body {
	font-family: Arial, sans-serif;
	margin: 20px;
}

.page {
	display: none;
}
.active {
	display: block;
}

.page-indicators {
	display: flex;
	justify-content: center;
	margin: 5px 0;
}

.indicator {
	width: 120px;
	height: 5px;
	margin: 0 5px;
	background-color: transparent;
	border: 1px solid rgba(0, 170, 255, 0.2);
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.indicator.active {
	background-color: rgba(0, 170, 255, 0.2);
}

.header-status {
	font-size: 0.6rem;
	color: #aaa;
}

.header-container {
	display: flex;
	align-items: center; /* centers SVG vertical to text */
	position: relative; /* Needed to position the fullscreen icon */
  padding-right: 40px; /* Padding to accommodate the fullscreen icon */
}

#p0-bluetooth-icon {
	width: 24px;
	height: 48px;
	cursor: pointer;
	margin-left: 10px
}

#p0-fullscreen-icon {
	width: 24px;
	height: 24px;
	cursor: pointer;
	position: absolute;
	right: 1px;
	top: 50%;
	transform: translateY(-50%);
}

#p0-user-select {
	width: 60px;
	position: absolute;
	right: 35px;
}

#p1-workoutSelect {
	width: 200px;
}

#p2-file-select {
	margin-bottom: 10px;
}

select {
	-webkit-appearance: none; /* remove native styling */
	-moz-appearance: none;
	appearance: none;
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	padding: 6px;
	border-radius: 3px;
	color: #333;
	touch-action: manipulation;
}

select:focus {
	border-color: #007BFF;
	outline: none;
}

.select-wrapper {
	position: relative;
	display: inline-block;
	width: 100%;
}

.select-wrapper::after {
	content: '\25BC'; /* arrow symbol */
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #333;
}

input[type="date"] {
	appearance: none; /* remove native styling */
	-webkit-appearance: none;
	-moz-appearance: none;

	font-family: Arial, sans-serif; 
	font-size: 1rm; 
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 3px;
	background-color: #f0f0f0;
	color: #333;
	outline: none; 
	width: 100px;
}

input[type="date"]:focus {
	border-color: #66afe9; 
	box-shadow: 0 0 5px rgba(102, 175, 233, 0.5); 
}

h1 {
	margin: 0;
}

h2 {
	margin-top: 0;
	font-size: 1.2rem;
	color: #555;
}

button {
	margin: 5px;
	padding: 5px;
	font-size: 1rm;
	cursor: pointer;
}

textarea {
	width: 97%;
	height: 300px;
	font-family: monospace;
	margin-top: 20px;
}

textarea.invalid {
	border-color: red;
	background-color: #fee;
}

.data-white {
	margin: auto;
	padding: 0px;
	max-width: 400px;
}

.data-whiteXL {
	margin: auto;
	padding: 0px;
	max-width: 600px;
}

.data {
	margin: auto;
	margin-top: 10px;
	padding: 5px;
	border: 1px solid #ccc;
	border-radius: 10px;
	background-color: #f9f9f9;
	max-width: 400px;
}

.data-subelement {
	margin-top: 5px;
	padding-top: 5px;
	border-top: 1px solid #ccc;

	display: flex;
	justify-content: space-between; /* Verteilt den Text und die Buttons */
	align-items: center; /* Vertikal zentriert den Text und die Buttons */
	width: 100%; /* Nimmt die volle Breite des Containers ein */
}

.data-buttongroup {
	display: flex;
	gap: 10px; /* Abstand zwischen den Buttons */
}

.data-row {
	display: grid;
	grid-template-columns: 3fr 2fr 1fr; /* 3 colums, 1st gets 3 of 6 fractions, 2nd gets 2 fractions, 3rd gets 1 fraction */
	align-items: center; /* vertical alignment in the middle */
	gap: 10px; /* gap between columns */
	padding: 5px 0;
	font-size: 0.9rem;
}

.data-label {
	grid-column: 1; /* 1st column */
	font-weight: bold;
	color: #333;
	text-align: left;
}

.data-value {
	grid-column: 2; /* 2nd column */
	font-weight: bold;
	color: #007BFF;
	text-align: right;
}

.data-unit {
	grid-column: 3; /* 3rd column */
	font-weight: normal;
	color: #333;
	text-align: left;
}

.workoutDescription {
	font-size: 0.8rem;
	text-align: center;
	color: #aaa;
}

.syncButton-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr; /* 5 equal colums */
	align-items: center; /* vertical alignment in the middle */
	gap: 10px; /* gap between columns */
	padding: 5px 0;
}