:root {
  --nav-height: 80px;
}

@font-face {
  font-family: 'NotoSansRegular';
  src: url('./fonts/NotoSans-Regular.ttf');
}

@font-face {
  font-family: 'NotoSansBold';
  src: url('./fonts/NotoSans-Bold.ttf');
}

/* Reset default margin/padding */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Full-screen background with dimming */
body, html {
  height: 100%;
  font-family: 'NotoSansRegular', sans-serif;
}

/* Top navigation bar */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  width: 100%;
  z-index: 1000;

  background-color: rgb(239, 239, 239);
  border-bottom: 4px solid #fad33a;

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem;
}

@media (max-width: 576px) {
  .top-nav {
    padding: 0.5rem 0rem;
  }
}

.top-nav a {
  color: rgb(114,160,213);
  font-size: clamp(0.5rem, 5vw, 1.7rem);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: normal;
  transition: color 0.3s;
}

.top-nav a:hover {
  color: #fad33a; /* Highlight color on hover */
}

.email-link {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: normal;
}

.email-link:hover {
  color: #f0db4f;
}

.overlay {
  position: relative;
  background-image: image-set(
    "background.png" type("image/png"),
    "background.jpg" type("image/jpeg")
  );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh; /* ensure it fills the screen */
}

.overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6); /* dimming overlay */
  z-index: 0; /* behind content */
}

.content  {
  padding-top: calc(var(--nav-height) + 1em);
  margin-left: 5vw;
  margin-right: 2em;
  padding-bottom: 10vh;
  position: relative;
  text-align: left;
  z-index: 1;
}

.text-only-content {
  max-width: 50%;
}

@media (max-width: 576px) {
  .text-only-content {
    max-width: 100%;
  }
}

.content h1 {
  font-family: 'NotoSansBold', sans-serif;
  font-size: clamp(1.1rem, 5vw, 2rem);
  margin-bottom: 0.5em;
}

.content h2 {
  font-family: 'NotoSansBold', sans-serif;
  font-size: 1.5em;
  color: black;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

@media (max-width: 576px) {
  .content h2{
    font-size: 1.3em;
  }

  .content h2.larger-top-margin{
    margin-top: 2em;
  }
}

.content h3 {
  font-family: 'NotoSansBold', sans-serif;
  font-size: 1.1em;
  color: rgb(114,160,213);
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.h3-like-summary {
  font-family: 'NotoSansBold', sans-serif;
  font-size: 1.1em;
  color: rgb(114,160,213);
  margin-top: 1em;
  margin-bottom: 0.5em;
}

.content h4 {
  font-family: 'NotoSansBold', sans-serif;
  font-size: 1em;
  color: rgb(114,160,213);
  margin-top: 1.2em;
  margin-bottom: 0.3em;
}

.content p {
  line-height: 1.6;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.content a {
  color: black;
  text-decoration: none;
}

.content a:hover {
  color: #fad33a;
}

.mobile-only, .desktop-only {
  display: none;
}
 
@media (min-width: 577px) {
    .start-text-and-img {
      display: flex;
      gap: 30px;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .start-text {
      flex: 1;
      max-width: 50%;
      text-align: left;
    }

    .start-image {
      flex-shrink: 0;
      max-width: 40%;
      margin-top: 6em;
    }

    .start-image img {
      width: 100%;
      height: auto;
      display: block;
    }
    .start-image-mobile img {
      display: none;
    }
	
	.desktop-only {
		display: block;
	}
  }

  @media (max-width: 576px) {
    .start-image-mobile img {
      max-width: 90%;
    }
	
    .mobile-only {
		display: block;
	}

  }

@media (min-width: 577px) {

  .about-me-text-and-img {
    display: flex;
    gap: 30px; /* space between text and image */
    align-items: flex-start;
    flex-wrap: wrap; /* allows wrapping on smaller screens */
  }

  .about-me-text {
    flex: 1; /* take available space */
    max-width: 50%; /* adjust based on desired width */
    text-align: left;
  }

  .about-me-image {
    flex-shrink: 0;
    max-width: 40%;
    margin-top: 4em;
  }

  .about-me-image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 576px) {
  .about-me-image img {
    max-width: 90%;
  }

}

@media (min-width: 577px) {

  .dates-text-and-img {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .dates-text {
    flex: 1;
    max-width: 50%;
    text-align: left;
  }

  .dates-image {
    flex-shrink: 0;
    max-width: 40%;
    margin-top: 1em;
  }

  .dates-image img {
    width: 100%;
    height: auto;
    display: block;
  }
}

@media (max-width: 576px) {
  .dates-image img {
    max-width: 90%;
  }
}

ul {
  margin-left: 2vw;
}

.bottom-links {
  position: fixed;
  z-index: 1000;
  text-align: right;
  background-color: rgb(192, 192, 192);
  height: 3em;
  width: 100%;
  bottom: 0;
  left: 0;
  padding-top: 1em;
  padding-right: 1%; 
  border-top: 4px solid #fad33a; 
}

@media (max-width: 576px) {
  .bottom-links {
    padding-left: 1%; 
    text-align: left;
  }
}

.bottom-links a {
  color: black;
  text-decoration: none;
  margin-left: 1rem;
  font-weight: bold;
  font-size: 0.9em;
  transition: color 0.3s;
}

#contact-email-bottom {
  margin-left: 0.5rem;
}

@media (max-width: 576px) {
  .bottom-links {
    font-size: 0.8em;
    padding-left: 2%; 
  }

  .bottom-links a {
    margin-left: 0.5rem;
  }
}

.bottom-links a:hover {
  color: #fad33a; /* Highlight color on hover */
}
