/* Define CSS variables for the color scheme */
:root {
  --primary: #124170;
  --secondary: #67b6c0;
  --background: #a3ccf5;
  --text: #333;
  --highlight: #26667F;
  --error: #f8d7da;
  --section-bg: #ddebf4;
  --admin-section-bg: #67C090;
  --call-to-action-bg: #74e674;
}

html {
  font-size: 65%;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--primary);
  color: var(--text);
}

img {
  box-shadow: 0px 0px 5px #555;
  /* border-radius: 5px; */
}

.container {
  background: var(--background);
  border-radius: 10px;
  padding: 10px;
  width: 100%;
}

@media (min-width: 1400px) {
  .container {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
  }
}

.admin-heading,
.admin-description,
.admin-nav,
.admin-registrations,
.config-form,
.admin-image {
  margin: 20px auto;
  text-align: center;
}

.admin-heading {
  color: #444;
}

.admin-section {
  background: var(--admin-section-bg, floralwhite);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.admin-nav ul {
  list-style: none;
  padding: 0;
}

.admin-nav li {
  display: inline;
  margin: 0 10px;
}

.admin-nav a {
  text-decoration: none;
  font-weight: bold;
}

.admin-nav a:hover {
  text-decoration: underline;
}

.admin-registrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8em;
  max-height: 400px;
}

#registrationswrapper {
  width: 100%;
  overflow: auto;
  box-shadow: 0 0 1px black;
  border-radius: 5px;
}

.config-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 600px;
}

.config-form label {
  display: inline-block;
  width: 40%;
  text-align: left;
  padding-right: 10px;
}

.config-form input,
.config-form select {
  display: inline-block;
  width: 50%;
}

.config-form input.date-field {
  width: 50%;
}

.config-form button {
  background-color: var(--highlight);
  color: #fff;
}

.config-form button:hover {
  background-color: #0056b3;
}

.admin-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  gap: 25px;
}

.admin-image img {
  max-width: 100%;
  height: auto;
  border: 1px solid #ddd;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: center;
  padding: 2px;
  border: 1px solid #ddd;
}

.scrollable {
  overflow: auto;
}

.scrollable::-webkit-scrollbar {
  width: 12px;
}

.scrollable::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 10px;
}

.section {
  margin: 20px 0px;
  padding: 10px 30px;
  text-align: center;
  box-shadow: 0 0 3px;
  background: var(--section-bg);
}

.section-heading,
.section-description {
  margin-bottom: 1.2rem;
}

.showcase-img {
  position: relative;
  max-width: 80%;
  margin: 3rem auto -12rem;
}

div {
  border-style: dashed;
  border-width: 0px;
  border-color: black;
}

/* .top {
}

.heading {
} */

#title_image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.image {
  position: relative;
  margin-bottom: 20px;
}

#image_note {
  position: absolute;
  right: 5%;
  bottom: 1%;
  color: white;
  text-shadow: 0 0 10px BLACK;
  margin: 0;
  padding: 0;
  font-size: 2rem;
  white-space: nowrap;
}

#link_to_poster {
  position: absolute;
  left: 9%;
  top: 11%;
  -moz-transform: rotate(-10deg);
  /* Firefox 3.6 Firefox 4 */
  -webkit-transform: rotate(-10deg);
  /* Safari */
  -o-transform: rotate(-10deg);
  /* Opera */
  -ms-transform: rotate(-10deg);
  /* IE9 */
  transform: rotate(-10deg);
  /* W3C */
  text-shadow: 4px 4px 7px #000;
  padding: 6px;
}

#link_to_poster a {
  color: white;
}

.motto {
  color: #342d2d;
  /* font-style: italic; */
  font-family: 'Dancing Script', cursive;
  text-shadow: 1px 1px 3px #aaa;
  letter-spacing: 0.025em;
}

#remaining_slots {
  font-size: 1.2em;
}

.progress_bar {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  border-radius: 10px;
  color: white;
  text-align: center;
  font-size: smaller;
}

