/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Quicksand', sans-serif;
  background-color: #faf9f8;
  color: #1e1e1e;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 6rem;
  background-color: #faf9f8;
}

.logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e1e1e;
}

.logo-link {
  text-decoration: none;
  color: inherit; /* Keeps the same color as the surrounding text */
}


nav a {
  background: none;
  border: 1px solid #1e1e1e;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  margin-left: 1rem;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  color: #1e1e1e;
}

nav a:hover {
  background: #1e1e1e;
  color: #fff;
}

/* Hero Section */
.large-hero {
  background-color: #faf9f8;
  padding: 6rem 8rem;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  font-size: 4rem;
  line-height: 1.2;
  color: #1e1e1e;
  margin-bottom: 1.5rem;
}

.hero-text h2 span {
  color: #1e1e1e; /* Warm brown highlight */
}

.hero-text p {
  color: #4b4b4b;
  font-size: 1.5rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
}

.primary-btn,
.secondary-btn {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background: #1e1e1e;
  color: #fff;
  border: none;
}

.primary-btn:hover {
  background: #1e1e1e;
}

.secondary-btn {
  background: transparent;
  color: #1e1e1e;
  border: 1px solid #1e1e1e;
}

.secondary-btn:hover {
  background: #1e1e1e;
  color: #fff;
}

.hero-image img {
  width: 320px;
  max-width: 100%;
}

/* Features Section */
.features {
  background: #1e1e1e;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.features h3 {
  font-size: 1.6rem;
  margin-bottom: 2.5rem;
}

