:root {
    --bg-color: white; /* Light mode background color */
    --text-color: #333; /* Light mode text color */

    --hover-color: darkred; /* Light mode hover color */
    --active-color: darkblue; /* Light mode active color */
    --link-color: #007BFF; /* Light mode link color */
    --post-link-color: black;
    --card-color: #D3C1AF;
}

[data-theme="dark"] {
    --bg-color: #121212; /* Dark mode background color */
    --text-color: #e0e0e0; /* Dark mode text color */
    --hover-color: #ff6b6b; /* Dark mode hover color */
    --active-color: #4a90e2; /* Dark mode active color */
    --link-color: #bb86fc; /* Dark mode link color */
    --post-link-color: white;
    --card-color:#2C3E50;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'EB Garamond', serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}



a {
    text-decoration: underline;
    color: var(--link-color); /* Custom link color */
    transition: color 0.3s, transform 0.3s; /* Smooth transition for hover effects */
}
.wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.intro-header__nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: space-around;
}

.intro-header__nav li {
    margin: 0 10px;
}

.intro-header__nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: x-large;
}

/* Hover Effect for Menu Links */
.intro-header__nav a:hover {
    color: var(--hover-color);/* Change text color to black on hover */
    transform: translateY(-2px); /* Slightly lift the link on hover */
}

/* Optional: Active state or clicked state */
.intro-header__nav a:active,
.intro-header__nav a.clicked{
    color: var(--active-color); /* Change color when clicked (active state) */
}
.intro__header h1 {
    font-size: 2.5rem;
}

.intro__header h2 {
    font-size: 2rem;
    color: #666;
}

.intro-content h2 {
    font-size: 1.9rem;
}

.intro-content p {
    line-height: 1.6;
    font-size: 1.4rem;
}
p {
    font-size: 1.4rem;
    line-height: 1.6;
}
:root {
    --main-color: #A755BA;
    --main-color-darker: #9841AC;
    --main-color-darkest: #742287;
}
@keyframes drift {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tide {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.1); }
}

