/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f5f5f5; /* Default background color */
    margin: 0;
    padding: 0;
}

header {
    background-color: #2c3e50;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.website-name {
    font-size: 24px;
    font-weight: 700;
}

.menu-toggle {
    display: none; /* Hide the menu toggle by default */
    font-size: 24px;
    cursor: pointer;
}

.menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Align menu items to the right */
}

.menu ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu li {
    margin-bottom: 10px;
}

.menu li a {
    color: #ffffff;
    text-decoration: none;
}

/* Chat Container Styles */
.chat-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.chat-box {
    height: 300px;
    overflow-y: scroll;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.user-input {
    width: calc(100% - 80px);
    padding: 10px;
    margin-right: 10px;
    border: none;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.send-btn {
    padding: 10px 20px;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
}

.feedback-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.feedback-container h2 {
    margin-bottom: 10px;
}

#feedback-text {
    width: 100%;
    height: 100px;
    margin-bottom: 10px;
}

#feedback-form button {
    padding: 10px 20px;
    background-color: #3498db;
    border: none;
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
}

footer {
    background-color: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 10px;
}

/* Cookie Popup Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    bottom: 0;
    width: 100%;
    padding-top: 50px;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal-content {
    background-color: #f9f9f9;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Hover effects */
.send-btn:hover,
#feedback-form button:hover {
    background-color: #2980b9;
}

.close:hover {
    color: #333;
}

/* Responsive Layout */
@media screen and (max-width: 768px) {
    /* Adjustments for mobile devices */
    .menu-toggle {
        display: block; /* Show the menu toggle for mobile devices */
    }
    
    .menu {
        display: none; /* Hide the menu by default for mobile devices */
    }

    .menu.open {
        display: flex; /* Display the menu as a column for mobile devices */
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 50%; /* Take up half of the screen width */
        background-color: rgba(44, 62, 80, 0.9); /* Transparent blue background color for the menu */
        z-index: 1;
        overflow-y: auto; /* Allow scrolling if the content exceeds the height */
    }

    .menu li {
        display: block; /* Display menu items as a list */
    }

    .menu-toggle {
        margin-right: 10px; /* Add some spacing between menu toggle and menu items */
    }

    .chat-container {
        width: 90%; /* Adjust the width of the chat container for mobile devices */
    }

    .user-input {
        width: calc(100% - 20px); /* Adjust the width of the input field for mobile devices */
    }

    .send-btn {
        width: 30%; /* Adjust the width of the send button for mobile devices */
    }
}

/* Desktop Layout */
@media screen and (min-width: 769px) {
    /* Hide the menu toggle for desktop users */
    .menu-toggle {
        display: none;
    }

    /* Align menu items side by side from top right-hand side */
    .menu {
        flex-direction: row;
        justify-content: flex-end;
    }
}