html, body {
    overscroll-behavior: contain;
}

input, textarea {
    scroll-margin-bottom: 100px;
}
/* General Body & Theme */
body {
    background-image: url("https://images.unsplash.com/photo-1616712134411-6b6ae89bc3ba?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTl8fHN0YXJyeSUyMHNwYWNlfGVufDB8fDB8fHww");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffe81f;
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
}

header, footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffe81f;
    border-bottom: 2px solid #ffe81f;
}

h1, h2, h3 {
    font-weight: bold;
    color: #ffe81f;
    text-shadow: 0 0 10px black;
}

button:hover {
    background-color: #fff200;
    color: black;
}


/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    padding: 20px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    border: 2px solid #ffe81f;
}

/* Chatbot Styling */
#chatbot {
    background-color: rgba(0, 0, 0, 0.9);
    border:2px solid #ffe81f;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 30px auto;
    box-shadow: 0 0 20px #ffe81f;
    position: relative;
}

#chatbox {
    background-color: #0b0c10;
    border: 1px solid #ffe81f;
    padding: 15px;
    border-radius: 10px;
}

#chatlog {
    height:250px;
    overflow-y: auto;
    background-color: black;
    color: #00ffcc;
    padding: 10px;
    border: 1px solid #ffe81f;
    margin-bottom: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    white-space: pre-line;
    scroll-behavior: smooth;
}

#chatlog .message {
    display: flex;
    margin-bottom: 10px;
    align-items: flex-start
}

#chatlog .message.r2d2 {
    flex-direction: row;;
}

#chatlog .message.user {
    justify-content: flex-end;
    text-align: right;
}

#chatlog .bubble {
    background: #222;
    border: 1px solid #ffe81f;
    padding: 10px;
    border-radius: 10px;
    max-width: 70%;
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

#chatlog .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Inputs */
#userInput {
    width: 75%;
    padding: 10px;
    background: #111;
    color:white;
    border: 1px solid #ffe81f;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
}

#calendar {
    margin-top: 20px;
    text-align: center;;
}

#customerfeedback {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    margin-top: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border: 2px solid #ffe81f;
}

#customerfeedback form button {
    background-color: #ffe81f;
    color: black;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    border-radius: 5px;
}

/* Feedback messages styling */
#feedbackMessages {
    font-size: 14px;
    color: #00ffcc;
    min-height: 40px;
    white-space: pre-wrap;
}

button {
    background-color: #ffe81f;
    color: black;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    cursor: pointer;
    margin-left: 5px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
}

* {
    box-sizing: border-box;
  }
  

/* Calendar */
#calendar,
#ratingSection {
    margin-top: 20px;
    text-align: center;
}


#ratingSection {
    text-align: center;
    margin-top: 30px;
}

/* Feedback Section */

#customerfeedback {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    margin-top: 30px;
}

#customerfeedback form button{
    background-color: #ffe81f;
    color: black;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Orbitron', monospace;
    border-radius: 5px;
}

#feedbackMessages {
    font-size: 14px;
    color: #00ffcc;
    min-height: 40px;
    white-space: pre-wrap;
}

/*Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header, footer {
        padding: 10px;
    }

    h1,h2,h3 {
        font-size: 20px;
    }

    .gallery-grid {
        grid-template-columns:1fr;
    }

    #chatbot, #customerfeedback, #feedbackMessages {
        padding: 15px;
        margin: 10px;
        max-width: 100%;
    }

    #userInput {
        width: 100%;
        margin-bottom: 10px;
    }

    #userInput, button {
        width: 100%;
        margin: 5px 0;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }

    #chatlog .bubble {
        max-width: 90%;
    }

    #feedbackMessages {
        font-size: 14px;
        color: #00ffcc;
        max-height: 300px;
        overflow-y: auto;
        background-color: rgba(0, 0, 0, 0.7);
        padding: 10px;
        border-radius: 10px;
        border: 1px solid #ffe81f;
        max-width: 800px;
        margin: 0 auto;
    }
}