/* General Styles */
body {
    background-color: #ff8a04;
    font-family: Calibri, sans-serif;
    background-image: radial-gradient(#f38609 2px, transparent 4px);
    background-size: 25px 25px;
    color: #333; /* Added for better readability */
    margin: 0;
    padding: 0;
}

.page-wrapper {
    width: 100%;
    height: 100%;
}

.page-spacer {
    height: 6px;
    background-color: #1c2d6d;
    margin: auto;
    min-width: 320px;
    max-width: 2000px;
}

.blank-page-spacer {
    height: 20px;
    margin: auto;
    min-width: 340px;
    max-width: 90%;
}

/* Header Section */
.header {
    margin: auto;
    min-width: 350px;
    max-width: 2000px;
    background-color: aliceblue;
    background-image: radial-gradient(#ededed 12px, transparent 16px);
    background-size: 50px 50px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow-x: hidden;
}

.header-img-wrapper {
    position: relative;
    margin: auto;
    height: 290px;
}

.circular-wrapper {
    position: absolute;
    min-width: 150px;
    z-index: 1;
    top: 20px;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
}

/* Circle Image */
.circular-frame {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -8px;
}

.circular_image {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #2f417f;
    display: inline-block;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    background-image: url("../img/headshot/TseLaam2024PhotoSquareOrange.jpg");
    background-size: cover;
    transition: background-image 0.5s 3s; /* Clarified transition */
    cursor: pointer;
}

.circular_image img {
    width: 100%;
    height: 100%;
}

.circular_image:active {
    background-image: url("../img/headshot/smilingHarvey.jpg");
    transition: background-image 0.5s;
}

/* End of Circle Image */

.tickle {
    position: absolute;
    z-index: 2;
    left: calc(50% + 40px); /* Adjusted for centering */
    top: 145px;
}

.page-name {
    position: absolute;
    z-index: 2;
    left: 50%;
    transform: translateX(-50%); /* Center horizontally */
    top: 228px;
}

/* Navbar */
.nav-wrapper {
    padding-top: 29px;
    margin: auto;
    background-image: url("../img/graphics/navbrushstroke4.png");
    background-repeat: no-repeat;
}

.navbar {
    display: flex;
    text-align: center;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 18px;
    padding-bottom: 8px;
    background-color: #131e46;
    justify-content: center;
    align-items: center;
}

/* Style the navigation bar links */
.navbar a {
    color: white;
    padding: 14px 20px;
    text-decoration: none;
    text-align: center;
    width: 100px;
    background-repeat: no-repeat; /* Ensure no repeat for default state */
    outline: none;
}

.navbar a:hover {
    background-image: url("../img/graphics/navstrokeHover.png");
    background-size: 68%;
    background-position: center;
    background-repeat: no-repeat; /* Ensure no repeat */
}

.navbar .page-active {
    background-image: url("../img/graphics/navstrokeActive.png");
    background-size: 68%;
    background-position: center;
    background-repeat: no-repeat; /* Ensure no repeat */
}

/* End of Navbar */

.spacer {
    aspect-ratio: 2000 / 60;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    max-height: 60px;
    background-color: #2f417f;
}

.layerNav {
    background-image: url('../img/graphics/waves/layerNav.svg');
}

.content {
    margin: auto;
    min-width: 300px;
    max-width: 2000px;
    min-height: 400px;
    background-color: #2f417f;
}

/* Footer Section */
.footer {
    margin: auto;
    position: relative;
    min-width: 300px;
    max-width: 2000px;
    padding: 16px 0;
    background-color: #131e46;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

.footer .logo {
    position: absolute;
    top: 25px;
    left: 50%;
    width: 120px;
    height: 120px;
    z-index: 1;
    background-image: url("../img/logos/charonv2.png");
    background-size: 97%;
    background-position: center;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgb(221, 215, 180);
    background-repeat: no-repeat;
    transform: translateX(-50%);
    border: 2px solid;
}

.footer .signature {
    padding-top: 140px;
    font-size: 10px;
    color: rgb(163, 163, 163);
    text-align: center;
}

.footer .signature .important {
    font-size: 15px;
}

/* Responsive layout for screens less than 720px wide */
@media screen and (max-width: 720px) {
    .navbar {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .navbar a {
        padding: 8px 18px;
        font-size: 15px;
    }

    body {
        padding: 0;
        margin: 8px;
    }

    .header {
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .footer {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
}
