/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Full-Width Header */
header {
    background-color: #9a9da3;
    color: black;
    text-align: center;
    padding: 20px 0;
    width: 100vw;
    /* Ensures full width */
    position: relative;
    left: 0;
}

/* Header Text */
header h1 {
    font-size: 2.5rem;
}

/* Main Content */
main {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}

/* Blog Post Styling */
.blog-post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.blog-post h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-post h3 {
    font-size: 1.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.blog-post p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.blog-post ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

/* Code Blocks */
.blog-post pre {
    background-color: #f4f4f4;
    padding: 15px;
    border-radius: 8px;
    font-size: 1rem;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive Input Fields */
input[type="text"] {
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

#password-strength {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Full-Width Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 15px 0;
    font-size: 0.9rem;
    width: 100vw;
    /* Ensures full width */
    position: relative;
    left: 0;
}

/* ------------------------- */
/* Responsive Design */
/* ------------------------- */

/* Tablets & Small Screens */
@media (max-width: 1024px) {
    main {
        width: 90%;
        padding: 15px;
    }

    .blog-post {
        padding: 18px;
    }

    .blog-post h2 {
        font-size: 1.6rem;
    }

    input[type="text"] {
        width: 100%;
    }

    footer {
        font-size: 0.85rem;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    header {
        padding: 15px;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        width: 95%;
        padding: 10px;
    }

    .blog-post {
        padding: 15px;
    }

    .blog-post h2 {
        font-size: 1.5rem;
    }

    .blog-post p {
        font-size: 0.95rem;
    }

    input[type="text"] {
        width: 100%;
        font-size: 0.95rem;
    }

    footer {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    header {
        padding: 12px;
    }

    header h1 {
        font-size: 1.6rem;
    }

    main {
        width: 98%;
        padding: 8px;
    }

    .blog-post {
        padding: 12px;
    }

    .blog-post h2 {
        font-size: 1.4rem;
    }

    .blog-post p {
        font-size: 0.9rem;
    }

    input[type="text"] {
        font-size: 0.9rem;
        padding: 8px;
    }

    footer {
        font-size: 0.75rem;
        padding: 8px;
    }
}