@import url("https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Mulish", serif;
}

:root {
  font-size: 62.5%;

  --hue: 210;
  --main-color: hsl(var(--hue), 100%, 30%);
}

.hide {
  display: none;
}

body {
  font-size: 1.6rem;
}

header {
  text-align: center;
  color: white;
  padding-top: 1rem;
}

header h1 {
  text-align: center;
  color: #fff;
}

.container {
  border: solid 0.1rem #ccc;
  border-radius: 0.6rem;
  padding: 0 1rem 1.5rem;

  margin-top: 2rem;
}

.card {
  width: 60rem;
  max-width: 98%;
  height: 50rem;
  display: flex;
  margin: auto;
}

.login {
  margin: auto;
}

.login h2 {
  padding-bottom: 1rem;
}

section.hours {
  width: 50rem;
  max-width: 98%;
  padding: 1rem;
  margin: 0 auto;
}

#titleCreateHours,
#titleDeleteHours,
#titleShowHours {
  font-size: 1.8rem;
  padding: 1.5rem 0 0.5rem;
  font-weight: bold;
}

#titleCreateHours {
  margin-top: 4rem;
  padding: 0 1rem 0.5rem;
}

#form-add {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1rem;

  border-radius: 0.6rem;
  border: solid 0.1rem #ccc;
}

#form-add #itemsSelect {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 50%;
}

#form-add #itemsInput {
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 3rem;
}

#form-add #itemsButton {
  display: flex;
  gap: 2rem;
}

#form-add label {
  font-size: 1.6rem;
  font-weight: 500;
  color: #333;
}

#form-add input,
#form-add select {
  flex: 1 1 40%;
  padding: 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #ccc;
  font-size: 1.6rem;
}

#delete,
#show {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2rem;
}

#confirmDelete {
  margin-top: 1rem;
}

#form-login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

select {
  padding: 0.8rem;
  border-radius: 0.4rem;
  border: solid #ccc 0.1rem;
  width: 100%;
}

button {
  padding: 0.8rem;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.9;
}

button:hover {
  opacity: 1;
}

#btn-clear {
  align-self: flex-start;
  background-color: #444;
}

#startHour,
#endHour,
#form-login input {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1rem;
  border-radius: 0.4rem;
  border: solid #ccc 0.1rem;
}

#form-login input,
#form-login button {
  width: 25rem;
}

/* Configs MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal {
  background-color: #fff;
  width: 700px;
  max-width: 90%;
  height: 90vh;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
  overflow: auto;
}

.modal h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.modal h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #555;
}

.modal p {
  font-size: 1.6rem;
  margin: 0.5rem 0;
  color: #666;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.modal-footer button {
  background-color: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 1rem 1rem;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s;
  opacity: 0.9;
}

.modal-footer button + button {
  margin-left: 2rem;
}

.modal-footer button:hover {
  opacity: 1;
}

.schedule-item {
  border: 1px solid #ccc;
  padding: 0 1rem;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.schedule-item h1 {
  font-size: 1.25rem;
  color: #333;
}

.schedule-item p {
  font-size: 1.3rem;
  margin: 0.25rem 0;
}

span {
  font-weight: bold;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  :root {
    font-size: 55%;
  }
  header h1 {
    font-size: 3.2rem;
  }
  .modal {
    height: 90%;
  }
}
