* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
    margin: 0;
    flex-direction: column;
    text-align: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.chat-container {
    width: 100%;
    max-width: 350px;
    height: 500px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-box {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message {
    padding: 10px;
    border-radius: 5px;
    max-width: 80%;
    margin-bottom: 10px;
}

.bot-message {
    background-color: #f0f0f0;
    align-self: flex-start;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 10px;
    flex-grow: 0;
}

button {
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

.mail {
    margin-top: 5px;
}

#popup-menu {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 1000;
    width: 90%;
    max-width: 500px;
}

.menu-content {
    position: relative;
}

#close-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

h2 {
    margin-top: 0;
}

ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

ul li {
    background: #007BFF;
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .chat-container {
        width: 90%;
        height: 450px;
    }

    input, button {
        font-size: 14px;
    }

    .message {
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .chat-container {
        width: 100%;
        height: 400px;
    }

    input, button {
        font-size: 12px;
    }

    .chat-box {
        padding: 10px;
    }

    .message {
        max-width: 95%;
    }
}