@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;

  transition: 0.2s linear;
}

:root {
  font-size: 62.5%;

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

html,
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 1.6rem;
  height: 100%;
}

input {
  padding: 0.5rem;
  border-radius: 0.4rem;
  border: solid #999 0.1rem;
  font-size: 1.6rem;
}

input[type="text"]:focus {
  border: solid var(--main-color) 0.1rem;
  outline: none;
}

input[type="radio"] {
  transform: scale(1.4);
}

strong {
  color: #333;
  font-weight: 700;
}

header {
  display: inline-block;
  text-align: center;
}

.container-home {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 65vh;
}

.container-home div {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-top: 12rem;
}

.container-home button {
  width: 30rem;
  padding: 2rem;
}

.container-home p {
  font-size: 1.2rem;
}

main {
  display: grid;
  width: 60rem;
  max-width: 98%;
  margin: auto;
}

main section {
  padding: 0 2rem;
}

#container-newBooks {
  border: 0.1rem solid #999;
  border-radius: 0.6rem;
  padding: 1rem 1rem;
}

#container-showBooks {
  border-radius: 0.6rem;
}

#container-showBooks input {
  width: 90%;
}

#container-showBooks input::placeholder {
  color: var(--main-color);
  opacity: 0.6;
  font-weight: 600;
  font-size: 1.5rem;
}

.container-searchBooks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.informations {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.informations h2 {
  text-align: center;
}

.container-btnBackStart {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

#info-user label,
#info-area label {
  font-size: 1.5rem;
  font-weight: 600;
  color: #666;
}

h2 {
  font-size: 2.2rem;
  color: #111;
}

button {
  padding: 1.2rem;
  background-color: var(--main-color);
  color: var(--white-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.9;
  font-size: 1.4rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

button:hover {
  opacity: 1;
}

.buttonHours {
  background-color: #444;
  margin: 0.8rem;
  font-size: 1.6rem;
}

.available-times {
  display: inline-block;
  text-align: center;
  height: 80vh;
  padding: 2rem 0rem 0;
}

.available-times #hours {
  width: 80%;
  margin: 2rem auto;
  border: 0.1rem solid #c9c9c9;
  border-radius: 0.8rem;
  box-shadow: 0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.3);
  padding: 1.5rem 0;
}

.available-times h2 {
  padding-bottom: 2rem;
  font-size: 2.8rem;
}

#seeTimes,
#backHomeStart {
  margin-top: 1rem;
}

#name,
#cpf,
#cep,
#street,
#number,
#neighborhood,
#birthdayDate {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: solid 0.1rem #cfcfcf;
  text-transform: capitalize;
}

input[type="text"]:disabled {
  background-color: #f4f4f4;
  cursor: not-allowed;
}

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

#weekdays {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

#weekdays label {
  display: flex;
  align-items: center;
  gap: 2rem;

  font-size: 1.8rem;
}

#weekdays label + label {
  padding: 1.5rem 0 0;
}

.confirm {
  display: flex;
  justify-content: center;
  padding-bottom: 3rem;
  gap: 3rem;
}

.confirm button {
  padding: 1rem 0.5rem;
  cursor: pointer;
}

#button-back,
#btn-searchBookBack,
#backHomeStart,
#btn-newBook,
#btn-searchBook {
  background-color: #444;
}

.hide {
  display: none;
}

.selected {
  background-color: var(--main-color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
}

.overlay.active {
  opacity: 1;
  pointer-events: all;
}

dialog {
  margin: auto;
  width: 55rem;
  max-width: 90%;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--white-color);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  opacity: 0;
  transform: scale(0.8);
}

dialog[open] {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 30rem;
  opacity: 1;
  transform: scale(1);
}

.dialog-header2 {
  padding: 0 0 2rem;
  font-size: 1.5em;
  font-weight: bold;
  color: #111;
  text-align: center;
}

.dialog-header {
  margin-bottom: 2rem;
  font-size: 1.3em;
  font-weight: bold;
  color: #111;
  text-align: center;
}

.dialog-body2 {
  text-align: center;
  font-size: 1em;
  margin-bottom: 2rem;
  color: #666;
}

.dialog-body {
  font-size: 1em;
  margin-bottom: 20px;
  color: #666;
}

.dialog-footer,
.dialog-footer2 {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.dialog-footer {
  padding: 1.5rem 0 0;
}

.dialog-footer button {
  padding: 10px 20px;
  background-color: var(--main-color);
  color: var(--white-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  opacity: 0.9;
}

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

.dialog-footer #deleteBook {
  background-color: #b31e1e;
}

#cancelButton {
  background-color: #444;
}

#confirmButton,
#cancelButton {
  width: 8rem;
}

#label-comprovante {
  color: #111;
  font-weight: bold;
  font-size: 2.2rem;
}

#see-yourBook {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;

  width: 100vw;
  padding: 1rem;
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

#btn-yourBook,
#btn-searchBookBack,
#seeTimes,
#backHomeStart,
#button-confirm,
#button-back {
  width: 14rem;
  padding: 1.5rem;
}

#comprovanteAgendamento {
  width: 30rem;
  padding: 1.5rem;
}

#not-available {
  color: #ea2e2e;
  text-align: center;
}

.alert {
  color: #ea2e2e;
}

@media (max-width: 360px) {
  img {
    width: 80%;
  }
}
