html, body {
    overflow: scroll;      /* enable scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
  }
  * {
    box-sizing: border-box;
  }

html {
    margin: 0;
    min-height: 100vh;
    min-width: 100vw;
}

body {
    margin: 0;
    padding: 0;
}

#header {
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, #736c51, #2d2d2d);
    margin: 0;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
}
h1 {
    font-family: "Inter";
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(2rem, 10vw, 13vh); /* dynamically scale */
    margin-bottom: .5vh;
    margin-top: 0;
    text-align: center;
    width: fit-content;
    white-space: nowrap; /* optional: keep it one line */
}
#note {
    font-family: inter;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2vh;
}
#note a {
    color: #888888;
    text-decoration: none;
    transition: 0.2s;
    font-size: clamp(1rem, 2vw, 3.5vh); /* updated for responsive size */
    display: inline-block; /* needed for transform to work */
}
#note a:hover {
    color: #4a4949;
    transform: scale(1.05); /* slight grow effect */
}
#headerImg {
    height: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3vh;
    max-width: 50vw;
    max-height: 60vh;
    
}
.standardButton {
    background-color: #222222;
    border-radius: 5px;
    border-style: none;
    height: 38px;
    width: 130px;
    color: white;
    font-family: inter;
    font-weight: bold;
    font-size: 15px;
    transition: 0.2s;
}
.standardButton:hover {
    transform: scale(1.1);
}
a {
    margin: auto;
    margin-top: 0;
}

#spacer2 {
    height: 2vh;
}

#spacer1 {
    height: 5vh;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    display: flex;
    margin-bottom: 1vw;
}

.pallete {
    height: 3vw;
    width: 3vw;
    margin: 10px;
    border-radius: 7px;
    padding: 20px;
    transition: .3s;
}

#green {
    background-color: #588157;
}

#red {
    background-color: #8b3133;
}

#blue {
    background-color: #303791;
}

#family {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 2rem;
    padding: 7rem;
    padding-top: 1rem;
    background: black;
    justify-content: center;
}

.family-member,
.family-member-odd {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: .2s;
    flex-direction: row;
    display: flex;
    /* height: 37vh; <-- remove this from base */
}

.family-member-odd {
    flex-direction: row-reverse;
}

.family-member:hover {
    transform: scale(1.05)
}
.family-member-odd:hover {
    transform: scale(1.05)
}

.family-member-text-holder {
    width: 52%;
    height: 100%;
    font-family: "Bebas Neue";
}

.family-member-image-holder {
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
.tile-image {
    width: 90%;
    border-radius: 10px;
}
.title {
    width: 100%;
    height: 20%;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    text-align: center;
    font-size: clamp(1rem, 5vw, 5vh);
    text-overflow: clip;
    color: #1b241f;
    padding-top: 1rem;
}

.description {
    width: 100%;
    height: 80%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.family-member, .family-member-odd {
    height: 37vh;
}

@font-face { 
    font-family: inter; 
    src: url('images/Inter-regular.ttf'); 
}
@font-face { 
    font-family: inter; 
    font-weight: bold; 
    src: url('images/inter-bold.ttf'); 
}  

@font-face { 
    font-family: inter; 
    font-weight: bolder; 
    src: url('images/inter-eb.ttf'); 
}

@media (min-width: 0px) {
    #family {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (min-width: 1230px) {
    #family {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1229px) {
    #family {
        padding: 15rem;
        padding-top: 1rem;
    }
}

@media (max-width: 970px) {
    #family {
        padding: 5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 510px) {
    #family {
        padding: 1rem;
        padding-top: 1rem;
    }
}

@media (max-width: 1600px) {
    #header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height:auto;
    }
}
@media (max-width: 600px) {
    .family-member {
        flex-direction: column;
        height: auto; /* Let it grow to fit children */
    }

    .family-member-odd {
        flex-direction: column;
        height: auto; /* Let it grow to fit children */
    }

    .family-member-image-holder {
        align-items: center;
        margin-left: auto;
        margin-right: auto;
        width: fit-content;
    }

    .tile-image {
        width: 90%;
        height: auto;
        max-height: 200px; /* or whatever works visually */
        align-self: center;
    }

    .family-member-text-holder {
        width: 100%;
    }

    .description {
        font-size: 0.7rem; /* visually smaller, adjust if needed */
        height: auto; /* let it grow */
        padding: 0.5rem;
    }
}
@media (min-width: 601px) {
    .family-member,
    .family-member-odd {
        height: 37vh;
    }
}

@media (min-width: 276px) {
    .title {
        padding-bottom: 20px;
    }
}

@media (min-width: 1600px) {
    .tile-image {
        max-height: 95%;
    }
}
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');