body {
    font-family: 'MedievalSharp', cursive;
    background-color: #f4eee8;
    color: #3a352a;
    text-align: center;
}

#auth-container, #main-container, #admin-panel {
    margin-top: 20px;
}

input {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 80%;
}

button {
    padding: 10px 20px;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'MedievalSharp', cursive;
    margin: 10px auto;
    display: block;
}

.error-message {
    color: red;
}

.success-message {
    color: green;
}

.quests-carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 20px;
}

.quest-card {
    background-color: #d4b5a1;
    border: 1px solid #8B4513;
    border-radius: 10px;
    margin: 10px;
    padding: 0;
    width: 300px;
    height: 200px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.quest-card img {
    width: 100%;
    height: 66%;
    object-fit: cover;
}

.quest-card h2 {
    margin: 5px 0;
}

.quest-card p {
    margin: 0;
}

.quest-card .card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 34%;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#loading-indicator {
    font-size: 18px;
    color: #8B4513;
    margin-top: 20px;
    display: none; /* Initially hidden */
}

/* Mobile-specific styles */
@media only screen and (max-width: 768px) {
  .quest-card {
    width: 95%;  /* Increase the width for mobile */
    margin: 20px auto;  /* Center the cards and add margin for spacing */
    height: auto;  /* Allow the height to adjust based on content */
    padding: 20px;  /* Add padding for better spacing */
    box-sizing: border-box;  /* Include padding and border in element's total width and height */
  }

  .quest-card img {
    height: auto;  /* Allow image height to adjust based on content */
  }

  .quest-card .card-content {
    height: auto;  /* Allow content height to adjust based on content */
    padding: 20px;  /* Increase padding for better readability */
  }

  .quest-card h2, 
  .quest-card p {
    font-size: 1.4em;  /* Further increase font size for readability on mobile */
  }

  .quest-card .quest-button {
    width: 100%;  /* Make button take full width of the card */
    padding: 15px;
    font-size: 1.2em;  /* Adjust button font size if necessary */
  }
}
