/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Styling */
body {
    font-family: 'Patrick Hand', cursive;
    background-color: #fff0f8; /* Light pink background */
    background-image: url('/img/profile/leaves.png');
    background-repeat: repeat;
    background-size: 300px 300px; /* Adjust size as needed */
    color: #5a0033;
}

/* Navigation */
nav {
    background-color: #ffb6c1; /* Light pink */
    padding: 10px;
    text-align: center;
}

nav a {
    margin: 0 10px;
    color: #5a0033;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    overflow: hidden;
    transition: color 0.3s;
}

nav a:hover {
    color: #ff69b4; /* Hot pink on hover */
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    background-color: #ff69b4;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Layout */
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    max-width: 1200px; /* Keep max-width if desired */
    margin: 0 auto;
}

/* Left Sidebar - Profile Section */
.profile {
    flex: 1;
    text-align: center;
    background-color: #ffc0cb; /* Pink */
    padding: 20px;
    border-radius: 20px;
    margin-right: 20px;
    color: #5a0033;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    border: 3px solid #ff69b4;
}

/* Profile Boxes */
.profile-box {
    background-color: #ffe4e1; /* Light pink background */
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profile-box:last-child {
    margin-bottom: 0;
}

.profile-box img {
    margin-bottom: 10px;
}

.profile-box h2 {
    margin-top: 10px;
}


.social-icons {
    display: flex;              /* Use flexbox to layout icons */
    justify-content: center;    /* Center the icons */
    align-items: center;        /* Vertically align icons */
}

.social-icons a {
    display: inline-block;      /* Ensure anchor tags are inline-block */
}

.social-icons img {
    width: 40px;                /* Increased size */
    height: 40px;
    margin: 0 10px;             /* Adjusted spacing */
    transition: transform 0.2s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Center Main Content */
main {
    flex: 2;
    background-color: #ffc0cb; /* Misty rose */
    padding: 20px;
    border-radius: 20px;
    margin: 0 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.welcome-message,
.message-board,
.treasure-box {
    margin-bottom: 20px;
}

.welcome-message h3,
.message-board h3,
.treasure-box h3 {
    display: flex;
    align-items: center;
    color: #ff69b4;
}

.art-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.art-gallery img {
    width: 120px;
    height: 120px;
    margin: 10px;
    border-radius: 15px;
    border: 3px solid #ff69b4;
    transition: transform 0.3s, box-shadow 0.3s;
}

.art-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.5);
}

/* Right Sidebar - Updates and Other Sections */
.updates {
    flex: 1;
    background-color: #ffd1dc; /* Pastel pink */
    padding: 15px;
    border-radius: 20px;
    color: #5a0033;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.updates h3 {
    color: #ff69b4;
}

.updates ul {
    list-style: none;
    padding-left: 10px;
}

.updates li::before {
    content: '💖';
    margin-right: 5px;
}

.site-button {
    margin-top: 20px;
    background-color: #ffe4e1; /* Misty rose */
    padding: 10px;
    border-radius: 20px;
    color: #5a0033;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-button h3 {
    color: #ff69b4;
}

/* Section Icons */
.section-icon {
    width: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

/* Stars for Cursor Trail */
.star {
    position: fixed;
    width: 15px;
    height: 15px;
    background-image: url('/css/img/star.png');
    background-size: cover;
    pointer-events: none;
    animation: sparkle 1s forwards;
}

@keyframes sparkle {
    50% {
        transform: translate(-10px, -10px) scale(1.5) rotate(180deg);
    }
    to {
        opacity: 0;
        transform: translate(0, 0) scale(0) rotate(360deg);
    }
}

/* Responsive Layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .profile,
    main,
    .updates {
        margin: 10px 0;
    }

    .profile {
        margin-right: 0;
    }

    main {
        margin: 20px 0;
    }
}


/* Cute Banner */
/* Cute Banner */
.cute-banner {
    background-color: #ffb6c1;
    padding: 10px 0;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    z-index: 10;
    width: 100vw; /* Span the full viewport width */
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}

.scrolling-text {
    position: relative;
    overflow: hidden;
    width: 100vw; /* Ensure full viewport width */
    height: 40px; /* Adjust as needed */
}

.scrolling-text p {
    position: absolute;
    white-space: nowrap;
    animation: scrollText 10s linear infinite;
    font-size: 1.5em;
    color: #5a0033;
    font-weight: bold;
    margin: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.scrolling-text p:hover {
    animation-play-state: paused;
}

.banner-icon {
    width: 24px;
    vertical-align: middle;
    margin: 0 5px;
    filter: drop-shadow(0 0 2px black); /* Added drop shadow */
}



@keyframes scrollText {
    0% {
        transform: translate(100vw, -50%);
    }
    100% {
        transform: translate(-100%, -50%);
    }
}

/* Modal Background */
.modal {
    /* Remove display: none; */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Prevents scrolling while modal is open */
    background-color: rgba(255, 192, 203, 0.9); /* Pink background with opacity */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Hide the modal */
    pointer-events: none; /* Disable interactions when hidden */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Modal when visible */
.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interactions when visible */
}

/* Modal Content */
.modal-content {
    background-color: #ffe4e1; /* Misty Rose */
    margin: 5% auto; /* 5% from the top and centered */
    padding: 20px;
    border: 2px solid #ff69b4;
    width: 80%;
    max-width: 500px; /* Max width */
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.5);
    text-align: center;
    transform: translateY(-50px); /* Start position above */
    transition: transform 0.5s ease;
}

/* Modal Content when visible */
.modal.show .modal-content {
    transform: translateY(0); /* Slide in to original position */
}

/* Close Button */
.close-button {
    color: #5a0033;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #ff69b4;
}

/* Form Styling */
#contactForm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#contactForm label {
    margin-top: 10px;
    font-weight: bold;
    color: #5a0033;
}

#contactForm input,
#contactForm textarea {
    width: 80%;
    padding: 10px;
    margin-top: 5px;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    background-color: #fff0f8;
    font-family: 'Patrick Hand', cursive;
    font-size: 1em;
    color: #5a0033;
}

