html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom right, #ffe0e0, #d0cfff);
    color: #333;
    transition: all 0.9s ease;
}

header {
    text-align: center;
    padding: 3rem 1rem;
    background-color: #fff0f5;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-family: cursive;
}

.cta {
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: 1px solid teal;
    box-shadow: 2px 2px grey;
    border-radius: 8px;
    background-color: #ff6b81;
    color: white;
    cursor: pointer;
}

.cta.secondary {
    background-color: #6c5ce7;
}

.mood-selector {
    text-align: center;
    padding: 2rem 1rem;
}

.moods button {
    margin: 0.5rem;
    padding: 15px 25px;
    font-size: 18px;
    border: /* none */ 1px solid teal; /* Change this back later */
    box-shadow: 2px 2px grey; /* Change this later */
    border-radius: 12px;
    background-color: #f0f0f0;
    cursor: pointer;
    transition: transform 0.3s eas, background-color 0.3s ease;
}

.moods button:hover {
    background-color: #facdce;
    transform: scale(1.1);
}

button {
    /* transition: background-color 0.3s; */
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

button:hover {
    background-color: #f7657b;
    transform: scale(1.05);
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.featured-recipes {
    padding: 2rem;
    margin-top: 2rem; /* added this*/
    background-color: azure;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.featured-recipes.visible {
    opacity: 1;
    transform: translateY(0);
}

.recipe-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    min-width: 250px;
}

.recipe-card {
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    height: 100%;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    /* flex:  1 1 300px */ /*none; */
    cursor: pointer;
    /* display: inline; */
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.recipe-card img {
    width: 100%;
    height: auto;
    /* display: block; */
}

.vip-teaser {
    text-align: center;
    padding: 2rem;
    background-color: rosybrown;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #f7f7f7;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    .cta {
        width: 100%;
        margin: 0.5rem 0;
    }

    .recipe-card {
        width: 100%;
        max-width: 250px;
    }

    .moods button {
        font-size: 1rem;
        padding: 0.5rem;
    }

    .recipe-card img {
        width: 100%;
        min-height: 200px;
    }

    .flip-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 1.5rem;
    }

    .flip-card-inner,.flip-card-front, flip-card-back {
        height: auto;
        min-height: 300px;
    }
}

.flip-card {
    width: 25%;
    height: 100%; /* bumped it up */
    perspective: 1000px;
    display: inline;
    flex: 1 1 300px;
    max-width: 300px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 350px;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    border-radius: 16px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border: 2px ridge rosybrown;
    border-radius: 16px;
    /* moved */
    background-color: transparent;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;/* 
    width: 250px;
    height: 330px; */
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 0.5rem;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    /* display: flex; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.flip-card-front {
    background-color: #ffb6c1;
    color: #854b4b;
    width: 100%;
    height: 350px;
    padding: 10px;
    text-align: center;
    perspective: 1000px;
    overflow-y: auto;
}

.flip-card-back {
    background-color: #ffbdc7;
    color: #303;
    width: 100%;
    height: 350px;
    transform: rotateY(180deg);
    overflow-y: auto;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff8dc;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1.5s ease;
}

#loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ffe4e1;
    border-top: 6px solid #ff6b81;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {transform: rotate(360deg);}
}

.scroll-cue {
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 20px;
    margin-top: 10px;
    animation: bounce 2s infinite;
    font-size: 2rem;
    color: #ff6b81;
    cursor: pointer;
    z-index: 1000;
}

.scroll-cue:hover {
    color: #ff3b6a;
    text-shadow:0 0 8px #ffb6c1 ;
}

#scrollCue {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 2rem;
    color: #ff6b81;
    cursor: pointer;
    animation: bounce 2s infinite;
    z-index: 1000;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

a {
    text-decoration: none;
} 

.logo {
    max-width: 20px;
    max-height: 20px;
    /* display: inline-flex; */
}

.flip-card-front img {
    width: 100%;
    min-width: 100px;
    height: auto; 
    /* display: block; */
    max-height: 180px; /* Or change it to whatever suits my layout later on */
    margin: 0 auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

#contact {
    padding-left: 10px;
}

 