/* static/styles.css */

/* General Styles */
body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
}

nav ul li a:hover {
    color: #007bff;
}

/* Home Section Styles */
#home {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.pexels.com/photos/796602/pexels-photo-796602.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2');
    opacity: 0.75;
    z-index: -1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-content h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
}

/* Blogs Section Styles */
#blogs {
    margin-top: 50px;
    padding: 30px 0;
}

#blogs h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

.blog-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 30px;
}

.blog-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.blog-card img {
    width: 100%;
    height: auto;
    display: block;
}

.blog-text {
    padding: 25px;
}

.blog-text h3 {
    margin-bottom: 15px;
    font-size: 1.8em;
}

.blog-text p {
    font-size: 1.1em;
}

/* About Section Styles */
#about {
    margin-top: 50px;
    padding: 30px 0;
}

#about h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 30px;
}

#about p {
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

footer a {
    color: #007bff;
    text-decoration: none;
}

/* Reading Mode Button */
.reading-mode {
    display: inline-block;
}

#mode-button {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;font-size: 1em;
}

/* Banner Styles */
.banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    width: 150px;
    height: auto;
}

.banner img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

.banner span {
    text-align: center;
    margin-bottom: 10px;
}

.banner a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    background-color: #0056b3;
    padding: 10px 15px;
    border-radius: 5px;
}

.banner .close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin-left: 0;
        margin-top: 10px;
        display: block;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 2.5em;
    }

    .blog-cards {
        grid-template-columns: 1fr;
    }

    .blog-text h3 {
        font-size: 1.5em;
    }

    .banner {
        width: 90%;
        right: 5%;
        left: 5%;
    }
}