.card {
    margin-right: 1%;
    margin-bottom: .6rem;
    padding-bottom: .6rem;
    border: solid;
    border-radius: 20px;
    border-color: chocolate;
}

.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "Edit";
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    background: var(--general-color-four);
    padding: 10% 20%;
    border-radius: 5px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none; /* Ensures it doesn't interfere with clicks */
}

.card:hover::after {
    opacity: .95;
}

.card-link {
  text-decoration: none; /* Removes underline */
  color: inherit; /* Inherits the color of the parent element */
}

.card-link:hover {
  color: inherit; /* Keep the same color when hovered */
}

.card-link:visited {
  color: inherit; /* Keep the same color for visited links */
}

.card-link:focus {
  outline: none; /* Remove focus outline if needed */
}

.edit-card {
    background-color: var(--general-color-four);
    padding: 15px 5px 15px 5px;
    margin: 5px 0px 20px 0px;
    border-radius: 10px;
    color: var(--general-pink-bg-text);
    font-weight: bolder;
    font-size: larger;
    display: inline-block;
}

.card-description div {
    display: flex;
    justify-content: space-around;
}

.card-description span {
    padding: 5% 10% 5% 10%;
}

.card-categories {
    background: #fad2d2;
    padding: .2rem .2rem .2rem .2rem;
    margin: 0px 0px 10px 0px;
    border-top: solid;
    border-bottom: solid;
    border-color: #ff7b7b;
}

.card-price {
    font-weight: bolder;
    background: #ff7a7a;
    font-size: 20px;
    border-top: solid;
    border-bottom: solid;
    border-color: #ff7b7b;
}

.greeting {
    text-align: center;
    text-transform: capitalize;
    margin: 5% 0% 2% 0%;
    font-size: 1.2rem;
    color: black;
    padding: 0px 300px 0px 300px;
}

.messages_n_warnings {
    font-weight: bold;
    padding-bottom: 1.5rem;
    color: red;
}

.slideshow {
    background-color: #fff;
    text-align: center;
    padding-top: 10%;
}

.short-article {
    background-color: var(--general-color-four);
    width: 100%;
    padding: 20px 0px 20px 0px;
    margin: 0;
}

h1 {
    font-size: 35px;
    color: black;
    margin-bottom: 10px;
    line-height: 100%;
    text-align: center;
    padding: 100px 300px 0px 300px;
}

h4 {
    font-size: 30px;
    color: var(--general-color-one);
    margin-bottom: 30px;
}

.slideshow .cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    flex-wrap: wrap;
    flex-direction: row;

}

.slideshow img {
    margin-bottom: 1rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 100%;

}

.cta {
    margin: 60px 20px;
    text-align: center;
}

.cta a {
    text-decoration: none;
    background-color: var(--general-color-one);
    color: var(--general-color-three);
    padding: 15px 50px;
    border-radius: 30px;
    font-size: 20px;
    transition: background-color 0.3s ease-in-out;
    display: inline-block;
}

.cta a:hover {
    background-color: #e55b50;
}

.modern-form {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff4f4;
    padding: 12px;
    border-radius: 70px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    max-width: 90%;
    margin: auto;
    gap: 10px;
    flex-direction: column;
    margin-top: 150px;
}

.seach-menu-nav-item {
    text-decoration: none;
    font-weight: bold;
    color: var(--general-color-four);
}

.search_navigation {
    display: flex;
    gap: 10px;
    align-self: baseline;
    padding: 0rem 1.5rem;
    flex-wrap: wrap;
}

.innerSearchFormDiv {
    width: 100%;
    display: flex;
}

