
html {
    scroll-padding-top: 110px; /* ChatGPT code to help with positioning on nav click*/
    scroll-behavior: smooth;
}

body {
    height:100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin:0;
    margin-top:0;
    overflow-x:hidden;
}

.fade {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-nav, .sidenav{
    display:none;
}

header{
    position: sticky; 
    top: 0;
    z-index: 100;
    background-color: #ffffff;  
    width:100%;   
    font-size: 22px; 
}

.nav-bin{
    padding:20px;
    display:flex;
    justify-content:space-between;
    align-items: center;
    height:50px;
    z-index:1000;
}

.menu-item{
    margin:15px;
    text-decoration: none;
    color:black;
}

.logo{
    width:65px;
    object-fit: cover;
}


/* HOME */

@font-face {
    font-family: myFont;
    src: url(homefont.ttf);
  }
  
h1{
    font-family: myFont; 
    font-size:190px;
    margin-left:20px;
    margin-top:0;
    margin-bottom: 20px;
    color:white;
}

.tagline{
    margin-top:-30px;
    margin-left:15px;
    font-size:larger;
    color:white;
}
  
.home-container{
    padding-top: 130px;
    margin-top:0%;
    height: 100vh;
    background-color: black;
}

.sub{
    text-align: center;
    font-size:36px;
}


/* ABOUT */

.about-container{
    margin-top:50px;
    margin-bottom:100px;
    display:flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    margin:100px;
}

.hi{
    font-size: 36px;
}

.bt{
    font-size:18px;
}

.resume{
    font-size:18px;
    color:black;
}

.bottom{
    width:60vh;
    flex-direction:row;
}

.bio{
    flex-direction:column;
    width:50vh;
}

.me{
    width:40vw;
    height:auto;
}

.sub{
    border-bottom: 1px solid #000; 
    line-height: 0.1px;
    margin: 10px 0 20px; 
}

.sub span { 
    background:#fff; 
    padding:0 10px; 
} /* Learned how to do this using stackoverflow: https://stackoverflow.com/questions/5214127/css-technique-for-a-horizontal-line-with-words-in-the-middle */



/* WRITTEN */

.writing-container, .data, .interactive-container-main{
    margin-top:200px;
    margin-bottom:200px;
}

.sentence{
    text-align:center;
    font-size:18px;
    font-style: italic;
    margin-top:30px;
}

.story-gallery {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.story-card {
    margin-bottom:50px;
    text-decoration: none;
    color: black;
    width: 260px;
    border: 1px solid #ccc;
    overflow: hidden;
    background-color: #fff;
    transition: transform 0.3s;
}

.story-card:hover {
    transform:scale(1.02);
}

.story-card img {
    height: 200px;
    width: 260px;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* match image height */
    background-color: rgba(0, 0, 0, 0.5); /* transparent gray */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* hidden by default */
    transition: opacity 0.3s ease;
}

/* Show overlay on hover */
.story-card:hover .overlay {
    opacity: 1;
}

/* Button styling */
.read-more-btn {
    padding: 10px 10px;
    border: none;
    border-radius: 5px;
    background-color: white;
    color: black;
}

.story-card h3{
    margin: 10px;
    font-size: 20px;
}

.award{
    margin-left:5px;
    font-size: 9.5px;
    font-style: italic;
}

.more-btn{
    display: inline-block;
    text-align:center;
    text-decoration: none;
    color:black;
    padding: 3px 15px;
    border-radius: 10px;
    background-color:#f4f4f4;
    border: 1px solid #a1a1a1;
}

.more-btn:hover{
    background-color:#e3e3e3;
    transition: 0.5s;
}

.btn-wrapper {
    text-align: center;
}


/* DATA */

.top-data-container, .bottom-data-container{
    display:flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items:center;
}

.data-img{
    width:400px;
    height:auto;
}

.pc{
    width:350px;
    text-align: center;
    font-size: smaller;
}

ol, ul{
    width:500px;
    line-height: 2;
    font-size: 14px;
}

.heads{
    font-weight:bold;
    text-align: center;
}

.steps{
    background-color:rgb(255, 233, 228);
    padding:10px;
}

.skills{
    background-color:rgb(224, 243, 255);
    padding:10px;
}



/* INTERACTIVE */

.interactive-container-main, .data, .writing-container{
    margin-left: 20px;
    margin-right: 20px;
}

.interactive-container-2{
    display:flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 50px;
}

.flowers{
    width:500px;
}

.solar-system{
    width:500px;
}

.interactive-imgs{
    width:500px;
    height:225px;
    object-fit: cover;
    border: 1px solid #ccc;
}

.site-title{
    text-align:center;
}

.hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 225px; /* match image height */
    background-color: rgba(0, 0, 0, 0.5); /* transparent gray */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.click-for-site{
    display: inline-block;
    text-align:center;
    text-decoration: none;
    color:black;
    padding: 5px 20px;
    border-radius: 10px;
    background-color:#f4f4f4;
    border: 1px solid #a1a1a1;
    font-weight: bold;
}

.click-for-site{
    background-color:#e3e3e3;
    transition: 0.5s;
}

.img-hover-wrapper {
    position: relative;
    width: 100%;
    height: 225px;
}

.img-hover-wrapper:hover .hover {
    opacity: 1;
    transition: 0.3s;
}

.bloom-link, .space-link{
    text-decoration: none;
    color: black;
    font-size: 18px;
}


/* FOOTER */

footer{
    margin-bottom:0;
    padding:30px;
    background-color: #000;
    color:white;
    display:flex;
    justify-content:space-around;
    align-items: center;
    height:50px;
}



/* MOBILE */

@media screen and (max-width: 450px) {
    .nav-bin{
        display:none;
    }

    .mobile-nav{
        display:flex;
        justify-content: space-between;
        align-items: center;
        height:50px;
        padding:10px;
    }
    
    .sidenav {
        height: 100%;
        width: 0;
        position: fixed;
        z-index: 100000;
        top: 0;
        right: 0;
        background-color: #111;
        overflow-x: hidden;
        transition: 0.5s;
        padding-top: 60px;
        }

        .sidenav a {
        padding: 8px 8px 8px 32px;
        text-decoration: none;
        font-size: 25px;
        color: #818181;
        display: block;
        transition: 0.3s;
        }

        .sidenav a:hover {
        color: #f1f1f1;
        }

        .sidenav .closebtn {
        position: absolute;
        top: 0;
        right: 25px;
        font-size: 36px;
        margin-left: 50px;
        }

    h1{
        font-size:70px;
    }

    .sub{
        font-size: 26px;
    }
    .about-container{
        width:350px;
        flex-direction: column-reverse;
        margin:10px;
    }

    .me{
        width:300px;
    }

    .data-img, .steps, .skills, .bottom-data-container{
        max-width: 100%;
    }

    .steps, .data-img, .pc{
        margin-bottom:20px;
    }


    .interactive-container-2 {
        display: flex;
        flex-direction: column;
        align-items: center; /* center items horizontally */
    }

    .flowers, .solar-system {
        width: 350px;
        height: auto; /* let it scale naturally */
        margin-bottom: 20px; /* space between them */
    }

    .interactive-imgs, .img-hover-wrapper {
        width: 100%; /* make image fill parent container */
        height: 150px; /* consistent height */
        object-fit: cover;
    }

    body{
        overflow-x: hidden;
    }

    img, div{
        max-width: 100%;
    }

    ol, ul{
        padding-left: 0rem;         /* ChatGPT helped troubleshoot: reduce default left indentation */
        margin: 0;                  /* remove extra space */
        list-style-position: inside; /* keep bullets inside box */
        max-width: 100%;            /* prevent overflow */
    }
      
    li{
        white-space: normal;       /* allow text to wrap normally */
        max-width: 100%;
        padding-left: 0rem;
        margin-left: 0;
    }

    .rm{
        display:none;
    }

}    