/* General Styles */
body {
    /* Using a Google font */
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    /* Neutral color for background */
    background-color: #F3F3F3;
}

.highlight-addition {
    background-color: #d4fcbc; /* Light green for additions */
    text-decoration: underline;
}

.highlight-deletion {
    background-color: #fbc4c4; /* Light red for deletions */
    text-decoration: line-through;
}

.no-highlight {
    background-color: transparent;
}

h1 {
    text-align: center;
    font-size: 24px;
    color: #202020;
}

#conversation {
    max-width: 600px;
    margin: 0 auto;
}

label {
    display: block;
    margin-bottom: 5px;
}

input[type="text"] {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
}

button {
    padding: 8px 16px;
    margin-right: 10px;
    background-color: #1976D2;
    color: white;
    border: none;
}

button:disabled {
    background-color: #A8A8A8; /* Grayed out background for disabled buttons */
    color: #C0C0C0; /* Lighter text color for disabled buttons */
    cursor: not-allowed; /* Cursor indicates the button is not clickable */
}


/* Fixed position for page title and buttons */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #f8f8f8;
    max-width: 500px;
    margin: 0 auto;
    height: 50px;
    z-index: 1001;
}

.header-logo {
    margin-right: 10px;
    height: 42px;
    width: auto;
}

@media (max-width: 600px) {
    .page-header {
        padding: 5px;
        height: 40px;
    }

    .header-logo {
        height: 28px;
    }

    h1 {
        font-size: 28px;
    }

    body {
        padding: 10px;
    }
}


/* Font size classes */
.font-size-small { font-size: 12px; }
.font-size-normal { font-size: 16px; }
.font-size-large { font-size: 20px; }
.font-size-x-large { font-size: 24px; }

/* Chat container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 80px;
    padding-top: 10px;
    padding-bottom: 50px;
}

.bubble {
    padding: 10px;
    border-radius: 10px;
    display: inline-block;
    max-width: 70%;
}

.user-bubble {
    background-color: #1976D2;
    color: white;
    border-radius: 20px;
    align-self: flex-end;
}

.translation-text {
    background-color: #00bda9;
    color: #ffffff;
    border-radius: 10px;
    padding: 10px;
}

.kana-text {
    background-color: #A7C7E7; /* Updated background color for kana-text */
    color: #202020;
    border-radius: 10px;
    padding: 10px;
}

.user-bubble-instructions {
    font-style: italic;
}

.assistant-bubble {
    background-color: #008577;
    color: #ffffff;
    border-radius: 20px;
    align-self: flex-start;
}

/* Style for the suggested rewrite speech bubble */
.suggested-bubble {
    background-color: #BBDEFB;
    /* Light color for suggested bubble */
    color: #202020;
    border-radius: 20px;
    /* Rounded corners */
    font-size: smaller;
    font-style: italic;
    align-self: flex-end;
}


/* Input container */
.input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.input-container input {
    flex: 1;
    padding: 10px;
}

.input-container button {
    padding: 10px 20px;
    background-color: lightgray;
    border: none;
    cursor: pointer;
}

#input-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background-color: #f2f2f2;
    border-radius: 20px;

    background-color: #FFF;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

#user-input {
    margin-bottom: 20px;
    padding: 10px;
    border: none;
    border-radius: 20px;
    max-height: 300px;
    resize: none;
    overflow-y: auto;
    font-size: 16px;
}

#action-buttons {
    display: flex;
    justify-content: space-between;
}

/* Buttons */
.icon-svg {
    width: 24px;
    height: 24px;
}

#primary-action-buttons {
    display: flex;
}

#record-button,
#submit-button,
#audio-button,
#undo-button {
    padding: 10px;
    border: none;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    margin-left: 10px;
}

#audio-button {
    position: absolute;
    z-index: 1;
}

#record-button:hover,
#submit-button:hover,
#undo-button:hover {
    background-color: #ccc;
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.1);
}

#undo-button {
    margin-right: auto;
}

.hidden {
    display: none;
}


/* Glowing effect */
@keyframes glow-animation {
    0% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 0, 0, 0.3);
    }

    100% {
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}

.glow {
    animation: glow-animation 1s infinite;
}



/* Hamburger menu */

.hamburger-menu-button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-menu-icon {
    display: inline-block;
    width: 20px;
    height: 2px;
    background-color: #000;
    margin-bottom: 4px;
}

.hamburger-menu-icon::before,
.hamburger-menu-icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.hamburger-menu-icon::before {
    transform: translateY(-6px);
}

.hamburger-menu-icon::after {
    transform: translateY(4px);
}


/* Settings menu */

.settings-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.settings-menu.show {
    display: block;
}

.settings-menu h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.settings-menu.show {
    display: block;
    /* Show the menu when the 'show' class is applied */
}

.setting-item {
    margin-bottom: 15px;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
}

.setting-item select {
    width: 100%;
    padding: 5px;
}

.exit-settings-button {
    display: block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #337ab7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
