/* ========================= */
/* Global Styles */
/* ========================= */

@import url("https://fonts.googleapis.com/css2?family=Caudex:ital,wght@0,400;0,700;1,400;1,700&display=swap");

html {
  zoom: 1.1; /* 110% scale */
}

@keyframes rainbow-text {
    0%   { color: red; }
    14%  { color: orange; }
    28%  { color: yellow; }
    42%  { color: green; }
    57%  { color: blue; }
    71%  { color: indigo; }
    85%  { color: violet; }
    100% { color: red; } /* Loop back to red */
}

.rainbow-title {
    /*animation: rainbow-text 3s infinite linear; */
    font-family: 'UnifrakturMaguntia', serif;
    color: #fbf1c7;
    font-size: 130px;
    margin-top: -45px;
    margin-bottom: 10px;

}

.box {
  background-color: #101417;
  padding-left: 30px;
  padding-right: 30px;
  padding-bottom: 10px;
}

@font-face {
            font-family: "tuffte";
            src: url("et-book-roman-old-style-figures/et-book-roman-old-style-figures.ttf") format("truetype");
            font-weight: normal;
            font-style: normal;
        }


body {
    font-family: 'tuffte', serif;
    background-color:  #101417; /* Deep black */
    color: #f9f5d7;
    /*background:
        url('res.svg') left top /550px auto repeat-y,
        url('res(1).svg') right top /550px auto repeat-y,
        #000000;
    color: #ffffff; Soft white */
    background-image: url("AdobeStock_479037072.jpeg");
    background-size: 700px;
    max-width: 800px;
    margin: auto;
    padding: 20px;
    font-size: 20px;
    font-weight: 300;
    line-height: 1.4;
}

h1 {
    font-family: "Caudex";
    line-height: 1;
    font-weight:bold;
    font-size: 75px; /* Slightly reduced */
    text-align: center;
    padding-top: 40px;
    padding-bottom: -10px;
}

h2 {
    font-size: 40px; /* Scaled down for consistency */
    padding-top: 20px;
}

h3 {
    font-size: 28px;
    margin-bottom: 0px;
}

/* ========================= */
/* Blog Post List (Homepage) */
/* ========================= */

ul {
    margin-top: 40px;
    list-style-type: none; /* Remove bullets */
    padding: 0;
    text-align: center; /* Center the list */
    font-family: "Caudex";

}

/* Blog post container */
li {
    margin-bottom: 8px; /* More natural spacing */
    text-align: center;
}

/* Title as a clickable link */
.post-title {
    font-size: 22px; /* Matches body text for consistency */
    font-weight: 700;
    color:#fbf1c7;
    text-decoration: none;
}

/* Date should be smaller and inline with title */
.post-date {
    font-size: 16px;
    color: #aaaaaa;
    margin-left: 8px;
    vertical-align: middle;
}

/* Subtitle as a clickable link */
.post-subtitle {
    font-size: 18px; /* Slightly bigger for contrast */
    color: #bbbbbb;
    display: block;
    margin-top: 0px; /* Less spacing */
    margin-bottom: 5px;
    text-decoration: none;
}

.post-subtitle:hover {
    text-decoration: underline;
}

/* ========================= */
/* Blog Post Styling */
/* ========================= */

.blog-post {
    background: rgba(255, 255, 255, 1); /* Transparent */
    padding: 10px;
    border-radius: 10px;
}

/* ========================= */
/* Links & Navigation */
/* ========================= */

a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #fbf1c7;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    text-align: center;
    margin-bottom: 30px;
}

.navbar a {
    margin: 0 15px;
    font-size: 25px;
    color: #fbf1c7;
}

.navbar a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ========================= */
/* Footer */
/* ========================= */

.footer {
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: #777777;
}

/* ========================= */
/* Special Elements */
/* ========================= */

/* Blockquotes (Philosophical Quotes) */
blockquote {
    font-style: italic;
    border-left: 4px solid #888;
    padding: 12px;
    margin-left: 20px;
    color: #bbbbbb;
}

/* Code Blocks */
pre {
    background: #fbf1c1;
    color: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    overflow-x: auto;
}

/* ========================= */
/* Hover Effects */
/* ========================= */

/* Subtle Glow Effect on Hover */
button, a {
    transition: text-shadow 0.3s ease-in-out;
}

