* {
  font-family: 'Arial';
  text-align: center;
  box-sizing: border-box;
}

:root {
  --background: #fdfdfc;
  --header-background: #47c2a7;
  --warning-card-background: #f1a9c1;
  --card-background: #f8f7d0;
  --button-background: #47c2a7;
  --button-background-hover: #b2d6c4;
  --statistic-content: #777777;
  --table-header-background: #47c2a7;
  --table-body-odd-background: #fdfdfc;
  --table-body-even-background: #b2d6c4;
}

body {
  margin-top: 5rem;
  background-color: var(--background);
}

.main-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--header-background);
  padding: 0.5rem 1rem;
  z-index: 60;
  display: grid;
  grid-template-columns:
    [column-1-start] 15%
    [column-1-end column-2-start] auto
    [column-2-end column-3-start] 15%
    [column-3-end];
  grid-template-areas: "menu title placeholder";
  align-items: center;
}

.main-header-title {
  grid-area: title;
}

.main-header-title-text {
  font-size: 1.7rem;
}

.main-header-subtitle-text {
  font-size: 0.7rem;
}

.main-header-avatar {
  height: 2.5rem;
}

.main-warning-card {
  border: 2px solid black;
  color: red;
  background-color: var(--warning-card-background);
}

.main-warning-card a {
  text-decoration: none;
  color: blue;
  background-color: var(--warning-card-background);
}

.main-warning-card a:hover,
.main-warning-card a:active {
  color: white;
}

.error-message {
  color: red;
}

#login-error {
  color: red;
}

.mandatory-asterisk {
  color: red;
  font-size: 140%;
}

.registration-error {
  color: red;
}
.main-header-menu{
  grid-area: menu;
  justify-content: center;
}

.toggle-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
}

.toggle-button:hover,
.toggle-button:active {
  color: white;
}

.toggle-button:focus {
  outline: none;
}

.toggle-button__bar {
  width: 100%;
  height: 0.2rem;
  background: black;
  display: block;
  margin: 0.6rem 0;
}

.mobile-nav {
  transform: translateX(-100%);
  position: fixed;
  z-index: 101;
  top: 0;
  left: 0;
  background-color: var(--background);
  width: 65%;
  height: 100vh;
  transition: transform 300ms ease-out;
}

@media (min-width: 40rem) {
  .mobile-nav {
    width: 40%;
  }
}

.mobile-nav-full-width-link-container {
  padding: 0.3em 0;
}

.mobile-nav-full-width-link-container:hover,
.mobile-nav-full-width-link-container:active {
  background-color: var(--header-background);
  color: white;
}

.mobile-nav-full-width-link {
  text-decoration: none;
  color: var(--header-background);
  font-size: 1.3rem;
}

.mobile-nav-full-width-link:hover,
.mobile-nav-full-width-link:active {
  text-decoration: none;
  color: white;
}

.backdrop {
  display: none;
  position: fixed;
  opacity: 0;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.2s linear;
}

.open {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.input-button {
  background-color: var(--button-background);
  font-size: 1rem;
  padding: 0.2rem 0.8rem;
  border-radius: 0.5rem;
  margin: 0.3rem 0;
}

.not-displayed {
  display: none;
}

input[type="file"]::file-selector-button {
  background-color: var(--button-background);
  font-size: 1rem;
  padding: 0.1rem 0.4rem;
  border-radius: 0.2rem;
  margin: 0.2rem;
}

.input-button:hover,
.input-button:active,
input[type="file"]::file-selector-button:hover,
input[type="file"]::file-selector-button:active {
  background-color: var(--button-background-hover);
}

.edit-user-avatar {
  border: 2px solid black;
  width: 8rem;
}

.edit-user-colorscheme-box {
  width: 3rem;
  height: 1rem;
  background-color: blue;
  display: inline-block;
  vertical-align: middle;
  margin: 0 1rem; 
}

.step-recording-card {
  display: inline-block;
  border: 2px solid black;
  border-radius: 0.5rem;
  width: 90%;
  margin: 0.5rem 0;
  padding: 0;
  background-color: var(--card-background);
}

@media (min-width: 40rem) {
  .step-recording-card {
    width: 30rem;
  }
}

.step-recording-card-fieldset {
  margin: 0;
  padding: 0;
  border: none;
}

.step-recording-card-relation-default {
  color: rgb(77, 76, 76);
  font-size: 0.8rem;
}

.step-recording-card-relation {
  color: rgb(36, 35, 35);
  font-size: 0.8rem;
}

.step-recording-card-submitbutton {
  margin: 0.4rem 0;
}

.actual-trip-image {
  max-width: 90%;
}

@media (min-width: 40rem) {
  .actual-trip-image {
      max-width: 60%;
  }
}

.trip-gen-input-element {
  margin: 1rem 0;
  text-align: center;
}

.trip-gen-input-element-input {
  width: 80%;
  font-size: 1rem;
  padding: 0.1rem 0;
}

@media (min-width: 40rem) {
  .trip-gen-input-element-input {
    width: 30rem;
  }
}

.trip-gen-input-element-input-short {
  width: 7rem;
  font-size: 1rem;
  padding: 0.1rem 0;
}

.trip-gen-input-element-input-readonly
 {
  width: 8rem;
  font-size: 1rem;
  padding: 0.1rem 0;
  background-color: lightgray;
}

.trip-gen-input-element-input-date::-webkit-inner-spin-button,
.trip-gen-input-element-input-date::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

.trip-gen-input-element-input-date {
    -moz-appearance: textfield; 
}

 .overall-statistic-headline {
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
 }

 .overall-statistic-information {
  font-size: 1.2rem;
  margin-top: 0.6rem;
  margin-bottom: -0.4rem;
  color: var(--statistic-content);
 }

 .overall-statistic-content {
  font-size: 1.6rem;
  color: var(--statistic-content);
 }

.stepoverview-nav {
  display: grid;
  width: 80%;
  margin: 0 auto;
  grid-template-columns: 20% 60% 20%;
  grid-template-rows: auto auto;
  align-items: center;
}

.stepoverview-nav-left {
  grid-column: 1;
}

.stepoverview-nav-middle {
  font-size: 1.3rem;
  grid-column: 2;
}

.stepoverview-nav-right {
  grid-column: 3;
}

@media (min-width: 40rem) {
  .stepoverview-nav {
    width: 30rem;
  }
}

 .stepoverview-table {
  margin: 0 auto;
  border-collapse: collapse;
  border: 2px solid #333;
  margin: 20px auto;
 }

.stepoverview-table th,
.stepoverview-table td {
  border: 1px solid black;
  padding: 0.3rem 0.5rem;
}

.stepoverview-table th {
  background-color: var(--table-header-background);
  color: white;
  border: 2px solid #333;
  padding: 0.8rem 0.5rem;
}

.stepoverview-table tbody tr:nth-child(even) {
  background-color: var(--table-body-even-background);
}

.stepoverview-table tbody tr:nth-child(odd) {
  background-color: var(--table-body-odd-background);
}

.stepoverview-table-body-quantity {
  text-align: right;
  width: 7rem;
}

.stepoverview-table-body-quantity-input {
  text-align: right;
  width: 6rem;
  font-size: 1rem;
  color: red;
}