/* file: /css/storybot-generate-story-style.css */
/* -------------------------------------------- */

/* General Form Styles */
#storybot-form {
    max-width: 600px; /* Limits the width of the form to 600px */
    width: 100%; /* Form will take up 100% of the container width */
	font-size: 0.9em;
    margin: 20px auto; /* Adds 20px margin on top and bottom and auto on the sides to center the form */
    padding: 20px; /* Adds 20px padding inside the form elements */
    background-color: #f4f4f4; /* Light grey background color for the form */
    border-radius: 8px; /* Rounded corners with a radius of 8px */
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1); /* Shadow effect for depth */
    box-sizing: border-box; /* The width and height properties include the padding and border, not just the content */
    /* font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; /* Font family for the text inside the form */
    overflow: auto; /* Enables scrolling on the form if the content overflows */
}

#storybot-form input[type=text],
#storybot-form textarea,
#storybot-form select {
    width: 100%; /* These elements will take up 100% of the form's width */
    padding: 10px; /* Adds 10px padding inside the elements */
    margin-bottom: 20px; /* Adds 20px margin below the elements */
    border: 1px solid #ddd; /* Sets a 1px solid border with a light grey color */
    border-radius: 4px; /* Rounded corners with a radius of 4px */
    font-size: 18px; /* Sets the font size to 18px */
    box-sizing: border-box; /* The width and height properties include the padding and border, not just the content */
    -webkit-appearance: none; /* Disables default styling provided by the browser */
    -moz-appearance: none; /* Disables default styling provided by the browser */
    appearance: none; /* Disables default styling provided by the browser */
}

#storybot-form textarea {
    resize: vertical; /* Allows the textarea to be resized vertically */
    line-height: normal; /* Sets a normal line height */
    overflow: auto; /* Enables scrolling inside the textarea if the content overflows */
    height: auto; /* Height is based on the content */
}

#storybot-form select {
    -webkit-appearance: menulist-button; /* Specific style for select elements to make it look like a button */
    height: auto; /* Height is based on the content */
}

#storybot-form, .story-actions, .share-popover {
    background-color: #3b3a36; /* Dark brown-gray for form and action areas */
    color: #9d938e; /* Warm taupe for main text, easy on the eyes */
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}

/* GENDER Slider Styles */

/* Slider container */
.gender-selection-container {
    width: 100%;
    margin-bottom: 20px;
}

/* Slider base */
.gender-selection-slider {
    width: 90%;
    margin: 0 auto;
}

/* Slider track - removing the blue color and making it white */
.gender-selection-slider input[type=range] {
    -webkit-appearance: none; /* Required to style in Webkit browsers */
    width: 100%;
    background: transparent; /* Track background - transparent shows the parent's background */
}

/* For Webkit browsers like Chrome, Safari */
.gender-selection-slider input[type=range]::-webkit-slider-runnable-track {
    background: white;
    border-radius: 5px;
    height: 8px;
}

/* For Firefox */
.gender-selection-slider input[type=range]::-moz-range-track {
    background: white;
    border-radius: 5px;
    height: 8px;
}

/* For IE */
.gender-selection-slider input[type=range]::-ms-track {
    background: white;
    border-radius: 5px;
    height: 8px;
    border-color: transparent; /* Removes additional styling in IE */
    color: transparent; /* Removes additional styling in IE */
}

/* Slider thumb - enhancing the appearance */
.gender-selection-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    border: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #5c6bc0; /* Color of the submit button */
    margin-top: -8px;
    cursor: pointer;
}

.gender-selection-slider input[type=range]::-moz-range-thumb {
    border: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #5c6bc0; /* Color of the submit button */
    cursor: pointer;
}

.gender-selection-slider input[type=range]::-ms-thumb {
    border: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #5c6bc0; /* Color of the submit button */
    cursor: pointer;
}

/* Slider track */
.gender-selection-slider input[type=range]::-webkit-slider-runnable-track {
    background: white;
    border-radius: 5px;
    height: 8px;
}

.gender-selection-slider input[type=range]::-moz-range-track {
    background: white;
    border-radius: 5px;
    height: 8px;
}

.gender-selection-slider input[type=range]::-ms-track {
    background: white;
    border-radius: 5px;
    height: 8px;
    border-color: transparent;
    color: transparent;
}


/* Labels container */
.gender-icons {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

/* Individual labels */
.gender-icons span {
    flex: 1; /* Distribute space evenly */
    width: 100%;
    text-align: center; /* Align text to center for each label */
}


/* Aligning the labels directly under the slider's endpoints */
.gender-icons span:first-child {
    text-align: left; /* Align the first label (Männlich) to the left */
}

.gender-icons span:last-child {
    text-align: right; /* Align the last label (Weiblich) to the right */
}


/* Morale Styles */
.moral-proposals-container {
    margin-top: 10px;
    z-index: 1000; /* Increase z-index to ensure it's on top */
}

#moral-tags-container {
    margin-top: -15px;
}

#moral-type-title {
    font-weight: bold;
    cursor: pointer; /* Indicate that it's clickable */
}

.moral-type-tag, .moral-tag {
    display: inline-block;
    background-color: #5c6bc08c;
    border-radius: 4px;
    padding: 5px 10px;
    margin-right: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 14px;
    color: #c8c8c8; /* Light font color */
}

.moral-type-tag:hover, .moral-tag:hover {
    background-color: #5c6bc0;
}

#moral-type-container, #moral-tags-container {
    margin-top: -15px;
}

#next-moral-type {
    margin-top: 10px;
    background-color: #007cba;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
}

#next-moral-type:hover {
    background-color: #006ba1;
}

/*--*/
.story-content h3,
.story-content p {
    font-size: 1.2em; /* Smaller font size for text on mobile */
}

.story-content h3 a {
    color: inherit; /* Inherits color from parent element */
    text-decoration: none; /* Underlines links */
}

.story-form-content-group label,
.story-form-content-group {
    line-height: 1.3; /* Adjust the line height for better readability */
}

.story-form-content-group {
    margin-bottom: 10px; /* Add more space between each form group */
}

.voice-tip-container {
    display: flex; /* Use flexbox to align items */
    align-items: center; /* Center align the items vertically */
    gap: 10px; /* Adjust the gap between icon and text as needed */
    margin-bottom: 1rem; /* Ensures space after the tip container */
}

.story_content_voice-tipp {
    flex-shrink: 0; /* Prevent the icon from shrinking */
    color: #95a0e1;
}

.voice-tip-text {
    font-size: 0.9rem; /* Smaller font size for the tip text */
}