/* static/styles/pedagogy.css */

/* Styling for Main Background */
main {
    padding: 2rem;
    background-image: url("/static/pictures/assets/wallpaper/pixel_cascade.2d1ea3dcbbff.gif");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #f9f9f9;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}

/* Title Styling */
#pedagogy h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #f1f1f1;
    margin-bottom: 2rem;
}

/* Article Sections */
#pedagogy article {
    width: 60%;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: rgba(0, 0, 0, 0.65);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    color: #e0e0e0;
}

/* Left and Right Alignment */
.align-left {
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    transform: translateX(-10%);
}

.align-right {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
    transform: translateX(10%);
}

/* Title and Paragraph Styling */
#pedagogy article h2 {
    font-size: 2rem;
    color: #f9f9f9;
    margin-bottom: 1rem;
}

#pedagogy article p {
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #pedagogy article {
        width: 90%;
        padding: 1rem;
        transform: translateX(0); /* Disable translation for smaller screens */
    }

    #pedagogy h1 {
        font-size: 2rem;
    }

    #pedagogy article h2 {
        font-size: 1.6rem;
    }

    .align-left,
    .align-right {
        text-align: center;
        transform: translateX(0); /* Center align articles on smaller screens */
    }
}
