* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
  
body {
  background-color: #2b1d0c;
  background-image: radial-gradient(#3a2912 1px, transparent 0);
  background-size: 20px 20px;
  color: #2c1d11;
  font-family: "Georgia", "Times New Roman", serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}
  
.auth-card {
  background-color: #f4e8c1;
  border: 4px solid #8b5a2b;
  outline: 2px solid #3a220f;
  border-radius: 4px;
  width: 100%;
  max-width: 400px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
  
.auth-card img {
  margin-bottom: 10px;
}
  
h1 {
  font-family: "Palatino Linotype", "Palatino", "Georgia", serif;
  font-size: 1.5rem;
  color: #5c1d11;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  border-bottom: 2px solid #8b5a2b;
  padding-bottom: 8px;
}
  
h2 {
  font-size: 1.3rem;
  color: #3a220f;
  margin: 15px 0 10px;
}
  
p {
  font-size: 0.95rem;
  color: #5a4332;
  margin-bottom: 15px;
  font-style: italic;
}
  
#input-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}
  
#input-container div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
  
label {
  font-size: 0.85rem;
  font-weight: bold;
  color: #3a220f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
  
input {
  background-color: #fdf8e6;
  border: 2px solid #8b5a2b;
  border-radius: 3px;
  padding: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #2c1d11;
  outline: none;
}
  
input:focus {
  border-color: #5c1d11;
  box-shadow: 0 0 5px rgba(92, 29, 17, 0.4);
}
  
button#submit {
  margin-top: 10px;
  background-color: #8b2b11;
  color: #f4e8c1;
  border: 2px solid #3a0d05;
  border-radius: 3px;
  padding: 12px;
  font-family: "Georgia", serif;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
  
button#submit:hover {
  background-color: #a63415;
}
  
button#submit:active {
  transform: translateY(1px);
}
  
.toggle-message {
  margin-top: 20px;
  font-size: 0.85rem;
  font-style: normal;
}
  
#toggle-link {
  color: #8b2b11;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}
  
#toggle-link:hover {
  color: #5c1d11;
}
  
#dashboard {
  width: 100%;
  max-width: 1100px;
  margin: 30px auto;
}
  
#dashboard header {
  width: 100%;
  margin-bottom: 25px;
  padding: 20px 25px;
  background-color: #f4e8c1;
  border: 4px solid #8b5a2b;
  outline: 2px solid #3a220f;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}
  
#dashboard header .brand-name {
  margin: 0;
  color: #5c1d11;
  font-family: "Palatino Linotype", "Palatino", "Georgia", serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #8b5a2b;
  padding-bottom: 8px;
}

#dashboard header p {
  margin-top: 10px;
  margin-bottom: 0;
  color: #5a4332;
  font-style: italic;
}
  
.dashboard-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}
  
.main-content {
  flex: 7;
  display: flex;
 flex-direction: column;
}
  
.side-content {
  flex: 3;
  display: flex;
  flex-direction: column;
}
  
#quest-section, #saved-panel {
  height: 100%;
  min-height: 370px;
  padding: 30px;
  background-color: #f4e8c1;
  border: 4px solid #8b5a2b;
  outline: 2px solid #3a220f;
  border-radius: 4px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}
  
#quest-section h1, #saved-panel h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #5c1d11;
  font-family: "Palatino Linotype", "Palatino", "Georgia", serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #8b5a2b;
  padding-bottom: 8px;
}
  
#quest-result {
  min-height: 130px;
  margin-bottom: 20px;
  padding: 20px;
  background-color: #fdf8e6;
  color: #2c1d11;
  border: 2px solid #8b5a2b;
  border-left: 7px solid #8b2b11;
  border-radius: 4px;
  font-size: 1.15rem;
  line-height: 1.5;
  text-align: center;
  font-style: normal;
}
  
.button-group {
  display: flex;
  gap: 12px;
  margin-top: auto;
}
  
.button-group button {
  flex: 1;
  padding: 12px;
  font-family: "Georgia", serif;
  font-size: 0.95rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s, transform 0.1s;
}
  
#get-quest {
  background-color: #8b2b11;
  color: #f4e8c1;
  border: 2px solid #3a0d05;
}
  
#get-quest:hover {
  background-color: #a63415;
}
  
#get-quest:active {
  transform: translateY(1px);
}
  
#save-quest {
  background-color: #d49a37;
  color: #2c1d11;
  border: 2px solid #5c3f0d;
}
  
#save-quest:hover:not(:disabled) {
  background-color: #e5ab48;
}
  
#save-quest:active:not(:disabled) {
  transform: translateY(1px);
}
  
#save-quest:disabled {
  background-color: #bdab8b;
  color: #786c57;
  border-color: #8a7c64;
  cursor: not-allowed;
  opacity: 0.7;
}
  
#empty-saved-message {
  margin-top: 20px;
  padding: 15px;
  background-color: #fdf8e6;
  color: #5a4332;
  border: 2px dashed #8b5a2b;
  border-radius: 4px;
  text-align: center;
  font-style: italic;
}
  
#saved-quests-list {
  margin-top: 20px;
  padding-left: 0;
  list-style: none;
}
  
#saved-quests-list li {
  margin-bottom: 10px;
  padding: 12px 15px;
  background-color: #fdf8e6;
  color: #2c1d11;
  border: 2px solid #8b5a2b;
  border-radius: 4px;
  box-shadow: 2px 2px 0px rgba(58, 34, 15, 0.15);
  word-break: break-word;
}