/* General Reset and Body Styles */
body, html {
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
}

body {
    display: flex;
}

/* Unordered List */
ul.navbar {
    padding-top: 40px;
    display: flex;
    justify-content: space-around;
    list-style-type: none;
}

h2 {
    margin: 0;
    margin-bottom: 20px;
    font-size: 3vw;
    font-family: 'Italiana', serif;
}

#Logo {
    margin-left: 4.5%;
    height: 12vw;
    width: auto;
}


/* List Items */
li.nav-links{
    padding: 0 calc(10px + 1vw);
    border-radius: 40px; /* Flat top/bottom, rounded left/right */
    background-color: rgba(255, 255, 255, 0.5); /* Transparent white */
    display: inline-block; /* Ensures the shape respects padding */
    margin: 5px 2px; /* Adds some vertical spacing */
    font-family: 'Italiana', serif;
}

h1 {
    font-size: clamp(10px, 2vw, 32px);
    white-space: nowrap;
}

li.nav-links:hover{
    background-color: rgba(255, 255, 255, 0.9);
}

/* Links */
a {
    text-decoration: none;
    color:whitesmoke;
}

/* Background Image Section */
.background-image {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url(./images/Background1.jpg);
    background-size: cover;
    flex: 2; /* Takes up two-thirds of the space */
}

.logo{
    color: white; 
    font-size: 48px;
    margin-left: 20px;
}

/* Summary Section */
.summary {
    min-width: 600px;
    flex: 1; /* Takes up one-third of the space */
    background-color: #e8e5df;
    display: flex; /* Enable flex layout */
    flex-direction: column; /* Stack children vertically */
    justify-content: space-around; /* Center children vertically */
    align-items: center; /* Center children horizontally */
    max-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
}

.secondlogo{
    color: #453734; 
    font-size: 48px;
    display: none;
}

/* Headshot Container and Image */
.headshotcontainer {
    width: 400px; /* Diameter of the circle */
    height: 400px;
    flex: 0 0 auto;
    border-radius: 50%; /* Ensures a circular shape */
    margin-top: 10px;
    overflow: hidden; /* Hides the parts of the image outside the circle */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Spacing */
    position: relative; /* Context for child elements */
}

#headshot {
    width: 100%; /* Ensures the image scales to container width */
    height: 100%; /* Ensures the image scales to container height */
    object-fit: cover; /* Maintains aspect ratio while filling the circle */
    object-position: center; /* Centers the image within the circle */
}


/* Logo (Centered in the Summary Section) */
.logo2 {
    color: #453734; /* Adjust color for visibility */
    text-align: center;
    margin-top: 20px; /* Add spacing */
}

.spacer {
  height: 100px;
}

/* Typography */
h1 {
    color: #453734;
}

p {
    font-family: 'Lora', serif; /* Specify font and fallback */
    color: #453734;
    font-size: 1.2vw;
    text-align: center;
    margin: 40px;
    text-overflow: ellipsis; /* Add ellipsis for overflowing text */
    white-space: normal; /* Allow text wrapping */
}

/* off-screen-menu */
.off-screen-menu {
  background-color:  rgba(91, 75, 63, 0.5);
  height: 100vh;
  width: 100%;
  max-width: 300px;
  position: fixed;
  top: 0;
  right: -300px;
  display: flex;
  flex-direction: column;
  align-items: center;    
  justify-content: flex-start;
  text-align: center;
  font-size: 3rem;
  transition: .3s ease;
  z-index: 1000;
}
.off-screen-menu.active {
  right: 0;
}

/* nav */
nav {
  padding: 1rem;
  display: flex;
}

/* ham menu */
.ham-menu {
  top: 30px; /* Adjust as needed for spacing */
  right: 40px; /* Adjust as needed for spacing */
  height: 50px;
  width: 40px;
  position: absolute;
  z-index: 1000000;
  display: none;  
}
.ham-menu span {
  height: 5px;
  width: 100%;
  background-color: #453734;
  border-radius: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease;
  display: none;
}
.ham-menu span:nth-child(1) {
  top: 25%;
}
.ham-menu span:nth-child(3) {
  top: 75%;
}
.ham-menu.active span {
  background-color: white;
}
.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
  opacity: 0;
}
.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

li.ham-links {
  color:#e8e5df;
  list-style-type: none;
  padding: 30px 10px 10px 10px;
  
}

ul.ham-bar {
  padding: 0;
}


@media (max-width: 1200px) {
    .background-image {
        display: none;
    }

    .secondlogo {
        display: block;
        color: #453734;
        font-size: 6vw;
        text-align: center;
        margin-top: 5vh;
    }

    h2 {
      font-size: 5vw;
    }

    .summary {
        background-image: url(./images/Background2.jpg);
        background-size: cover;
        background-position: 40%;
        min-width: 0;
    }
    
    .headshotcontainer {
      height: 300px;
      width: 300px;
    }

    .logo2 {
      font-size: 8vw;
      width: auto;
    }

    p {
        color: #453734;
        margin-top: 0;
        font-size: 3.5vw;
    }
    .ham-menu {
      display: block;
    }
    .ham-menu span {
      display: block;
    }


    
}