body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #fff 0%, #f8f0fb 100%);
    color: purple;
    text-align: center;

}


h1 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}


section {
    min-height: 100dvh;
    height: auto;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    scroll-margin-top: 0px;
    text-align: center;
}


html {
    scroll-behavior: auto;
    scroll-snap-type: y mandatory;
}


img {
    max-width: 90vw; 
    height: auto;   
    display: block;

}


.button-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;   /* keep buttons at readable size */
    margin: 0 auto;     /* centers the container */
    align-items: center; /* ensures content inside is centered */
}



/* button styles */
.animated-btn {
    width: 100%;
    padding: 15px 0;
    font-size: 1.5rem;
}


.animated-btn {
    background: linear-gradient(90deg, #a4508b 0%, #5f0a87 100%);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 20px 60px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(164,80,139,0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.4s;
    outline: none;
    position: relative;
    overflow: hidden;
}
.animated-btn::after {
    content: "";
    position: absolute;
    left: -75%;
    top: 0;
    width: 50%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transform: skewX(-20deg);
    transition: left 0.5s;
}
.animated-btn:hover {
    transform: scale(1.07) rotate(-1deg);
    box-shadow: 0 12px 32px rgba(95,10,135,0.25);
    background: linear-gradient(90deg, #5f0a87 0%, #a4508b 100%);
}
.animated-btn:hover::after {
    left: 120%;
}


/* search bar styles*/
.search-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
}
.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px; /* extra right padding for icon */
    border: 2px solid #a4508b;
    border-radius: 50px;
    outline: none;
    font-size: 1.2rem;
    color: #5f0a87;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(164, 80, 139, 0.1);
    transition: all 0.3s ease;
}
.search-input:focus {
    box-shadow: 0 0 12px rgba(95, 10, 135, 0.4);
    border-color: #5f0a87;
}
.search-input::placeholder {
    color: #b57cc7;
    opacity: 0.8;
}
.search-input, .animated-btn {
    width: 100%;            /* fill the container */
    max-width: 400px;       /* consistent width */
    box-sizing: border-box; /* include padding in width */
}


@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    p, li {
        font-size: 1.2rem;
        line-height: 1.5;
    }

    .animated-btn {
        font-size: 1.4rem;
        padding: 15px 40px;
    }

    .button-container {
        max-width: 90%;
    }

    section {
        padding: 20px;
        min-height: 100dvh;
        height: auto; /* allows scrollable sections instead of forced full height */
    }

    img {
        max-width: 80vw;
    }
}