#contactForm button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff69b4;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contactForm button:hover {
    background-color: #ff1493;
}

/* Adjust modal content on smaller screens */
@media (max-width: 600px) {
    .modal-content {
        width: 95%;
    }

    #contactForm input,
    #contactForm textarea {
        width: 95%;
    }
}

/* Song Player */
.song-player {
    background-color: #ffe4e1; /* Misty Rose */
    padding: 20px;
    border-radius: 20px;
    margin: 20px auto; /* Center the player */
    max-width: 800px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3);
    color: #5a0033;
}

.song-player h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff69b4;
    margin-bottom: 15px;
}

.song-player .section-icon {
    width: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.song-player audio {
    width: 100%;
    outline: none;
    margin-top: 10px;
}

/* Customizing Audio Controls (limited support) */
.song-player audio::-webkit-media-controls-panel {
    background-color: #ffb6c1; /* Light Pink */
}

.song-player audio::-webkit-media-controls-play-button,
.song-player audio::-webkit-media-controls-volume-slider,
.song-player audio::-webkit-media-controls-mute-button,
.song-player audio::-webkit-media-controls-timeline {
    filter: hue-rotate(290deg); /* Adjust colors */
}

/* Music Visualizer Canvas */
#visualizer {
    display: block;
    margin: 20px auto 0; /* Center the canvas */
    background-color: #ffe4e1; /* Light pink background */
    border: 2px solid #ff69b4;
    border-radius: 10px;
}

/* Song Player */
.song-player h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff69b4;
    margin-bottom: 15px;
}

.song-player h3 select {
    margin-left: 10px;
    padding: 5px;
    border: 2px solid #ff69b4;
    border-radius: 5px;
    background-color: #fff0f8;
    color: #5a0033;
    font-family: 'Patrick Hand', cursive;
    font-size: 1em;
}

.song-player h3 select:focus {
    outline: none;
    border-color: #ff1493;
}

.visualizer-controls {
    text-align: center;
    margin-bottom: 10px;
}

.visualizer-controls label {
    font-family: 'Patrick Hand', cursive;
    font-size: 1em;
    color: #5a0033;
    margin-right: 5px;
}

