/* Importing Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f4f8; /* Light Navy Background */
    color: #333;
}

header {
    background-color: #001f3f; /* Navy Blue */
    color: #FFD700; /* Gold */
    padding: 20px 0;
    text-align: center;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.logo {
    width: 80px;
    margin-bottom: 10px;
}

nav a {
    color: #FFD700; /* Gold */
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    position: relative;
    transition: color 0.3s;
}

nav a:hover {
    color: #f0f4f8; /* Light Navy on hover */
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #FFD700; /* Gold */
    transition: width .3s;
}

nav a:hover::after {
    width: 100%;
}

main {
    padding: 40px 20px;
}

section {
    max-width: 1000px;
    margin: 0 auto 40px auto;
    text-align: center;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #FFD700; /* Gold Border */
}

section h2 {
    font-family: 'Libre Baskerville', serif;
    color: #001f3f; /* Navy Blue */
    margin-bottom: 30px;
    position: relative;
    font-size: 2em;
}

section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #FFD700; /* Gold */
    margin: 10px auto 0 auto;
}

.obituary p {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 15px;
}

.obituary a {
    color: #001f3f; /* Navy Blue */
    text-decoration: none;
    border-bottom: 1px dashed #001f3f;
}

.obituary a:hover {
    text-decoration: underline;
}

.gallery .images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery img {
    max-width: 250px;
    border: 2px solid #ccc;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

.additional-info {
    text-align: center;
}

.additional-info a {
    color: #001f3f; /* Navy Blue */
    text-decoration: none;
    border-bottom: 1px dashed #001f3f;
}

.additional-info a:hover {
    text-decoration: underline;
}

footer {
    background-color: #001f3f; /* Navy Blue */
    color: #FFD700; /* Gold */
    text-align: center;
    padding: 15px 0;
    position: relative;
    width: 100%;
    bottom: 0;
}
