/* Retro terminal homepage style for Web Programming I */

/* Applies border-box sizing to all elements for easier layout control */
* {
    box-sizing: border-box;
}

/* Base page styling */
body {
    margin: 0;
    font-family: "Courier New", Courier, monospace;
    background: #050807;
    color: #d6ffe2;
    line-height: 1.6;
}

/* Page header */

header {
    background: linear-gradient(135deg, #07140d, #0b2b1a);
    color: #7CFF9B;
    text-align: center;
    padding: 40px 20px;
    border-bottom: 2px solid #35ff75;
    box-shadow: 0 0 20px rgba(53, 255, 117, 0.25);
}

header h1 {
    margin: 0;
    font-size: 2.4rem;
    letter-spacing: 2px;
    text-shadow: 0 0 8px rgba(124, 255, 155, 0.8);
}

header p {
    margin-top: 10px;
    color: #b9ffd0;
}

/* Navigation menu */

nav {
    background-color: #0b0f0c;
    text-align: center;
    padding: 14px;
    border-bottom: 1px solid #35ff75;
    position: sticky;
    top: 0;
}

nav a {
    color: #7CFF9B;
    text-decoration: none;
    margin: 0 14px;
    padding: 8px 12px;
    border: 1px solid transparent;
}

nav a:hover {
    color: #050807;
    background-color: #7CFF9B;
    border: 1px solid #35ff75;
    box-shadow: 0 0 12px rgba(124, 255, 155, 0.8);
}

/* Main content and section cards */

main {
    width: 90%;
    max-width: 1000px;
    margin: 30px auto;
}

section {
    background-color: #0d1611;
    border: 1px solid #2d8f4f;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 0 18px rgba(45, 143, 79, 0.25);
}

h2 {
    color: #7CFF9B;
    border-bottom: 1px solid #35ff75;
    padding-bottom: 8px;
    text-shadow: 0 0 6px rgba(124, 255, 155, 0.6);
}

h3 {
    color: #b9ffd0;
}

p {
    color: #d6ffe2;
}

/* Assignment table */

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    background-color: #08100b;
}

th {
    background-color: #12351f;
    color: #7CFF9B;
    padding: 12px;
    border: 1px solid #35ff75;
    text-align: left;
}

td {
    padding: 12px;
    border: 1px solid #2d8f4f;
}

tr:nth-child(even) {
    background-color: #0f1f15;
}

td a {
    color: #7CFF9B;
    font-weight: bold;
    padding: 3px 6px;
    display: inline-block;
}

td a:hover {
    color: #050807;
    background-color: #7CFF9B;
}

/* Page footer */

footer {
    background-color: #0b0f0c;
    color: #7CFF9B;
    text-align: center;
    padding: 18px;
    border-top: 1px solid #35ff75;
    margin-top: 40px;
}

/* Terminal cursor effect for header text */
.terminal-line {
    display: inline-block;
    border-right: 2px solid #7CFF9B;
    padding-right: 6px;
}

/* Bio section image layout */

.bio-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bio-image {
    width: 320px;
    max-width: 100%;
    border: 1px solid #35ff75;
    border-radius: 8px;
    box-shadow: 0 0 18px rgba(124, 255, 155, 0.35);
}

.bio-content p {
    margin: 0;
}

/* Responsive layout for smaller screens */
@media (max-width: 700px) {
    .bio-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .bio-image {
        width: 100%;
    }
}