/* Based on the original style.css from the Spring version.
   Changes: removed invalid rules, made in-content links readable,
   and made the deer photo stop covering the menu on narrow screens. */

html, body {
    overflow-x: hidden;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
}

html { margin: 0; height: 100%; }

body {
    margin: 8px;
    font-family: 'Ubuntu Mono', monospace;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 16px);
    background-color: #1A1A2E;
    color: #F0F0F0;
}

/* Nav styles */
nav {
    background: linear-gradient(to bottom, #2A2A40, #3c3c6b);
    padding: 1em 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    background-color: #4445;
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px solid #555;
    transition: background-color 0.3s, border-color 0.3s;
}

.menu a:hover {
    background-color: #FFD700;
    color: #1A1A2E;
    border-color: #FFD700;
    transition: all 0.3s ease;
}

a:hover {
    color: #00f207;
    transition: color 0.3s ease;
}

/* In-content links (originally only on Projects; the default dark blue was unreadable elsewhere) */
.container a:link {
    color: #00bbff;
    text-decoration: none;
}

.container a:visited {
    color: red;
}

.container a:hover {
    color: #00f207;
}

/* Content styles */
.container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
    background-color: transparent;
    flex: 1;
}

/* Footer styles */
footer {
    width: 100%;
    padding: 20px 0;
    background: linear-gradient(to bottom, #1A1A2E, #007BFF);
    color: white;
    text-align: center;
    box-sizing: border-box;
    border-top: 2px solid #FFD700;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* Heading styles */
h1, h2, h3, h4, h5, h6 {
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.profile-photo {
    position: absolute;
    top: 0;
    right: 0;
    max-width: 150px;
    border-radius: 50%;
    margin-top: 10px;
    margin-right: 10px;
}

.readable-text {
    max-width: 75ch;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #333; /* dimmed on purpose, as in the original */
    overflow-wrap: break-word;
    hyphens: auto;
    margin-bottom: 1.5em;
}

/* Narrow screens: the photo sits in the corner of the nav instead of on top of the buttons */
@media (max-width: 700px) {
    .profile-photo {
        max-width: 64px;
        margin-top: 12px;
        margin-right: 12px;
    }

    .nav-content {
        padding: 0 84px 0 12px;
    }

    .menu {
        gap: 6px;
    }

    .menu a {
        padding: 8px 12px;
    }
}
