@font-face {
  font-family: 'Darker Grotesque';
  src: url('/static/fonts/DarkerGrotesque.ttf') format('truetype');
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1.25em;
  background-color: white;
}

.header {
  position: sticky;
  top: 0;
  left: 0;
  background-color: black;
  color: white;
  padding: 1.25em 1.25em;
}

.header-left {
  float: left;
}

.header-right {
  float: right;
  display: flex;
  align-items: center;
  max-width: 70%;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-right a {
  color: #626262;
  text-decoration: none;
  font-family: 'Darker Grotesque', sans-serif;
  margin-left: 0.5em;
  margin-bottom: 0.5em;
  padding: 0.15em 0.3em;
  background-color: #c1c1c1;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.header-right a:hover {
  background-color: #ffffff;
  text-decoration: none;
}

.header-logo {
  vertical-align: text-bottom;
  height: 3em;
  width: auto;
  object-fit: cover;
}

.header a {
  color: #626262;
  text-decoration: none;
  font-family: 'Darker Grotesque', sans-serif;
  font-size: 1.2em;
}

.header a:hover {
  color: #737373;
  text-decoration: underline;
}

.main {
  display: grid;
  grid-template-columns: 20% 60% 20%;
  flex: 1;
}

.main-middle {
  padding: 0.75em;
}

h1 {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  font-family: 'Darker Grotesque', sans-serif;
  margin-block-start: 0.34em;
}

h2 {
  font-size: 2em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
}

.index-image {
  max-width: 40%;
  height: auto;
  margin: 0.0em 0.5em 0em 0em;
  float: left;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.onas {
  font-size: 1.1em;
  line-height: 1.2;
  font-family: 'Darker Grotesque', sans-serif;
  text-align: justify;
}

.footer {
  width: -webkit-fill-available;
  width: -moz-available;
  width: fill-available;
  background-color: black;
  color: white;
  padding: 1.25em 1.25em;
  margin-top: auto;
}

.footer-text {
  line-height: 0.5;
}

.footer-text p:first-child {
  line-height: 1.5;
  font-weight: bold;
  margin-block-start: 0em;
  font-size: 1.2em;
  font-family: 'Darker Grotesque', sans-serif;
}

.footer-text p {
  font-size: 0.8em;
  margin-block-end: 0em;
  color: #626262;
}

.footer-left {
  float: left;
}

.footer-right {
  float: right;
}

#messages {
  visibility: hidden;
  min-width: 50%;
  background-color: #4d4d4d;
  color: #fff;
  text-align: center;
  border-radius: 2px;
  padding: 0.625em;
  position: fixed;
  right: 25%;
  top: 10%;
  z-index: 1;
}

#messages.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

.login-container {
  background-color: #bababa;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 2em auto;
}

.login-container h1 {
  text-align: center;
  margin-bottom: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5em;
  font-size: 1.2em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
}

.form-group input {
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  font-size: 1em;
}

.form-group button {
  padding: 0.75em;
  background-color: #4d4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.form-group button:hover {
  background-color: #3b3b3b;
}

.register-link {
  display: block;
  text-align: center;
  margin-top: 1em;
  color: #626262;
  text-decoration: none;
  font-family: 'Darker Grotesque', sans-serif;
}

.register-link:hover {
  text-decoration: underline;
}

.bike-types {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2em;
  padding: 2em 0;
}

.box {
  background-color: #f9f9f9;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 300px;
  text-align: center;
}

.bike-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1em;
}

.bike-link {
  display: inline-block;
  margin-top: 1em;
  padding: 0.5em 1em;
  background-color: #626262;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-link:hover {
  background-color: #737373;
}

.orders,
.servis-issues,
.users,
.bikes {
  margin-top: 2em;
  display: flex;
  justify-content: center;
}

.orders-table,
.servis-table,
.users-table,
.bikes-table {
  width: 1024px;
  border-collapse: collapse;
  margin: 1em 0;
  font-family: 'Darker Grotesque', sans-serif;
}

.orders-table th,
.orders-table td,
.servis-table th,
.servis-table td,
.users-table th,
.users-table td,
.bikes-table th,
.bikes-table td {
  border: 1px solid #ddd;
  font-size: 1.2em;
  padding: 0.75em;
  text-align: center;
}

.orders-table th,
.servis-table th,
.users-table th,
.bikes-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.orders-table tr:nth-child(even),
.servis-table tr:nth-child(even),
.users-table tr:nth-child(even),
.bikes-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.orders-table tr:hover,
.servis-table tr:hover,
.users-table tr:hover,
.bikes-table tr:hover {
  background-color: #f1f1f1;
}

.user-add-container,
.user-edit-container,
.bike-add-container,
.bike-edit-container {
  background-color: #f9f9f9;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 90%;
}

.user-add-container h1,
.user-edit-container h1,
.bike-add-container h1,
.bike-edit-container h1 {
  text-align: center;
  font-family: 'Darker Grotesque', sans-serif;
}

