/* style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: #fff;
}

body {
    font-family: "Montserrat", sans-serif;
    color: #4b4b4b;
    background-color: #fff0f5;
    padding: 20px;
    line-height: 1.6;
}

/* Container */
#mainContainer {
    max-width: 960px;
    margin: auto;
}

/* Code Block Styling */
#code {
    background-color: #fff;
    border-left: 6px solid #ff69b4;
    padding: 25px;
    font-family: "Courier New", monospace;
    font-size: 16px;
    color: #333;
    white-space: pre-wrap;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.15);
    transition: all 0.3s ease;
}

#code:hover {
    transform: scale(1.01);
}

/* Syntax Highlighting */
.comments {
    color: #a89f9f;
    font-style: italic;
}

.keyword {
    color: #008000;
    font-weight: bold;
}

.string {
    color: #d6336c;
}

/* Timeline / Wishes / Promises spacing */
#timeline,
#wishes,
#promises {
    margin-bottom: 30px;
}

/* Heart Background Section */
#loveHeart {
    background: transparent;
    background: url("../images/love.gif") no-repeat center;
    background-size: contain;
    height: 400px;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

canvas#garden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Romantic Touch Footer */
#footer {
    margin-top: 50px;
    text-align: center;
    font-family: "Great Vibes", cursive;
    font-size: 20px;
    color: #b23a48;
    opacity: 0.9;
}

#footer a {
    color: #ff3399;
    text-decoration: none;
    font-weight: bold;
}

#footer a:hover {
    color: #b23a48;
}

/* Audio Player (hidden) */
#hbd_song {
    display: none;
}

#photoSlider {
    overflow: hidden;
    width: 100%;
    max-width: 960px;
    margin: 50px auto;
    position: relative;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(255, 105, 180, 0.2);
}

.slider-track {
    display: flex;
    width: fit-content;
    animation: scroll-left 40s linear infinite;
    gap: 20px;
}

#photoSlider:hover .slider-track {
    animation-play-state: paused;
    cursor: grab;
}

.slider-track img {
    height: 200px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    user-select: none;
}

.slider-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media screen and (max-width: 600px) {
    .slider-track img {
        height: 140px;
    }
}

/* Responsive */
@media screen and (max-width: 600px) {
    #code {
        font-size: 14px;
        padding: 15px;
    }

    #loveHeart {
        height: 300px;
    }

    #footer {
        font-size: 18px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

#chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff69b4;
    color: white;
    padding: 10px 12px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#chatbot.collapsed {
    display: none;
}

#chatbot {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 280px;
    max-height: 350px;
    background: #fff0f5;
    border: 2px solid #ff69b4;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: "Poppins", sans-serif;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

#chat-header {
    background: #ff69b4;
    color: white;
    padding: 10px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    text-align: center;
}

#chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.bot-msg,
.user-msg {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 14px;
    max-width: 80%;
}

.bot-msg {
    background: #ffffff;
    color: #b23a48;
}

.user-msg {
    background: #ffccdd;
    color: #000;
    margin-left: auto;
}

#chat-input {
    border: none;
    border-top: 1px solid #ffb6c1;
    padding: 10px;
    font-size: 14px;
    outline: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#drawing-section {
    text-align: center;
    padding: 30px 20px;
    background: #fff0f5;
}

#drawing-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #b23a48;
}

#draw-canvas {
    border: 2px dashed #ff69b4;
    border-radius: 12px;
    touch-action: none;
    width: 90%;
    height: 300px;
    max-width: 500px;
}

#clear-btn {
    margin-top: 15px;
    background: #ff69b4;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

#clear-btn:hover {
    background: #e055a2;
}

#drawing-section {
    text-align: center;
    padding: 30px 20px;
    background: #fff0f5;
}

#drawing-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #b23a48;
}

#draw-canvas {
    border: 2px dashed #ff69b4;
    border-radius: 12px;
    touch-action: none;
    width: 90%;
    cursor: crosshair;
    display: block;
    margin: 20px auto;
    height: 300px;
    max-width: 500px;
    background: white;
}

.draw-buttons {
    margin-top: 15px;
}

.draw-buttons button {
    margin: 5px;
    transition: background 0.3s ease;
    background: #ff69b4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.draw-buttons button:hover {
    background: #e055a2;
}


