#recordButton {
    padding: 10px 15px 10px 45px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-align: right;
    background-image: url('/static/microphone.png');
    background-repeat: no-repeat;
    background-size: 24px 24px; /* Size of the icon */
    background-position: 10px center; /* Position of the icon */
}

#changeTopics {
    padding: 10px 15px 10px 45px;
    background-color: #dfbe00;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    text-align: right;
    background-image: url('/static/speech-bubble.png');
    background-repeat: no-repeat;
    background-size: 24px 24px; /* Size of the icon */
    background-position: 10px center; /* Position of the icon */
}

#autoRecordLabel {
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #333331;
    font-size: 1rem;
    display:none;
}

#recordingContainer {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
    align-items: center;
    gap: 10px;
}


#captionContainer {
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

#captionButton {
    padding: 10px 15px 10px 15px;
    background-color: #0a0b82;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#captionText {
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.15) 3px 3px 6px;
    padding: 10px;
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #333331;
    font-size: 1rem;
    width: 1200px;
}

#storyContainer {
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

#storyButton {
    padding: 10px 15px 10px 15px;
    background-color: #c42b10;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#storyText {
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.15) 3px 3px 6px;
    padding: 10px;
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #333331;
    font-size: 1rem;
    width: 1200px;
}


#treeContainer {
    margin-top: 10px;
    margin-bottom: 10px;
    gap: 10px;
}

#treeButton {
    padding: 10px 15px 10px 15px;
    background-color: #9119bc;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#treeImage {
    max-width: 800px;
    max-height: 800px;
}

#soundMeter {
    transition: width 0.1s ease;
    height: 20px;
    background: green;
    max-width: 100px;
}

#downloadButton {
    padding: 10px 15px 10px 15px;
    background-color: #e68a00;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
}

#headContainer {
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.15) 3px 3px 6px;
    padding: 10px;
    margin-top: 0px;
    margin-bottom: 0px;
    max-width: 700px;
    position: relative;
    flex-direction: column;
    display: flex;
    align-items: center;
    gap: 10px;
}

#beginButton, .play-button {
    padding: 10px 15px 10px 15px;
    background-color: #00e60c;
    color: black;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    position:static;
}

#beginButton:hover, .play-button:hover {
    background-color: #009e08;
}

button:disabled {
    background-color: #c7c7c7;
    cursor: not-allowed;
}

button:hover {
    cursor: pointer;
}

#mainContainer {
    margin-top: 10px;
    margin-bottom: 10px;
    position: relative;
    flex-direction: row;
    display: flex;
    align-items: center;
    gap: 10px;
}

#imagePreviewContainer {
    margin-top: 0px;
    margin-bottom: 0px;
    position: relative;
    align-items: top;
}

#treePreviewContainer {
    margin-top: 10px;
    margin-bottom: 10px;
    height: 600px;
    overflow-y: auto; /* Enables scrolling if content is too long */
    flex-grow: 1; /* Allows the container to grow as needed */
    width: 100%;
    border-collapse: collapse;
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #333331;
    font-size: 1rem;
}

#imagePreview {
    max-width: 800px;
    max-height: 800px;
}

#verticalSoundMeter {
    width: 20px;
    background: blue;
    position: relative;
    height: 100%;
}

#recordButton:hover {
    background-color: #45a049;
}

#recordButton:active {
    background-color: #388E3C;
    transform: scale(0.95);
}

#loadingIndicator {
    position: fixed; /* Fixed positioning relative to the viewport */
    top: 50%; /* Center vertically */
    left: 50%; /* Center horizontally */
    transform: translate(-50%, -50%); /* Offset the element by half its width and height */
    z-index: 1000; /* Ensure it's above other items */
    /* Styles for the loading indicator itself */
    width: 50px; /* Or the width of your loading GIF */
    height: 50px; /* Or the height of your loading GIF */
    background: rgba(255, 255, 255, 0.8); /* Optional: white background with opacity */
    border-radius: 10px; /* Optional: if you want rounded corners */
    padding: 20px; /* Optional: if you want some spacing inside the container */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); /* Optional: if you want a shadow effect */
    display: none; /* Start with the indicator hidden */
}


#loadingIndicator img {
    /* Adjust width and height as needed */
    width: 50px;
    height: 50px;
}

#toggleAdvancedSection {
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

#faceMapTableContainer {
    min-width: 15%;
    margin: 10px;
    padding: 10px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

.pulsing {
    animation: pulse 2s infinite;
}

.face-rectangle {
    position: absolute;
    border: 2px solid red;
    box-sizing: border-box;
}

.face-label {
    position: absolute;
    left: 0;
    right: 0;
    color: white;
    padding: 2px;
    text-align: right;
    font-weight: bold;
    font-family: Arial, sans-serif;
}

.face-map-table {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    border-collapse: collapse;
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #333331;
    font-size: 1rem;
}

#conversationContainer {
    border-left: 2px solid #ddd; /* Visual separator */
    height: 600px; /* Adjust as needed */
    width: 100%;
    overflow-y: auto; /* Enables scrolling if content is too long */
    flex-grow: 1; /* Allows the container to grow as needed */
    margin: 10px;
    padding: 10px;
    font-family: Arial, sans-serif;
}

.face-map-table, .face-map-table th, .face-map-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.face-map-table th {
    background-color: #f2f2f2;
}

#advancedSection label {
    display: block;
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #333331;
    font-size: 1rem;
    margin-bottom: 3px;
}

#finishText {
    font-family: Verdana,Ayuthaya,'HanaMinBFont',sans-serif;
    color: #0088e2;
    font-size: 1.5em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.conversation-message {
    background-color: #e2f0ff;
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.15) 3px 3px 6px;
    width: fit-content;
    max-width: 100%;
    position: relative;
    padding: 10px;
    display: block;
}

.assistant-message {
    background-color: #add5ff;
}

#hiddenAdvancedSettingsButton{
    position: fixed;
    left:0px;
    top:0px;
    height:30px;
    min-width: 30px;
    cursor:default;
    z-index: 1000;
}

.hiddenButton {
    background-color: transparent;
    border: none;
}

.showHiddenButton{
    background-color: rgb(228, 117, 117);
}

.resetButton{
    background-color: rgb(255, 255, 138);
    cursor: pointer;
}