@keyframes float {
    0% { top: 30%; left: 80%; }
    25% { top: 28%; left: 82%; }
    50% { top: 32%; left: 78%; }
    75% { top: 30%; left: 81%; }
    100% { top: 30%; left: 80%; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wave {
    position: absolute;  
    
    left: 50%;  
    bottom: 0%;  
    margin-left: -17%;
    margin-top: -26%;
    height: 25%;
    width: 20%;
    
    border-radius: 50%;
    opacity: 0.6;
    background: #DCC6E0;
    transform-origin: center;
    animation: drift 3000ms infinite ease-in-out, 
               tide 4000ms infinite ease-in-out, 
               float 5000ms infinite ease-in-out, 
               spin 3000ms infinite linear;
}

.wave.two {
    background: #FAD4D8;
    animation: drift 4000ms infinite ease-in-out, 
               tide 6000ms infinite cubic-bezier(0.4, 0, 0.2, 1), 
               float 7000ms infinite ease-in-out, 
               spin 5000ms infinite ease-in-out;
}

.wave.three {
    background: #B2E7E8;
    animation: drift 5000ms infinite ease-in-out, 
               tide 8000ms infinite ease-in, 
               float 6000ms infinite ease-in-out, 
               spin 7000ms infinite ease-in-out;
}

@media (prefers-reduced-motion: no-preference) {
    .wave {
        animation: drift 3000ms infinite ease-in-out, 
                   tide 4000ms infinite ease-in-out, 
                   float 5000ms infinite ease-in-out, 
                   spin 3000ms infinite linear;
    }

    .wave.two {
        animation: drift 4000ms infinite ease-in-out, 
                   tide 6000ms infinite cubic-bezier(0.4, 0, 0.2, 1), 
                   float 7000ms infinite ease-in-out, 
                   spin 5000ms infinite ease-in-out;
    }

    .wave.three {
        animation: drift 5000ms infinite ease-in-out, 
                   tide 8000ms infinite ease-in, 
                   float 6000ms infinite ease-in-out, 
                   spin 7000ms infinite ease-in-out;
    }
}


.audio-container {
    display: flex;
    gap: 20px; /* Space between the icons*/
}

.audio-item {
    text-align: center; /* Center the text below the icon */
}

.audio-item p {
    margin-top: 5px;
    font-size: 14px; /* Smaller font size for the text */
}

.audio-container p {
    margin-top: 2px; /* Adjust the value as needed */
    margin-bottom: 0;  /* Optional: Removes unnecessary bottom gap */
}



    /* Decorative Line with Icon */
    .divider {
        display: flex;
        align-items: center;
        margin: 2rem 0;
    }

    .divider::before,
    .divider::after {
        content: "";
        flex: 1;
        border-bottom: 1px solid #ccc;
    }

    .divider-icon {
        padding: 0 0.5rem;
        font-size: 1.5rem;
    }

    /* Post Listing */
    .listing {
        text-align: left;
        margin-top: 3rem;
    }

    .listing h2 {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .listing__post {
        margin-bottom: 2rem;
    }

    .listing__post time {
        font-size: 0.9rem;
        color: #888;
        display: block;
        margin-top: 0.2rem;
    }

    .listing__post-link {
        font-size: 1.25rem;
        font-weight: 600;
        color: #333;
        text-decoration: none;
    }

    .listing__post-link:hover {
        text-decoration: underline;
    }

    /* Optional - Styling Bold Divider Text */
    hr {
        border: none;
        border-top: 1px solid #ddd;
        margin: 2rem 0;
    }

     /* Subheading Section */
    .intro-subtext {
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #666;
}/* Post Container */
/* Post Container */
.post {
    margin-bottom: 20px; /* Space between posts */
}

/* Post Link (Title) */
.post-link {
    display: block; /* Makes the link block-level, forcing it to occupy a new line */
    font-size: 1.6rem; /* Comfortable, larger font */
    font-weight: 600; /* Semi-bold for readability */
    color: var(--post-link-color); /* Pastel blue for the title */
    text-decoration: none; /* No underline */
    margin-bottom: 8px; /* Adds space between title and date */
    transition: color 0.3s ease, font-weight 0.3s ease; /* Smooth color and weight change on hover */
}

/* Hover Effect for the Link (Title) */
.post-link:hover {
    color: darkred; /* Change text color to black on hover */
    font-weight: 600; /* Make it bold on hover */
    text-decoration: none; /* Add an underline effect on hover for better visual feedback */
}

/* Post Date */
.post-date {
    display: block; /* Makes the date block-level to be on a new line */
    font-size: 1rem; /* Slightly smaller text for the date */
    color: #A6A6A6; /* Soft gray for the date */
    font-style: italic; /* Italicize the date for a delicate look */
    margin-top: 4px; /* Slight space above the date */
}
/* Main Container */
.wrapper_posts {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
} 

/* Heading */
h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Post Details Section */
.post-details {
text-align: left; /* Left align the text */
max-width: 800px; /* Optional: to limit the width of the content */
margin: 0 auto; /* Center the section horizontally */
padding: 20px; /* Optional: add some padding for spacing */
}

/* Title of Post */
#post-title {
font-size: 2.5rem; /* Adjust the title font size */
font-weight: 700; /* Make the title bold */
margin-bottom: 10px; /* Space below the title */
}

/* Post Date */
#post-date {
font-size: 1.1rem; /* Slightly smaller font for the date */
color: #666; /* Muted color for the date */
margin-bottom: 20px; /* Space below the date */
}

/* Post Content */
#post-content {
font-size: 1.25rem; /* Standard font size for the content */
line-height: 2rem; /* Make the lines of text a bit more spaced */
color: var(--text-color); /* Text color for readability */
margin: 1.5rem 0; 
user-select: text; /* Allow text selection */
-webkit-user-select: text; /* For Webkit-based browsers */
-moz-user-select: text; /* For Firefox */
-ms-user-select: text; /* For older IE/Edge */
}




/* styles.css */

.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.skeleton::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-title {
    width: 60%;
    height: 32px;
    margin: 20px 0;
}

.skeleton-date {
    width: 30%;
    height: 24px;
    margin: 10px 0;
}

