@font-face {
    font-family: "Helvetica Neue Light";
    src: url("../fonts/helvetica-neue-light.ttf");
}
@font-face {
    font-family: "Helvetica Neue Medium";
    src: url("../fonts/helvetica-neue-medium.ttf");
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    color: #404040;
    line-height: 1.6;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

.header, .subheader, .footer, .main {
    padding: 1rem;
    text-align: center;
}

.logo {
    background-color:#bd77e2;
    padding-bottom:10px;
    display:flex;
    justify-content:center;
}

.logo img {
    max-height:100px;
}

.logo img.logo:hover {
    max-height:101;
}

.logo img.logomenu {
    margin-top: 10px;
    height: 90px;
    border: 1px solid purple;
    border-radius: 5px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.logo img.logomenu:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    border-color: yellow; 
    background-color: #ffffff;
}

span.communitylogo {
    font-family: 'Anton', sans-serif;
    font-size: 80px;
    color: #d7bfe4;
    display: inline-block;
    text-align: center;
    letter-spacing: 1px;
}

.header ul, .subheader ul {
    list-style-type: none;
    padding: 0;
    margin: 0;margin-left:50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.header li, .subheader li {
    margin: 0 10px;
}

.header a, .subheader a {
    text-decoration: none;
    color: #286795;
    font-size: 1rem;
}

.header li.location-selected a, .subheader li.location-selected a {
    color: #bd77e2;
    font-weight: bold;
    background-color: rgba(189, 119, 226, 0.1);
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.header a:hover, .subheader a:hover {
    color: #1a5875; 
    font-weight:bold;
}

.header a:hover img {
    opacity: 0.8;
    transform: scale(1.05); 
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.subheader {
    padding:0px;
    padding-bottom:10px;
}

li.login {
    position:relative;
}

li.login ul.profiledropdown, ul.cattools li ul {
    display: none; 
    position: absolute;
    margin-left:0px;
    top: 100%; 
    background-color: #ffffff; 
    border: 1px solid #ccc; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 5px; 
    width: 150px; 
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0; 
    visibility: hidden; 
}

li.login ul.profiledropdown li {
    padding: 10px 15px;
    list-style: none;
}

li.login ul.profiledropdown li a {
    color: #bd77e2;
    text-decoration: none; 
    display: block; 
}

li.login:hover ul.profiledropdown {
    display: block;
    opacity: 1;
    visibility: visible;
}

li.login ul.profiledropdown li a:hover {
    background-color: #f0f0f0; 
    color: #286795; 
}

.error {
    color: #D8000C;
    background-color: #FFD2D2; 
    border: 1px solid #D8000C; 
    padding: 10px 20px; 
    border-radius: 5px; 
    box-shadow: 0 0 5px rgba(216, 0, 12, 0.3);
    margin: 10px 0; 
    font-size: 16px;
    font-family: Arial, sans-serif; 
    text-align: center; 
}

.logintitle, .loginbutton {
    width:100%;
    display:flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
}

.capcont {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px; 
    justify-content: center; 
    align-items: center; 
    margin: 0 auto;
    width:510px;
}

.capimg {
    text-align: center; 
}

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

.capimg img.selected {
   width:112px;
   border:4px solid green;
   border-radius:5px;
   opacity:70%;
}

.category-container {
    column-count: 3;
    column-gap: 20px; 
    margin-top: 20px;
    margin-left:250px;
    margin-right:250px;
}

.category {
    break-inside: avoid; 
    margin-bottom: 5px; 
    background-color: #f6f6f6; 
    min-width:250px;
    padding: 5px;
    border-radius: 5px;
}

.category h3 {
    margin-top: 0;
    color: #bd77e2;
}

.category ul {
    list-style-type: none;
    padding: 0;
}

.category li {
    margin:-5px;
}

.category a {
    text-decoration: none;
    color: #000;
}

.category a:hover {
    color: #404040;
    background-color: rgba(189, 119, 226, 0.3); 
    padding: 5px;
}

.footer {
    background-color: #bd77e2;
    color: #fff;
    width: 100%;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
}

.footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.footer li {
    margin: 0 10px;
}

.footer a {
    font-size: 0.75rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.tos {
    max-width: 800px;
    margin: 2rem auto;
    margin-bottom:75px;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    color: #404040;
    font-size: 1rem;
    line-height: 1.6;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.tos h1, .tos h2, .tos h3, .tos h4, .tos h5, .tos h6 {
    color: #286795;
    margin-bottom: 1rem;
}

.tos p {
    margin-bottom: 1rem;
}

.tos a {
    color: #bd77e2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tos a:hover {
    color: #286795;
    text-decoration: underline;
}

.tos ul, .tos ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.tos li {
    margin-bottom: 0.5rem;
}

.tos table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.tos th, .tos td {
    padding: 0.75rem;
    border: 1px solid #ccc;
    text-align: left;
}

.tos th {
    background-color: #f1f1f1;
    color: #404040;
}

.tos td {
    background-color: #fff;
}

.tos tr:nth-child(even) td {
    background-color: #f9f9f9;
}

.signup-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.signup-container h1 {
    color: #333;
    text-align: center;
}

.google-signup-btn {
    color: red;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center; 
    width: 100%;
    font-size: 1rem;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.google-signup-btn img {
    margin-right: 10px; 
    height: 50px;
    width: 50px; 
    flex-shrink: 0; 
}

.google-signup-btn span {
    flex-grow: 1; 
    text-align: center; 
}

.google-signup-btn:hover {
    background-color: #fcdae2;
    color:
}

.signup-container form {
    margin-top: 20px;
}

.signup-container label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.signup-container input[type='email'],
.signup-container input[type='password'] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.email-signup-btn, button.submit {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.email-signup-btn:hover, button.submit:hover {
    background-color: #45a049;
}

button.submit {
    width:300px;
}

.onboard {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.onboard label {
    display: block;
    margin-bottom: 5px;
}

.onboard input[type="text"],
.onboard select,
.onboard input[type="file"],
.onboard button {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.birthselects {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.birthselects select {
    width: calc(50% - 5px);
}

span.newtitle {
    display:block;
    clear: both;
}

.chooser {
    display:block;
}

.chooser input, .privacysettings input[type="radio"] {
    display:none;
    visibility:hidden;
}

.chooser label, .privacysettings input[type="radio"] + label {
    float:left;
    margin-right:12px;
    min-width:80px;
    text-align:center;
    color: #286795;
    border: 2px solid #bd77e2;
    border-radius:25px;
    padding: 3px;
}

.chooser input:checked + label, .privacysettings input[type="radio"]:checked + label {
    color: #bd77e2;
    background:rgba(189, 119, 226, 0.1);
}

.notbutton {
    display: block;
    margin-top:30px;
    padding: 10px 20px;
    font-size: 16px;
    color: #aaa; 
    background-color: #f0f0f0; 
    border: 1px solid #ccc; 
    border-radius: 5px;
    text-align: center;
    cursor: not-allowed; 
    opacity: 0.6; 
}

.abutton {
    display: block;
    margin-top: 30px;
    padding: 10px 20px;
    font-size: 16px;
    color: #fff; 
    background-color: #4CAF50; 
    border: 1px solid #4CAF50; 
    border-radius: 5px;
    text-align: center;
    cursor: pointer; 
    opacity: 1; 
    transition: background-color 0.3s, border-color 0.3s; 
}

.abutton:hover {
    background-color: #45a049; 
    border-color: #45a049; 
}

.catheader {
    text-align: center;
}

.catheader ul.cattools {
    display:inline-block;
    list-style-type: none;
    font-size: 1.2rem;
    color: #286795;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

ul.cattools li {
    position:relative;
    display:inline-block;
    float:left;
    margin: 0 15px;
}

ul.cattools li a {
    text-decoration: none;
}

ul.cattools li.location {
    color: #bd77e2;
    padding-left:5px;
    padding-right:5px;
    background-color: rgba(189, 119, 226, 0.1);
}

ul.cattools li ul li {
    padding:5px;
    font-size:15px;
}

ul.cattools li:hover ul {
    padding-left: 0px !important;
    margin-left:-250px;
    display: block;
    opacity: 1;
    visibility: visible;
    width: 700px;
    white-space: normal;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

ul.cattools li:hover ul li {
    break-inside: avoid;
    padding: 5px;
    box-sizing: border-box;
    width: 80%;
}

ul.cattools li a {
    color: #bd77e2;
}

ul.cattools li ul li:hover{
    background-color: #f0f0f0; 
}

ul.cattools li ul li:hover a {
     color: #286795 !important;
}

a.cattool {
    display: inline-block;
    padding: 10px 20px; 
    margin: 5px; 
    margin-top:-10px;
    font-size: 1rem; 
    font-weight: bold; 
    color: #fff !important; 
    background-color: #286795; 
    text-decoration: none; 
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    vertical-align: middle;
}

a.cattool:hover {
    background-color: #1a5875;
    transform: scale(1.05);
    color: #fff;
}

.makepost-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.makepost-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #404040;
    font-size: 1.1rem;
    font-weight: bold;
}

.makepost-form input[type='text'],
.makepost-form textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    color: #404040;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.makepost-form input[type='text']:focus,
.makepost-form textarea:focus {
    border-color: #bd77e2;
    box-shadow: 0 0 5px rgba(189, 119, 226, 0.5);
    outline: none;
}

.makepost-form textarea {
    min-height: 150px;
    resize: vertical;
}

.makepost-form br {
    display: none;
}

.noposts {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    color: #404040;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.6;
}

.noposts a {
    color: #286795;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.noposts a:hover {
    color: #1a5875;
    background-color: rgba(189, 119, 226, 0.1);
    border-radius: 5px;
    padding: 2px 5px;
}

.post-submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.post-submit-button:hover {
    background-color: #45a049;
}

.readpost {
    position:relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.readposttitle {
    font-size: 2rem;
    font-weight: bold;
    color: #286795;
    margin: 1rem 0;
    text-align: center;
}

.readpostdetails {
    font-size: 1rem;
    color: #666;
    text-align: center;
    margin-bottom: 1rem;
}

.readpostbody {
    font-size: 1.1rem;
    color: #404040;
    line-height: 1.8;
    margin: 1.5rem auto;
    max-width: 800px;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.readpostimages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 2rem 0;
    position: relative;
}

.readpostimages img {
    max-width: 150px;
    max-height: 150px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.readpostimages img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.modal {
    display: none; 
    position: fixed;
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8); 
}

.modal .modal-content {
    margin: 5% auto; 
    display: block;
    max-width: 80%;
    max-height: 80%;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

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

#image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#image-preview img {
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    object-fit: cover;
}

.showposts {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.showposts h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #286795;
}

.listpost {
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.listpost:last-child {
    border-bottom: none;
}

.listpostheader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.listposttitle a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
    color: #286795;
    margin-right: 1rem;
}

.listpostdetails {
    display: flex;
    flex-direction: column;
}

.listpostmaker, .listpostpostedat {
    font-size: 1rem;
    color:#286795;
}

.listpostmaker a, .readpostdetails a {
    text-decoration:none;
    color:#bd77e2;
}

.listpostin {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    height: 120px; 
}

.listpostin ul {
    padding: 10px; 
    margin: 0;
    display: block;
    border: 1px solid #ccc; 
    border-radius: 8px;
    background-color: #f9f9f9;
    box-sizing: border-box; 
    height: 100%; 
}

.listpostin ul li {
    font-size: 1rem;
    margin-left:15px;
    color: #bd77e2;
    margin-bottom: 0.5rem;
}

.listpostin ul li:last-child {
    margin-bottom: 0;
}

.listpostin img {
    height: 110px;
    width: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 5px;
    background-color: #f9f9f9;
}

.userprofile {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: center;
}

.profileheader {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.username {
    font-size: 2rem;
    font-weight: bold;
    justify-content:left;
    color: #286795;
    margin: 0 1rem;
    text-align: left;
}

.userpic {
    position: relative;
    margin: 0 1rem;
}

span.userinfo {
    font-size: .8rem;
    font-weight: normal;
    color: #404040;
}

.userpic img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #bd77e2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.userpic img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.aboutme {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #404040;
    text-align:left;
}

.aboutme h3 {
    font-size: 1.5rem;
    color: #286795;
    margin-bottom: 0.5rem;
}

span.editprofile, span.editpost {
    display: inline-block;
    margin-left: 5px;
    cursor: pointer;
    color: #bd77e2;
    font-size: 1.5rem;
    font-weight:bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

span.editprofile:hover {
    color: #1a5875;
    transform: scale(1.2);
}

.privacysettings {
    text-align:left;
    background-color: #f9f9f9;
}

.privacysettings h3 {
    font-size: 1.5rem;
    color: #286795;
    margin-bottom: 1rem;
}

.privacysettings h4 {
    font-size: 1.2rem;
    color: #286795;
    margin-bottom: 1rem;
}

.privacysettings table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.privacysettings table tr {
    border-bottom: 1px solid #ccc;
}

.privacysettings table tr:last-child {
    border-bottom: none;
}

.privacysettings table td {
    padding: 10px;
    vertical-align: middle;
}

.privacysettings table td:first-child {
    text-align: left;
    color: #404040;
    font-size: 1.1rem;
}

.privacysettings table td:last-child {
    text-align: right;
}

.privacysettings input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.privacysettings select {
    width: 100%;
    padding: 10px;
    margin-top: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 1rem;
    color: #404040;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.privacysettings select:focus {
    border-color: #bd77e2;
    box-shadow: 0 4px 6px rgba(189, 119, 226, 0.5);
    outline: none;
}

#profile-pic-input {
    display: none;
}

#upload-pic-button {
    position: absolute;
    bottom: 10px; /* Adjust as needed */
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px; /* Adjust as needed */
    opacity: 0; /* Start with hidden */
    transition: opacity 0.3s;
}

.userpic:hover #upload-pic-button {
    opacity: 1; /* Show button on hover */
}

.readpostdetails .message-user {
    width:100%;
    display:flex;
    justify-content:center;
}

.message-user a{
    text-decoration:none;
    font-size: 14px;
    color: #bd77e2;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.message-user a:hover {
    color: #1a5875;
}

.sendamessage {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: center;
}

.sendamessage .touser {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #286795;
}

.sendamessage .userpic img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #bd77e2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sendamessage .userpic img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.sendamessage input[type="text"],
.sendamessage textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    color: #404040;
    background-color: #fff;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sendamessage input[type="text"]:focus,
.sendamessage textarea:focus {
    border-color: #bd77e2;
    box-shadow: 0 4px 6px rgba(189, 119, 226, 0.5);
    outline: none;
}

.sendamessage textarea {
    min-height: 150px;
    resize: vertical;
}

.post-submit-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.post-submit-button:hover {
    background-color: #45a049;
}

span.refreshpost {
    display:block;
    position:absolute;
    font-size:15px;
    right:25px;
    top:10px;
}

span.deletepost {
    display:block;
    position:absolute;
    font-size:15px;
    right:25px;
    top:40px;
}

.inbox {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
}

.message {
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: top;
    margin-bottom: 0.5rem;
}

.message-subject {
    font-size: 1.2rem;
    font-weight: bold;
    color: #286795;
    flex: 1 1 50%;
    word-wrap: break-word;
}

.message-sender, .message-receiver, .message-date {
    font-size: 1rem;
    color: #666;
    word-wrap: break-word;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-sender, .message-receiver {
    flex: 0 1 25%;
}

.message-sender a, .message-receiver a {
    color: #bd77e2;
    text-decoration: none; 
}

.message-date {
    flex: 0 10%;
    font-size: 0.7rem;
    color: #999;
    text-align: right;
}

span.readme {
    color:#fff;
    width:30px;
    height:30px;
    background-color: #d7bfe4;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    display:inline-block;
    text-align:center;
    margin-right:10px;
    border-radius:100%;
}

span.beenread{
    color:#fff;
    width:30px;
    height:30px;
    background-color: #bfc6e4;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    display:inline-block;
    text-align:center;
    margin-right:10px;
    border-radius:100%;
}

.message-modal {
    display: block; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.8); 
}

.message-modal .modal-content {
    position: relative;
    margin: auto;
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-height: 80%;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.message-modal .close-container {
    position: sticky;
    top: -25px;
    right: -25px;
    text-align: right;
    padding: 10px;
    background-color: #f9f9f9;
    z-index: 1001; /* Ensure it's above the modal content */
}

.message-modal .close {
    color: #286795;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.message-modal .message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.message-modal .message-detail {
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
}

.message-modal .message-detail:last-child {
    border-bottom: none;
}

.message-modal .message-sender, .modal .message-date {
    font-size: 0.9rem;
    color: #286795;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-modal .message-date {
    font-size: 0.8rem;
    color: #999;
    text-align: right;
}

.quick-reply {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.quick-reply textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
    font-size: 1rem;
}

.quick-reply button {
    align-self: flex-end;
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.quick-reply button:hover {
    background-color: #45a049;
}

/* New styles for unread messages */
.unread-message {
    background-color: #e0f7fa;
    border-left: 4px solid #00796b;
}

.unread-message .message-subject {
    color: #004d40;
}

.unread-message .message-sender, .unread-message .message-receiver, .unread-message .message-date {
    color: #004d40;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(255, 0, 0, 1);
    }
}

li.mailalert {
    display: inline-block;
    margin: 0 10px;
    position: relative;
}

li.mailalert a {
    text-decoration: none;
    color: white;
    background-color: #d7bfe4;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.8);
    animation: pulse 1.5s infinite;
    transition: background-color 0.3s, color 0.3s;
    animation-iteration-count: 3; /* Animation will stop after 3 pulses */
}

li.mailalert a:hover {
    background-color: #9d58ba;
    color: #fff;
}

.edit-textarea, textarea.edit-textarea, .readpost textarea {
    width: 100%;
    height: 200px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    resize: vertical;
    margin-bottom: 10px;
}

.readpost .submit-edit, .readpost .cancel-edit {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.readpost .submit-edit {
    background-color: #4CAF50;
    color: white;
}

.readpost .cancel-edit {
    background-color: #f44336;
    color: white;
}

.readpost .submit-edit:hover {
    background-color: #45a049;
}

.readpost .cancel-edit:hover {
    background-color: #d32f2f;
}

.makemoment {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1rem;
    border: 2px solid #d7bfe4;
    border-radius: 12px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #f9f9f9, #f2e6f2);
    text-align: center;
    font-family: 'Quicksand', sans-serif;
}

.makemoment h1 {
    font-size: 1.5rem;
    color: #404040;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.makemoment input[type="file"] {
    display: block;
    margin: 0.5rem auto;
    font-size: 0.9rem;
    color: #404040;
    border: none;
    background: none;
}

.makemoment textarea {
    width: 90%;
    height: 50px;
    padding: 10px;
    margin-top: 0.5rem;
    border: 2px solid #bd77e2;
    border-radius: 8px;
    font-size: 1rem;
    color: #404040;
    background-color: #ffffffd9;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    resize: none;
    font-family: 'Quicksand', sans-serif;
}

.makemoment textarea:focus {
    height: 150px;
    border-color: #d7bfe4;
    box-shadow: 0 0 10px rgba(189, 119, 226, 0.5);
    outline: none;
}

.makemoment button {
    display: block;
    width: 30%;
    padding: 8px;
    margin: 1rem auto 0 auto;
    margin-right: 25px;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #4CAF50;
    border: 2px solid #4CAF50;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
}

.makemoment button:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.moments {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
    max-width: 800px;
    font-family: 'Quicksand', sans-serif;
}

.moment {
    width: 100%;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #d7bfe4;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.moment-user {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.moment-user img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #d7bfe4;
}

.moment-username a {
    font-size: 1rem;
    font-weight: bold;
    color: #286795;
    text-decoration: none;
}

.moment-username a:hover {
    color: #bd77e2;
}

.moment-date {
    font-size: 0.8rem;
    color: #666;
    margin-left: auto;
}

.moment-image img {
    width: 100%;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.moment-text {
    font-size: 1rem;
    color: #404040;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.moment-tools {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.moment-tools button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #286795;
    background-color: #f9f9f9;
    border: 1px solid #d7bfe4;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    text-align: center;
    margin-left: 10px;
}

.moment-tools button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}



.momentreply-container {
    margin-top: 10px;
    text-align: left;
}

.momentreply-textarea {
    width: 95%;
    padding: 10px;
    margin-bottom: 5px;
    border: 2px solid #bd77e2;
    border-radius: 8px;
    font-size: 1rem;
    color: #404040;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
    resize: none;
    font-family: 'Quicksand', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.momentreply-textarea:focus {
    border-color: #d7bfe4;
    box-shadow: 0 0 10px rgba(189, 119, 226, 0.5);
    outline: none;
}

.momentreply-charcount {
    display: block;
    font-size: 0.9rem;
    color: #666;
    text-align: right;
    margin-top: 5px;
    font-family: 'Quicksand', sans-serif;
}

.reply-button, .like-button {
    background: none;
    border: none;
    color: #286795;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    transition: color 0.3s ease;
}

.reply-button:hover, .like-button:hover {
    color: #bd77e2;
}

.moment-tools.hidden {
    display: none;
}

.moment-replies {
    border-top: 1px solid #d7bfe4;
    padding-top: 10px;
    margin-top: 10px;
}

.moment-reply {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

.moment-reply-user {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.moment-reply-user img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    border: 1px solid #d7bfe4;
}

.moment-reply-username {
    display: flex;
    align-items: center;
}

.moment-reply-username a {
    font-size: 0.9rem;
    font-weight: bold;
    color: #286795;
    text-decoration: none;
    margin-right: 10px;
}

.moment-reply-username a:hover {
    color: #bd77e2;
}

.moment-reply-date {
    font-size: 0.7rem;
    color: #999;
}

.moment-reply-text {
    font-size: 0.9rem;
    color: #404040;
    margin-left: 50px;
    line-height: 1.4;
    margin-top: 5px;
}

.momentlikes {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    position: relative;
    width:100%;
    text-align:right;
    cursor: pointer;
}

.momentlikes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
}

.momentlikes:hover .momentlikes-list {
    display: block;
    position: absolute;
    background: #fff;
    border: 1px solid #d7bfe4;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    right: 0;
}

.momentlikes-list li {
    margin-bottom: 5px;
}

.momentlikes-list li a {
    text-decoration: none;
    color: #286795;
}

.momentlikes-list li a:hover {
    color: #bd77e2;
}

.faq {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    border-radius: 12px;
    background-color: #f9f9f9;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Quicksand', sans-serif;
}

.faqitem {
    margin-bottom: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #d7bfe4;
}

.faqitem:last-child {
    border-bottom: none;
}

.faqquestion {
    font-size: 1.2rem;
    font-weight: bold;
    color: #286795;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faqquestion:hover {
    color: #bd77e2;
}

.faqanswer {
    font-size: 1rem;
    color: #404040;
    line-height: 1.6;
    display: none;
    margin-top: 0.5rem;
}

.faqanswer.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .faq {
        width: 90%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .faqquestion, .faqanswer {
        font-size: 1rem;
    }
}

@media (max-width: 1100px) {
    .faq {
        width: 80%;
        margin: 2rem auto;
        padding: 1rem;
    }

    .faqquestion, .faqanswer {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .header ul, .subheader ul {
        margin-left: 0;
        flex-direction: column;
    }

    .header li, .subheader li {
        margin: 5px 0;
    }

    .header a, .subheader a {
        font-size: 0.9rem;
        padding: 10px;
    }

    .logo img {
        max-height: 50px;
    }

    .signup-container, .makepost-form, .userprofile, .sendamessage, .inbox, .showposts {
        width: 90%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .signup-container h1, .signup-container label, .makepost-form label, .readposttitle, .readpostdetails, .message-subject {
        font-size: 1rem;
    }

    .google-signup-btn, .email-signup-btn, .post-submit-button {
        font-size: 1rem;
        padding: 10px;
    }

    .category-container {
        column-count: 1;
        margin: 0 10px;
    }

    .category {
        min-width: auto;
        margin: 10px 0;
    }

    .message-modal .modal-content {
        width: 95%;
        max-height: 80%;
    }

    .message-modal .message-header, .quick-reply textarea {
        font-size: 0.9rem;
    }

    .readposttitle {
        font-size: 1.2rem;
    }
    
    .tos {
        width: 90%;
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1100px) {
    .header ul, .subheader ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header li, .subheader li {
        margin: 5px 10px;
    }

    .header a, .subheader a {
        font-size: 1rem;
        padding: 10px;
    }

    .logo img {
        max-height: 70px;
    }

    .category-container {
        column-count: 1;
        margin: 0 20px;
    }

    .category {
        min-width: 100%;
        margin: 10px 0;
    }

    .signup-container, .makepost-form, .userprofile, .sendamessage, .inbox, .showposts {
        width: 80%;
        margin: 2rem auto;
        padding: 1rem;
    }

    .signup-container h1, .signup-container label, .makepost-form label, .readposttitle, .readpostdetails, .message-subject {
        font-size: 1.2rem;
    }

    .google-signup-btn, .email-signup-btn, .post-submit-button {
        font-size: 1.2rem;
        padding: 12px 20px;
    }

    .message-modal .modal-content {
        width: 85%;
        max-height: 85%;
    }

    .message-modal .message-header, .quick-reply textarea {
        font-size: 1rem;
    }

    .readposttitle {
        font-size: 1.5rem;
    }
}
