form {
  width: 600px;
  margin: 0 auto; /* Center the form horizontally */
}

/* Specific styles for forms that are not welcome-form */
form:not(#welcome-form) {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form:not(#welcome-form) div {
  margin-bottom: 20px;
  text-align: center; /* Center-align the text and checkbox */
}

form:not(#welcome-form) button {
  display: block;
  margin: 0 auto; /* Center the button */
  width: 100%;
  padding: 12px;
  background-color: #05009c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

form:not(#welcome-form) button:hover {
  background-color: #0500d1;
}

.entity-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.entity {
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
  border: 3px solid transparent;
  padding: 10px;
  border-radius: 10px;
}

.entity:hover, .entity.active {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.entity.active {
  border: 3px solid #05009c;
}

.entity p {
  font-size: 18px; /* Slightly larger font size */
  font-weight: bold; /* Make the text bold */
  color: #333; /* Dark gray for better readability */
  margin-top: 10px; /* Add spacing above the text */
  transition: color 0.3s ease; /* Smooth color transition on hover */
}

.entity:hover p {
  color: #007bff; /* Change text color on hover */
}

.entity img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.entity img:hover {
  transform: scale(1.15);
}

#entity-description {
  margin-top: 20px;
  padding: 20px;
  background-color: #f9f9f9; /* Světle šedé pozadí */
  border: 1px solid #ddd; /* Světlý rámeček */
  border-radius: 8px; /* Zaoblené rohy */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Jemný stín */
  font-size: 16px;
  font-family: Arial, sans-serif;
  color: #333; /* Tmavě šedý text */
  text-align: center; /* Zarovnání textu na střed */
  max-width: 800px; /* Maximální šířka */
  margin-left: auto; /* Horizontální centrování */
  margin-right: auto;
}



#entity-table-container {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping if there are too many tables */
  gap: 20px; /* Add spacing between tables */
  justify-content: center; /* Center the tables horizontally */
  align-items: flex-start; /* Align tables at the top */
  margin: 0 auto; /* Center the container itself */
}

#entity-table-container table {
  width: auto; /* Prevent tables from stretching to full width */
  max-width: 400px; /* Optional: Set a maximum width for each table */
  flex: 0 0 auto; /* Ensure tables keep their natural size */
}

.entity-heading {
  text-align: center; /* Center-align the text */
  font-size: 18px; /* Adjust font size if needed */
  font-weight: bold; /* Make the text bold */
  margin-bottom: 10px; /* Add spacing below the heading */
}

#entity-table th, #entity-table td {
  text-align: center; /* Center-align the text horizontally */
  vertical-align: middle; /* Center-align the text vertically */
}

.table-wrapper {
  /*display: flex;*/
  justify-content: center;
  align-items: center;

}
/*
.table-content {
  max-width: 600px;
  width: 100%;
}*/

a.camb-id-link {
  font-weight: bold;
  text-decoration: none;
  color: #007bff; /* Default link color */
}

a.camb-id-link:hover {
  color: #0056b3; /* Darker color on hover */
}

/* GPS link styles */
.gps-link {
  color: #05009c;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.gps-link:hover {
  color: #0500d1;
  text-decoration: underline;
}

.gps-link i {
  margin-left: 5px;
  font-size: 14px;
}

/* Welcome container and form styles */
.welcome-container {
  max-width: 800px;
  margin: 20px auto 30px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#welcome-form {
  padding: 20px 25px;
}

/* Welcome text styles */
.welcome-text {
  margin-bottom: 25px;
  line-height: 1.6;
  color: #333;
  text-align: justify;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 20px;
}

.welcome-text h2, .welcome-text h3, .welcome-text h4 {
  color: #05009c;
  margin-top: 15px;
  margin-bottom: 10px;
}

.welcome-text p {
  margin-bottom: 15px;
}

.welcome-text ul, .welcome-text ol {
  margin-bottom: 15px;
  padding-left: 20px;
}

.welcome-text a {
  color: #05009c;
  text-decoration: none;
}

.welcome-text a:hover {
  text-decoration: underline;
}

/* Agreement section styles */
.agreement-section {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.agreement-section input[type="checkbox"] {
  margin-right: 10px;
}

#continue-btn {
  background-color: #05009c;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

#continue-btn:hover:not(:disabled) {
  background-color: #0500d1;
}

#continue-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}