.skeleton-content {
    width: 100%;
    height: 200px;
    margin: 20px 0;
}

.post-details.loaded .skeleton {
    display: none;
}
#theme-toggle {
    position: absolute; /* Absolute positioning to the top-right */
    top: 30px; /* Distance from the top */
    right: -60px; /* Distance from the right */
    width: 40px;
    height: 40px;
    background-color: var(--hover-color); /* Circle background color */
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#theme-toggle:hover {
    background-color: var(--active-color);
    transform: scale(1.1);
}



/* Media Query for Phone Screens */
@media (max-width: 600px) {
    /* General Adjustments */
    body {
        font-size: 90%; /* Scale down font sizes slightly */
        
    }

    .wrapper {
        padding: 15px; /* Reduce padding for smaller screens */
    }
    /* Navigation Menu */
.intro-header__nav {
    display: flex;
    flex-direction: column; /* Stack menu and toggle vertically by default */
    align-items: center;
    gap: 10px;
    width: 100%; /* Ensure it doesn't exceed the viewport width */
}
/* Theme toggle button */
#theme-toggle {
    display: flex; /* Use flexbox to center the emoji */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    width: 40px; /* Circle width */
    height: 40px; /* Circle height */
    background-color: var(--hover-color); /* Circle background color */
    border: none; /* No border */
    border-radius: 50%; /* Make it circular */
    font-size: 1.2rem; /* Adjust emoji size */
    color: var(--text-color); /* Emoji color */
    cursor: pointer; /* Pointer cursor */
    transition: background-color 0.3s, transform 0.2s;
    position: absolute; /* Keep fixed in top-right corner */
    top: 30px; /* Adjust vertical position */
    right: 50px; /* Adjust horizontal position */
}


    /* Navigation Menu */
    .intro-header__nav ul {
        flex-direction: column; /* Stack menu items vertically */
        align-items: center; /* Center the items */
        gap: 10px; /* Add spacing between items */
    }

    .intro-header__nav a {
        font-size: large; /* Slightly smaller font size for links */
    }

    /* Waves */
    .wave {
      display: none; /* Hide the waves on smaller screens */
    }


    /* Post Container */
    .post {
        margin-bottom: 15px; /* Reduce space between posts */
    }

    .post-link {
        font-size: 1.4rem; /* Scale down title font size */
    }

    .post-date {
        font-size: 0.9rem; /* Scale down date font size */
    }

    .wrapper_posts {
        max-width: 100%; /* Allow the wrapper to use full width */
        text-align: left; /* Align text to the left */
        padding: 10px; /* Add padding around the content */
    }

  
    /* Intro Section */
    .intro__header h1 {
        font-size: 2rem; /* Scale down header */
    }

    .intro__header h2 {
        font-size: 1.5rem; /* Adjust subheading */
    }

    /* Text Content */
    p {
        font-size: 1.2rem; /* Slightly smaller text */
        line-height: 1.4; /* Adjust line spacing */
    }

    .intro-content p {
        font-size: 1.2rem;
    }

    /* Divider */
    .divider::before,
    .divider::after {
        border-bottom: 1px solid #aaa; /* Thinner line for smaller screens */
    }

    .divider-icon {
        font-size: 1rem; /* Reduce size of icon */
    }

    /* Audio Container */
    .audio-container {
        flex-direction: row; /* Stack audio items vertically */
        align-items: center; /* Center them */
    }

    .audio-item p {
        font-size: 12px; /* Smaller font size for audio labels */
    }

    /* Post Details */
    .post-details {
        padding: 15px; /* Adjust padding for smaller screens */
    }

    #post-title {
        font-size: 2rem; /* Reduce title size */
    }

    #post-content {
        font-size: 1.1rem; /* Reduce content size */
        line-height: 1.8; /* Adjust line height */
    }
   
}
.projects-section {
    margin-top: 40px;
}

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

