* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0px;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0px;
  background-color: #fff9f6;
  min-height: 100vh;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.header .logo img {
  padding: 2px;
  width: 120px;
  height: auto;
}

.navigation-bar {
  padding: 8px;
  display: flex;
  width: 30%;
  justify-content: space-around;
}

.navigation-bar a {
  color: #593d3b;
}

.navigation-bar a:hover {
  color: #a3b18a; /* Optional hover color */
}

.search-box {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.search-box input {
  width: 110px;
  height: 18px;
  padding: 5px;
  border: solid #593d3b;
  border-radius: 20px;
  margin-top: 2px;
}

.search-box i {
  display: flex;
  justify-content: flex-end;
  margin-left: 10px;
  margin-top: 2px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 50px;
}

#quiz-container {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.quiz-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.quiz-header h1 {
  color: #593b3d;
  margin-bottom: 10px;
}

.quiz-header p {
  color: #593b3d;
}

.question-text {
  font-size: 1.2em;
  margin-bottom: 20px;
  color: #593b3d;
}

.quiz-option {
  color: #593b3d;
  display: block;
  width: 100%;
  padding: 15px;
  margin: 10px 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
}

.quiz-option:hover {
  background: #f8f8f8;
  border-color: #588157;
  color: #588157;
}

.progress-container {
  margin: 20px 0;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

#progress-bar {
  width: 0%;
  height: 20px;
  background: #588157;
  transition: width 0.3s ease;
  text-align: center;
  color: white;
  font-size: 0.8em;
  line-height: 20px;
}

.results-container {
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  margin: 20px auto;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #593b3d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#error-message {
  color: #dc3545;
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  border-radius: 5px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  display: none;
}

#auth-message {
  text-align: center;
  padding: 20px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 8px;
  margin: 20px 0;
}

.auth-redirect {
  margin-top: 15px;
}

.auth-redirect a {
  color: #4285f4;
  text-decoration: none;
  font-weight: bold;
}

.auth-redirect a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

#recommendations-container {
  margin-top: 30px;
  display: none;
}

#recommendations-container h2 {
  color: #593d3b;
}

.recommendation-card {
  background: white;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.recommendation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.shop-name {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 8px;
}

.shop-rating {
  color: #467e46;
  margin-bottom: 8px;
}

.shop-address {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.shop-status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  margin-top: 8px;
}

.status-open {
  background-color: #d4edda;
  color: #155724;
}

.status-closed {
  background-color: #f8d7da;
  color: #721c24;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#output {
  padding-top: 1px;
  margin: 20px auto;
  max-width: 600px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #e4c1c1;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.loading-text {
  text-align: center;
  margin-top: 10px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-overlay.hidden {
  display: none !important;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #593b3d;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loading-text {
  color: #593b3d;
  font-size: 1.1em;
}

#output {
  padding: 20px;
  margin: 20px auto;
  max-width: 600px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#output h2 {
  color: #593b3d;
  margin-bottom: 20px;
  text-align: center;
}

.recommendation-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.recommendation-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.recommendation-card .shop-name {
  font-size: 1.2em;
  font-weight: bold;
  color: #593b3d;
  margin-bottom: 8px;
}

.recommendation-card .shop-rating {
  margin: 8px 0;
}

.recommendation-card .shop-address {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 8px;
}

.view-details-btn {
  background-color: #588157;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
  margin-top: 8px;
  width: 100%;
}

.view-details-btn:hover {
  background-color: #466c42;
}

.view-details-btn:active {
  transform: scale(0.98);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
