:root {
    --background-color: #fafafa;
    --text-color: #444;
    --block-bg-color: #ffffff;
    --block-text-color: #666;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-color-hover: rgba(0, 0, 0, 0.15);
    --accent: #FF0000; /*3eb0ef;	 /*#8bced6;  #DC143C;*/
}

body.dark-mode {
    --background-color: #121212;
    --text-color: #e0e0e0;
    --block-bg-color: #1e1e1e;
    --block-text-color: #bbbbbb;
    --shadow-color: rgba(255, 255, 255, 0.1);
    --shadow-color-hover: rgba(255, 255, 255, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif; /* Notion uses a similar typeface */
}

* a {
    text-decoration: none;
}

/* DARK MODE */

.toggle-btn {
    max-width: 800px;
    /* text-align: right; */
    margin-block: auto;
}

/* button {
    font-style: normal;
} */

#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.0rem;
    color: var(--text-color);
    outline: none;
    transition: color 0.3s ease-in-out;
}

#dark-mode-toggle .fa-sun {
    display: none;
}

body.dark-mode #dark-mode-toggle .fa-sun {
    display: inline;
    font-size: 1.0rem;
}

body.dark-mode #dark-mode-toggle .fa-moon {
    display: none;
}



/* NAV BAR */

nav {
    display: flex;
    margin: auto;
    max-width: 800px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px;
    /* background-color: white; */
    font-size: 1.1rem;
} 

nav ul {
    list-style-type: none;
    /* padding-left: 40px; */
}

nav li {
    display: inline;
    /* margin-right: 20px; */
    margin-left: 15px;
} 

nav li a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: normal;
}

nav li:hover a {
    /* border-bottom: 0.35rem var(--accent) solid; */
    color: var(--accent);
}

#dark-mode-toggle:hover {
    color: var(--accent);
}

.nav-right {
    display:flex;
    gap: 20px;
    text-align: right;
}


/* Logo in NavBar MO YASSER */

.nav-left {
    /* background-color: var(--clr-accent); */
    /* padding-inline: 10px; */
    border-radius: 10px;
}

.nav-left hr {
    width: 39%;
    border: 0.2rem var(--accent) solid;
    transition: all 0.3s ease-out;
    display: block;
}

.nav-left:hover hr {
    width: 100%;
}

nav p a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    /* text-decoration-color: none; */
    font-size: 1.2rem;    
}



/* .half-highlight {
    background-image: linear-gradient(to right, transparent 50%, rgb(191, 240, 255) 90%);
    background-origin: 0;
    background-size: 200% 50%;
    background-repeat: repeat-x;
    background-position: 0 100%;
    transition: background-position 0.5s;
}

.half-highlight:hover {
	background-position: -100% 100%;  
} */

.menu-button {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-color);
    cursor: pointer;
    /* margin-right: 20px; */
}

/* Show the navigation menu when the button is clicked */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        justify-content: space-between;
    }

    /* Hide the navigation links by default */
    .nav-right ul {
        display: none;
        flex-direction: column;
        background-color: var(--block-bg-color);
        position: absolute;
        top: 60px; /* Adjust depending on your navbar height */
        right: 20px;
        width: 200px;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        z-index: 10;
    }

    .menu-button {
        display: block;
    }

    /* nav ul {
        display: none;
    } */

    .nav-right ul.active {
        display: flex;
        margin: auto;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    

    
}

/* The sticky class is added to the navbar with JS when it reaches its scroll position */
.sticky {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--background-color); /* Adjust the background color as needed */
    z-index: 100; /* Ensure it appears above other page content */
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a shadow for a visual effect */
}



body {
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    line-height: 1.6;

    /* position: relative; */
    -webkit-text-size-adjust: 100%;
}



/* Optional Assets */

.hero-img {
    margin: auto;
    min-height: 60px;
    max-height: 200px;
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}


img {
    min-height: 100px;
    max-height: 200px;
    width: 100%;
    max-width: 800px;
    object-fit: cover;
    object-position: center;
    align-items: center;
    /* border-radius: 5px; */
    opacity: 70%;
    transition: color 0.3s ease;
    margin: 0 auto;
    display: block;
}

.emoji-icon {
    font-size: 6rem;
    max-width: 800px;

    position: absolute;
    text-align: center;
    display: inline-block;
    margin: auto;
    top: 180px; /* Move it upwards to overlap the two sections */
    left: 25%;
    transform: translateX(-50%); /* Center horizontally */
    z-index: 10;


}


/* POST FILTER */

.post-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    column-gap: 1.5rem;
    margin-top: 2rem !important;
}

.filter-item {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: normal;
    cursor: pointer;
    text-transform: uppercase;
}

.active-filter {
    background: var(--accent); /*92d7b9*/
    color: var(--background-color);
    padding: 4px 10px;
    border-radius: 4px;
}


