:root {
    --background-color: rgb(24, 24, 24);
    --text-color: #e7e7e7;
    --a-hover: #666;
    --date: #b6b6b6;
    --glass: rgba(10, 10, 10, 0.5);
    --border: rgba(102, 102, 102, 0.5);
    --image: url("blogs/hist/seventh.png");
    --bg-2: rgb(10, 10, 10);
    --g1: #f86ca7; /* Subtle green */
    --g2: #f4d444; /* Muted pink */
    --g3: #f292ed; /* Softer yellow */
    
    --blur: 10px;
    --pfp-bg: rgb(10, 10, 10);
    --box-shadow: rgba(205, 205, 205, 0.1);
    --box-shadow-hover: rgba(205, 205, 205, 0.2);
}

/* Pink theme */
.pink {
    --background-color: #C1B2D2;
    --bg-2: #EFDCDF;
    --glass: #fcdfeb65;
    --image: url("img/unicorn.png");
    --text-color: #444156;
    --date: #5f5f5f;
    --border: #60489d60;
    --g1: #6274e7;
    --g2: #8752a3;
    --g3: #471069;
    --blur: 5px;
    --pfp-bg: #EFDCDF;
    --box-shadow: rgba(0, 0, 0, 0.1);
    --box-shadow-hover: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Roboto Mono', monospace;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0 auto;
    transition: all 0.3s ease;
}

nav {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    background: var(--glass);
    /* Adjust opacity as needed */
    backdrop-filter: blur(var(--blur));
    /* This is the magic for the glass effect */
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    /* Use flexbox */
    justify-content: center;
    /* Center contents horizontally */
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {

    nav,
    .glassmorphism-tile {
        -webkit-backdrop-filter: blur(var(--blur));
        backdrop-filter: blur(var(--blur));
    }
}

nav ul {
    list-style: none;
    padding: 10px;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-right: 20px;
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: normal;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--a-hover);
    /* Change color on hover */
}

.page {
    height: 80vh;
    /* Set the height of the container to 80% of the viewport height */
    display: flex;
    /* Use flexbox layout */
    justify-content: center;
    /* Center content horizontally */
    align-items: center;
    /* Center content vertically */
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--border);
}

main {
    margin: 10px auto;
    max-width: 900px;
    padding-left: 10px;
    padding-right: 10px;
}

.text {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    text-align: left;
    align-items: center;
    /* Center content horizontally */
    margin: 20px;
}

h1 {
    text-align: center;
}

.image {
    display: inline-block;
    vertical-align: top;
    height: 150px;
    width: 150px;
    box-sizing: border-box;
    border-radius: 50%;
    padding: 0;
    background-image: var(--image);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--pfp-bg);
    transition: box-shadow 0.5s ease-in-out; /* This controls the fade-in */
}

.image:hover {
    box-shadow: 0 0 10px 2px var(--g1); /* Fade in the first color */
    animation: colorCycle 3s ease-in-out 0.5s infinite; /* Start cycling after the fade-in */
}

/* Define the color cycling animation */
@keyframes colorCycle {
    0% {
        box-shadow: 0 0 10px 2px var(--g1);
    }
    33% {
        box-shadow: 0 0 20px 4px var(--g2);
    }
    66% {
        box-shadow: 0 0 30px 6px var(--g3);
    }
    100% {
        box-shadow: 0 0 10px 2px var(--g1); /* Loop back to the first color */
    }
}




.content {
    display: inline-block;
    /* Ensures text wraps around the image */
    vertical-align: top;
    /* This ensures proper alignment */
}

p {
    color: var(--text-color);
    font-weight: normal;
}

h1 {
    font-size: 24px;
}

img {
    border-radius: 10px;
    border: 1px solid var(--border);
    max-height: 500px;
    max-width: 100%;
}

ul {
    list-style-type: circle;
    list-style-position: outside;
}

li {
    margin-bottom: 15px;
}

nav li {
    margin-bottom: 0;
}

@media screen and (min-width: 768px) {
    .text {
        flex-direction: row;
        /* Stack items horizontally */
        align-items: center;
        /* Center content vertically */
        text-align: left;
    }

    .image {
        margin-right: 30px;
        /* Restore margin for larger screens */
    }

    h1 {
        text-align: left;
    }
}


.colorful-text,
a {
    font-weight: bold;
    background-image: linear-gradient(to right, var(--g1), var(--g2), var(--g3), var(--g1));
    /* Define gradient colors */
    -webkit-background-clip: text;
    /* Clip the background to the text */
    background-clip: text;
    color: transparent;
    /* Make the text transparent */
    animation: slideGradient 10s infinite linear;
    /* Animation duration and type */
    background-size: 200% auto;
    /* Double the background size */
    text-decoration: none;
}

@keyframes slideGradient {
    0% {
        background-position: 0 50%;
        /* Start position of the gradient */
    }

    100% {
        background-position: 200% 50%;
        /* End position of the gradient */
    }
}

/* Style for the container holding the cropped image */
.image-container {
    position: relative;
    /* Make sure it's positioned relative to its containing block */
    width: 100%;
    /* Make the container span the full width of the viewport */
    height: 20vh;
    /* Set the height to crop out the bottom portion */
    overflow: hidden;
    /* Hide the overflowing content (i.e., the bottom of the image) */
    display: flex;
    /* Use flexbox to center the image horizontally */
    justify-content: center;
    /* Center the image horizontally */
    align-items: flex-end;
    /* Align the image to the bottom of the container */
}

/* Style for the image */
.image-container img {
    width: 90vw;
    /* Make the image span the full width of its container */
    max-width: 400px;
    height: auto;
    /* Let the height adjust proportionally */
    border-radius: 0;
    border: none;
}

/* Hide all images initially */
.image:nth-child(n+2) {
    display: none;
}

.small {
    width: 80px;
    height: 80px;
}

/* WebKit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    /* width of the scrollbar */
}

::-webkit-scrollbar-thumb {
    background-color: var(--a-hover);
    /* color of the scrollbar thumb */
}

::-webkit-scrollbar-track {
    background-color: var(--bg-2);
    /* color of the scrollbar track */
}