.visualizer-controls select {
    padding: 5px;
    border: 2px solid #ff69b4;
    border-radius: 5px;
    background-color: #fff0f8;
    color: #5a0033;
    font-family: 'Patrick Hand', cursive;
    font-size: 1em;
}

.visualizer-controls select:focus {
    outline: none;
    border-color: #ff1493;
}

/* Visualizer Modal Styles */

/* The Modal (background) */
.visualizer-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Above other elements */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; /* Prevents scrolling while modal is open */
    background-color: rgba(0, 0, 0, 0.8); /* Black background with opacity */
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Hide the modal */
    pointer-events: none; /* Disable interactions when hidden */
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal when visible */
.visualizer-modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interactions when visible */
}

/* Modal Content */
.visualizer-modal canvas {
    margin: auto;
    display: block;
    width: 80%; /* Adjust as needed */
    height: auto; /* Maintain aspect ratio */
    max-width: 800px; /* Maximum width */
    max-height: 80vh; /* Maximum height */
    border: 2px solid #ff69b4;
    border-radius: 10px;
}

/* Close Button */
.visualizer-close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
    text-shadow: 1px 1px 2px #000;
}

.visualizer-close-button:hover {
    color: #ff69b4;
    transform: scale(1.1);
}



/* Content Boxes in Main Section */
.content-box {
    background-color: #ffe4e1; /* Light pink background */
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #5a0033;
}

.content-box h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.content-box p {
    margin-bottom: 15px;
}

.content-box:last-child {
    margin-bottom: 0;
}

/* Image Modal Styles */

/* The Modal (background) */
#imageModal {
    opacity: 0; /* Start hidden */
    visibility: hidden; /* Hide the modal */
    pointer-events: none; /* Disable interactions when hidden */
    position: fixed;
    z-index: 1001; /* Above other elements */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(255, 192, 203, 0.5); /* Pink background with opacity */
    display: flex;
    align-items: center;
    justify-content: center;    
}

/* Modal Image */
#imageModal .modal-image {
    max-width: 90%; /* Don't exceed 90% of viewport width */
    max-height: 90%; /* Don't exceed 90% of viewport height */
    border-radius: 20px;
    border: 5px solid #ff69b4;
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.5);
    object-fit: contain; /* Ensure the image scales properly */
}

/* Modal when visible */
#imageModal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Enable interactions when visible */
}

/* Modal Content Wrapper */
#imageModal .modal-content {
    text-align: center;
}

/* Caption of Modal Image */
#caption {
    margin-top: 15px;
    text-align: center;
    color: #000000;
    font-size: 1.2em;
    font-family: 'Patrick Hand', cursive;
}

/* Close Button */
#imageModal .close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    text-shadow: 1px 1px 2px #000;
}

#imageModal .close-button:hover {
    color: #ff69b4;
}

/* Adjustments for smaller screens */
@media only screen and (max-width: 600px) {
    #imageModal .modal-image {
        max-width: 95%;
        max-height: 80%;
    }

    #imageModal .close-button {
        font-size: 30px;
        top: 10px;
        right: 20px;
    }
}

/* Top Friends Section */
.top-friends {
    margin-top: 20px;
    background-color: #ffe4e1; /* Light pink background */
    padding: 15px;
    border-radius: 20px;
    color: #5a0033;
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3);
}

.top-friends h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friends-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.friend {
    width: 30%;
    margin: 5px;
    text-align: center;
}

.friend img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid #ff69b4;
    box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s;
}

.friend img:hover {
    transform: scale(1.05);
}

.friend p {
    margin-top: 5px;
    font-weight: bold;
    color: #5a0033;
}

/* Style for the ghost element during dragging */
.sortable-ghost {
    opacity: 0.5;
    background-color: #ffe4e1;
}

/* Style when an item is chosen */
.sortable-chosen {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(255, 105, 180, 0.5);
}

@media (max-width: 600px) {
    .friend {
        width: 45%; /* Two per row on small screens */
    }
}

/* Stickers Section */
.stickers {
    margin-top: 20px;
    background-color: #ffe4e1;
    padding: 15px;
    border-radius: 20px;
    color: #5a0033;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3);
}

