.main-content {
  max-width: 1120px;
  margin: auto;
  padding-bottom: 2rem;
}

label {
  width: 250px;
  display: inline-block;
  margin-top: 1.5rem;
}

#loginForm {
  max-width: 600px;
}

input[type="submit"],
input[type="button"],
button {
  background-color: #8C2D82;
  color: #fff;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 15px;
  margin-top: 2rem;
  margin-right: 5px;
  margin-left: auto; 
  margin-right: 0;
  padding: 10px;
  display: inline-block;
  font-size: 16px;
}

.buttons {
  display: flex;
  justify-content: flex-end;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="email"],
select,
input[type="file"],
textarea {
  width: 250px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  margin-top: 1.5rem;
  border-radius: 5px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
}

textarea {
  width: calc(100% - 22px);
  height: 80px;
  resize: none;
}

textarea.partwidth {
  width: 80%;
  height: 200px;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 2em;
}

th {
  min-width: 100px;
  text-align: left;
}

table.pruefungsplan {
  width: 100%;
  border-collapse: collapse;
}

table.pruefungsplan td {
  border: 1px solid black;
  padding: 10px;
}

table.pruefungsplan th {
  text-align: center;
  background-color: #b0b0b0;
}

table.pruefungsplan td.first {
  text-align: center;
  background-color: #e0e0e0;
  font-weight: bold;
}

#userAnswer {
  border: 1px solid black;
  height: 200px;
}

#vote-buttons {
  display: inline-block;
  background-color: #000066;
  border-radius: 15px;
}

#vote-buttons button {
  background-color: transparent;
  margin-right: 0px;
  margin-bottom: 0px;
  padding: 0.5rem;
}

button.voted,
button.not-voted {
  margin: 0px;
  border-radius: 50px;
  padding: 15px;
}

button.voted {
  background-color: #000066;
}

button.voted:hover {
  background-color: #873e23;
}

button.not-voted {
  background-color: #000066;
}

button.not-voted:hover {
  background-color: #873e23;
}

button.accept-button {
  background-color: white;
  color: lightgray;
  font-size: 1.8em;
  border-radius: 50px;
}

button.accept-button:hover {
  background-color: #3ec964;
  color: black;
  border-radius: 50px;
}

button.voted {
  background-color: darkgreen;
}

span.accepted {
  color: #3ec964;
  font-size: 1.8em;
}

td.voteColumn {
  text-align: center;
  width: 30px;
  font-weight: bold;
}

td.voteColumn p {
  margin: 0px;
  font-size: 1.5em;
}

#questions label {
  vertical-align: top;
}

.questions th,
.questions td {
  border: none;
  border-bottom: 1px solid #ccc;
}

#similarQuestionsBlock {
  display: none;
  border: 1px solid #ccc;
  margin-top: 1rem;
}

#similarQuestionsBlock h3 {
  margin: 0;
}

#similarQuestionsBlock h5 {
  font-size: 1.2em;
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
  max-width: 100%;
}

#similarQuestionsBlock ul {
  list-style-type: none;
  margin-block-start: 0;
  margin-block-end: 0;
  padding-inline-start: 0;
  display: block;
  width: 100%;
  max-height: 200px;
  overflow: scroll;
}

#similarQuestionsBlock li {
  padding: 0.5rem;
  border-bottom: 1px solid #ccc;
  width: calc(100% - 1rem);
}

#similarQuestionsBlock p {
  margin-block-start: 0;
  margin-block-end: 0;
  max-width: 100%;
}

#errorsTable .errorMsg {
  max-width: 200px;
}

#errorsTable .errorStackTrace {
  max-width: 400px;
}

#errorsTable .errorStackTrace #text {
  max-width: 400px;
}

.left-right {
  margin-top: 1.5rem;
  vertical-align: baseline;
  display: flex;
  justify-content: space-between;
}

.left-right strong {
  min-width: 250px;
}

.left-right .detail-value {
  flex-grow: 1;
}

.user-details input, .user-details select {
  margin: 0;
}

#message {
  border: 1px solid black;
  border-radius: 15px;
  padding: 10px;
  background-color: lightyellow;
}

.tile {
  background-color: #8C2D82;
  color: white;
  border-radius: 5px;
  padding: 20px;
  margin: 10px;
  cursor: pointer;
  text-align: center;
  flex-basis: 30%;
}

.tiles-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.container {
  width: 1200px;
}

.info-box {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #e0e0e0;
  color: #555;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  display: none;
}

.info-icon {
  font-size: 1.5em;
  margin-right: 10px;
  border: 1px solid black;
  border-radius: 50px;
  background-color: white;
  padding: 10px;
  display: none;
}

.info-box p {
  display: inline;
}

.help-icon {
  cursor: pointer;
  font-size: 0.5em;
  color: #4CAF50;
  margin-left: 10px;
  border: 1px solid black;
  border-radius: 50px;
  padding: 10px;
  vertical-align: super;
}

#exam-viewing form {
  display: flex;
  flex-direction: column;
}

#exam-viewing .form-group {
  margin-bottom: 15px;
}

#exam-viewing #confirm {
  width: auto;
}

#exam-viewing input[type="text"],
#exam-viewing textarea {
  padding: 10px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 5px;
}

#exam-viewing .hint {
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
}

#exam-viewing a {
  color: #4CAF50;
  text-decoration: none;
}

#exam-viewing a:hover {
  text-decoration: underline;
}

#exam-viewing .exam .form-group {
  display: flex;
}

#exam-viewing .exam .form-group input {
  margin-right: 10px;
  flex: 1;
}

#exam-viewing .exam .form-group input:last-child {
  margin-right: 0;
}

.data-block p {
  background-color: #ccc;
  padding: 0.5rem;
  border-radius: 4px;
  margin: 0;
  color: #222;
}

/* Tabellen-Stile */
.exam-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
  
.exam-table th,
.exam-table td {
  padding: 0.75rem;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: top;
}
  
.exam-table thead {
  background-color: #f2f2f2;
}

.exam-table input, .exam-table select {
  width: auto;
  margin: 0;
}

.wide-label {
  width: auto;
}

.required::after {
  color: red;
  content: " *";
}

.exam-table .registered {
  background-color: #d3d3d3;
}

.exam-table .exam-row.excluded {
  background-color: #f0f0f0;
}

.add-row-btn {
  margin: 0;
}