body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #b0bec5;
    position: relative;
}

#star-container {
    width: 100%; /* Ensures it does not exceed viewport width */
    height: 100vh; /* Full viewport height */
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    overflow: hidden;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    #content {
        max-width: 100%;
        padding: 10px;
    }
    
    .post {
        width: 100%;
    }
    
    .modal-content {
        width: 90%;
        height: auto;
        padding: 20px;
    }

    footer {
        padding: 10px;
    }

    /* Centering elements on smaller screens */
    h1, p, .category-container, .modal-content, footer {
        text-align: center;
    }
}


#content {
    max-width: 100%; /* Prevents it from exceeding the viewport width */
    padding: 20px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}
.alignment,
.alignment2 {
    width: 100%;
    max-width: 1000px;
    margin: auto;
    text-align: center;
    padding: auto;
}

.alignment {
     height: auto;
}

.alignment2 {
    text-align: left; height: auto; color: #85c2a5;
}

#typewriter {
    font-family: 'Roboto', sans-serif;
    color: #88c4a8;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    /* Remove cursor blink */
    animation: typing 3s steps(30, end);
}

/* Scrollbar styling for WebKit browsers */
::-webkit-scrollbar {
    width: 10px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0)
}

::-webkit-scrollbar-thumb {
    background-color: #88c4a8; /* Scrollbar thumb color */
    border-radius: 5px; /* Rounded edges for the scrollbar thumb */
    border: 2px solid #292929; /* Optional border around the thumb */
}

/* Optional: Change color when hovering */
::-webkit-scrollbar-thumb:hover {
    background-color: #73b38f; /* Thumb color on hover */
}


@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}


@keyframes blink-caret {
    50% { border-color: transparent; }
}


#content::-webkit-scrollbar {
    display: none;
}

h1 {
    color: #88c4a8;
    margin-bottom: 10px;
    font-weight: normal;
}

p {
    margin: 0 0 20px;
    font-weight: normal;
    font-size: 16px;
}

.features-list {
    list-style-type: none; /* Removes default bullet points */
    margin: 0 auto; /* Centers the list */
    text-align: left; /* Aligns text to the left */
    width: fit-content; 
}
.features-list li {
    margin-bottom: 10px;
}

.features-list2 {
    list-style-type: none; /* Removes default bullet points */
    margin: 0 auto; /* Centers the list */
    text-align: left; /* Aligns text to the left */
    width: fit-content; 
}

.category-container {
    display: flex;
    flex-wrap: wrap; /* Ensures elements wrap instead of overflowing */
    justify-content: center;
    gap: 20px;
    margin: 0 auto; /* Centers the container */
}

.post {
    width: calc(100% - 40px); /* Ensures the cards fit the viewport, adjusts for padding */
    max-width: 350px; /* Keeps it consistent with the desired size */
    margin: 10px auto; /* Centers posts and prevents overflow */
    background-color: #292929;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.post:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1);
}

.post img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.post h2 {
    margin: 10px 0;
    color: #a5d6a7;
    font-weight: normal;
}

.preview {
    margin-bottom: 15px;
    height: 50px;
    overflow: hidden;
    color: #b0bec5;
}

.star {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: twinkle 1.5s infinite alternate;
    opacity: 0;
}

@keyframes twinkle {
    0% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #1e1e1e;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    color: #88c4a8;
    cursor: pointer;
    transition: color 0.3s;
}

.close-button:hover {
    color: #73b38f;
}

.modal-content {
    max-width: 100%; /* Adjust width to the viewport */
    box-sizing: border-box; /* Ensures padding does not cause overflow */
}

#errorModal .modal-content h2,
#confirmationModal .modal-content h2,
#sentModal .modal-content h2,
#canceledModal .modal-content h2,
#loadingModal .modal-content h2 {
    margin-top: 90px;
}

.modal-content h2 {
    font-size: 18px;
    color: #88c4a8;
    font-weight: normal;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content input,
.modal-content textarea {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #88c4a8;
    background-color: #1e1e1e;
    color: #b0bec5;
    width: 100%;
    box-sizing: border-box;
}

.modal-content button {
    background-color: #88c4a8;
    color: #121212;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.modal-content button:hover {
    background-color: #73b38f;
}

.loader {
    margin-top: 50px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-top: 5px solid #88c4a8;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.modal-content.minimal-modal {
    margin: 0 auto;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #292929;
    padding: 15px;
    border-radius: 8px;
    width: 200px;
    border: 1px solid #88c4a8;
}

footer {
    width: 100%; /* Prevents footer overflow */
    box-sizing: border-box;
    padding: 20px;
    background-color: #1e1e1e;
    text-align: center;
}

footer .open-form {
    color: #93a2aa;
    cursor: default; /* Default cursor initially */
    margin-bottom: 10px;
    position: relative;
    display: inline-block; /* Make it inline-block to shrink to content size */
    padding: 5px; /* Add some padding for a better click area */
}

footer .open-form:hover {
    color: #5c6569;
    cursor: pointer; /* Change cursor to pointer on hover */
}

footer .footer-link {
    color: #93a2aa;
    cursor: pointer;
    text-decoration: none;
    padding: 3px;
}

footer img {
    width: 30px; /* Set the width of the images */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer; /* Change cursor to pointer */
}
.borderNeed {
    border-radius: 50%;
}

footer .footer-link:hover {
    color: #5c6569;
    cursor: pointer;
    text-decoration: none;
    padding: 3px;
}