body, html {
    height: 100%;
    margin: 0;
    background-color: darkgoldenrod;
    font-family: Copperplate,Copperplate Gothic Light,fantasy; 
}
main {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
}
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
bf {
    font-size: 9vw;
}
bf2 {
    font-size: 6vw; /* Scales with the width of the viewport */
}
bf3 {
    font-size: clamp(1.3rem, 1.8vw, 2.2rem); /* Adjusts dynamically based on screen */
    text-align: justify;
    text-align-last: left; /* Ensures last line is aligned naturally */
    hyphens: auto; /* Improves word breaking */
    max-width: 75ch; /* Prevents overly long lines on large screens */
    margin: 0 auto; /* Centers the paragraph */
    line-height: 1.7; /* Improves readability */
}
.bf4 {
    font-size: clamp(1.2rem, 1.6vw, 2.2rem); /* Adjusts dynamically based on screen */
    text-align: justify;
    text-align-last: left; /* Ensures last line is aligned naturally */
    hyphens: auto; /* Improves word breaking */
    max-width: 75ch; /* Prevents overly long lines on large screens */
    margin: 0 auto; /* Centers the paragraph */
    line-height: 1.7; /* Improves readability */
}
bfword {
    font-size: 50px;
}
.a {
    text-decoration: none;
    color: white;
}
h1 {
    font-size: clamp(2rem, 4vw, 3.5rem); /* Scales dynamically */
    font-weight: bold;
    text-align: left; /* Centers heading */
    margin-bottom: 0; /*1rem; /* Adds space below */
}

h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: bold;
    text-align: left;
    margin-bottom: 0; /*0.8rem;*/
}

h3 {
    font-size: clamp(1.3rem, 2.25vw, 2.25rem);
    font-weight: bold;
    text-align: left; /* Align left for subheadings */
    margin-bottom: 0.6rem;
    margin-top: 0.6rem;
}
h4 {
    font-size: clamp(1.2rem, 1.5vw, 1.5rem);
    font-weight: bold;
    text-align: left; /* Align left for subheadings */
    margin-bottom: 0; /*0.8rem;*/
    margin-top: 0;
}
h5 {
    font-size: clamp(1.6rem, 2.75vw, 2.75rem);
    font-weight: bold;
    text-align: left; /* Align left for subheadings */
    margin-bottom: 0; /*0.8rem;*/
    margin-top: 0.8rem;
}
.container-better {
    margin-top: 0px; /* Instead of absolute positioning */
    margin-bottom: 80px; /* To avoid overlapping the sticky footer */
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    width: 90%;
    max-width: 800px;
  }
  
  .center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px; /* allows breathing room on small screens */
    box-sizing: border-box;
  }
  
  .container-mid {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: 80%;
    justify-content: center; /* not required */
    align-items: center; 
  }
  
.container {
    padding: 20px;
    max-width: 100%;
    display: flex;
    justify-content: center; /* not required */
    align-items: center;
    box-sizing: border-box;
}
.container-s{
    position: relative; /* enables top/left to work */
    margin-top: 2.5vh;    /* better than top: 20% for responsiveness */
    margin-left: 5%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* aligns children to the left */
    padding-bottom: 80px;    /* avoid footer overlap if sticky */
    box-sizing: border-box;
    max-width: 90%;
  }

  .container-c {
    position: relative; /* Keeps it in the flow */
    margin-top: 35vh;    /* Gives top spacing */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 90%;
    padding: 20px;
    box-sizing: border-box;
    margin-bottom: 60px; /* Ensures footer doesn't overlap content */
  }

.center-page {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 60px;
}
  
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
    height: 80px;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
}
/* Group logo & title together */
.logo-title {
    display: flex;
    align-items: center; /* Aligns the logo & text */
    gap: 5px; /* Adjust gap between logo and text */
}

/* Remove extra spacing from logo & text */
.logo-title img, 
.logo-title h1 {
    margin: 0;
    padding: 0;
}

