* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.adventure-page {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    color: #333;
}

/* Ensure the background image covers the area responsively */
.adventure-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}


.quotesecond h4{
    font-size: 5rem; /* This makes the font size scale based on the viewport width */
    justify-content: center;
    margin-top:12%;
    text-align: center;
    color: #fff;
    font-family: "Lumanosimo", cursive;
    text-transform: capitalize;
}

/* Adjust text and container width for responsiveness */
.article {
    position: relative;
    text-align: justify;
    color: rgb(0, 0, 0);
    font-size: 1.5rem;
    max-width: 900px;
    margin: 5% auto;
    line-height: 1.6;
    padding: 0 20px; /* Add padding for smaller screens */
    /* New animation properties */
    animation-duration: 0.8s;
    animation-name: fadeScaleUp;
    animation-iteration-count: 1; /* Only plays once */
    animation-timing-function: ease-in-out; /* Smooth easing */
    animation-fill-mode: forwards; /* Keep final state */
    opacity: 0; /* Start invisible */
}

/* Define the fade-in and scale-up keyframes */
@keyframes fadeScaleUp {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.article h3 {
    text-align: center;
    font-size: 2rem; /* Make the heading stand out */
    color: #3e5e40;
    margin-bottom: 15px;
}


/* Media Queries for smaller screens */

/* Tablets and large phones */
@media (max-width: 1024px) {
    .quotesecond h4{
        font-size: 3rem;
        margin-top: 20%;
    }    

    .article {
        font-size: 1.05rem; /* Smaller text size */
        line-height: 1.5; /* Adjust line height for readability */
        padding: 0 15px; /* Reduce padding for medium screens */

    }
}

/* Smartphones and small tablets */
@media (max-width: 768px) {
    .quotesecond h4{
        font-size: 3rem;
        margin-top: 20%;
    }    

    .article {
        font-size: 1rem; /* Adjust text size */
    }
    .article p{
        margin-right: 4em;
        margin-left: 4em;
    }
}

/* Very small devices like older phones */
@media (max-width: 480px) {
    .quotesecond h4{
      font-size: 1.8rem;
        margin-top: 50%;
    }    

    .article {
        padding:2%; /* Minimal padding */
    }

    .article p{
        font-size: 0.95rem; /* Smaller font for tiny devices */
        line-height: 1.6; /* Increase line height for readability */
        margin-right: 2em;
        margin-left: 2em;
    }
}
