body, html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #fff;
  font-family: 'Roboto', sans-serif;
}

header {
  background-image: url('/img/uvodni-foto.jpg');
  background-size: cover;
  background-position: center;
  height: 85vh;
}

nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10%;
  height: 80px; 
}

.logo img {
  margin-top: 15px;
  max-height: 80px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1em;
  padding: 10px 10px;
}

.navigation:hover {
  color: #d61e41;
  border-top: 2px solid #d61e41;
}

.nav-info p {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1em;
  margin: 0;
  text-align: right;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 5px;
  transition: all 0.3s ease;
}

.order-button {
  background-color: #d61e41;
  padding: 10px 15px;
  border-radius: 5px; 
  font-weight: bold; 
  transition: background-color 0.3s; 
}

.order-button:hover {
  background-color: #d61e41; /* Ponechá původní barvu pozadí */
  color: white; /* Ponechá původní barvu textu */
  outline: none; /* Odstraní obrys, který mohou prohlížeče aplikovat jako výchozí */
}

.header-content {
  position: absolute;
  top: 50%;
  left: 40%;
  transform: translate(-10%, -50%);
  text-align: right;
}

.header-content h1 {
  font-size: 2.5em;
  color: white;
}

.header-content p {
  font-size: 1.2em;
  color: white;
}

.main {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.form-section {
  display: flex;
  margin-top: -100px;
}

.form-container {
  background-color: #0055AA;
  padding: 10px 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 2;
  margin-left: 20%;
}

.form-container h2,
.form-container p {
  color: white;
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="tel"] {
  width: 70%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.form-container .agreement {
  color: white;
  margin-top: 10px;
}

.form-container button {
  width: 45%;
  padding: 15px;
  border: none;
  border-radius: 5px;
  background: #d61e41; 
  color: white;
  cursor: pointer;
  margin-top: 30px;
}

.info-container {
  background: white; 
  padding: 10px 30px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 100%;
  margin-right: 20%;
}

.info-container h2 {
  color: #333; 
  margin-bottom: 10px;
}

.info-container ul {
  margin-left: 20px; 
  padding: 0;
  margin-bottom: 20px;
}

.info-container ul li {
  color: #333; 
  padding-left: 1em;
  padding-top: 8px;
  text-indent: -1em;
}

.info-container ul li::before {
  color: red; 
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
}

.info-container p {
  color: #333; 
  line-height: 1.5;
  width: 95%;
}

@keyframes spinner {
  to {transform: rotate(360deg);}
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  width: 16px;
  height: 16px;
  animation: spinner 1s linear infinite;
  display: inline-block;
}

.combined-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  margin-left: 15%;
  margin-right: 15%;
  margin-top: 30px;
  border-bottom: 1px solid #eaeaea; /* Přidává horní ohraničení */
  padding-bottom: 20px; /* Přidává prostor nad obsahem sekce */
}

.services-section {
  flex-basis: 60%; 
}

.services-section h2 {
  font-size: 1.5em;
  color: #000;
}

.services-section p {
  color: #333;
  line-height: 1.6;
}

.rent-section {
  flex-basis: 35%; 
}

.rent-section h2{
  margin-left: 40px;  
}

.rent-section-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.rent-section-list li {
  margin-bottom: 8px;
}

.vehicle-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  margin-right: 15%;
  margin-left: 20%;
  margin-top: 5vh;
  border-bottom: 1px solid #eaeaea;
  padding-bottom: 5vh;
}

.vehicle {
  display: flex;
}

.vehicle h3 {
  color: #e60000; 
}

.vehicle-header {
  display: flex;
  align-items: center;
}

.vehicle-header img {
  max-width: 400px;
  margin-right: 10vh;
}

.img-atengo {
  margin-top: 5vh;
}

.img-podval {
  margin-top: -4vh;
}

.vehicle-details {
  display: flex;
  flex-direction: column;
}

.vehicle-details p {
  margin: 0;
  padding: 10px;
  position: relative;
}

/* .vehicle-details p:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: #ccc; 
} */

table {
  width: 26vw; /* Set the width of the table to fill the container */
  border-collapse: collapse; /* Collapse borders */
}

table th,
table td {
  text-align: left; /* Align text to the left */
  padding: 8px 16px; /* Add padding inside cells */
  border: 1px solid #ddd; /* Add a bottom border to all cells */
  font-size: small;
  width: 50%;
}

/* Style for the header row */
table .table-grey {
  background-color: #f2f2f2; /* Light grey background */
  color: #333; /* Darker text for contrast */
}

/* Style for table cells in the first column for better spacing */
table td:first-child {
  font-weight: bold; /* Make the first column bold */
}

/* Style for table cells in the second column for better readability */
table td:nth-child(2) {
  color: #555; /* Slightly lighter text for the second column */
}

