#main {
    position: absolute;
    margin: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 35vw;
    height: 35vw;
    background-color: #192b41;
    border-radius: 20px;
    padding: 0%;
}

body {
    background-color: #ffffff;
    color: #0b131d;
}

#headshot {
    width: 85%;
    height: auto;
    position: absolute;
    border-radius: 0px;
    left: 0;
    bottom: 0;
    border-bottom-left-radius: 20px;
}

h1 {
    font-family: "BBH Bogle", sans-serif;
    font-style: normal;
    font-size: 6vw;
    top:0;
    margin: 0;
    padding-left: 1%;
    
}

#homeTitle {
    font-family: "BBH Bogle", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 10vw;
    
    position: absolute;
    z-index: 2;
    padding: 5%;
    line-height: 90%;
    margin-bottom: 0;
    margin-left: 1.5%;
    bottom: 0;
    left: 0;
}

.menu {
    font-family: "BBH Bogle", sans-serif;
    font-weight: 400 ;
    font-style: normal;
    font-size: 3vw;
    position: absolute;
    top: 0;
    right: 2%;
    line-height: 80%;
    padding: 5%;
    color: #ffffff;
    text-align: right;
    padding-top: 0;
}


#text {
    position: absolute;
    height: 50%;
    left: 2%;
    bottom: 1%;
}

a:link {
  text-decoration: none;
  color: #ffffff;
}

a:visited {
  text-decoration: none;
  color: #ffffff;
}

a:hover {
    color: #0b131d;
}

.dark {
    color: #0b131d;
}

.dark:link {
    color: #0b131d;
}

.dark:visited {
  text-decoration: none;
  color: #0b131d;
}

.dark:hover {
    color: #39679c ;
}

.bodyL {
    margin-left: 5%;
    width: 70%;
    height: auto;
    background-color: #192b41;
    border-radius: 20px;
    margin-bottom: 2%;
    padding: 1%;
    text-align: left;
}

.bodyR {
    margin-left: 25%;
    width: 70%;
    height: auto;
    background-color: #192b41;
    border-radius: 20px;
    margin-bottom: 2%;
    padding: 1%;
    text-align: right;
}

.bodyF {
    margin: auto;
    margin-bottom: 3%;
    width: 90%;
    height: auto;
    background-color: #192b41;
    border-radius: 20px;
    padding: 1%;
    text-align: left;
}

h2 {
    font-family: "BBH Bogle", sans-serif;
    font-style: normal;
    font-size: 70px;
    margin: 0;
    color: #ffffff;
}

h3 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: bold;
    font-size: xx-large;
    margin: 0;
    color: #ffffff;
}

h4 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: bold;
    font-size: large;
    margin: 0;
    color: #ffffff;
}

img {
    width: 80%;
}

p {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-style: normal;
    font-size: medium;
    color: #ffffff;
}

/* Grid for article cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5%;
  margin-left: 5%;
  width: 90%;
  margin-bottom: 2%;
}

.card {
  background-color: #192b41;
  border-radius: 12px;
  padding: 1rem;
  color: #ffffff;
  text-align: left;
}

.card img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.1rem;
  margin: 0.3rem 0;
  color: #ffffff;
  transition: color 180ms ease, transform 180ms ease;
}

.card h4 {
  font-size: 0.9rem;
  margin: 0;
  color: #ffffff;
  opacity: 0.95;
}

.card p {
  font-size: 0.95rem;
  color: #ffffff;
  margin-top: 0.5rem;
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card a:hover h3,
.card a:focus h3 {
  color: #39679c;
  transform: translateY(-2px);
  cursor: pointer;
}

.card a:focus {
  outline: none;
}


/* 
    Note to future self:
    everyhting below here is making the website adjust to widths properly.

    I kinda just yelled at the AI to make what I programed still fit on the the page until it worked
    codes really messy im sure cuz its AI but it works and it still looks like what I designed so ig its fine
*/
/* Tablet: slightly enlarge the homepage square for tablet widths */
@media (min-width: 601px) and (max-width: 900px) {
  #main {
    width: 60vw;
    max-width: 720px;
    height: 60vw;
    max-height: 720px;
  }

  /* Make the text wrapper static so the title positions relative to #main */
  #text {
    position: static;
    height: auto;
  }

  /* Keep the title absolutely anchored to the bottom of the square */
  #homeTitle {
    position: absolute;
    top: auto;
    bottom: 0%;
    left: 1.5%;
    padding: 0;
    font-size: 15vw;
    line-height: 1;
    z-index: 3;
  }

  .menu {
    font-size: 4.5vw;
  }

  /* Slightly larger card text on tablet */
  .card h3 {
    font-size: 1.2rem;
  }

  .card p {
    font-size: 1rem;
  }
} 

/* Slightly enlarge the homepage square on small screens (maintain original layout) */
@media (max-width: 600px) {
  #main {
    width: 80vw;
    max-width: 480px;
    height: 80vw;
    max-height: 480px;
  }

  /* Make the text wrapper static so the title positions relative to #main */
  #text {
    position: static;
    height: auto;
  }

  /* Keep the title absolutely anchored to the bottom of the square */
  #homeTitle {
    position: absolute;
    top: auto;
    bottom: 0%;
    left: 1.5%;
    padding: 0;
    font-size: 20vw;
    line-height: 1;
    z-index: 3;
  }

  .menu {
    font-size: 5.5vw;
  }

  /* Larger card text on mobile */
  .card h3 {
    font-size: 1.25rem;
  }

  .card p {
    font-size: 1.05rem;
  }
}