.progress_bar_outer {
  background: hsl(103, 44%, 48%);
  margin-bottom: 10px;
}

.progress_bar_inner {
  background: var(--highlight);
}

.progress_bar_rest {
  border-radius: 0;
}

#remaining_slots_number {
  font-weight: 900;
}

#turnierformBezeichnung {
  font-size: larger;
}

.navi {
  text-align: center;
}

.navigation {
  list-style-type: none;
  margin: 0px;
  overflow: hidden;
}

.navigation li {
  display: inline-block;
  margin-bottom: 0px;
  border-right: solid 2px #bfbfbf;
}

.navigation li:last-child {
  border-right: none;
}

.navigation a {
  padding: 10px;
  text-decoration: none;
}

.navigation a:hover {
  text-decoration: underline;
}

.navigation a:link {
  color: #000;
}

.navigation a:visited {
  color: #000;
}

.navigation a:active {
  text-decoration: underline;
}

.submitted {
  font-size: 1.5em;
}

#abschicken .loading {
  background: var(--highlight);
  color: white;
  background: white;
  cursor: not-allowed;
}

#infobox {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

#infotext {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  padding-left: 5vw;
}

.bulletlist {
  margin: 20px 0px;
  font-size: 1.2em;
}

#infobox img {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.callToAction {
  /* font-size: 30px; */
  font-weight: bold;
  text-align: center;
  box-shadow: 0px 0px 8px;
  background: var(--call-to-action-bg, #74e674);
}

#cancel_notice {
  font-style: italic;
  /* font-size: 16px; */
  background: hsl(43, 100%, 50%);
  background: -webkit-linear-gradient(left top, hsla(43, 100%, 50%, 1), hsla(43, 100%, 50%, 1));
  background: -o-linear-gradient(bottom right, hsl(43, 100%, 50%), hsl(43, 100%, 75%));
  background: -moz-linear-gradient(bottom right, hsl(43, 100%, 50%), hsl(43, 100%, 75%));
  background: linear-gradient(to bottom left, hsl(43, 100%, 50%), hsl(43, 100%, 75%));
  padding: 10px;
  box-shadow: 0px 0px 10px black;
}

.notice {
  /* font-style: italic; */
  /* font-size: 16px; */
  background: hsl(43, 100%, 50%);
  background: -webkit-linear-gradient(left top, hsla(43, 100%, 50%, 1), hsla(43, 100%, 50%, 1));
  background: -o-linear-gradient(bottom right, hsl(43, 100%, 50%), hsl(43, 100%, 75%));
  background: -moz-linear-gradient(bottom right, hsl(43, 100%, 50%), hsl(43, 100%, 75%));
  background: linear-gradient(to bottom left, hsl(43, 100%, 50%), hsl(43, 100%, 75%));
  padding: 10px;
  box-shadow: 0px 0px 10px black;
}

.notice.error {
  background-color: var(--error);
  color: #721c24;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.waiting_list_notice {
  text-align: center;
  max-width: 300px;
  margin: 10px auto;
  padding: 2px;
  background: linear-gradient(to bottom, hsl(36, 80%, 75%), hsl(36, 70%, 75%));
  box-shadow: black 0px 0px 3px;
}

.waiting_list_explanation {
  font-size: 1em;
  margin: 20px;
  text-align: left;
}

#team_pre_registration_form {
  margin-top: 8px;
  text-align: left;
}

.explanation {
  text-align: left;
  margin-left: 20px;
  margin-right: 20px;
}

.eingabebereich {
  margin-top: 4px;
  padding: 8px 12px;
}

/* #note_field {
} */

/* #abschicken {
  /* color: #FFFFaa;
  font-weight: bold;
  margin-top: 4px;
  width: 100%;
  background: blue;
} */

/* .required {
  border-color: red;
} */

.registrations div {
  max-height: 500px;
}

.tableFixHead {
  overflow-y: auto;
  /* make the table scrollable if height is more than 200 px  */
}