.price-list-section {
  padding: 20px;
  margin: 20px 15%;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.price-list-container h2 {
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.price-list-container p {
  color: #333;
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: center;
}

.price-list-container table {
  width: 90%;
  border-collapse: collapse;
  margin: 0 auto;
  text-align: center;
}

.price-list-container th {
  text-align: centers;
  background-color: #f2f2f2;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.price-list-container td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.table-grey {
  background-color: #f2f2f2;
}

.contact-section {
  padding: 40px 15%;
  background-color: #fff;
}

.contact-container h2 {
  color: #333;
  margin-bottom: 20px;
}

.contact-container {
  display: flex;
  justify-content: space-between;
}

.contact-info p {
  margin: 5px 0;
  color: #333;
}

.contact-map iframe {
  border: none;
  width: 45rem;
  height: 450px;
}

.site-footer {
  background-color: #0055AA;
  color: white;
  text-align: center;
  padding: 10px 0;
  position: relative;
  bottom: 0;
  width: 100%;
  font-size: 1em;
}

.contact-details {
margin: 0 auto;
}

.contact-text {
  padding-top: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 70%; /* Můžete upravit podle potřeby */
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-title {
  text-align: center;
  margin-bottom: 40px;
}

.order-modal-title-center {
  text-align: center;
  margin-bottom: 20px;
}

.button-container {
  display: flex;
  justify-content: center;
}

.order-modal-button {
  width: 30vh;
  height: 5vh;
  background-color: #d61e41;
  padding: 10px 20px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
}

.form-group {
  display: flex;
  justify-content: center; /* Centruje obsah */
  align-items: center; /* Zarovná položky ve vertikálním směru */
  margin-bottom: 20px; /* Přidává mezery mezi řádky */
  width: 90%; /* Zajistí, že .form-group zaujímá plnou šířku */
}

.form-group label {
  text-align: right; /* Zarovná text labelů doprava */
  flex: 1; /* Umožní labelům expandovat a vyplnit dostupný prostor */
  margin-right: 10px; /* Přidává mezeru mezi label a input */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
  flex: 2; /* Umožní inputům být širšími než labely */
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button[type="submit"] {
  padding: 10px 20px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.no-scroll {
  overflow: hidden;
}

@media screen and (max-width: 768px) {
  body, html {
    font-size: 14px;
  }

  nav .nav-container {
    flex-direction: row;
    align-items: flex-start;
    padding-top: 10px
  }

  .logo img {
    max-height: 60px;
    margin-top: -5px
  }

  .nav-links a {
    font-size: 1em;
    padding: 5px 10px;
  }

  .nav-links {
    position: absolute;
    right: 0;
    height: 60vh;
    top: 80px;
    background-color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: translateX(-100%);
    transition: transform 0.5s ease-in;
    z-index: 1;
  }

  .nav-links.active {
    transform: translateX(0%);
    position: fixed;
  }

  .burger {
    display: block;
  }

  .order-button {
    margin-right: 10px;
    margin-top: 10px; 
  }

  .header-content {
      top: 50%;
      left: 15%;
      width: 90%;
  }

  .header-content h1 {
      font-size: 1.8em;
  }

  .header-content p {
      font-size: 1em;
  }

  .form-section {
      flex-direction: column;
      margin-top: 20px;
  }

  .form-container, .info-container {
      width: 70%;
      margin-left: 5%;
      margin-right: 5%;
  }

  .form-container form input[type="text"],
  .form-container form input[type="email"],
  .form-container form input[type="tel"] {
      width: 90%;
  }

  .form-container form button {
      width: 100%;
  }

  .combined-section {
      flex-direction: column;
      margin-left: 5%;
  }

  .services-section, .vehicle-list {
      flex-basis: 100%;
      margin-right: -15%;
  }

  .vehicle-list {
    margin: 0 5%; /* Zmenší okraje pro mobilní zařízení */
    gap: 20px; /* Zmenší mezeru mezi vozidly */
  }

  .vehicle {
    flex-direction: column; /* Změní uspořádání vozidel na vertikální */
    align-items: center; /* Zarovná prvky na střed */
  }

  .vehicle-header img {
    max-width: 100%; /* Umožní obrázkům vozidel zobrazit se na celou šířku */
    height: auto; /* Udrží poměr stran obrázků */
    margin: 0; /* Odebere vnější okraje */
  }

  .vehicle-details {
    text-align: center; /* Zarovná text detailů vozidla na střed */
    margin-top: 10px; /* Přidá trochu prostoru mezi obrázek a detaily */
  }

  table {
    width: 90%; /* Upraví šířku tabulky detailů vozidla, aby lépe pasovala na malé obrazovky */
    margin: 0 auto; /* Centruje tabulku */
  }

  table td, table th {
    padding: 4px 8px; /* Upraví padding buněk pro lepší čitelnost na malých obrazovkách */
  }

  .price-list-section {
    margin: 20px 5%;
  }
  
  .price-list-container table {
    display: block;
  }
  
  .price-list-container th, 
  .price-list-container td {
    display: block;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-map iframe {
    width: 90%;
    margin-left: 5%;
    margin-right: 5%;
  }

  .site-footer p {
    font-size: 0.8em;
  }

  .form-group {
    flex-direction: column; /* Změní uspořádání na vertikální na malých obrazovkách */
    align-items: flex-start; /* Zarovná položky na začátek */
  }

  .form-group label {
    margin-bottom: 5px; /* Přidává mezeru mezi label a input na malých obrazovkách */
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="tel"],
  .form-group input[type="date"] {
    width: 100%; /* Rozšíří inputy na celou šířku na malých obrazovkách */
  }
  }