@import url("fonts/stylesheet.css");

* {
    font-family: "Inter", "Century Gothic";
}

textarea {
    resize: none;
}

/* Go Back Button */
.go-home {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 15px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.go-home:hover {
  background-color: #0056b3;
}


/* Header */
h2 {
  font-family: "Massimo";
  font-size: 40px;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 20px;
  color: #333;
}

/* Labels */
.labels {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: bold;
  color: #555;
}

.maincontain > * {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.multifield {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.multifield > * {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.maincontain {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  gap: 15px;
  margin: 20px auto;
  width: 80vw; 
}

.inputbox {
  padding: 12px 15px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 25px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.inputbox:focus {
  border-color: #007BFF;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
  outline: none;
}

h3 {
  width: 100%;
  color: #555;
  margin: 0 0 0 0;
}

#submit {
  padding: 14px 30px;
  border-radius: 8px;
  border: none;
  background-color: #6f42c1;
  color: white;
  font-size: 18px;
  cursor: pointer;
  width: auto;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: bold;
}

#submit:hover {
  background-color: #5a32a3;
  transform: translateY(-2px);
}

select.inputbox {
  appearance: auto;
  cursor: pointer;
}

#roompick {
  border: 2px solid #ddd;
  padding: 15px;
  margin: 20px 0 0 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  justify-content: center;
}

#roompick.hidden {
  display: none;
}

.rooms {
  padding: 15px 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100px;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rooms h4 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #333;
}

.rooms p {
  margin: 0 0 5px 0;
}

.rooms:hover {
  cursor: pointer;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.vacant {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.occupied {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.reserved {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

/* on hover */
.vacant:hover {
  background-color: #c3e6cb;
}

.occupied:hover {
  background-color: #f1b0b7;
}

.reserved:hover {
  background-color: #ffe8a1;
}

/* Time input styling */
.time-input-container {
  display: flex;
  gap: 10px;
  width: 100%;
}

.time-input-container .inputbox {
  flex: 1;
}

/* Error message styling */
#notification-bar {
    width: 70vw;
    border: 0.5px solid;
    border-radius: 10px;
}

.status-none {
    display: none;
}

.status-success {
    background-color: rgb(200, 250, 200);
    border-color: green;
    color: green;
    font-style: italic;
}

.status-error {
    background-color: rgb(250, 200, 200);
    border-color: rgb(200, 0, 0);
    color: rgb(200, 0, 0);
    font-weight: bold;
}

#error-message {
    font-size: 15px;
    text-align: center;
}


body {
  background-color: #f0f2f5;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

.hide {
    display: none;
}

.reserve-item {
    font-weight: bold;
}

@media (max-width: 600px) {
    .multifield {
        flex-direction: column;
    }
}