.card {
    width: 45%;
    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: "Select";
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    background: #f6a0a0;
    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: #f6a0a0;
    padding: 15px 5px 15px 5px;
    margin: 5px 0px 20px 0px;
    border-radius: 10px;
    width: 30%;
    color: white;
    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: 30px 0px 10px 0px;
    border-top: solid;
    border-bottom: solid;
    border-color: #ff7b7b;
}

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

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

.slideshow {
    background-color: #fff;
    text-align: center;
    padding: 5px 20px;
}

.short-article {
    background-color: #f6a0a0;
    width: 100%;
    padding: 20px 0px 20px 0px;
    margin: 0;
}

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

h4 {
    font-size: 30px;
    color: #ff6f61;
    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;
    width: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cta a {
    text-decoration: none;
    background-color: #ff6f61;
    color: white;
    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: #ff6b6b;
}

.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: #ff6b6b;
    color: white;
    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;
}

 @media (max-width: 768px) {
     .card {
         width: 90%;
     }

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

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

    h1 {
        line-height: 100%;
        margin: 0;
        font-size: 2.3rem;
        max-width: 100%;
        padding: 10px 20% 50px 20%;
        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;
    }

    .edit-card {
        width: 40%;
    }

}