html, body {
  background: #fafafa;
  overflow-x: hidden;
}

._container {
  padding: 0 0.5em;
}

.flex {
  display: flex;
}

.align-items-flex-end {
  align-items: flex-end;
}

.ml-30 {
  margin-left: 30px;
}

header {
  display: flex;
  align-items: center;
  padding: 0 0.5em;
  background: #fff;
  margin-bottom: 1em;
  border: 1px solid #eee;
  box-shadow: 0 10px 20px rgba(170, 170, 170, 0.1);
}
header .user {
  display: flex;
  flex-direction: column;
  text-align: right;
}
header .user span {
  font-weight: bold;
}
header .logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}
header .logo span {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  color: #333;
  font-size: 1.2em;
  line-height: 0.9em;
}

.rooms-wrapper {
  margin-top: 2em;
}
.rooms-wrapper .room {
  border: 1px solid currentColor;
  margin-bottom: 2em;
  padding: 1em;
  border-radius: 4px;
  background: #fff;
}
.rooms-wrapper .title {
  color: currentColor;
  margin-bottom: 0.5em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.rooms-wrapper .list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 250px);
  gap: 1em;
}
.rooms-wrapper .list-item {
  display: flex;
  align-items: center;
  background: currentColor;
}
.rooms-wrapper .list-item:hover {
  cursor: pointer;
  transform: scale(1.02);
  transition: 0.2s;
}
.rooms-wrapper .list-item .time {
  background-color: currentColor;
  font-weight: bold;
  border: 1px solid currentColor;
  padding: 0 0.5em;
}
.rooms-wrapper .list-item .time span {
  color: #333;
}
.rooms-wrapper .list-item .info {
  border: 2px solid currentColor;
  padding: 0 0.5em;
  white-space: nowrap;
  background: #fff;
  flex: 1;
}
.rooms-wrapper .list-item .info span {
  color: #333;
}

.date-picker-wrapper input {
  width: 120px;
  margin-bottom: 0;
}
.date-picker-wrapper span.day {
  display: flex;
  justify-content: center;
  align-items: center;
}
.date-picker-wrapper span {
  display: flex;
  gap: 0.5em;
}
.date-picker-wrapper span div {
  display: flex;
  align-items: center;
  white-space: nowrap;
  position: relative;
}
.date-picker-wrapper span div:hover b {
  opacity: 1;
}
.date-picker-wrapper span div b {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  transition: 0.2s;
  opacity: 0;
  position: absolute;
  font-size: 12px;
  top: 45px;
  border: 1px solid #dbdbdb;
  padding: 0.5em;
  border-radius: 4px;
  background: #fff;
  left: 0;
}
.date-picker-wrapper span div b:last-child {
  right: 0;
  left: unset;
}
.date-picker-wrapper span div > span {
  font-size: 24px;
  display: inline-block;
  min-width: 40px;
  height: 40px;
  line-height: 43px;
  text-align: center;
  border: 1px solid #dbdbdb;
  border-radius: 50%;
  background: #fff;
}
.date-picker-wrapper span div > span:hover {
  color: #444;
  border-color: #b5b5b5;
  cursor: pointer;
}

.modal .card {
  padding: 1em;
}
.modal input[type=submit] {
  margin-bottom: 0;
}
.modal table {
  max-width: 100%;
}
.modal table tr td:first-child:not(:last-child) {
  font-weight: bold;
  padding-right: 1em;
}

input, textarea {
  margin-bottom: 1em;
}
input:last-child, textarea:last-child {
  margin-bottom: 0;
}

.appointment-form {
  max-width: 500px;
  padding: 2em;
  background: #fff;
  margin: 5% auto 0;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
}
.appointment-form textarea {
  height: 100px;
}

.login-form {
  max-width: 300px;
  padding: 2em;
  background: #fff;
  margin: 5% auto 0;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
}
.login-form input {
  margin-bottom: 1em;
}
.login-form input:last-child {
  margin-bottom: 0;
}

.error-messages {
  width: 50%;
  margin: auto;
  text-align: center;
  text-align: center;
  margin-top: 30px;
}

@media screen and (max-width: 768px) {
  .modal-content {
    margin: 15% 0;
    max-width: 94%;
    left: 0% !important;
  }
  .date-picker {
    width: 80% !important;
  }
  .rooms-wrapper .room .list {
    grid-template-columns: 1fr !important;
  }
}
