/* General Page Styling */
@keyframes backgroundRotate {
    0% { background-color: #ffc300; }
    12.5% { background-color: #6b3fa0; }
    25% { background-color: #651d32; }
    37.5% { background-color: #ba0c2f; }
    50% { background-color: #009a44; }
    62.5% { background-color: #1f2a44; }
    75% { background-color: #005eb8; }
    87.5% { background-color: #231f20; }
    100% { background-color: #ffc300; }
}


body {
    background-color: #ffc300;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden; /* Prevents page scrolling */
    animation: backgroundRotate 60s infinite alternate ease-in-out;
}

/* Social Post Box */
#social-post {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 80%;
    margin: auto;
    text-align: center;
    transition: box-shadow 0.5s ease-in-out;
}

/* Message Styling */
#social-post h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    word-wrap: break-word; /* Ensures text wraps instead of overflowing */
}

/* Submitter Name */
#social-post p {
    font-size: 1rem;
    margin: 5px 0;
}

/* Image Styling */
#social-post img {
    max-width: 100%;
    max-height: 40vh; /* Ensures image doesn’t take up too much space */
    border-radius: 10px;
    object-fit: contain; /* Keeps full image visible without cropping */
}

/* Source Icon Styling */
.source-icon {
    width: 40px;
    height: auto;
    margin-top: 10px;
}

/* Styling for #hashtag and @mention */
.hashtag, .mention {
    background: linear-gradient(45deg, #6b3fa0, #ffc230);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.hashtag {
    color: #6b3fa0;
    font-weight: bold; /* You can adjust this for emphasis */
}

.mention {
    color: #6b3fa0;
    font-weight: bold; /* You can adjust this for emphasis */
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}