/* Adjust logo size */
.logo-title img {
    max-width: 80px; /* Adjust as needed */
    height: auto;
    display: block; /* Prevents extra space under the image */
}
.no-underline {
    text-decoration: none;
    color: inherit; /* Keeps the same text color */
    font-weight: bold; /* Optional: Makes text bold */
    font-size: larger; /* Optional: Adjusts text size */
}
.menu-icon-container {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #666;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px auto 0 auto; 
}
.menu-icon {
    font-size: 24px;
    cursor: pointer;
}
.menu {
    display: flex;
    align-items: center; /* Aligns menu items and icon vertically */
    list-style-type: none;
    margin: 0px 0 0 20px; /* Top margin pushes it down a bit, left margin keeps it aligned */
    padding: 0;
}

.menu-active {
    left: 0;
}
.menu li {
    margin: 0;
    padding: 10px;
}
.menu li:hover {
    width: 100%;
}
.menu a {
    color: white;
    position: relative;
    display: inline-block;
    text-decoration: none;
}
.menu a::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: darkgoldenrod;
    transition: width 0.3s ease-in-out;
}
.menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: darkgoldenrod;
    transition: width 0.3s ease-in-out;
}
.menu a:hover::before {
    width: 100%;
}
.menu :hover::before {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background-color: white;
    transition: width 0.3s ease-in-out;
}

.menu :hover::after {
    width: 100%;
    background-color: black;
}
.dropdown-content {
    display: none;
    list-style-type: none;
    position: fixed; 
    top: 85px; /* lower dropdown, adjust if needed */
    right: 0px;
    width: 125px;
    height: auto;
    opacity: 1; /* fully visible */
    z-index: 1000; /* <-- ensure it appears ON TOP */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    padding: 5px 0;
    background-color: white;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
}
.menu-active {
    left: 0;
}

.dropdown-content a {
color: black;
padding: 8px 10px;
text-decoration: none;
display: block;
}
.dropdown-content a:hover {background-color: #;}
.dropdown:hover .dropdown-content {
display: block;
}
.dropdown:hover .dropbtn {
background-color: darkgoldenrod;
}
@media (max-width:768px) {
    .menu-icon {
        display: block;
    }

    .menu {
        /* 
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100px;
        left: 20px;
        background-color: #fff;
        box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
        */
    }

    .menu-activ {
        display: none;
    }

    .menu li {
        margin: 0;
        padding: 10px;
        border-bottom: 1px solid #ccc;
    }
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 60px; /* Vertically center text */
    z-index: 100;
}
/*
footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background-color: #333;
    color: #fff;
    padding: 10px;
}
*/

.slow-fadein {
    animation: fadeIn 5s;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
  }

  .slow-appear {
    animation: fadeIn 8s ;
  }


  .waviy {
    position: relative;
  }
  .waviy span {
    position: relative;
    display: inline-block;
    font-size: 9vw;
    color: black;
    text-transform: uppercase;
    animation: flip 2s infinite;
    animation-delay: calc(.2s * var(--i))
  }
  @keyframes flip {
    0%,80% {
      transform: rotateY(360deg) 
    }
  }


  .word {
    margin: auto;
    color: #333;
    font-size: 50px;
    /*text-shadow: 5px 2px #222324, 2px 4px #222324, 3px 5px #222324;*/
  }

  .word div {
    margin-bottom: 36px;
  }

  .inline-divs {
    display: inline-block;
    margin-right: 20px;
    text-decoration: none;
  }

  .word.inline-divs div {
    margin-bottom: 16px; /* space between lines */
  }

.div-spacing {
    margin-bottom: 20px;
}


.copyright {
    float: left;
}

.privacy { 
    float: right;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
    box-sizing: border-box;
  }
  
  .project-box {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  }
  
  /* Center the fifth item */
  .project-box:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 50%;
  }
  
  .project-box h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
  }
  
  .project-box p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
  }
  

  @media (max-width: 768px) {
    .projects-container {
      grid-template-columns: 1fr;
    }
  }

  .big-link-button {
    display: inline-block;
    font-size: 20px;
    padding: 15px 30px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
  }

  .medium-link-button {
    display: inline-block;
    font-size: 15px;
    padding: 5px 10px;
    background-color: white;
    color: black;
    text-decoration: none;
    border-radius: 2px;
    font-family: Copperplate, Copperplate Gothic Light, fantasy;
  }
  