/* Base styles */
body {
    background-color: #000080;
    color: #ffffff;
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
    margin: 0;
    padding: 0;
    text-shadow: 1px 1px #000000;
    line-height: 1.6;
}

.container {
    background-color: #000044;
    border: 3px solid #ffff00;
    padding: 15px;
    margin: 10px auto;
    width: 95%;
    max-width: 800px;
    box-sizing: border-box;
    box-shadow: 0 0 10px #ffff00;
}

/* Typography */
h1 {
    font-size: clamp(24px, 5vw, 36px);
    text-shadow: 2px 2px #ff0000, 4px 4px #000000;
    animation: rainbow 3s infinite;
    margin: 0 0 15px 0; /* Only keep bottom margin for spacing before menu */
    word-wrap: break-word;
    text-align: center;
}

h2 {
    color: #00ff00;
    margin-top: 30px;
    font-size: clamp(18px, 3vw, 24px);
    text-shadow: 2px 2px #000000;
}

h3 {
    color: #00ff00;
    font-size: clamp(16px, 2.5vw, 20px);
    text-shadow: 1px 1px #000000;
    margin: 15px 0;
}

/* Navigation */
.menu {
    background-color: #000066;
    border: 2px solid #ff00ff;
    padding: 10px;
    margin: 0 0 15px 0; /* Adjusted top margin since h1 provides spacing */
    overflow-x: auto;
    white-space: nowrap;
    text-align: center;
    box-shadow: 0 0 5px #ff00ff;
}

.menu a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 10px;
    display: inline-block;
    padding: 5px;
    text-shadow: 1px 1px #000000;
}

.menu a:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

/* Content sections */
.content-section {
    margin: 20px 0;
    padding: 15px;
    border: 2px dashed #ff00ff;
    background: #000066;
}

/* Work styles */
.work-list {
    display: block;
    margin-bottom: 30px;
}

.work-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 2px dashed #ff00ff;
    background: #000066;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
}

.work-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.work-title {
    font-size: 1.2em;
    color: #00ff00;
    text-decoration: none;
    text-shadow: 1px 1px #000000;
}

a.work-title:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

.date-range, .post-date {
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
    color: #888;
    font-size: 0.9em;
}

.work-description {
    color: #ffffff;
    margin: 5px 0;
}

/* Status badges */
.status-badge {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
    white-space: nowrap;
    text-shadow: none;
}

.status-active {
    color: #00ff00;
    border: 1px solid #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.status-sold {
    color: #ffff00;
    border: 1px solid #ffff00;
    box-shadow: 0 0 5px #ffff00;
}

/* Blog styles */
.post-list {
    list-style: none;
    padding: 0;
}

.post-list li {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #00ff00;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list a {
    font-size: 1.1em;
    display: block;
    margin: 5px 0;
}

.post-excerpt {
    color: #888;
    font-size: 0.9em;
    margin-top: 5px;
}

.post-line {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #00ff00;
}

.post-line:last-child {
    border-bottom: none;
}

/* Blog post specific styles */
.blog-post {
    line-height: 1.6;
}

.blog-post h2 {
    color: #00ff00;
    font-size: clamp(22px, 4vw, 30px);
    text-shadow: 2px 2px #000000;
    margin-bottom: 0.5em;
}

.blog-post p {
    margin-bottom: 1.5em;
    color: #ffffff;
}

.blog-meta {
    color: #888;
    margin-bottom: 2em;
    font-size: 0.9em;
    border-bottom: 1px dashed #00ff00;
    padding-bottom: 1em;
}

/* Comments section styles */
.comments-section {
    margin-top: 3em;
    border-top: 2px dashed #ff00ff;
    padding-top: 2em;
}

.comment {
    background: #000066;
    border: 1px solid #ff00ff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.comment:hover {
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.3);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    color: #00ff00;
    font-weight: bold;
    text-shadow: 1px 1px #000000;
}

.comment-date {
    color: #888;
}

.comment-content {
    margin-bottom: 10px;
}



/* Comment form styles */
.comment-form {
    background: #000066;
    border: 2px dashed #ff00ff;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.comment-form h3 {
    color: #00ff00;
    margin-top: 0;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #00ff00;
    text-shadow: 1px 1px #000000;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    background: #000044;
    border: 1px solid #ff00ff;
    color: #ffffff;
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff00;
    box-shadow: 0 0 5px #00ff00;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.submit-button {
    background: #000088;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 16px;
    cursor: pointer;
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
    transition: all 0.3s ease;
    text-shadow: 1px 1px #000000;
}

.submit-button:hover {
    background: #000066;
    color: #ffff00;
    border-color: #ffff00;
    box-shadow: 0 0 10px #ffff00;
}

/* Links */
a {
    color: #00ff00;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffff00;
    text-shadow: 0 0 5px #ffff00;
}

/* Footer */
.footer {
    margin-top: 40px;
    border-top: 1px solid #00ff00;
    padding-top: 20px;
    text-align: center;
}

.footer-links a {
    margin: 0 10px;
}

.footer-text {
    color: #888;
    font-size: 0.9em;
    margin-top: 10px;
    font-style: italic;
}

/* Animation */
@keyframes rainbow {
    0% {color: #ff0000;}
    33% {color: #00ff00;}
    66% {color: #0000ff;}
    100% {color: #ff0000;}
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .container {
        margin: 20px auto;
        padding: 20px;
    }
}

/* Contact form specific styles */
.success-message {
    background: #000066;
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 10px #00ff00;
    text-shadow: 1px 1px #000000;
}

.error-message {
    background: #000066;
    border: 2px solid #ff0000;
    color: #ff0000;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 10px #ff0000;
    text-shadow: 1px 1px #000000;
}

/* Override some existing form styles for contact page */
.contact-form {
    background: #000066;
    border: 2px dashed #ff00ff;
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 12px; /* Slightly larger padding for better usability */
    background: #000044;
    border: 1px solid #ff00ff;
    color: #ffffff;
    font-family: "Comic Sans MS", "Chalkboard SE", "Comic Neue", sans-serif;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.contact-form .form-group textarea {
    min-height: 150px; /* Larger default height for message field */
}

.contact-form .submit-button {
    font-size: 1.1em; /* Slightly larger button text */
    padding: 10px 25px; /* Larger button padding */
}