h1 {
    font-family: "meursault-variable", sans-serif;
    font-variation-settings: "wght" 700, "wdth" 10;
    font-style: normal;
    text-align: center;
    color: #222;
    transition: all 0.3s ease;
}

h1:hover {
    transform: scale(1.05);
    
}

body {
    font-family: "meursault-variable", serif;
    font-variation-settings: "wght" 500, "wdth" 1;
    text-align: center;
    background-color: #ffb400;
}

img {
    transition: all 0.3s ease;
}

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

.navbar {
    display: inline-flex;
    align-items: center;
    background: #373f47;
    padding: 0 32px;
    border-radius: 24px;
    height: 64px; /* Set navbar height smaller than logo */
    overflow: visible; /* Allow logo to overflow */
    margin-top: 40px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15); /* Add this line */
}

.navbar-group {
    display: flex;
    gap: 32px;
    flex: 1;
    transition: all 0.3s ease;
}

.navbar-group:first-child {
    justify-content: flex-end;
}

.navbar-group:last-child {
    justify-content: flex-start;
}

.navbar-logo-circle {
    width: 128px;
    height: 128px;
    background: #373f47;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 24px;
}

.navbar-logo {
    width: 96px !important;
    height: 96px !important;
    object-fit: contain;
    margin-top: 8px;   /* Move logo up */
    margin-left: 5px;   /* Move logo right */
}

.navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
}


.navbar a:hover {
    font-variation-settings: "wght" 700, "wdth" 10;
    transform: scale(1.1);
}

ul {
    list-style-type: disc;
    padding-left: 40px; /* ensures bullets are visible */
    text-align: left;
}

.main-message {
    position: relative; /* Ensure relative positioning for absolute children */
    max-width: 800px;
    margin: 84px auto 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.main-message h1 {
    position: absolute;
    left: 50%;
    top: -1em; /* Adjust this value for overlap */
    transform: translateX(-50%);
    text-align: center;
    background: #fff;
    padding: 0.2em 0.8em;
    border-radius: 12px;
    z-index: 4;
    display: inline-block;
    margin: 0;
}

.main-message h1:hover {
    transform: translateX(-50%) scale(1.1); /* scale up and keep centered */
    transition: transform 0.3s ease;
}