@media (min-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.project-card {
    padding: 15px;
    border: 1px solid var(--text-color);
    border-radius: 5px;
    transition: transform 0.2s, background-color 0.3s;
}

.project-card:hover {
    transform: scale(1.05);
    background-color: var(--card-color);
}

.project-title {
    font-size: 1.2rem;
    margin: 0 0 10px;
}

.project-link {
    text-decoration: none;
    color: var(--link-color);
}
.project-card p {
    margin: 10px 0;
    color: var(--text-color);
}

.project-card strong {
    color: var(--active-color);
}

/* FOR THE SAY HI PAGE */
/* Modal Style */
/* Center the page content */

.contact, .social-media, #post-thought-form, #delete-thoughts-form {
    margin-bottom: 40px;
}

.contact h1, .social-media h2, #delete-thoughts-form h3 {
    border-bottom: 2px solid gray;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
#delete-button {
    background-color: #007bff;; /* Red background */
    color: white;
    border: none;
    cursor: pointer;
    width: auto; /* Or any width you prefer */
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center; /* Center align text */
    transition: background-color 0.3s ease;
}

#delete-button:hover {
    background-color: #cc0000; /* Darker red on hover */
}
#post-button {
    background-color: #28a745; /* Green background */
    color: white;
    border: none;
    cursor: pointer;
    width: auto; /* Or any width you prefer */
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 0.9rem;
    text-align: center; /* Center align text */
    transition: background-color 0.3s ease;
}

#post-button:hover {
    background-color: #218838; /* Darker green on hover */
}
.social-media h2 {
    text-align: center;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-media-links a {
    display: inline-block;
    text-decoration: none;
    color: #333;
    font-size: 1.8rem;
}

.social-media-links a:hover {
    color: #007BFF;
}

.post-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Container to center the button */
#post-thought-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Adjust the gap between the textarea and the button */
}

.post-action-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
}


.post-action-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-modal:hover,
.close-modal:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.password-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

#thoughts-list {
    list-style: none;
    padding: 0;
}

#thoughts-list li {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
}

#thoughts-list li span {
    font-size: 0.9rem;
    color: #888;
    display: block;
    margin-top: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #ddd;
    margin-top: 40px;
}

.footer a {
    color: #007BFF;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
.thought-text {
    color: black; /* Default color for the thought text */
    font-size: 1rem;
    padding: 8px;
    margin-bottom: 10px;
}

.heart-container {
    display: flex;  /* Align heart and like count in a row */
    align-items: center;
    gap: 10px;  /* Space between the heart and the like count */
    margin-left: auto;  /* Align the container to the right */
    flex-direction: row-reverse;  /* Reverse the order to make the like count go after the heart */
}

.heart-button {
    background-color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;  /* Smooth transition for scaling and color change */
}

.heart-icon {
    fill: #e0e0e0;  /* Default empty heart color (light gray) */
    transition: fill 0.3s ease;  /* Smooth color transition */
    width: 24px;
    height: 24px;
}

.heart-button:hover {
    transform: scale(1.5);  /* Heart button grows a little when hovered */
}
.heart-button:active {
    transform: scale(1.2);  /* Slightly enlarge on click */
}

.heart-button:focus {
    outline: none;  /* Remove focus outline when clicked */
}

.heart-button.liked .heart-icon {
    fill: #e1306c;  /* Pink color when liked */
    transition: fill 0.2s ease; 
}

.like-count {
    font-size: 0.9rem;
    color: #888;
    margin-left: 0px;  /* Space between heart icon and like count */
}

.highlight {

    background-color: lightpink; /* Light yellow background */
    color: black;
    
  
    font-weight: bold; /* Bold text */
    padding: 2px 4px; /* Padding for a neat look */
    border-radius: 4px; /* Rounded corners */
}
/* Image Gallery */
.gallery-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px; /* Add space at the top for some breathing room */
}

.gallery-images img {
    max-width: 300px; /* Set a max width */
    max-height: 300px; /* Set a max height */
    object-fit: contain; /* Maintain aspect ratio */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Add transition for smooth hover effects */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add subtle shadow for depth */
}

/* Hover effect for images */
.gallery-images img:hover {
    transform: scale(1.05); /* Slightly enlarge the image */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .gallery-images img {
        max-width: 200px;
        max-height: 200px;
    }
}