body, html {
    margin: 0;
    padding: 0;
    height: auto;
    min-height: 100vh;
    width: 100%;
    background: url('bc.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    /*-webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;*/
    text-rendering: optimizeLegibility;
    position: relative; /* Needed for absolute positioning of the overlay */
    z-index: 3;
}

nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: start; /* Align items at the start of the nav */
    padding: 42px 55px 0 55px; /* Top and side padding to match requirements */
    z-index: 2; /* Ensures nav is above the overlay */
}

.logo {
    max-height: 48px; /* Adjusted max height as requested */
    z-index: 2; /* Ensures nav is above the overlay */
}

.contact-link {
    color: white;
    padding: 10px 16px;
    border: 3px solid #ffffff;
    text-decoration: none;
    font-size: 16px;
    border-radius: 40px;
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;

    transition: background-color 0.3s, color 0.3s; /* Smooth transition for hover effects */
    background-color: transparent; /* Transparent background */
    z-index: 2; /* Ensures nav is above the overlay */
}

.centered-content {
    text-align: center;
    color: white;
    font-size: 42px;
    padding: 30px;
    box-sizing: border-box;
    position: relative;
    max-width: 812px;
    font-family: "ivypresto-display", serif;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 1px;
    line-height: 56px;
    z-index: 2; /* Ensures nav is above the overlay */
}

.every {
font-family: "aktiv-grotesk", sans-serif;
font-weight: 300;
font-style: normal;
text-transform: uppercase;
}

.contact-link:hover {
    background-color: white; /* Changes background on hover */
    color: #3a18a5; /* Changes text color on hover */
    border: 3px solid white;
}

/* animated colors

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(128, 10, 164, 0.65); 
    animation: colorCycle 15s linear infinite; 
    z-index: 1;
}

@keyframes colorCycle {
    0%, 100% {
        background: rgba(128, 10, 164, 0.65);
    }
    50% {
        background: rgba(61, 10, 164, 0.65);
    }
}
*/

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  /*background: linear-gradient(
        to bottom left, 
        rgba(127, 23, 116, 0.65) 0%, 
        rgba(51, 39, 140, 0.65) 100%
    ); Creates a vertical gradient from top to bottom */

    background-color: rgb(128 10 164 / 65%) /*rgb(89 10 164 / 65%);; /*rgba(61, 10, 164, 0.5); /*  overlay with 20% opacity */
    /*background-color: rgb(127 10 164 / 50%);     background-color: rgb(64 19 102 / 70%); for papilloma background */
    /*background-color: rgb(131 10 164 / 65%); Endo */
   /* background-color: rgb(128 10 164 / 65%); Pappi 2 */
    /*background-color: rgba(0, 0, 0, 0.6); /* Black overlay with 20% opacity
    z-index: 1; /* Below other content but above the background image */
}

.contact-button {
    display: block;  
    margin-top: 20px; 
    text-align: center; 
    color: #27005a; 
    padding: 10px 24px; 
    border: 3px solid white; 
    background-color: white; 
    font-size: 16px; 
    text-decoration: none; 
    border-radius: 40px; 
    transition: background-color 0.3s, color 0.3s; 
    max-width: 180px;
    margin: 0 auto;
    margin-top: 35px;
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 500;
    font-style: normal;
    text-transform: uppercase;
}

.contact-button:hover {
    background-color: white; 
    color: #000; 
}

.new-text {
    padding: 30px !important;
    max-width: 1800px !important;
}

.new-text a {
    color: white;
    text-underline-offset: 12px; /* Moves the underline 4px below the text */
    text-decoration-thickness: 3px; /* Makes the underline 2px thick */
    font-family: "aktiv-grotesk", sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 34px; 
}

.new-text a:hover {
    color: #d4d5ff;
}

br {
    content: "";
    display: block;
    margin-top: 26px; /* Adjusts space before the break */
}

@media (max-width: 480px) {
    /* Styles for smaller devices (phones) go here */
    img {
    max-width: 100%;
    height: auto;
}

.centered-content {
    font-size: 36px;
    line-height: 44px;
    padding: 0 18px 0 18px;
}


nav {
    padding: 42px 18px 0 18px !important;
}

.logo {
    max-height: 42px;
    }


.new-text {
    line-height: 42px;
    /*padding-top: 15px;*/

    padding: 0 !important;
    margin-top: 100px;
    box-sizing: border-box;
}

.new-text a {
    font-size: 28px;
}


}