.modern-form .innerSearchFormDiv input {
    width: 85%;
    flex: 1;
    padding: 12px 16px;
    font-size: 16px;
    border: none;
    border-radius: 50px;
    background: white;
    outline: none;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.previous_searches {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: fit-content;
}

.pre-text-searched {
    display: flex;
    flex: 1;
    padding: .5rem 0rem .5rem .5rem;
    margin: .1rem .2rem;
    font-size: 1rem;
    border-radius: 50px;
    max-width: fit-content;
    border: none;
    background: none;
}

.pre-text-searched-label {
    font-family: monospace;
    font-weight: bold;
    font-size: larger;
}


.prev-search-item {
    display: flex;
    align-items: center;
    box-shadow: inset 0px 0px 20px 20px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin: 0.2rem .1rem;
    padding: 0rem 0rem 0rem 0.6rem;
}

.modern-form input:focus {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modern-form button {
    background: var(--general-color-four);
    color: var(--general-color-three);
    font-weight: bold;
    border: none;
    padding: 12px 18px;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modern-form button:hover {
    background: #ff4d4d;
}

.footer-menu {
  padding: 3rem 0 3rem 0;
  margin-top: 4rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: #fff4f4;
  font-family: "Inter", "Helvetica", sans-serif;
}

.footer-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* Parent category */
.footer-parent {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2e2e2e;
  text-decoration: none;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.footer-parent:hover {
  color: var(--general-color-one);
  border-color: var(--general-color-one);
}

/* Submenu container */
.footer-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 3px;
}

/* Submenu links */
.footer-sub {
  font-size: 0.92rem;
  color: #575757;
  text-decoration: none;
  transition: color 0.22s ease, transform 0.22s ease;
  padding-left: 4px;
  border-left: 2px solid transparent;
}

.footer-sub:hover {
  color: var(--general-color-one);
  transform: translateX(4px);
  border-left: 2px solid --general-color-one;
}

@media (max-width: 640px) {

  .footer-menu {
    padding: 2.2rem 0;
  }

  .footer-menu-grid {
    grid-template-columns: 1fr 1fr; /* 2 clean columns */
    gap: 1.4rem;
  }

  .footer-parent {
    font-size: 1rem;
  }

  .footer-sub {
    font-size: 0.9rem;
  }
}


#closeWindow {
    position: fixed;
    top: 1%;
    right: 3%;
    font-size: 5rem;
    width: 100px;
    height: 100px;
    font-family: monospace;
    border: none;
    cursor: pointer;
    background: linear-gradient(145deg, #f6a0a0, #ff6f61);
    color: var(--general-color-three);
    border-radius: 12px;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1), -2px -2px 6px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

#closeWindow:hover {
  background: linear-gradient(145deg, #ff6f61, #f6a0a0);
  transform: translateY(-3px);
  box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2), -2px -2px 12px rgba(255, 255, 255, 0.3);
}

#closeWindow:active {
  transform: translateY(1px);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px rgba(255, 255, 255, 0.3);
}

.card-description-section {
    align-items: center;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

.card-description-section > * {
    max-width: 50%;
}

.edit-card {
    width: fit-content;
    padding: 30px;
}

@media (max-width: 430px) {
  .footer-menu-grid {
    grid-template-columns: 1fr; /* 1 column on very small screens */
  }

      #closeWindow {
              width: 40px;
              height: 40px;
              font-size: 1.5rem;
          }
}

 @media (max-width: 768px) {

     .card-description-section > * {
         max-width: 90%;
     }

    .menu ul {
        display: table-column-group;
    }

    .greeting {
        font-size: 1.1rem;
        padding: 10px 15% 20px 15%;
        font-family: 'Vollkorn SC';
    }

    h1 {
        line-height: 100%;
        margin: 0;
        font-size: 2.3rem;
        max-width: 100%;
        padding: 0px 0% 0px 0%;
        font-family: 'Vollkorn SC';
    }

    h2 {
        font-size: 2.3rem;
        line-height: 100%;
    }

    h4 {
        font-size: 20px;
        margin-bottom: 30px;
        margin: 30px 0px 5px 0px;
    }

    }
    .search_navigation {
        display: flex;
        padding: 0rem .5rem;
        flex-wrap: wrap;
        line-height: 70%;
        font-size: 1rem;
        flex-direction: row;
    }

    .modern-form {
        margin-top: 50px;
        border-radius: 20px;
    }

    .modern-form button {
        margin: 10px;
    }

}