.avatar {
    height: 150px;
    width: 150px;
    object-fit: contain;
    object-position:top;
    border-radius: 110px;
    opacity: 90%;
    transition: color 0.3s ease;
    margin: 0 0 0;
    padding: 10px;
    border: 3px var(--accent) dotted;
    /* position: relative; */
    top: 20px; /* Move it upwards to overlap the two sections */
    transform: translateX(10%); /* Center horizontally */
    z-index: 10;
}

.avatar-box {
    margin: auto;
    max-width: 800px;
}
    


/* BODY & CONTAINERS */


.head-section {
    padding: 0 20px;

}

.notion-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 20px 0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: capitalize;
}

header h1 a {
    color: var(--text-color);
    text-decoration: none;
    /* font-weight: normal; */
}

header h1:hover a {
    color: var(--accent);
}

.notion-container hr {
    width: 15%;
    border: 0.2rem var(--accent) solid;
    transition: all 0.3s ease-out;
    display: block;
    margin-bottom: 10px;
}

.notion-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.notion-block {
    background-color: var(--block-bg-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: background-color 0.3s, color 0.3s, box-shadow 0.3s ease;
}

.notion-block:hover {
    box-shadow: 0 4px 8px var(--shadow-color-hover);
}

.notion-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    /* margin-top: 5px; */
    text-transform: capitalize;
}

.notion-block p, li {
    font-size: 1.2rem;
    color: var(--block-text-color);
    margin-bottom: 20px;
}

.notion-block li {
    margin-left: 2rem;
}

.notion-block p a {
    /* color: #4a9ae1; */
    color: var(--accent);
    text-decoration: none;
}

.notion-block p a:hover {
    text-decoration: underline;
}

.notion-block hr {
    /* margin: 0; */
    width: 10%;
    border: 0.2rem var(--accent) solid;
    transition: all 0.3s ease-out;
    display: block;
    /* text-align: left; */
    margin-bottom: 10px;
}

.notion-block:hover hr {
    width: 10.5%;
}

.post-date {
    font-size: 0.9rem;
    color: var(--block-text-color);
    font-style: italic;
    margin-bottom: 10px;
}

.blog-link {
    text-decoration: none;
    color: inherit;
}


blockquote {
    margin: 0 0 1.5em;
    padding: 0 1.5em;
    border-left: 3px solid var(--accent); /* #3eb0ef */
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 40px;
    margin-inline-end: 40px;
    unicode-bidi: isolate;
    font-size: 1.4rem;
}

/* blockquote {
    margin-top: 30px;
    margin-bottom: 30px;
} */

.post-img {
    background-color: rgb(104, 117, 128);
    /* color: #E5E7EB; */
    height: 400px;
    width: 500px;
    /* display: flex; */
    margin: auto;
    /* justify-content: center; */
    /* align-items: center; */
}

.post-img-caption {
    font-size: 1rem;
    font-weight: lighter;
    font-style: italic;
    text-align: center;
    margin-bottom: 20px;
    margin-top: 10px;
}

.collapsible {
    cursor: pointer;
}

.collapsible-content {
    display: none;
    margin-top: 10px;
}

.collapsible.active .collapsible-content {
    display: block;
}

a .go-back {
    text-decoration: none;
    color: var(--block-text-color);
    margin: 0;
    padding: 0;
    font-weight: normal;
}

a .go-back:hover .bxs-home {
    color: var(--accent);
}


/* FOOTER */

footer {
    max-width: 800px;
    margin: auto;
    padding: 30px 10px;
}

.footer-container {
    display: flex;
    max-width: 800px;
    margin: auto;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px 20px; */    
}

.footer-left {
    font-size: 0.8rem; /* Adjust the font size as needed */
    /* font-weight: 500; */
    color: var(--text-color);
    margin-block: auto; /* Pushes "ZOO" to the left */
}

/* .footer-right {
    text-align: right;
} */


.social-links {
    list-style-type: none;
    padding: 0;
}

.social-links li {
    display: inline;
    margin: 0 10px;
}

.social-links li a {
    text-decoration: none;
    text-decoration-color: none;
    color: var(--text-color);
    font-size: 1.05rem;
}

.social-links li:hover a {
    color: var(--accent);
}



/* SCROLL PROGRESS BAR */

/* Style the header: fixed position (always stay at the top) */
.header {
    position: fixed;
    top: 0;
    z-index: 1;
    width: 100%;
  }
  
  /* The progress container (grey background) */
  .progress-container {
    width: 100%;
    height: 0px;
    background: #ccc;
  }
  
  /* The progress bar (scroll indicator) */
  .progress-bar {
    height: 6px;
    background: var(--accent);
    width: 0%;
  }