.stickers h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stickers-container {
    display: flex;                 /* Add this line */
    justify-content: center;       /* Center the stickers horizontally */
    flex-wrap: wrap;               /* Allow stickers to wrap to next line if needed */
    align-items: center;           /* Vertically center the stickers */
}

.stickers-container img {
    margin: 5px;
    width: auto;
    height: auto;
    max-width: 100px;              /* Adjust the size as needed */
    border-radius: 10px;
    border: 2px solid #ff69b4;
    box-shadow: 0 2px 4px rgba(255, 105, 180, 0.3);
    transition: transform 0.3s;
    max-width: 90px;
}

.stickers-container img:hover {
    transform: scale(1.05);
}

/* Visitor Counter Section */
.visitor-counter {
    margin-top: 20px;
    background-color: #ffe4e1;
    padding: 15px;
    border-radius: 20px;
    color: #5a0033;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3);
}

.visitor-counter h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visitor-counter p {
    font-size: 1.2em;
    font-weight: bold;
}

.visitor-counter img {
    width: 40px;                /* Increased size */
    height: 40px;
    margin: 0 10px;             /* Adjusted spacing */
}

/* Chat Window Styles for MSN Messenger Aesthetic */
.chat-window {
    width: 300px;
    background-color: #e5eff8;
    border: 1px solid #a9a9a9;
    border-top: 30px solid #c0d3e2;
    border-radius: 5px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    font-family: Tahoma, Geneva, sans-serif;
    color: #000;
    overflow: hidden;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden initially */
    z-index: 1000;
}

.window-controls {
    display: flex;
    margin-left: 5px;
}

.window-control {
    width: 15px;
    height: 15px;
    margin-right: 5px;
    background-color: #e5eff8;
    border: 1px solid #7f7f7f;
    cursor: pointer;
    position: relative;
}

.window-control.minimize::before,
.window-control.maximize::before,
.window-control.close::before {
    content: '';
    position: absolute;
    width: 13px;
    height: 13px;
    left: 1px;
    top: 1px;
    background-repeat: no-repeat;
    background-position: center;
}

.window-control.minimize::before {
    background-image: url('/css/img/icons/minimize-icon.png');
}

.window-control.maximize::before {
    background-image: url('/css/img/icons/maximize-icon.png');
}

.window-control.close::before {
    background-image: url('/css/img/icons/close-icon.png');
}

.chat-title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-title .user-icon {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.chat-title p {
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

/* Chat Body */
.chat-body {
    background-color: #ffffff;
    height: 250px;
    overflow-y: auto;
    padding: 10px;
}

.message-container {
    display: flex;
    flex-direction: column;
}

.message-container .message {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.message-container .user-message {
    align-self: flex-end;
    background-color: #daf1da;
    padding: 5px 10px;
    border-radius: 10px;
    max-width: 80%;
}

.message-container .friend-message {
    align-self: flex-start;
    background-color: #f1daf1;
    padding: 5px 10px;
    border-radius: 10px;
    max-width: 80%;
}

/* Chat Footer */
.chat-footer {
    display: flex;
    align-items: center;
    padding: 5px;
    background-color: #c0d3e2;
    border-top: 1px solid #a9a9a9;
}

.chat-footer input {
    flex-grow: 1;
    padding: 5px;
    font-size: 12px;
    border: 1px solid #a3a3a3;
    border-radius: 3px;
}

.chat-footer button#sendMessage {
    margin-left: 5px;
    padding: 5px 10px;
    font-size: 12px;
    background-color: #0078d7;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

.chat-footer button#sendMessage:hover {
    background-color: #005a9e;
}

.chat-footer button#emoticonButton {
    margin-right: 5px;
    padding: 5px;
    font-size: 16px;
    background-color: transparent;
    border: none;
    cursor: pointer;
}

/* Scrollbar Styling */
.chat-body::-webkit-scrollbar {
    width: 8px;
}

.chat-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-body::-webkit-scrollbar-thumb {
    background: #a9a9a9;
}

.chat-body::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* Minimized Chat Icon */
.chat-minimized {
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.chat-minimized img {
    width: 50px;
    height: 50px;
}

/* Username Modal Styles */
#usernameModal .modal-content {
    max-width: 400px;
    padding: 30px 20px;
    background-color: #ffe4e1; /* Light pink background */
    border-radius: 20px;
    text-align: center;
}

#usernameModal h2 {
    color: #ff69b4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#usernameModal .section-icon {
    width: 24px;
    margin-right: 8px;
}

