/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Background image styling */
#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

/* Body styling */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    font-family: "Tahoma", sans-serif;
}

/* Chat container styling */
#chat-container {
    width: 400px;
    height: 600px;
    background-color: #c0c0c0; /* Light gray XP window background */
    border: 2px solid #808080; /* XP-style border */
    box-shadow: inset -2px -2px #fff, inset 2px 2px #808080, 2px 2px #404040; /* 3D border effect */
    display: flex;
    flex-direction: column;
    position: relative;
    font-family: "Tahoma", sans-serif;
}

/* Title bar styling */
#title-bar {
    background-color: #004080; /* XP blue title bar */
    color: white;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 14px;
    font-weight: bold;
    border-bottom: 1px solid #808080;
}

/* Close button styling */
#close-button {
    background-color: #ff0000; /* Red XP close button */
    color: white;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

#close-button:hover {
    background-color: #cc0000; /* Darker red on hover */
}

/* Chat window area styling */
#chat-window {
    flex: 1;
    overflow-y: auto;
    border: 1px solid #808080;
    background-color: #fff;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
    padding: 10px;
    margin: 10px;
}

/* Input box styling */
#user-input {
    width: 95%; /* Matches the chat window's width */
    border: 1px solid #808080;
    padding: 5px;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
    font-family: "Tahoma", sans-serif;
    font-size: 14px;
    color: #000;
    box-sizing: border-box; /* Ensures padding is included in width calculation */
    outline: none; /* Removes the browser's default focus outline */
    margin: auto;
}


/* Buttons styling */
#link-buttons {
    margin-top: 10px;
    text-align: center;
}

#link-buttons button {
    background-color: #f0f0f0;
    border: 2px solid #808080;
    padding: 5px 10px;
    font-family: "Tahoma", sans-serif;
    box-shadow: inset -1px -1px #fff, inset 1px 1px #808080;
    margin: 5px;
    cursor: pointer;
}

#link-buttons button:hover {
    background-color: #dcdcdc;
}

/* Title styling */
h2 {
    text-align: center;
    color: #000;
    font-size: 18px;
}
