/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scrolling */
    box-sizing: border-box;
    /* Include padding and border in width/height */
}

*,
*::before,
*::after {
    box-sizing: inherit;
    /* Inherit box-sizing for all elements */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Landing Container */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    width: 100%;
    /* Ensure it doesn't exceed the viewport */
}

/* Title Section */
.title-section {
    width: 100%;
    margin-bottom: 2rem;
}

/* ========== Feed Title Styling ========== */
.main-title {
    font-size: 5rem;
    font-weight: 1000;
    text-align: center;
    color: #fff;
    /*  background: linear-gradient(90deg, #ff8a00, #e52e71, #6a11cb, #2575fc);
    /* Additional welcoming and friendly colors */
    background: linear-gradient(90deg, #ff7e5f, #feb47b, #86a8e7, #91eae4, #fbc2eb, #a6c0fe, #fda085, #f6d365);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 30px auto;
    /* text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5); */
    letter-spacing: 2px;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 10px 20px #79a68f(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;

}

.description {
    font-size: 1.2rem;
    color: #555;
    margin: 1rem 0 0;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-weight: justify;
}

/* Optional: Add a different font for quotes or special highlights */
.dictionary-entry {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #333;
    font-size: 1.7rem;
    margin: 1rem 0;
}

/* Call-to-Action Buttons */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    /* Center buttons on larger screens */
    margin: 2rem auto;
    text-align: center;
    /* Ensure proper alignment */
}

.btn {
    display: block;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    width: 100%;
    /* Full width for smaller screens */
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary {
    border: 2px solid;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Radiant Gradient Section */
.gradient-section {
    width: 100%;
    margin-top: 2rem;
}

canvas {
    display: block;
    width: 100%;
    height: 25px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
    color: #888;
}

.description {
    font-size: 1.2rem;
    color: #555;
    margin: 1rem 0;
    padding: 0 1rem;
    text-align: justify;
    line-height: 1.8;
    word-spacing: 0.1rem;
    letter-spacing: 0.02rem;
}

/* Optional: Add slight indent for the first line */
.description::first-line {
    font-weight: bold;
    text-indent: 1rem;
}

.dictionary-entry {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007aff;
    margin-bottom: 1rem;
    text-align: center;
}

.arabic-word {
    font-family: 'Amiri', serif;
    /* A beautiful Arabic font */
    font-size: 2rem;
    color: #333;
}

.pronunciation {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
}

.part-of-speech {
    font-size: 1rem;
    font-weight: 400;
    color: #888;
}

/* Basic styles for the cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-banner p {
    margin: 0;
}

.cookie-btn {
    margin-left: 10px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.cookie-btn:hover {
    background-color: #0056b3;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 768px) {

    /* Main title scaling */
    .main-title {
        font-size: 2.8rem;
        letter-spacing: 1px;
        padding: 10px 15px;
    }

    /* Description adjustments */
    .description {
        text-align: justify;
        padding: 0 0.5rem;
        font-size: 1rem;
        line-height: 1.6;
    }

    /* Dictionary entry */
    .dictionary-entry {
        font-size: 1.3rem;
        margin: 0.5rem 0;
    }

    /* Call-to-Action Section */
    .cta-section {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
        padding: 0 0.5rem;
        margin-top: 1rem;
    }

    /* Button styles */
    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    /* Gradient section */
    .gradient-section {
        height: 150px;
        margin-top: 1.5rem;
    }

    /* Footer adjustments */
    .footer {
        font-size: 0.8rem;
        padding: 1rem;
    }
}