#usernameModal .form-group {
    margin-bottom: 15px;
    text-align: left;
}

#usernameModal label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #5a0033;
}

#usernameModal input {
    width: 100%;
    padding: 10px;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    background-color: #fff0f8;
    font-family: 'Patrick Hand', cursive;
    font-size: 1em;
    color: #5a0033;
}

.enter-chat-button {
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #ff69b4;
    border: none;
    border-radius: 25px;
    color: #fff;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.enter-chat-button:hover {
    background-color: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.4);
}

.enter-chat-button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Close Button Styling */
.modal .close-button {
    color: #5a0033;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s, transform 0.2s;
}

.modal .close-button:hover {
    color: #ff69b4;
}

/* Message Styling */
.message {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.4;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-header strong {
    font-weight: bold;
}

.message-header .timestamp {
    font-size: 10px;
    color: #555;
}

.user-message {
    align-self: flex-end;
    background-color: #daf1da;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
}

.friend-message {
    align-self: flex-start;
    background-color: #f1daf1;
    padding: 8px 12px;
    border-radius: 10px;
    max-width: 80%;
}

.message-text {
    margin-top: 5px;
}

/* Adjust message header for user messages */
.user-message .message-header {
    justify-content: flex-end;
}

.user-message .message-header strong {
    margin-right: 10px;
}

/* Snake Game Section */
.snake-game {
    margin-top: 20px;
    background-color: #ffe4e1; /* Light pink background */
    padding: 15px;
    border-radius: 20px;
    color: #5a0033;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3);
}

.snake-game canvas {
    margin: 0 auto;
    display: block;
    border: 2px solid #ff69b4;
    border-radius: 10px;
    background-color: #ffffff;
}

/* Mute Button */
.snake-game #muteButton {
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #ff69b4;
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    font-family: 'Patrick Hand', cursive;
    font-size: 1em;
}

.snake-game #muteButton:hover {
    background-color: #ff1493;
}

/* Hide elements with the 'hidden' class */
.hidden {
    display: none;
}

/* Fortune Cookie Section */
.fortune-cookie {
    margin-top: 20px;
    background-color: #ffe4e1; /* Light pink background */
    padding: 15px;
    border-radius: 20px;
    color: #5a0033;
    text-align: center;
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3);
}

.fortune-cookie h3 {
    color: #ff69b4;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fortune-cookie .section-icon {
    width: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

#fortuneText {
    font-size: 1.2em;
    margin-bottom: 15px;
}

#fortuneButton {
    padding: 10px 20px;
    background-color: #ff69b4;
    border: none;
    border-radius: 20px;
    color: #fff;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#fortuneButton:hover {
    background-color: #ff1493;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.4);
}

#fortuneButton:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Fade-In Effect */
.fade-in {
    animation: fadeIn 1s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* GIF Styling Under Audio Visualizer */
.gif-container {
    display: flex;               /* Enables Flexbox */
    justify-content: center;     /* Centers horizontally */
    align-items: center;         /* Centers vertically (if needed) */
    margin: 20px 0;              /* Adds vertical spacing */
}

.ad-gif {
    max-width: 100%;             /* Ensures the GIF doesn't overflow its container */
    height: auto;                /* Maintains the aspect ratio */
    border-radius: 10px;         /* Optional: Adds rounded corners */
    box-shadow: 0 4px 6px rgba(255, 105, 180, 0.3); /* Optional: Adds a subtle shadow */
}

/* Responsive Adjustments for the Centered GIF */
@media (max-width: 768px) {
    .ad-gif {
        max-width: 90%;         /* Slightly smaller on medium screens */
    }
}

@media (max-width: 480px) {
    .ad-gif {
        max-width: 100%;        /* Full width on small screens */
        margin: 10px auto;     /* Reduced vertical spacing */
    }
}
