body {
    margin: 0;
    font-family: sans-serif;
    height: 100%;
}
header {
    position: sticky;
    top: 0;
    z-index: 3;
    background-color: white;
    border-bottom: 2px solid black;
}

#topbar-container {
    margin: 0px 200px;
    overflow: visible; /* Changed from auto to visible */
    height: 60px;
    position: relative; /* Added position relative */
}

#icon-text {
    float: left;
    margin-top: 15px;
}

#icon-text a {
    color: black;
    text-decoration: none;
    font-size: x-large;
}

nav {
    float: right;
}

nav li {
    display: inline;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    user-select: none;
}

nav a:link, nav a:visited {
    color: black;
}

nav a:hover {
    color: gold;
}

#nav-current {
    border-bottom: black 2px solid;
}

/* Hamburger button styles */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 20px;
    top: 10px;
    z-index: 4;
}

#hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: black;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Tablet screens */
@media screen and (max-width: 1024px) {
    #topbar-container {
        margin: 0px 50px;
        height: 60px;
    }

    nav li {
        margin-right: 15px;
    }

    #icon-text a {
        font-size: large;
    }
}

/* Mobile devices */
@media screen and (max-width: 767px) {
    body {
        margin: 0;
    }

    #topbar-container {
        margin: 0px 20px;
        height: 60px;
    }

    #icon-text {
        float: left;
        margin-top: 15px;
    }

    #hamburger-btn {
        display: block;
    }

    nav {
        display: none;
        float: none;
        width: 100%;
        position: fixed;
        top: 60px; /* Height of header */
        left: 0;
        right: 0;
        background-color: white;
        border-bottom: 2px solid black;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        max-height: calc(100vh - 60px); /* Viewport height minus header height */
        overflow-y: auto; /* Enable scrolling if needed */
    }

    nav.active {
        display: block;
    }

    nav ul {
        padding: 0;
        margin: 0;
        list-style: none;
    }

    nav li {
        display: block;
        margin: 0;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    nav li:last-child {
        border-bottom: none;
    }

    /* Animated hamburger button when active */
    #hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    #hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }

    #hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -8px);
    }
}

main {
    min-height: 100vh;

    
}

#center-box {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 50%;
    top: 50%;
    
    margin-top: -100px;
    margin-left: -100px;

}

#selfie {
    border: 2px black solid;
    border-radius: 100%;
}


.centerd {
    text-align: center;
}

.blog-item {
    border-radius: 10px;
    box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.75);
  
    width: 600px;
    margin: 30px auto;
    padding: 20px;

}

.blog-item:hover {
    cursor: pointer;
}

#main-hover {
    display: none;

    width: 100%;
    height: 100vh;
    z-index: 1;
    background-color: #66666666;

    position: absolute;

    top: 60px;
    left: 0;
}

#blog-box {
    padding: 15px;
    width: 700px;

    position: relative;
    top: 20%;
    left: calc(50vw - 350px);

    background-color: white;
    border: 1px solid black;
}

.blog-title {
    margin: 0;
}

.font-gray {
    color: gray;
}

footer {
    background-color: #222222;
    padding: 5px;
    color: white;
    height: 200px;
}

footer a {
    color: gold;
}