.tableFixHead thead th {
  position: sticky;
  /* make the table heads sticky */
  top: 0px;
  /* table head will be placed from the top of the table and sticks to it */
  /* border: #00000055 1px solid; */
  border-collapse: unset;
  background: #eaf3d8;
}

.registration_table_team_code {
  padding: 5px 10px 5px 10px;
}

.actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  /* width: 100px; */
}

.actions * {
  padding: 0;
  margin:0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.actions button {
  box-sizing: border-box;
  padding: 0;
  flex-basis: 20px;
  line-height: 10px;
  overflow: hidden;
}

.delete {
  background-color: #f5c6cb;
}

.edit {
  background-color: #ffeeba;
}

.move {
  background-color: #c3e6cb;
}

.registered {
  background-color: #c3e6cb88;
}

.replacement {
  background-color: #f5c6cb;
}

.new-row-highlight {
    background: #47cf47;
    font-weight: bold;
}

.optional {
  border-color: #FFFFaa;
}

.verticallyCentered {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontallyCentered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img_winner {
  max-width: 250px;
  max-height: 200px;
  width: auto;
}

.img_winner_large {
  max-width: 100%;
  max-height: 600px;
  width: auto;
}

#detailed_description {
  margin: 2em;
  text-align: justify;
  font-size: 18px;
  line-height: 1.5;
  color: #333;
  background: hsl(35 80% 85%);
  padding: 1em;
  border: 1px solid;
  box-shadow: black 0 0 3px;
}

#turnierbeschreibung {
  text-align: left;
}

#impressum {
  text-align: left;
}

#faq {
  text-align: left;
}

.footer {
  background-image: url(../images/floor_with_boules.jpg);
}

#displayUserCount p {
  /* border-radius: 20px; */
  background-color: var(--background);
  margin: 10px;
  padding: 10px;
}

.rot {
  color: #d96666;
}

.gruen {
  color: #74e674;
}

.blau {
  color: blue;
}

.back-btn {
  background-color: white;
  color: green;
  border: 2px solid green;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

.delete-form,
.move-form {
  margin: 0;
}

.delete-button,
.edit-button,
.move-button {
  margin: 0;
  background: none;
  border: none;
  /* font-size: 1.5em; */
  cursor: pointer;
}

.delete-button {
  background-color: red;
}

.delete-button:hover {
  /* background-color: darkred; */
  color: #eee;
}

.move-button {
  background-color: blue;
}

.extended-summary {
  padding: 20px;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.extended-summary .summary-header {
  text-align: center;
  margin-bottom: 20px;
}

.extended-summary .summary-header h2 {
  font-size: 2rem;
  color: #333;
}

.extended-summary .summary-header h3 {
  font-size: 1.5rem;
  color: #555;
}

.extended-summary .summary-content {
  line-height: 1.6;
  color: #444;
  max-width: 450px;
  text-align: justify;
}

.extended-summary .summary-content h4 {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 10px;
  text-align: center;

}

.extended-summary .summary-content p {
  margin-bottom: 15px;
}

.extended-summary .summary-image {
  text-align: center;
  margin: 20px 0;
}

.extended-summary .summary-image img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.admin-logs {
  margin: 20px auto;
  text-align: center;
  max-width: 600px;
}

.logs-textarea {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.9em;
  background-color: #f9f9f9;
  color: #333;
  overflow-y: scroll;
  resize: none;
}

.logs-textarea::-webkit-scrollbar {
  width: 10px;
}

.logs-textarea::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 5px;
}

.logs-textarea::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}


.user-info {
  width: 350px;
  top: 0;
  right: 0;
  padding: 10px;
  z-index: 2;
  text-align: right;
  justify-self: flex-end;
}

.submission-result {
  visibility: hidden;
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  font-size: 1em;
  text-align: center;
  background-color: var(--section-bg);
  color: var(--text);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.submission-result.error {
  visibility: visible;
  background-color: var(--error);
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.submission-result.success {
  visibility: visible;
  background-color: var(--call-to-action-bg);
  color: #155724;
  border: 1px solid #c3e6cb;
}