.user-add-form,
.user-edit-form,
.bike-add-form,
.bike-edit-form {
  display: flex;
  flex-direction: column;
}

.user-edit-form label,
.user-edit-form label,
.bike-add-form label,
.bike-edit-form label {
  margin-bottom: 0.5em;
  font-size: 1.2em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
}

.user-add-form input,
.user-add-form select,
.user-edit-form input,
.user-edit-form select,
.bike-add-form input,
.bike-add-form select,
.bike-edit-form input,
.bike-edit-form select {
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  font-size: 1em;
}

.user-add-form input[type="submit"],
.user-edit-form input[type="submit"],
.bike-add-form input[type="submit"],
.bike-edit-form input[type="submit"] {
  padding: 0.75em;
  background-color: #4d4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.user-add-form input[type="submit"]:hover,
.user-edit-form input[type="submit"]:hover,
.bike-add-form input[type="submit"]:hover,
.bike-edit-form input[type="submit"]:hover {
  background-color: #3b3b3b;
}

.bike-page-img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1em;
}

.bike-name {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 0.5em;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-price {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-rent-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  background-color: #f9f9f9;
  min-width: 40vw;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.bike-rent-form label {
  font-size: 1.1em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-rent-form input,
.bike-rent-form select {
  padding: 0.75em;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  font-size: 1em;
}

.bike-rent-form input[type="submit"] {
  padding: 0.75em;
  background-color: #4d4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-rent-form input[type="submit"]:hover {
  background-color: #3b3b3b;
}

.bike-check-container,
.issue-fix-container {
  background-color: #f9f9f9;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 2em auto;
}

.bike-check-container h1,
.issue-fix-container h1 {
  text-align: center;
  margin-bottom: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-check-form,
.issue-fix-form {
  display: flex;
  flex-direction: column;
}

.bike-check-form label,
.issue-fix-form label {
  margin-bottom: 0.5em;
  font-size: 1.2em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-check-form textarea,
.bike-check-form select,
.bike-check-form input,
.issue-fix-form textarea,
.issue-fix-form select,
.issue-fix-form input {
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  font-size: 1em;
}

.bike-check-form input[type="submit"],
.bike-check-form button,
.issue-fix-form input[type="submit"],
.issue-fix-form button {
  padding: 0.75em;
  margin: 0.5em;
  background-color: #4d4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.bike-check-form input[type="submit"]:hover,
.bike-check-form button:hover,
.issue-fix-form input[type="submit"]:hover,
.issue-fix-form button:hover {
  background-color: #3b3b3b;
}

.issue-field {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 1em;
}

.issue-field input {
  flex: 1;
}

.stats-container {
  background-color: #f9f9f9;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 2em auto;
}

.stats-container h1 {
  text-align: center;
  margin-bottom: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.stats-form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-width: 50vw;
}

.stats-form label {
  font-size: 1.2em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
}

.stats-form input,
.stats-form select {
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #b0b0b0;
  border-radius: 4px;
  font-size: 1em;
}

.stats-form input[type="submit"] {
  padding: 0.75em;
  background-color: #4d4d4d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1em;
  font-family: 'Darker Grotesque', sans-serif;
}

.stats-form input[type="submit"]:hover {
  background-color: #3b3b3b;
}

.stats-results {
  margin-top: 2em;
}

.stats-results h2 {
  font-size: 1.5em;
  font-weight: bold;
  font-family: 'Darker Grotesque', sans-serif;
  margin-bottom: 1em;
}

.stats-results table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1em;
}

.stats-results th,
.stats-results td {
  border: 1px solid #ddd;
  padding: 0.75em;
  text-align: left;
}

.stats-results th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.stats-results tr:nth-child(even) {
  background-color: #f9f9f9;
}

.stats-results tr:hover {
  background-color: #f1f1f1;
}

@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes fadeout {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@media screen and (max-width: 1023px) {
  .main {
    grid-template-columns: 0% 100% 0%;
  }

  .main-middle {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header-right a {
    font-size: 0.9em;
  }

  .orders,
  .servis-issues,
  .users,
  .bikes {
    overflow-x: auto;
    width: 100%;
  }

  .orders-table,
  .servis-table,
  .users-table,
  .bikes-table {
    width: 100%;
    display: block;
  }

  .orders-table tbody,
  .servis-table tbody,
  .users-table tbody,
  .bikes-table tbody {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .orders-table tr,
  .servis-table tr,
  .users-table tr,
  .bikes-table tr {
    display: grid;
  }

  .orders-table th,
  .orders-table td,
  .servis-table th,
  .servis-table td,
  .users-table th,
  .users-table td,
  .bikes-table th,
  .bikes-table td {
    min-width: 200px;
    min-height: 30px;
    display: inline-block;
    overflow: overlay;
    scrollbar-width: none;
  }
}
