/* General styles for nav */
nav {
width: 100%;
    background-color: none; /* Adjust to your preference */
    position: absolute;
 max-width: 1600px;
}
body{
overflow-x: hidden;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px;
    padding: 0;
    width: 100%;
}

/* Styling for links on the left */
nav ul li {
    margin: 0 10px;
    color: white;
    display: flex;
    flex-basis: 100%;
    flex-grow: 1;
    justify-content:flex-end;
    animation: fadeIn 1s ease-in-out;
    animation-fill-mode: both;
}
nav ul li:nth-child(3){
justify-content: center;
    margin-left: 5%;
    flex-basis: 100%;
}
nav ul li:nth-child(4){
justify-content: center;
    flex-basis: 100%;
}

nav ul li:nth-child(5){
justify-content: center; 
flex-basis: 70%;
    flex-grow: 0;
}
nav ul li:nth-child(6){
justify-content: center;
    flex-basis: 50%;
    flex-shrink: 1;
    
}

@keyframes fadeIn{
     from {
    opacity: 0;
    transform: translateY(12.5px); /* Optional: slight upward movement */
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
nav ul li:nth-child(1){
    animation-delay: 0s;
}
nav ul li:nth-child(2){
    animation-delay: 0.1s;
}
nav ul li:nth-child(3){
    animation-delay: 0.2s;
}
nav ul li:nth-child(4){
    animation-delay: 0.3s;
}
nav ul li:nth-child(5){
    animation-delay: 0.4s;
}
nav ul li:nth-child(6){
    animation-delay: 0.5s;
}
nav ul li:nth-child(3)::after, nav ul li:nth-child(4)::after, nav ul li:nth-child(5)::after, nav ul li:nth-child(6)::after{
content: '';
    height: 2px;
width: 0;
background-color: white;
position: absolute;
    bottom: -3px;
    transition: all .25s ease-in-out;
}
nav ul li:nth-child(3):hover::after{
content: '';
    height: 2px;
width: 30px;
background-color: white;
position: absolute;
    bottom: -3px;
}
nav ul li:nth-child(4):hover::after{
content: '';
    height: 2px;
width: 30px;
background-color: white;
position: absolute;
    bottom: -3px;
}
nav ul li:nth-child(5):hover::after{
content: '';
    height: 2px;
width: 30px;
background-color: white;
position: absolute;
    bottom: -3px;
}
nav ul li:nth-child(6):hover::after{
content: '';
    height: 2px;
width: 30px;
background-color: white;
position: absolute;
    bottom: -3px;
}

nav ul li a {
    display: block;
    text-decoration: none;
    text-align: center;
    color: white; /* Adjust color as needed */
 font-family: "dorival-ui-variable", sans-serif;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 400;
    transition: all .25s ease-in-out;
}

.slogan{
    text-align:left;
     font-family: "dorival-ui-variable", sans-serif;
font-variation-settings: "slnt" 0, "wdth" 100, "wght" 700;
    transition: color .25s ease-in-out;
}
.vertDivider{
height: 25px;
margin: 0 20px;
border-left: .5px solid white;

}
.andsymbol{
height: 100%;
flex-basis: 30%;
margin-right: 5%;
display: flex;
justify-content: flex-end;
}
.andsymbol img{
width: 50px;
}
nav ul li a:hover{
transition: all .25s ease-in-out;
color:#cdcdcd;
}
.secondnav ul li a:hover{
color: #98245c;
}

/* Center logo */
.logo-container {
    flex-grow: 1; /* Allow space to push other items */
    display: flex;
    justify-content: center;
    
}

.logo {
    height: 50px;
    width: auto;
}

/* Contact button on the right */
.contactbutton {
    margin-left: auto; /* Push to the far right */
    padding-left: 15vw;
}

.contactbutton a {
    background-color: red;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin: 0;
    transition: all .15s ease-in-out;
}
.contactbutton a:hover{
    background-color: darkred;
    transition: all .15s ease-in-out;
    cursor: pointer;
}

/* Dropdown (optional styling) */
.dropdown {
    display: none;
}
/* Dropdown menu container */
.dropdown-container {
    position: relative; /* Necessary for dropdown placement */
}

/* Dropdown menu hidden by default */
.dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Places dropdown below the navbar */
    left: 0;
    min-width: 200px;
    width:0;
    background-color: #fff; /* Adjust for styling */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1000; /* Ensure it appears on top */
}

/* Dropdown menu items */
.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.dropdown ul li {
    margin: 5px 0;
}

.dropdown ul li a {
    text-decoration: none;
    color: #000; /* Adjust as needed */
    padding: 5px 10px;
    display: block; /* Makes entire area clickable */
    font-weight: bold;
}

/* Show dropdown on hover */
.dropdown-container:hover .dropdown {
    display: block;
}
.mobileappear{
display: none;
}
.hidden {
display: none;
}


/* second menu */
.secondnav {
width: 100%;
height: 100vh;
position: fixed;
top: 0;
z-index: 1004;
margin: 0 auto;
    padding: 0;
    display: flex;
flex-direction: column;
right: -100%;
  transition: all .5s ease-in-out;  
background-color: #d8d4d4;
}
.secondnav ul li:nth-child(2)::after{
content: '';
    height: 2px;
width: 0;
background-color: white;
position: absolute;
    bottom: -3px;
    transition: all .25s ease-in-out;
}
.secondnav ul li:nth-child(2):hover::after{
width: 30px;
}
.secondnav.active{
right: 0;
transition: all .5s ease-in-out;
}
.secondnav ul{
display: flex;
flex-direction: column;
margin-top: 10%;
line-height: 2.5em;
}
.secondnav ul li{
justify-content: center;
    flex-basis: 100%;
    margin-left: 0!important;
    margin-bottom: 30px;
}

.secondnav li a{
font-size: larger;
color: white;
justify-self: center;
    flex-basis: 100%;
}
.secondnav .spacer{
margin-top: 20px;
}
.exit{
display: block;
position: absolute;
right: 0;
font-size: 2em;
margin-right: 20px;
margin-top: 10px;
color: white;
border: none;
background: none;
cursor: pointer;
}

@media screen and (max-width: 870px) {
    .mobilegone {
    display: none;
    }
    nav{
        width: 100%;
        height: 100px;  
        padding: 0;
        display: flex;
    }
    
    nav ul{
        line-height: 1.2em;
        display: flex;
        justify-content: flex-start;
        left: 0;
        width: 80%;
    }
    .secondnav ul{
    width: 100%;
    }
    .slogan{
    justify-content: center;
    }
 

    .secondnav .logo-container{
width: 100%;
left: 0;
margin: 0 auto;
transform: translateX(0);
}
    body > nav:nth-child(1) > ul > li.logo-container{
    left: 0;
        top: 0;
    }
    body > nav:nth-child(1) > ul{
    padding-top: 0;
        margin-top: 0;
    }
.logo-container{
    position: relative;
    z-index:205;
    width: 150px;
    flex-basis: 30%;
    display: flex;
    padding-inline-start: 0;
  margin-left: 20px;
  left: 0;
  transform: translateX(0);
  justify-content: left;
  flex-grow: 0;
flex-shrink: 1;
  gap: 20px;
}
.logo2{
justify-content: center;
}
    .mobileappear{
    display: block;
    }
    .hamburger{
justify-content: flex-end;
font-size: 1.5em;
width: 100%;
display: flex;
height: 100%;
    left: 0;
    right: 0;
    top: 0;
    position: absolute;
    z-index: 100;
    }
    .hamburger button{
        font-size: 1.2em;
        border: none;
        color: white;
        width: 10%;
        cursor: pointer;
        background-color: rgba(255,255,255,0.1);
    }
}
@media screen and (max-width: 480px){
body, html{
    width: 100%;
overflow-x: hidden;
position: relative;
}
nav{
height: 50px;
width: 100%;
padding-top: 10px;
overflow: hidden;
background-color: #d8d4d4;
box-shadow: 0 5px 5px rgba(0,0,0,.1);
}
    nav ul{
    width: 100%;
    justify-content: center;
    }

.secondnav .logo-container{
width: 100%;
left: 0;
margin: 0 auto;
transform: translateX(0);
}
.logo-container{
    position: relative;
    width: 100px;
    left: 50%;
    height: 100%;

    align-content: center;
    transform: translateX(-50%);
    z-index:205;
}
.hiddenphone{
display: none;
}
.logo {
height: 42px;

}
.hamburger button{
    font-size: 1.2em;
        border: none;
        color: white;
        width: 15%;
        cursor: pointer;
    }

}


