/* General page styling */
body 
{
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #D1EFE4, #EEEEEE); /* mint to dust */
  color: #7D7474; /* soft gray text */
  line-height: 1.6;
  margin: 0;
  padding: 2rem;
}

/* Headings */
h1, h2 
{
  font-family: 'Georgia', serif;
  color: #7D7474;
}

h1 
{
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

h2 
{
  font-size: 1.8rem;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  border-bottom: 2px dashed #E9BEBE;
  padding-bottom: 0.3rem;
}

/* Paragraphs */
#outro 
{
  text-align: center !important; 
}

.paragraphs 
{
  max-width: 800px;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #60665A;
  text-align: center;
  align-content: center;
  padding-left: 25%;
  padding-right: 25%;
}

.gift-basket 
{
  padding-top: 20px;;
  padding-left: 37%;
}

.done-msg 
{
  color: green;
  display: none;
  margin: 10px auto 0 auto;
  text-align: center;
}

/* Table styling */
.registry-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 2rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.registry-table th,
.registry-table td {
  border: 1px solid #BBBBBB;
  padding: 12px 15px;
  text-align: left;
}

.registry-table th {
  background-color: #8b8b8b;
  font-weight: 600;
  text-transform: uppercase;
  color: #E9BEBE;
  text-align: center;
}

.registry-table tr:nth-child(even) {
  background-color: #D1EFE4;
}

.registry-table tr:hover {
  background-color: #EEEEEE;
}

.form-container {
  display: flex;
  justify-content: center;   /* centers horizontally */
}

#gift-form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;       /* keeps everything vertically aligned */
  gap: 10px;                 /* space between elements */
}


select {
  padding: 0.5rem 0.8rem;
  border: 1px solid #BBBBBB;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #D1EFE4;
  color: #60665A;
  }

input[type="number"] {
  padding: 0.5rem 0.8rem;
  border: 1px solid #BBBBBB;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #D1EFE4;
  color: #60665A;
  width: 50px;
  }

button {
  padding: 0.5rem 1.2rem;
  background-color: #E9BEBE;
  border: 1px solid #BBBBBB;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  color: #7D7474;
}

/* #undo-btn {
  display: none;
  margin: 0 auto;
  align-items: center;
  background-color: rgb(253, 205, 251);
} */

button:hover {
  background-color: #D1EFE4;
}

/* Header banner */
.storybook-header {
  background: linear-gradient(to right, #E9BEBE, #D1EFE4);
  padding: 2rem;
  text-align: center;
  border-bottom: 3px dotted #BBBBBB;
}

.storybook-banner h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  color: #7D7474;
  margin-bottom: 0.5rem;
}

.storybook-subtitle {
  font-size: 1.2rem;
  font-style: italic;
  color: #60665A;
}

/* Footer */
.storybook-footer {
  background-color: #EEEEEE;
  text-align: center;
  padding: 2rem;
  font-size: 1rem;
  color: #7D7474;
  border-top: 2px dashed #BBBBBB;
  margin-top: 3rem;
}

.storybook-illustration {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  border-bottom: 3px dotted #BBBBBB;
}

.color-scheme {
  display: flex;
  width: 850px;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 2rem auto;
  align-items: center;
}

/* Product suggestion links */
.registry-table a {
  color: #7D7474;               /* soft grey to match text */
  text-decoration: none;        /* remove underline */
  font-weight: 500;
  border-bottom: 1px dashed #E9BEBE; /* gentle underline */
  padding-bottom: 1px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.registry-table a:hover {
  color: #E9BEBE;               /* soft blush on hover */
  border-bottom-color: #7D7474;
}

/* Small responsive tweaks */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  table, th, td {
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.4rem;
  }
}
