* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: white;
    height: 100vh;
    width: 100vw;
    overflow: auto;
}

.container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.center-image {
    max-width: 56%;
    max-height: 42%;
    object-fit: contain;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

.nav-item {
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    text-transform: lowercase;
}

.nav-item:hover {
    opacity: 0.7;
}

.name {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #000;
    text-transform: lowercase;
}

.poems-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.poems-navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.poem-nav-item {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #000;
    text-decoration: none;
}

.poem-nav-item:hover {
    opacity: 0.7;
}

.poem-text {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #000;
    text-transform: lowercase;
}

.matins-container {
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    overflow-y: auto;
    overflow-x: auto; /* allow horizontal scroll for long lines */
}

.matins-header {
    font-family: Arial, sans-serif;
    font-size: 32px;
    color: #000;
    margin-bottom: 30px;
    text-align: left;
}

.matins-text {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #000;
    text-align: left;
    white-space: pre; /* preserve line breaks and spaces; no wrapping */
    overflow-wrap: normal; /* don't force breaks */
    word-break: normal; /* don't break words */
    line-height: 0.8;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    text-transform: lowercase;
}

.back-button:hover {
    opacity: 0.7;
}

.home-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #000;
    text-decoration: none;
    text-transform: lowercase;
}

.home-button:hover {
    opacity: 0.7;
}

.bio-container {
    display: flex;
    gap: 40px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    height: 100vh;
    overflow-y: auto;
    align-items: center;
}

.bio-image-container {
    flex: 0 0 auto;
}

.bio-image {
    max-width: 400px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.bio-content {
    flex: 1;
}

.bio-text {
    width: 100%;
    font-family: Arial, sans-serif;
    font-size: 16px;
    color: #000;
    text-align: left;
    line-height: 1.6;
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

.contact-text {
    font-family: Arial, sans-serif;
    font-size: 24px;
    color: #000;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        height: auto;
        width: 100%;
    }

    .container {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }

    .center-image {
        max-width: 90%;
        max-height: 40vh;
    }

    .navigation {
        gap: 24px;
    }

    .nav-item {
        font-size: 16px;
    }

    .name {
        font-size: 18px;
        bottom: 12px;
        left: 12px;
    }

    .bio-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px;
        height: auto;
    }

    .bio-image {
        max-width: 70vw;
    }

    .bio-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .poems-navigation {
        gap: 20px;
    }

    .poem-nav-item {
        font-size: 20px;
    }

    .matins-container {
        padding: 20px;
        height: auto;
        overflow-x: auto; /* keep horizontal scroll on mobile */
    }

    .matins-header {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .matins-text {
        font-size: 16px;
        line-height: 1.1;
    }

    .home-button {
        bottom: 12px;
        left: 12px;
        font-size: 16px;
    }

    .back-button {
        top: 12px;
        left: 12px;
        font-size: 16px;
    }

    .contact-text {
        font-size: 20px;
    }
}

