/* General Page Styling */
body {
    background-color: bisque;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Main Content Box */
#content {
    background-color: white;
    width: 60%;
    margin: 40px auto; /* Center with space */
    padding: 20px;
    border: 7px solid #3f2b27;
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Heading Styles */
h1 {
    text-align: center;
    font-size: 2em;
    color: #3f2b27;
    margin-bottom: 5px;
}

h2 {
    text-align: center;
    font-size: 1.5em;
    color: #6a4c3b;
    margin-bottom: 20px;
}

h3 {
    color: #3f2b27;
    margin-top: 30px;
}

/* Paragraph Styling */
p {
    font-size: 1em;
    line-height: 1.6;
    color: #3f2b27;
    text-align: justify;
    margin: 10px 0;
}

/* Navigation Styling */
#main-nav ul {
    list-style-type: none;
    padding: 0;
    text-align: center;
}

#main-nav li {
    display: inline;
    margin: 0 15px;
}

#main-nav a {
    text-decoration: none;
    color: #3f2b27;
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 10px;
    transition: all 0.3s ease-in-out;
}

#main-nav a:hover {
    color: #fff;
    background-color: #3f2b27;
    border-radius: 5px;
    padding: 5px 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #content {
        width: 90%;
        padding: 15px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.3em;
    }

    #main-nav li {
        display: block;
        margin: 10px 0;
    }
}

/* Assignments Section */
#assignments {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between assignment boxes */
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Individual Assignment Box */
.assignment {
    background-color: #fff;
    border: 3px solid #3f2b27;
    border-radius: 10px;
    width: 180px;
    padding: 10px;
    text-align: center;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.assignment:hover {
    transform: scale(1.05);
}

/* Assignment Image */
.assignment img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Assignment Link */
.assignment a {
    display: block;
    margin-top: 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: #3f2b27;
    text-decoration: none;
}

.assignment a:hover {
    color: white;
    background-color: #3f2b27;
    padding: 5px;
    border-radius: 5px;
}

/* ------------------- */
/* Projects Section */
/* ------------------- */

#projects {
    background-color: white;
    width: 50%; /* Smaller width */
    margin: 30px auto; /* Less margin */
    padding: 15px; /* Less padding */
    border: 5px solid #3f2b27; /* Slightly smaller border */
    border-radius: 8px;
    box-shadow: 3px 3px 12px rgba(0, 0, 0, 0.15);
    text-align: center;
}

/* Project Container */
.project-container {
    display: flex;
    justify-content: center;
    gap: 15px; /* Less spacing between projects */
    flex-wrap: wrap;
    margin-top: 15px;
}

/* Individual Project Box */
.project {
    background-color: #fff;
    border: 2px solid #3f2b27;
    border-radius: 8px;
    width: 220px; /* Smaller width */
    padding: 10px;
    text-align: center;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.project:hover {
    transform: scale(1.03);
}

/* Project Wireframe (iFrame) */
.project iframe {
    width: 100%;
    height: 200px; /* Smaller height */
    border-radius: 8px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Project Link */
.project a {
    display: inline-block;
    margin-top: 8px;
    font-size: 1em;
    font-weight: bold;
    color: #3f2b27;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 4px;
    border: 2px solid #3f2b27;
    transition: all 0.3s ease-in-out;
}

.project a:hover {
    background-color: #3f2b27;
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #projects {
        width: 80%; /* Adjusted width */
        padding: 10px;
    }

    .project-container {
        flex-direction: column;
        align-items: center;
    }

    .project {
        width: 90%;
    }

    .project iframe {
        height: 180px;
    }
}
