/* Default styles for larger screens */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 40px;
    background-color: #f0f0f0;
}

h1 {
    color: #ff6b6b;
    text-align: center;
    font-size: 48px;
    font-family: 'Patrick Hand', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 10px;
}

h2 {
    color: #4a4a4a;
    font-size: 24px;
    text-align: center;
    font-family: 'Patrick Hand', cursive;
    margin-bottom: 30px;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

/* CSS for the catchy part */
.catchy-text {
    font-size: 24px; /* Increase font size */
    color: #FF5733; /* Eye-catching color */
    font-weight: bold; /* Add bold text */
}

.catchy-text a {
    text-decoration: none; /* Remove underline from the link */
    color: #3E4095; /* Stylish link color */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

.catchy-text a:hover {
    color: #FF5733; /* Change link color on hover */
}


form {
    background-color: #fff8dc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: auto;
}

input, textarea {
    padding: 10px;
    border: none;
    outline: none;
    background-color: transparent;
    color: #333;
    font-family: 'Patrick Hand', cursive;
    font-size: 16px;
}

input {
    height: 30px;
}

textarea {
    width: 100%;
    height: 150px;
    resize: none;
}

input:focus, textarea:focus {
    border-color: #ff6b6b;
}

button {
    background-color: #ff6b6b;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#messages-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
    font-size: 18px;
}

#messages-container div {
    padding: 20px;
    margin: 20px;
    width: 200px;
    min-height: 200px;
    position: relative;
    word-wrap: break-word;
    font-family: 'Patrick Hand', cursive;
}


#messages-container div .date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #000000;
}

#preview-sticky-note {
    background-color: #fff8dc;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    margin: 20px auto;
}

/* The Modal (background) */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    
    /* Adjustments for centering the modal more accurately */
    position: fixed; /* Changed from margin to fixed positioning */
    top: 50%; /* Start at the middle of the page */
    left: 50%; /* Align horizontally */
    transform: translate(-50%, -50%); /* Adjust the position to the center of the modal */
    -ms-transform: translate(-50%, -50%); /* IE9 */
    -webkit-transform: translate(-50%, -50%); /* Chrome, Safari, Opera */
}


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

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

/* The Close Button */
#agreeBtn {
    color: white;
    padding: 15px 30px;
    background-color: #4CAF50;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#agreeBtn:hover {
    background-color: #45a049;
}

nav {
    background-color: #333;
    color: white;
    padding: 1em;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

nav .container {
    max-width: 1200px; /* Adjust as needed */
    margin: auto; /* Center the container */
    padding: 1em;
}

nav ul li {
    display: inline;
    margin-right: 5px;
    font-size: 13px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

nav ul li a:hover {
    text-decoration: underline;
}

.sticky-note {
    padding: 20px;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 500px;
    transition: width 0.3s;
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    word-wrap: break-word;
    position: relative;
}


.sticky-note .message-link {
    color: inherit;
    text-decoration: none;
}

.sticky-note .message-link:hover {
    text-decoration: none;
}

/* Add a new class for the larger sticky note */
.larger-sticky-note {
    padding: 40px;
    margin: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
    width: 500px;
    font-size: 18px;
    background-color: #fff8dc;
    font-family: 'Patrick Hand', cursive;
    word-wrap: break-word;
}

#logo {
    font-family: 'Patrick Hand', cursive;
    font-size: 36px;
    color: #ff6b6b;
    overflow: hidden;
    white-space: nowrap;
    width: 0px;
    animation: logoAnimation 4s steps(25, end) forwards;
}

#logo a {
    text-decoration: none;
    color: inherit;
}

@keyframes logoAnimation {
    100% {
        width: 100%;
    }
}

#search-form{
    background: none;
}

#search-results-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
}

.adsbygoogle{
    background: none;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 20px 10px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
}

.footer-nav,
.footer-info,
.footer-social {
    flex: 1;
    margin: 10px;
}

