/* 90s Web Aesthetic Stylesheet */

/* Import Comic Sans alternative for browsers that don't have it */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    background-color: #000033;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><circle cx="10" cy="10" r="1" fill="%23ffffff"/><circle cx="50" cy="30" r="0.5" fill="%23ffffff"/><circle cx="90" cy="20" r="1" fill="%23ffffff"/><circle cx="30" cy="70" r="0.5" fill="%23ffffff"/><circle cx="70" cy="80" r="1" fill="%23ffffff"/><circle cx="20" cy="40" r="0.5" fill="%23ffffff"/><circle cx="80" cy="50" r="1" fill="%23ffffff"/><circle cx="40" cy="90" r="0.5" fill="%23ffffff"/><circle cx="60" cy="60" r="1" fill="%23ffffff"/></svg>');
    color: #ffff00;
    min-height: 100vh;
}

/* Top Marquee */
.top-marquee {
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    color: #000;
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
    border-bottom: 3px solid #ffff00;
}

/* Main Container */
.main-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.site-header {
    text-align: center;
    padding: 30px;
    background: linear-gradient(180deg, #000066, #000033);
    border: 5px ridge #ff00ff;
    margin-bottom: 20px;
}

.rainbow-text {
    font-size: 48px;
    background: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #8b00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.tagline {
    color: #00ffff;
    font-size: 20px;
    margin-top: 10px;
}

/* Hit Counter */
.hit-counter-container {
    margin-top: 20px;
    font-size: 16px;
}

.counter-label {
    color: #00ff00;
}

.counter-display {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #00ff00;
    padding: 5px 15px;
    border: 3px inset #333;
    font-size: 24px;
    letter-spacing: 3px;
}

/* Navigation */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #330066;
    border: 4px ridge #ff00ff;
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #6666ff, #3333cc, #000099);
    color: #ffff00;
    text-decoration: none;
    font-weight: bold;
    border: 3px outset #9999ff;
    cursor: pointer;
    font-size: 14px;
}

.nav-btn:hover {
    background: linear-gradient(180deg, #9999ff, #6666ff, #3333cc);
    border-style: inset;
}

.nav-btn:active {
    border-style: inset;
}

/* Content Sections */
.content-section {
    background: #000066;
    border: 5px ridge #00ffff;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    text-align: center;
    color: #ff00ff;
    font-size: 28px;
    margin-bottom: 20px;
    text-shadow: 2px 2px #000;
}

/* About Section */
.about-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-text {
    color: #ffffff;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 15px;
}

/* Calendar Section */
.calendar-hint {
    text-align: center;
    color: #00ffff;
    margin-bottom: 15px;
    font-style: italic;
}

.calendar-container {
    background: #000033;
    border: 3px inset #666;
    padding: 15px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calendar-nav-btn {
    background: linear-gradient(180deg, #ff6699, #cc3366);
    color: #fff;
    border: 3px outset #ff99cc;
    padding: 8px 15px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.calendar-nav-btn:hover {
    background: linear-gradient(180deg, #ff99cc, #ff6699);
}

.month-display {
    font-size: 24px;
    color: #ffff00;
    font-weight: bold;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    background: #660066;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    border: 2px outset #990099;
}

.calendar-day {
    background: #003366;
    color: #00ffff;
    text-align: center;
    padding: 15px 10px;
    border: 2px outset #0066cc;
    cursor: pointer;
    min-height: 50px;
    position: relative;
}

.calendar-day:hover {
    background: #004488;
    border-style: inset;
}

.calendar-day.today {
    background: #ff6600;
    color: #fff;
    font-weight: bold;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: #ff00ff;
    border-radius: 50%;
}

.calendar-day.empty {
    background: #001133;
    cursor: default;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(180deg, #330066, #000033);
    border: 5px ridge #ff00ff;
    padding: 30px;
    max-width: 400px;
    width: 90%;
}

.modal-content h3 {
    color: #00ffff;
    margin-bottom: 15px;
    text-align: center;
}

.modal-content textarea {
    width: 100%;
    height: 100px;
    background: #000;
    color: #00ff00;
    border: 3px inset #333;
    padding: 10px;
    font-family: inherit;
    resize: none;
    margin-bottom: 15px;
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.modal-btn {
    padding: 10px 25px;
    background: linear-gradient(180deg, #00cc00, #009900);
    color: #fff;
    border: 3px outset #00ff00;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.modal-btn:hover {
    background: linear-gradient(180deg, #00ff00, #00cc00);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.project-card {
    background: linear-gradient(180deg, #003366, #001133);
    border: 4px ridge #00ffff;
    padding: 20px;
    text-align: center;
}

.project-card h3 {
    color: #ff00ff;
    margin-bottom: 10px;
}

.project-card p {
    color: #fff;
    margin-bottom: 15px;
}

.project-link {
    display: inline-block;
    background: linear-gradient(180deg, #ffcc00, #ff9900);
    color: #000;
    padding: 8px 15px;
    text-decoration: none;
    font-weight: bold;
    border: 3px outset #ffff00;
}

.project-link:hover {
    background: linear-gradient(180deg, #ffff00, #ffcc00);
}

/* Links Section */
.links-container {
    background: #000033;
    border: 3px inset #666;
    padding: 20px;
}

.cool-links {
    list-style: none;
}

.cool-links li {
    padding: 10px;
    border-bottom: 1px dashed #666;
    color: #fff;
}

.cool-links li:last-child {
    border-bottom: none;
}

.cool-links a {
    color: #00ffff;
    text-decoration: underline;
}

.cool-links a:hover {
    color: #ff00ff;
}

/* Guestbook Section */
.guestbook-form-container {
    background: #330033;
    border: 3px inset #666;
    padding: 20px;
    margin-bottom: 20px;
}

.guestbook-form .form-group {
    margin-bottom: 15px;
}

.guestbook-form label {
    display: block;
    color: #00ffff;
    margin-bottom: 5px;
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    padding: 10px;
    background: #000;
    color: #00ff00;
    border: 3px inset #333;
    font-family: inherit;
}

.guestbook-form textarea {
    height: 80px;
    resize: none;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(180deg, #ff6699, #cc0066);
    color: #fff;
    border: 4px outset #ff99cc;
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: bold;
}

.submit-btn:hover {
    background: linear-gradient(180deg, #ff99cc, #ff6699);
}

.guestbook-entries h3 {
    color: #ffff00;
    margin-bottom: 15px;
}

#entries-container {
    max-height: 300px;
    overflow-y: auto;
}

.guestbook-entry {
    background: #000033;
    border: 3px ridge #6666ff;
    padding: 15px;
    margin-bottom: 10px;
}

.entry-header {
    display: flex;
    justify-content: space-between;
    color: #ff00ff;
    margin-bottom: 10px;
    font-weight: bold;
}

.entry-message {
    color: #fff;
    line-height: 1.6;
}

.loading {
    color: #666;
    text-align: center;
    font-style: italic;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #330033, #000);
    border: 4px ridge #ff00ff;
    padding: 20px;
    text-align: center;
}

.footer-marquee {
    color: #00ff00;
    font-size: 14px;
    margin-bottom: 15px;
}

.copyright {
    color: #ffff00;
    margin-bottom: 5px;
}

.last-updated {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

.badges img {
    margin: 0 5px;
    border: 2px outset #666;
}

/* Scrollbar styling for 90s feel */
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #000033;
    border: 2px inset #333;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #6666ff, #3333cc);
    border: 2px outset #9999ff;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .rainbow-text {
        font-size: 32px;
    }

    .nav-buttons {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .calendar-day {
        padding: 10px 5px;
        font-size: 12px;
    }
}
