/* styles.css */
body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.6;
	background-color: #f5f5f5;
}

/* Table styles */
table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
}

table, th, td {
	border: 1px solid #333;
}

th, td {
	padding: 0.5rem;
}

th {
	background-color: #34a5eb;
	color: #fff;
}

/* Reset some default styles */
body, h2, h3, p, table {
	margin: 0;
	padding: 0;
}

.hidden {
	display: none;
}

.login-container {
	position: relative;
    text-align: center;
    border: 1px solid #ccc;
    padding: 20px;
    max-width: 400px;
    width: 100%;
	left: 35%;
}

#link_to_own_times {
	position: relative;
}

button {
	background-color: #007bff;
	color: #fff;
	padding: 10px 15px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container label,
.login-container input[type="text"],
.login-container input[type="password"] {
    display: block;
    margin-bottom: 10px;
	/* margin-left: 10px; */
	text-align: center; 
}

.login-container input[type="submit"] {
    background-color: #34a5eb;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.login-container img {
    max-width: 350px;
    margin-bottom: 20px;
}

/* Header styles */
header {
	background-color: #333;
	color: #fff;
	padding: 1rem;
	position: absolute;
	top: 0;
	width: 100%;
	height: 14%;
}

#back_to_own_times {
	display: inline-block;
	width: 13rem;
}

#admin_button {
	position: relative;
	float: left;
	margin-left: 10%;
}

#user_tox_button {
	position: relative;
	float: left;
	margin-left: 10%;
}

/* Container styles */
#container {
	position: absolute;
	width: 100%;
	height: 95%;
	top: 20%;
}

.container_element {
	margin-left: 5%;
	margin-top: 1%;
	margin-bottom: 1%;
}

h2 {
	margin-bottom: 1rem;
}

.error {
	font-size: 20pt;
	color: #CC0000;
}

.missing_error {
	background: #CC0000!important;
}

/* Logout button styles */
.logout-button {
	background-color: #f44336;
	color: #fff;
	border: none;
	padding: 0.5rem 1rem;
	font-size: 16px;
	cursor: pointer;
}

/* Super admin message styles */
.super-admin-message {
	background-color: #4CAF50;
	color: #fff;
	padding: 1rem;
}

/* Form styles */
form {
	margin-bottom: 1rem;
}

form label {
	font-weight: bold;
}

form select, form input[type="submit"] {
	margin-bottom: 1rem;
}

/* Table for Login and Logout rows */
.login-logout-table {
	margin-bottom: 2rem;
}

.login-logout-table th {
	background-color: #007bff;
	color: #fff;
}

.login-logout-table td {
	text-align: center;
	padding: 0.5rem;
}

.login-logout-table td:nth-child(2) {
	background-color: #4CAF50;
	color: #fff;
}

.login-logout-table td:nth-child(3) {
	background-color: #f44336;
	color: #fff;
}

@keyframes blink {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}

.blinking {
	animation: blink 1s infinite;
	background-color: red;
	color: white; /* text color, white works good for red background it seems */
}

#ma_times_div {
	display: block;
}

.bold {
	font-size: 20pt;
	font-weight: bold;
}

.ma_select {
	position: relative;
	width: 80%;
	height: 3rem;
}

.ma_select_single {
	position: relative;
	width: 15rem;
	height: 3rem;
}

.ma_times_admin {
	padding: 1rem;
}

.scan_row {
	display: none;
}

.error_row {
	background-color: #a40000;
}

#log_times_table {
	position: relative;
	width: 90%;
	left: 5%;
}

.row {

}

.rowday_1 {
	background: #90EE90;
}

.rowday_2 {
	background: #ADD8E6;
}

.warning {
	background: #ba8b00;
}

#welcome_message {
	position: relative;
	text-align: center;
	color: #FFF;
}

#logout_button {
	position: relative;
	left: -0.2rem;
}

#link_to_own_times {
	position: relative;
	left: 1.5%;
	top: -10%;
}

.admin_link {
	position: relative;
	left: 15%;
	margin-left: 2%;
	top: -10%;
}

#download {
	position: relative;
	left: 5%;
}

.popup_headline {
	position: absolute;
	top: 10px;
}

.limit_yellow {
	background-color: #fcc10a;
}

.limit_red {
	background-color: #a40000;
}

.blink {
	animation-name: animation_blink;
	animation-timing-function: ease-in;
	animation-duration: 2s;
	animation-iteration-count: infinite;
}

@keyframes animation_blink {
	0% { opacity: 1; font-size: 1.2rem;}
	50% { opacity: 0.4; font-size: 1.2rem;}
	100% { opacity: 1; font-size: 1.2rem;}
}

.day_type_free {
	background-color: #93491e;
}

.day_type_work {
	background-color: #4a6e2a;
}

.day_type_absence {
	background-color: #267e87;
}

#disable_text {
	display: none;
	position: relative;
	top: -42px;
	left: 267px;
	background: yellow;
	width: 250px;
}

.table_user_absences {
	position: relative;
	max-width: 65rem;
}

.table_user_absences tr, td {
	text-align: center;
}

.table_user_absences .fixed_width {
	width: 2rem;
}

#user_absence_tables {
	position: relative;
	margin-left: 7rem;
	margin-bottom: 1rem;
}

#laws_link {
	position: absolute;
	top: 1.25rem;
	right: 5rem;
}
#agreements_link {
	position: absolute;
	top: 4.25rem;
	right: 5rem
}


#law-list {
	margin-left: 1rem;
}

#times_top_right {
	display: none;
	float: right;
	position: relative;
	margin-right: 6rem;
	margin-top: -10rem;
	width: 20rem;
	height: 20rem;
}

.remove_icon {
	width: 12px;
}
