html {
    scrollbar-gutter: stable;
    max-width: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: #141414;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    min-height: 100vh;
    max-width: 100%;
    text-align: left;
    flex-direction: column;
    overflow: auto;
}

.container {
    background-color: #141414;
    padding: 40px;
    border-radius: 0px;
    width: 90%;
    max-width: 900px;
    box-sizing: border-box;
    margin-top: 0px;
    margin-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 18px;
    margin-right: 20px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

h2, h3, h4 {
    color: #dadada;
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

h1 {
    font-size: 1.9rem;
    font-weight: bold;
}

h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

h4 {
    font-size: 1.0rem;
    font-weight: bold;
}

a {
    color:#e0e0e0;
    text-decoration: none;
}

a:hover {
    color:#b0b0b0;
    text-decoration: none;
}

p {
    font-size: 1.0rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
    font-family: 'Poppins', sans-serif;
}

/* Header container */
header {
    width: 100%;
    background-color: #141414;
    display: flex;
    justify-content: space-between; /* menu & hamburger stay inside viewport */
    align-items: center;
    flex-shrink: 0;
    padding: 10px 20px;
    position: sticky;   /* stick to top of content */
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    transition: top 0.3s ease; /* smooth hide/show */
}

/* Hide header when scrolling */
header.hidden {
    top: -70px; /* hide by moving out of view */
}

/* Menu */
header ul {
    display: flex;
    gap: 20px;
    margin: 0;
    list-style: none;
}

header ul li a {
    color: #e0e0e0;
    font-family: 'Climate Crisis 2030'; /* font-family: 'Poppins', sans-serif; */
    font-weight: 500;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

header ul li a:hover {
    color: #6b6b6b;
    text-decoration: none;
}

header ul li.close-btn {
    display: none;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger div {
    width: 22px;
    height: 2px;
    background-color: #e0e0e0;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Font - Climate Title */

.title-climate h1, h2, h3, h4 {
    text-align: left;
    font-family: 'Climate Crisis 2019';
    font-weight: 200;
}

/* Container - Post Title */
.post-info {
    text-align: left;
    font-size: 1.0rem;
    color: #d3d3d3;
    font-family: 'Poppins', sans-serif;
    margin-top: 0px;
    margin-bottom: 0px;
}

.post-info h4 {
    color: #dadada;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 20px;
    margin-bottom: 5px;
}

.post-info h4 a {
    color:#e0e0e0;
    font-weight: bold;
    text-decoration: none;
}

.post-info p {
    margin: 0;
    padding: 0 20.5px;
    text-align: left;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #d3d3d3;
    font-family: 'Poppins', sans-serif;
    margin-top: 0px;
    margin-bottom: 0px;
}

/* Container - Post */
.post {
    margin-top: 10px;
    text-align: left;
    font-size: 1.0rem;
    color: #d3d3d3;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0px;
}

.post h2, h3, h4 {
    color: #dadada;
    margin-top: 40px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

.post h1 {
    font-size: 1.9rem;
    font-weight: bold;
}

.post h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.post h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

.post h4 {
    font-size: 1.0rem;
    font-weight: bold;
}

.post p {
    margin: 0;
    padding: 0 21.5px;
    text-align: left;
    font-size: 1.0rem;
    color: #d3d3d3;
    font-family: 'Poppins', sans-serif;
    margin-top: 30px;
    margin-bottom: 5px;
}

.post p a {
    color:#e0e0e0;
    text-decoration: underline;
}

.post p a:hover {
    color:#b0b0b0;
    text-decoration: underline;
}

/* Container - List */
.list {
    margin-top: 10px;
    text-align: left;
    font-size: 0.95rem;
    color: #d3d3d3;
    font-family: 'Poppins', sans-serif;
}

.list h2, h3, h4 {
    color: #dadada;
    margin-top: 40px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
    text-align: left;
    font-family: 'Inter', sans-serif;
    font-weight: 200;
}

.list h1 {
    font-size: 1.9rem;
    font-weight: bold;
}

.list h2 {
    font-size: 1.5rem;
    font-weight: bold;
}

.list h3 {
    font-size: 1.1rem;
    font-weight: bold;
}

.list h4 {
    font-size: 1.0rem;
    font-weight: bold;
}

.list ul {
    padding-left: 50px;
    list-style-type: none;
    margin-top: 12px;
    margin-bottom: 30px;
}

.list ul li {
    padding-left: 10px;
    position: relative;
    line-height: 1.4;
}

.list ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #218226;
}

/* 2nd ul */
.list ul li ul {
    padding-left: 30px;
    margin-top: 6px;
    margin-bottom: 10px;
}

/* 2nd li */
.list ul li ul li {
    padding-left: 0;
}

.list ul li ul li:before {
    content: none;
}

/* 3rd ul */
.list ul li ul li ul {
    padding-left: 30px;
    margin-top: 6px;
    margin-bottom: 10px;
}

/* 3rd li */
.list ul li ul li ul li {
    padding-left: 0;
}

.list ul li ul li ul li:before {
    content: none;
}

.list p {
    margin: 0;
    padding: 0 5px;
    text-align: left;
    font-size: 0.95rem;
    color: #d0d0d0;
    font-family: 'Poppins', sans-serif;
    margin-top: 0px;
    margin-bottom: 0px;
}

.list p a {
    color:#d0d0d0;
    text-decoration: underline;
}

.list p a:hover {
    color:#a0a0a0;
    text-decoration: underline;
}

code {
    background-color: #242424;
    color: #bababa;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.90rem;
}

pre code {
    background-color: #296122; /* For block-level code */
    color: #e0e0e0;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre code .keyword {
    color: #ffb74d; /* Yellow for keywords */
}

pre code .function {
    color: #81c784; /* Green for functions */
}

pre code .string {
    color: #f48fb1; /* Pink for strings */
}

/* Image Front */
.image-front {
    padding: 0;
    text-align: center;
    margin-top: 20px;
}

.image-front .image {
    width: 100%;
    max-width: 95%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    filter: none;
    transition: all 0.3s ease;
    /* cursor: pointer; */
}

.image-front .image:hover {
    filter: grayscale(100%) invert(100%) brightness(80%);
}

/* Post Image Full */
.post-image {
    padding: 0;
    text-align: center;
    margin-top: 20px;
}

.post-image .image {
    width: 100%;
    max-width: 95%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    margin-right: 10px;
    transition: all 0.3s ease;
    /* cursor: pointer; */
}

/*
.post-image .image:hover {
    filter: grayscale(0%);
}
*/

.post-image .compact-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 20px;
}

.post-image .compact-container .image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0;
    transition: all 0.3s ease;
    /* cursor: pointer; */
}

.post-image .compact-container a {
    display: block;
    margin: 0;
    padding: 0;
}

/* Container - Button */
.button-container {
    text-align: center;
    width: 100%;
}

.button {
    padding: 12px 65px;
    background-color: #5260ff;
    color: #f0f0f0;
    font-size: 1.1rem;
    text-decoration: none;
    border-radius: 50px; /* Rounded edges */
    display: inline-block;
    margin-top: 10px;
    margin-bottom: 35px;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
    text-align: center; /* Ensure button text is centered */
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.button:hover {
    background-color: #4753d7; /* Change to a more vibrant orange on hover */
    text-decoration: none;
    color: #e0e0e0;
    transform: translateY(-4px); /* Slight lift on hover for interactivity */
}

/* Custom Selection */
::selection {
    background-color: #693a54; /* Custom background color for selection */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 15px; /* Keep default width */
}

::-webkit-scrollbar-track {
    background: #1c1c1c; /* Darker track color */
}

::-webkit-scrollbar-thumb {
    background-color: #3a3a3a; /* Darker thumb color */
    border-radius: 10px; /* Keep rounded corners */
    border: 4px solid #1c1c1c;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #616161; /* Slightly lighter on hover */
}

/* For Firefox */
* {
    scrollbar-width: auto;
    scrollbar-color: #303030 #1a1a1a; /* thumb color, track color */
}

scrollbar-track {
    background: #1c1c1c;
    border-radius: 10px;
}

scrollbar-thumb {
    background-color: #3a3a3a;
    border-radius: 10px;
    border: 3px solid #1c1c1c;
}

scrollbar-thumb:hover {
    background-color: #616161;
}

/* Footer container */
.footer {
  margin-top: auto;
  padding: 10px 0;
  font-size: 14px;
  border-top: 0px solid rgba(255, 255, 255, 0.15);
}

.footer .copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.200);
}

.footer .credits {
  padding-top: 0px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 13px;
  color: #404040;
}

.footer .credits p {
    font-size: 0.75rem;
    color: #404040;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.footer .credits a {
  color: #404040;
  text-decoration: none;
}

.footer .credits a:hover {
  color: #353535;
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    header ul {
        flex-direction: column;
        position: fixed;   
        top: 0;
        left: -250px;      
        height: 100vh;
        width: 250px;      
        background-color: #1a1a1a;
        padding-top: 70px;
        gap: 20px;
        display: flex;
        flex-wrap: nowrap;
        z-index: 1002;
        transition: left 0.3s ease;
        box-sizing: border-box;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }

    header ul.active {
        left: 0;          
    }

    header ul li {
        padding: 0px 0px;
        text-align: left;
    }

    /* Header menu close button style */
    header ul li.close-btn {
        display: block; /* visible on mobile only */
        position: absolute;
        top: 15px;
        right: 20px;
        font-size: 2rem;
        font-weight: bold;
        cursor: pointer;
        color: #e0e0e0;
        text-align: right;
        z-index: 1003;
        padding: 0;
    }

    .hamburger {
        display: flex;
    }

    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.1rem;
        color: #c1c1c1;
        letter-spacing: 0.10em;
    }

    p {
        font-size: 1.0rem;
        line-height: 1.6;
        margin-bottom: 5px;
        margin-left: 20px;
        margin-right: 20px;
        text-align: left;
        font-family: 'Poppins', sans-serif;
    }

    .post-info {
        text-align: left;
        font-size: 1.0rem;
        color: #d3d3d3;
        font-family: 'Poppins', sans-serif;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .post-info h4 {
        color: #dadada;
        text-align: left;
        font-family: 'Inter', sans-serif;
        font-weight: 200;
        font-size: 0.90rem;
        line-height: 1.5;
        margin-top: 20px;
        margin-bottom: 5px;
    }

    .post-info h4 a {
        color:#e0e0e0;
        font-weight: bold;
        text-decoration: none;
    }

    .post-info p {
        margin: 0;
        padding: 0 20.5px;
        text-align: left;
        font-size: 0.83rem;
        line-height: 1.5;
        color: #d3d3d3;
        font-family: 'Poppins', sans-serif;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .post {
        margin-top: 10px;
        text-align: left;
        font-size: 0.95rem;
        color: #d3d3d3;
        font-family: 'Poppins', sans-serif;
    }

    .post p {
        margin: 0;
        padding: 0 21.5px;
        text-align: left;
        font-size: 0.9rem;
        color: #d3d3d3;
        font-family: 'Poppins', sans-serif;
        margin-top: 30px;
        margin-bottom: 5px;
    }

    .list {
        margin-top: 10px;
        text-align: left;
        font-size: 0.95rem;
        color: #d3d3d3;
        font-family: 'Poppins', sans-serif;
    }

    .list p {
        margin: 0;
        padding: 0 10px;
        text-align: left;
        font-size: 0.95rem;
        color: #d0d0d0;
        font-family: 'Poppins', sans-serif;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    code {
        font-size: 0.80rem;
    }

    .image-front .image {
        max-width: 90%;
    }

    .post-image .image {
        max-width: 90%;
    }
    

    .button {
        padding: 12px 60px;
        font-size: 1.0rem;
    }
}