.footer-nav h4,
.footer-social h4 {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer-nav ul,
.footer-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav ul li,
.footer-social ul li {
    margin-bottom: 5px;
}

.footer-nav ul li a,
.footer-social ul li a {
    color: #ff6b6b;
    text-decoration: none;
}

.footer-nav ul li a:hover,
.footer-social ul li a:hover {
    text-decoration: underline;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info a {
    color: #ff6b6b;
    text-decoration: none;
}

.footer-info a:hover {
    text-decoration: underline;
}

/* Updated Comment Button Styles */
.comment-btn {
    width: 30px;
    height: 30px;
    background-color: #007AFF;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 5px;
    right: 5px;
    text-align: center;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.comment-btn::after {
    content: '...'; /* Display "..." inside the button */
    font-size: 18px; /* Adjust the font size */
    color: black;
}

.comment-btn:hover,
.comment-btn:focus {
    background-color: #0056b3;
    box-shadow: none; /* Remove the box shadow on hover */
}




/* Styles for the comment modal */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.comment-modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    max-width: 500px;
}

.close-comment-modal {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.comment-form {
    margin-top: 10px;
    background-color: #fff8dc; /* Matching the background of the message form */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto; /* Adjust width as needed */
    max-width: 300px; /* Maximum width to match the message form */
    margin: auto; /* Center the form */
}

.comment-input {
    width: 100%; /* Full width within its container */
    max-width: 500px; /* Maximum width to match the message textarea */
    height: auto; /* Height adjusts to content */
    max-height: 200px; /* Maximum height */
    padding: 10px; /* Consistent padding */
    border: none; /* Remove border */
    outline: none; /* Remove outline */
    background-color: transparent; /* Transparent background */
    color: #333; /* Text color */
    font-family: 'Patrick Hand', cursive; /* Consistent font family */
    font-size: 16px; /* Consistent font size */
    resize: none; /* Disable resizing */
    overflow-y: auto; /* Allow vertical scrolling if content exceeds max-height */
    white-space: pre-wrap; /* Allows text to wrap to the next line */
    word-wrap: break-word; /* Breaks words that are too long for the line */
    overflow-wrap: break-word; /* Ensures long words can break and wrap to the next line */
}

/* Adjust the comment form to include a textarea instead of a text input */
.comment-form textarea {
    width: 100%; /* Full width within its container */
    max-width: 500px; /* Maximum width */
    height: auto; /* Height adjusts to content */
    max-height: 200px; /* Maximum height */
    padding: 10px; /* Consistent padding */
    border: none; /* Adding a border for better visibility */
    outline: none; /* Remove outline */
    background-color: #fff; /* Setting a white background for visibility */
    color: #333; /* Text color */
    font-family: 'Patrick Hand', cursive; /* Consistent font family */
    font-size: 16px; /* Consistent font size */
    resize: none; /* Disable resizing */
    overflow-y: auto; /* Allow vertical scrolling if content exceeds max-height */
    white-space: pre-wrap; /* Ensure that white-space is preserved and lines wrap */
    overflow-wrap: break-word; /* Ensure that words break and wrap */
}

.comment-form textarea.comment-input {
    background-color: transparent; /* Make the textarea background transparent */
    color: black; /* Set the text color */
    border: none;
}



.comment-form input[type="submit"] {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background-color: #45a049;
}

.comments-list {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Patrick Hand', cursive;
}

.comment {
    background-color: #f9f9f9;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 5px;
}

#backToTop {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place regardless of scrolling */
    bottom: 20px; /* 20px from the bottom */
    right: 10px; /* 30px from the right */
    z-index: 99; /* Positioned above other elements */
    border: none; /* No border */
    outline: none; /* No outline */
    background-color: transparent; /* Transparent background */
    color: black; /* Arrow color */
    cursor: pointer; /* Hand icon on hover */
    padding: 15px; /* Space around the arrow */
    font-size: 8px; /* Size of the arrow */
}

#backToTop:hover {
    color: #555; /* Darker color on hover for better visibility */
}

.message-date {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #000;
}


.adsbygoogle{
    background-color: transparent;
}

.message-recipient {
    font-size: 16px; /* Adjust as needed */
}



/* Media query adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
        margin-bottom: 20px;
    }

    h2 {
        font-size: 20px;
        margin-bottom: 20px;
    }

    form {
        max-width: 100%;
    }

    input,
    textarea {
        padding: 8px;
    }

    .modal-content {
        margin: 10% auto;
    }

    footer {
        padding: 10px;
        font-size: 12px;
    }
    
    .comment-form {
        max-width: 100%; /* Ensure the form fits on smaller screens */
    }
    
    #messages-container div {
        width: 90%;
        min-height: 250px;
        margin: 15px auto; /* Center the sticky note with automatic margins */
    }
    
   
}
    