/* Existing styles */
body {
  font-family: Arial, sans-serif;
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  margin: 0;
  padding: 0;
  direction: rtl;
}

h1, h2 {
  text-align: center;
  color: rgb(43, 245, 255);
  margin-bottom: 20px;
  font-size: 1.5em;
}

p {
  text-align: center;
  color: rgb(43, 245, 255);
  margin-bottom: 20px;
  font-size: 1em;
}

.container {
  padding: 20px;
  width: 95%;
  max-width: 1200px;
  margin: 40px auto;
  background-color: rgb(25, 39, 51);
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow-x: auto;
}

.calendar-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

.nav-button {
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 5px;
  margin: 0 10px;
  font-size: 1em;
}

.nav-button:hover {
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
}

.calendar-wrapper {
  overflow-x: auto;
  border: 1px solid rgb(43, 245, 255);
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  direction: rtl;
}

.calendar {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
}

.day {
  flex: 0 0 auto;
  width: 120px;
  padding: 10px;
  box-sizing: border-box;
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  border: 1px solid rgb(43, 245, 255);
  border-radius: 4px;
  margin: 2px;
  text-align: center;
  font-size: 0.9em;
}

.times {
  margin-top: 10px;
}

.time {
  display: block;
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
  border: none;
  padding: 5px;
  margin: 2px 0;
  cursor: pointer;
  text-align: center;
  border-radius: 4px;
  font-size: 0.9em;
}

.time:hover {
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
}

.disabled {
  background-color: gray;
  color: #fff;
  cursor: not-allowed;
  text-decoration: line-through;
}

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

.modal-content {
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid rgb(43, 245, 255);
  width: 90%;
  max-width: 600px;
  border-radius: 8px;
  box-sizing: border-box;
  text-align: center;
}

.close {
  color: rgb(43, 245, 255);
  float: left;
  font-size: 28px;
  font-weight: bold;
}

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

#confirmation-message {
  text-align: center;
  color: rgb(43, 245, 255);
  margin-top: 20px;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"] {
  width: calc(100% - 40px);
  padding: 10px;
  margin: 10px 20px;
  box-sizing: border-box;
  border: 1px solid rgb(43, 245, 255);
  border-radius: 4px;
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
  font-size: 0.9em;
}

button[type="submit"] {
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  width: calc(100% - 40px);
  margin: 20px auto 0 auto;
  font-size: 1em;
}

button[type="submit"]:hover {
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
}

#confirmation-details {
  display: none;
  text-align: center;
}

#save-reservation, #share-reservation {
  background-color: rgb(43, 245, 255);
  color: rgb(25, 39, 51);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
  margin: 10px 5px;
  font-size: 1em;
}

#save-reservation:hover, #share-reservation:hover {
  background-color: rgb(25, 39, 51);
  color: rgb(43, 245, 255);
}

@media (max-width: 768px) {
  body {
      font-size: 12px;
  }

  h1, h2 {
      font-size: 1.2em;
  }

  p {
      font-size: 0.9em;
  }

  .calendar-wrapper {
      overflow-x: scroll;
  }

  .day {
      width: 90px;
      flex: 0 0 auto;
      font-size: 0.8em;
  }

  .modal-content {
      width: 95%;
  }

  .container {
      width: 95%;
      padding: 10px;
  }

  input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"] {
      width: calc(100% - 20px);
      margin: 10px auto;
      font-size: 0.8em;
  }

  button[type="submit"] {
      width: calc(100% - 20px);
      margin: 20px auto 0 auto;
      font-size: 0.8em;
  }

  .nav-button {
      margin: 5px;
      padding: 8px;
      font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  h1, h2 {
      font-size: 1em;
  }

  p {
      font-size: 0.8em;
  }

  .day {
      width: 80px;
      flex: 0 0 auto;
      font-size: 0.7em;
  }

  .time {
      font-size: 0.7em;
  }

  .modal-content {
      width: 90%;
  }

  input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"] {
      font-size: 0.8em;
  }

  button[type="submit"] {
      font-size: 0.8em;
  }

  .nav-button {
      font-size: 0.8em;
  }
}

.hidden-for-image {
  display: none;
}