button:hover, a:hover {
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

/* ========================= */
/* Subtitle (Within Blog Post) */
/* ========================= */

span.subtitle {
    all: unset !important;
    font-size: 40px !important; /* Reduced for balance */
    font-weight: 500 !important;
    text-align: center !important;
    color: #BBBBBB !important;
    display: block !important;
    margin-top: 40px !important;
    margin-bottom: 40px !important;
}
/* ========================= */
/* Footer Styling */
/* ========================= */

.footer {
    text-align: center;  /* Centers the footer content */
    padding: 20px;
    font-size: 16px;
    color: #777777;
    margin-top: 10px;
}
.post-footer-date {
    font-weight: bold;
    color: #ffffff;
}

.post-footer-name {
    font-weight: bold;
    color: #f5f5f5;
}
#postamble {
    font-size: 20px;       /* Make it smaller */
    color: #aaaaaa;        /* Slightly lighter text */
    text-align: left;    /* Center the entire block */
    margin-top: 20px;
    padding-bottom: 20px;
}
/* Active Filters Section */
#active-filters {
    text-align: center;
    margin-bottom: 25px;
    margin-top: -25px;

    padding: 5px;
}

/* Tag Buttons (Clickable) */
.tag, .active-filter {
    display: inline-block;
    color: white; /* Ensures readability */
    padding: 2px 4px;
    border-radius: 10px;
    margin-right: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-transform: capitalize;
    transition: background-color 0.3s ease-in-out;
}

.tag:hover, .active-filter:hover {
    filter: brightness(1.2); /* Slightly brighten on hover */
}

/* ========================= */
/* MOBILE RESPONSIVE STYLES */
/* ========================= */

/* Tablet and smaller */
@media screen and (max-width: 850px) {
    html {
        zoom: 1; /* Remove zoom on smaller screens */
    }

    body {
        padding: 15px;
        font-size: 18px;
        background-size: 500px;
    }

    .rainbow-title {
        font-size: 90px;
        margin-top: -20px;
    }

    h1 {
        font-size: 55px;
        padding-top: 30px;
    }

    h2 {
        font-size: 32px;
        padding-top: 15px;
    }

    h3 {
        font-size: 24px;
    }

    span.subtitle {
        font-size: 30px !important;
        margin-top: 30px !important;
        margin-bottom: 30px !important;
    }

    .navbar a {
        margin: 0 10px;
        font-size: 22px;
    }

    .box {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Mobile phones */
@media screen and (max-width: 600px) {
    html {
        zoom: 1;
    }

    body {
        padding: 12px;
        font-size: 17px;
        line-height: 1.5;
        background-size: 400px;
        max-width: 100%;
    }

    .rainbow-title {
        font-size: 60px;
        margin-top: -15px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    h1 {
        font-size: 38px;
        padding-top: 25px;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }

    h2 {
        font-size: 26px;
        padding-top: 12px;
    }

    h3 {
        font-size: 21px;
    }

    span.subtitle {
        font-size: 24px !important;
        margin-top: 25px !important;
        margin-bottom: 25px !important;
    }

    .navbar {
        margin-bottom: 20px;
    }

    .navbar a {
        margin: 0 8px;
        font-size: 18px;
        display: inline-block;
        margin-bottom: 5px;
    }

    .box {
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 8px;
    }

    /* Blog post list adjustments */
    ul {
        margin-top: 25px;
    }

    .post-title {
        font-size: 19px;
    }

    .post-date {
        font-size: 14px;
        display: block;
        margin-left: 0;
        margin-top: 3px;
    }

    .post-subtitle {
        margin-top:-20px
        font-size: 16px;
    }

    /* Blockquote adjustments */
    blockquote {
        margin-left: 10px;
        padding: 10px;
        font-size: 16px;
    }

    /* Code blocks - ensure horizontal scroll */
    pre {
        padding: 10px;
        font-size: 14px;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Footer */
    .footer {
        padding: 15px 10px;
        font-size: 14px;
    }

    #postamble {
        font-size: 16px;
    }

    /* Tags */
    .tag, .active-filter {
        font-size: 12px;
        padding: 3px 6px;
        margin-bottom: 5px;
    }

    #active-filters {
        margin-top: -15px;
        margin-bottom: 20px;
    }
}

/* Very small phones */
@media screen and (max-width: 400px) {
    body {
        padding: 10px;
        font-size: 16px;
        background-size: 350px;
    }

    .rainbow-title {
        font-size: 45px;
        margin-top: -10px;
    }

    h1 {
        font-size: 32px;
        padding-top: 20px;
    }

    h2 {
        font-size: 22px;
    }

    h3 {
        font-size: 19px;
    }

    span.subtitle {
        font-size: 20px !important;
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }

    .navbar a {
        font-size: 16px;
        margin: 0 6px;
    }

    .post-title {
        font-size: 17px;
    }

    .post-subtitle {
        font-size: 15px;
    }

    blockquote {
        margin-left: 5px;
    }
}

/* Prevent horizontal overflow on all mobile */
@media screen and (max-width: 850px) {
    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}