.feature-boxes {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-box {
  background: #fff;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.feature-box img {
  width: 100px;
}

/* Footer */
footer {
  background: #faf9f8;
  text-align: center;
  padding: 2rem;
  color: #4b4b4b;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    padding: 1.5rem 2rem;
  }

  .large-hero {
    padding: 4rem 2rem;
    text-align: center;
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-text h2 {
    font-size: 2.3rem;
  }

  .hero-image img {
    width: 250px;
  }
}

/* Login Page */
.login-page {
  text-align: center;
  margin-top: 3rem;
  
}

.login-page h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-form input[type="email"],
.login-form input[type="password"] {
  width: 280px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.remember-row {
  display: flex;
  align-items: left;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.login-form .primary-btn {
  width: 280px;
  margin-bottom: 1rem;
}

.form-links {
  display: flex;
  justify-content: space-between;
  width: 280px;
  font-size: 0.9rem;
}

.form-links a {
  color: #000;
  text-decoration: none;
}

.form-links a:hover {
  text-decoration: underline;
}

/* Footer */
.login-footer {
  background: #3b3b3b;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 4rem;
}

.form-container {
  max-width: 650px;
  margin: 40px auto;
  padding: 0 20px;
}

.form-container h2 {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.4;
}

.memorial-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

input[type="text"],
input[type="file"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.date-inputs {
  display: flex;
  gap: 10px;
}

.date-inputs input {
  flex: 1;
  text-align: center;
}

.next-btn {
  width: 100px;
  background-color: #000;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  margin-top: 10px;
  align-items: center;
}

.next-btn:hover {
  opacity: 0.85;
}

/* Signup Section */
.signup-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

.signup-container h2 {
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.signup-form {
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.signup-form input {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.signup-form input:focus {
  outline: none;
  border-color: #000;
}

.signup-form button {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
}

.signup-form button:hover {
  background: #333;
}

.terms {
  font-size: 0.8rem;
  color: #555;
  text-align: left;
  line-height: 1.4;
}

.login-link {
  font-size: 0.9rem;
  text-align: center;
}

.login-link a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Memorial Search Page */
.memorial-search {
  text-align: center;
  padding: 5rem 2rem;
  background-color: #faf9f8;
}

.memorial-search h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.memorial-search p {
  color: #4b4b4b;
  margin-bottom: 2rem;
}

#search-form {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#search-input {
  width: 280px;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.search-results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
}

.memorial-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  width: 250px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memorial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.memorial-card img {
  width: 100px;
  margin-bottom: 1rem;
}

.memorial-card h3 {
  margin-bottom: 0.5rem;
  color: #1e1e1e;
}

.memorial-card p {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.no-results {
  text-align: center;
  font-size: 1rem;
  color: #666;
  margin-top: 2rem;
}

/* Change Password Page */
.password-page,
.password-success {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  text-align: center;
  background-color: #faf9f8;
}

.password-container,
.success-container {
  max-width: 350px;
  width: 100%;
}

.password-container h2,
.success-container h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #1e1e1e;
}

.password-container p,
.success-container p {
  color: #4b4b4b;
  margin-bottom: 2rem;
}

.password-container form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-container label {
  text-align: left;
  font-weight: 500;
  font-size: 0.95rem;
}

.password-container input {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #000;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* Success Page */
.success-container .primary-btn {
  margin-top: 1.5rem;
}

main {
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.memorial {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  margin-top: 2rem;
  gap: 2rem;
}

.memorial .image {
  flex: 1;
  min-width: 250px;
}

.memorial .image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.memorial .details {
  flex: 2;
  max-width: 600px;
  padding: 1rem;
  background-color: #fafafa;
  border-radius: 8px;
}

.details h2 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.details .dates {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.details p {
  margin-bottom: 1rem;
}

.memory {
  margin-top: 3rem;
  border-top: 1px solid #fafafa;
  padding: 2rem 1rem 0 1rem;
  background-color: #fafafa;
  border-radius: 8px;
}

.memory h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.memory p {
  margin-bottom: 0.75rem;
}

.guestbook {
  margin-top: 3rem;
  border-top: 1px solid #fafafa;
  padding: 2rem 1rem 0 1rem;
  background-color: #fafafa;
  border-radius: 8px;
}


.guestbook h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

#guestbook-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 1000px;
}

#guestbook-form input,
#guestbook-form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

#guestbook-form textarea {
  min-height: 100px;
  resize: vertical;
}

#guestbook-form button {
  background: #111;
  color: #fff;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease;
}

#guestbook-form button:hover {
  background: #333;
}

#messages {
  margin-top: 1.5rem;
  padding-bottom: 1rem;
}

.guest-message {
  background: #f7f7f7;
  border-radius: 5px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.guest-message strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

/* Share Memorial Section */
.share-memorial {
  text-align: center;
  background-color: #fff;
  padding: 3rem 2rem;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.share-memorial h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #1e1e1e;
}

.share-memorial p {
  color: #4b4b4b;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.share-box {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  max-width: 500px;
  margin: 0 auto;
}

.share-box input {
  flex: 1;
  min-width: 250px;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background-color: #faf9f8;
}

.share-box button {
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  transition: opacity 0.3s;
}

.share-box button:hover {
  opacity: 0.85;
}

.copy-status {
  margin-top: 1rem;
  color: green;
  font-size: 0.9rem;
}



.dashboard-layout * {
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.dashboard-layout {
  background-color: #fff;
  display: flex;
  height: 100vh;
}

/* Sidebar */
.dashboard-layout .sidebar {
  width: 250px;
  background-color: #fff;
  padding: 40px 20px;
  border-right: 1px solid #e0e0e0;
}

.dashboard-layout .sidebar h2 {
  font-size: 24px;
  margin-bottom: 40px;
  font-weight: 600;
}

.dashboard-layout .sidebar ul {
  list-style: none;
}

.dashboard-layout .sidebar ul li {
  margin-bottom: 20px;
}

.dashboard-layout .sidebar ul li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  display: block;
  padding: 10px 15px;
  border-radius: 6px;
}

.dashboard-layout .sidebar ul li a.active,
.dashboard-layout .sidebar ul li a:hover {
  background-color: black;
  color: white;
}

/* Main Content */
.dashboard-layout .main-content {
  flex: 1;
  padding: 40px 60px;
  background-color: #fafafa;
}

.dashboard-layout .main-box {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  max-width: 800px;
}

.dashboard-layout h1 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 30px;
}

.dashboard-layout input,
.dashboard-layout textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 15px;
  margin-bottom: 20px;
}

.dashboard-layout button {
  background-color: black;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.dashboard-layout button:hover {
  opacity: 0.9;
}

/* Memorial Card (for dashboard view) */
.dashboard-layout .memorial-card {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  margin-top: 20px;
}

.dashboard-layout .memorial-card img {
  width: 200px;
  height: 150px;
  object-fit: cover;
}

.dashboard-layout .memorial-info {
  padding: 20px;
  flex: 1;
  border-left: 1px solid #ccc;
}
