html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
    font-family: "Raleway", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* unset styles!!!! */
ul {
  list-style-type: none;
}


/* General stuff */

body {
    background-color: #1e2c34 !important;
    color: #f8ffff;
    overflow-x: hidden;
}

.info-div {
    color: #f6e6c9;
}

.logo-img {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
}

@media (min-width: 1200px) {
    .menu-container{
        margin-left: 20%;
        margin-right: 20%;
        letter-spacing: 0.2rem;
    }
}

.custom-navbar {
    background-color: #1e2c33;
    color: #f6e6c9;
}

.dropdown-menu {
    background-color: #1e2c33;
    color: #f6e6c9;
    transition: max-height 0.5s ease;
    border: 1px solid #f6e6c9;
}

.dropdown-item {
    color: #f6e6c9;
    width: auto;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: #f6e6c9;
    background-color: #152734;
}

.custom-nav-item a {
    color: #f6e6c9;
    text-transform: uppercase;
    margin-left: 1vw;
    letter-spacing: 2px;
}

.form-check-input {
    margin-left: 2em;
}

#footer_text{
    color: #f6e6c9;
}


body {
  height: 100vh;
  max-width: 100%;
  overflow-x: hidden; /* Hide horizontal overflow */
  margin: 0; /* Remove any default margins */
}


.featured-list {
    margin-top: 3vh;
}

.featured-list img {
    margin-left: 20vw;
/*    margin-right: 50%; */
}

.btn {
    color: #f8ffff;
    border: 1px solid #f8ffff;
}

.jumbo {
  display: flex;
  /*align-items: center;*/
  align-items: normal;
  justify-content: center;
  padding: 0;
  margin: 0;
  /*max-height: 50vh;*/
  height: 55vh;/*Trying to fix CLS problem...*/
  width: 100vw;
  overflow: hidden;
}

.jumbo img {
  object-fit: cover;
  /*width: 100%;*/
  width: 100vw;
  /*height: 30vh;*/
  max-height: 100%;
}

.jumbo-container {
    position: relative;
    width: 100vw;
    /*height: 55vh;*/
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.jumbo-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    transform: scale(1.1);
}

#character-image-jumbo,
.jumbo-container > img {
    position: relative;
    display: block;
    max-width: 100%;
    height: 100%;
    width: auto;
    object-fit: contain;
    z-index: 1;
}

.jumbo-container::before,
.jumbo-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10%;
    background-inherit;
    filter: blur(10px);
    z-index: 2;
}

.jumbo-container::before {
    left: 0;
}

.jumbo-container::after {
    right: 0;
}


#character-image-jumbo {
    object-fit: contain;
}

.character-jumbo-content .character-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-item .page-link {
    background-color: #151f25;
    color: #f6e6c9;
    border: 1px solid #f6e6c9;
}


.character-name-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 10;
}

.character-name-overlay h1 {
    color: white;
    margin: 0;
    font-size: 2.5em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.landing-page-card{
    background-color: #1e2c33;
    color: #f8ffff;
    border: none;
    margin-top: 1vh;
    margin-bottom: 5vh;
    /*width: 18rem;*/
    /*font-family: "Roboto Mono", monospace;*/
}

.landing-page-card h4{
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}


.book-cards{
    width: 300px;
    height: 300px;
}

.home-title {
    text-align: center;
    color: #f6e6c9;
    text-transform: uppercase;
    font-spacing:0.1rem;
    /*font-family: "Roboto Mono", monospace;*/
}

#home-intro-h2 {
    text-align: center;
    margin-bottom: 3vh;
    color: #f6e6c9;
}

#prompt{
    background-color: #152734;
    color: #f6e6c9;
}

#prompt::placeholder {
    color: #f6e6c9;
}

#story_generator_prompt{
    background-color: #152734;
    color: #f6e6c9;
}

#story_generator_prompt::placeholder {
    color: #f6e6c9;
}


.footer-ul {
    border-color: #152734;
}

.btn-generate{
    background-color: #152734;
    color: #f6e6c9;
    border-radius: 25px;
}

.btn-generate:hover{
    background-color: #e7bf8f;
    color: #152734;
    border-radius: 25px;
    border: 1px solid #f6e6c9;
}

.btn-register {
    background-color: #152734;
    color: #f6e6c9;
    border-radius: 25px;
}

.btn-register:hover {
    background-color: #e7bf8f;
    color: #152734;
    border-radius: 25px;
    border: 1px solid #f6e6c9;
}

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 10px; /* distance from the bottom */
    transform: translateX(-50%);
    width: 80%;
    max-width: 400px;
    /*background-color: #152734;*/
    background-color: rgba(21,39,52,0.95);
    color: #f6e6c9;
    /*border: none;*/
    border: 1px solid #f6e6c9;
    z-index: 1001;
    padding: 20px;
    border-radius: 25px;

}

.btn-cookies-bad {
    background-color: #152734;
    color: #f6e6c9;
    border-radius: 25px;
    margin-top: 10px;
    border: none;
    font-size: 0.9rem;
}


/*header stuff*/
h5 {
    font-size: 1.875rem;
    font-weight: 400;
    letter-spacing: .01rem;
    text-transform: uppercase;
}

h2 {
    letter-spacing: .01rem;
    text-transform: uppercase;
}


/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    h5 {
        font-size: 1.5rem; /* Slightly smaller than h2 for medium devices */
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    h5 {
        font-size: 1.125rem; /* Slightly smaller than h2 for small devices */
    }
}





/* Worlds table and page */
#worlds-table {
    background-color: #1e2c33 !important;
    color: #f6e6c9 !important;
}

#worlds-table tbody tr{
    background-color: #1e2c33 !important;
    color: #f6e6c9;
}

#worlds-table tbody tr td{
    min-width: 5vw;
}

#worlds-table_info {
    color: #f6e6c9;
}

#worlds-table_paginate {
    color: #f6e6c9;
}

#worlds-table_filter {
    color: #f6e6c9;
}

#worlds-table_filter input {
    color: #f6e6c9;
}

#worlds-table tbody tr td{
    background-color: #1e2c33;
}

.table-head {
    background-color: #1e2c33 !important;
    color: #f6e6c9 !important;
}

.world-description-span {
    color: #f6e6c9;
}

#worldAccordion .accordion-item{
    background-color: #1e2c33;
    color: #f6e6c9;
}

#addNewWorldHeading button{
    background-color: #1e2c33;
    color: #f6e6c9;
}

#worldAccordion {
    border: none;
}

#worldDescriptionHeading button {
    background-color: #1e2c33;
    color: #f6e6c9;
    border: none;
}

#worldNameHeading button{
    background-color: #1e2c33;
    color: #f6e6c9;
    border: none;
}

/* Characters table and page */
#description:focus{
    background-color: #1e2c33;
    color:#f6e6c9;
}

#name:focus {
    background-color: #1e2c33;
    color:#f6e6c9;
}

.character-card{
    background-color: #151f25;
    border: 1px solid #f6e6c9;
}

.character-card:hover {
    transform: scale(1.1);
    transition: transform 250ms;
}

.character-card-text p,
.character-card-text h1,
.character-card-text h2,
.character-card-text h3,
.character-card-text h4,
.character-card-text h5,
.character-card-text h6,
.character-card-text ul,
.character-card-text ol {
    font-size: inherit;
    margin-bottom: 0;
}

.character-card-text * {
    font-size: inherit !important;
}


.character-card-text, .character-card-text + ul {
    color: #f6e6c9;
}


@media (max-width: 992px) {
    .character-card-text {
        font-size: 15px;
    }
}

.char_and_dnd_card_footer{
    background-color: #1e2c33;
    color: #f6e6c9;
    margin-top: auto;
}

.up_and_downvote_buttons{
    background-color: #1e2c33;
    color: #f6e6c9;
    border-radius: 50%;
}

.btn.btn-outline-primary.up_and_downvote_buttons:hover,
.btn.btn-outline-primary.up_and_downvote_buttons:active,
.btn.btn-outline-primary.up_and_downvote_buttons:focus,
.btn.btn-outline-primary.up_and_downvote_buttons.active {
    background-color: #f6e6c9;
    color: #151f25;
    border: 1px solid #f6e6c9;
}

.up_and_downvote_buttons:disabled {
    background-color: #1e2c33;
    color: #f6e6c9;
    border: 1px solid #f6e6c9;
}

.page-link {
    color: #f6e6c9;
    background-color: #1e2c33;
    border: 1px solid #e7bf8f;
}

.page-link:hover {
    background-color: #e7bf8f;
    color: #1e2c33;
}

.active > .page-link {
    background-color: #e7bf8f;
    color: #1e2c33;
}

.character-card-title, .monster-card-title {
    color: #f6e6c9;
    text-align: center;
    letter-spacing: .2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
}


#characters-table {
    background-color: #1e2c33;
    color: #f6e6c9;
}

#characters-table thead th{
    background-color: #1e2c33;
    color: #f6e6c9;
}

#characters-table tbody tr td{
    background-color: #1e2c33;
    color: #f6e6c9;
}

#characters-table_filter input {
    color: #f6e6c9;
}

#characters-table_filter {
    color: #f6e6c9;
}

#characters-table_info {
    color: #f6e6c9;
}


.general-table {
    background-color: #1e2c33;
    color: #f6e6c9;
}

.general-table thead th{
    background-color: #1e2c33;
    color: #f6e6c9;
}

.general-table tbody tr td{
    background-color: #1e2c33;
    color: #f6e6c9;
}

.general-table_filter input {
    color: #f6e6c9;
}

.general-table_filter {
    color: #f6e6c9;
}

.general-table_info {
    color: #f6e6c9;
}



.paginate_button {
    background-color: #f6e6c9;
}

#characterAccordion .accordion-item{
    background-color: #1e2c33;
    color: #f6e6c9;
}

.accordion-body p {
    color: #f6e6c9;
    border: 1px solid #f6e6c9;
    border-radius: 10px;
    padding-left: 2em;
    padding-right: 2em;
    passing-top: 2em;
    passing-bottom: 2em;
    line-height: 2;
    /*font-family: "Roboto Mono", monospace;*/
}

.character-details-header {
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

#addNewCharacterHeading button {
    background-color: #1e2c33;
    color: #f6e6c9;
}

#characterDescriptionHeading button{
    background-color: #1e2c33;
    color: #f6e6c9;
    border: none;
}

.overlay-character-generator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(5px); /* Blur effect */
    }

.accordion-body {
    position: relative;
}

.character-cell {
    text-align: center;
    width: 150px;
}

.character-image {
    object-fit: fit;
}

.placeholder-image {
    width: 100px;
    height: 100px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.character-name {
    font-weight: bold;
}


/* Story Forge stuff */
#generate-chapter-plan-button:focus {
    background-color: #1e2c33;
    color: #f6e6c9;
}

#generate-chapter-plan-button:hover {
    background-color: #1e2c33;
    color: #f6e6c9;
}

.btn-generate-chapter:focus {
    background-color: #1e2c33;
    color: #f6e6c9;
}

.btn-generate-chapter:hover {
    background-color: #1e2c33;
    color: #f6e6c9;
}

#books-table {
    background-color: #1e2c33;
    color: #f6e6c9;
}

#books-table tbody tr td{
    background-color: #1e2c33;
    color: #f6e6c9;
    min-width: 5vw;
}

#books-table_info {
    color: #f6e6c9;
}

#books-table_filter {
    color: #f6e6c9;
}

#books-table_filter, input {
    color: #f6e6c9;
}

#bookAccordion .accordion-item{
    background-color: #1e2c33;
    color: #f6e6c9;
}

#bookAccordion .accordion-item h2 button{
    background-color: #1e2c33;
    color: #f6e6c9;
}

.form-group {
    background-color: #152734;
    color: #f6e6c9;
}

.form-group input, .form-group textarea, .form-group select {
    background-color: #152734;
    color: #f6e6c9;
}

/*Book spinner */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1100;
    /*display: none;*/
}

/*Display full character/world/book on  desktop, but only first 50 chars on mobile */
.description-cell .d-none {
    display: none;
}

@media (min-width: 768px) {
    .description-cell .d-none {
        display: inline;
    }

    .description-cell .d-inline {
        display: none;
    }
}

/*Links for all tables used in character, world and story forge lists*/
td > a {
    color: #f6e6c9;
}

td > a:hover, td > a:focus, td > a:active, td > a:touchstart {
    color: #fff;
}



/*Dashboard styling */
.btn-buy {
    background-color: #e7bf8f;
    color: #152734;
    border-radius: 25px;
    border: 1px solid #f6e6c9;
    text-decoration: none;
    text-transform: uppercase;
}

.btn-buy:hover{
    border: solid 1px #e7bf8f;
    background-color: #152734;
    color: #e7bf8f;
}

.btn-buy:focus{
    border: solid 1px #e7bf8f;
    background-color: #152734;
    color: #e7bf8f;
}

.btn-buy:active{
    border: solid 1px #e7bf8f;
    background-color: #152734;
    color: #e7bf8f;
}

.doc-card, .char-card {
    /*background-color: #152734;*/
    /*background-color: #1e2b32;*/
    /*background-color: rgba(30, 43, 50, 0.8);*/
    width: 18rem;
    background-color: rgba(9, 14, 16, 0.4);
    color: #f6e6c9;
    max-width: 75vw;
    margin: 0 auto;
    aspect-ratio: 1 / 1.1; /* Width-to-height ratio */
}

.doc-card{
    height: 40vh;
}

.char-card{
    height: 50vh;
}

.doc-card h5, .char-card h5 {
    padding-bottom: 3vh;
}

.container-custom {
    padding-left: 5vw;
    padding-right: 5vw;
}

.incard-link{
    color: #f6e6c9;
    text-decoration: none;
}

.incard-link:hover {
    color: #E2CBA7;
}

.btn-delete{
    margin-top: 1vh;
    padding-left: 45%;
    padding-right: 45%;
    background-color: #742c35;
    font-size: 1.5em;
    border-radius: 1em;
    border: none;
}

.card-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.pagination .disabled-link {
    background-color: #151f25;
}

.pagination .disabled-link:hover {
    background-color: #151f25;
    color: #f6e6c9;
}

.card-dashboard-plus {
    background-color: #151f25;
    color: #e7bf8f;
}

.card-dashboard-plus:hover, .card-dashboard-plus:active  {
    background-color: #e7bf8f;
    color: #151f25;
    border-radius: 5px;
}

/* Modal Styling */
.modal-content {
    margin-top: 15vh;
    /*background-color: #3c3f4c;*/
    background-color: rgb(9, 14, 16);
    color: #fff;
    border: none;
}

.modal-header {
    border-bottom: none;
}

.modal-footer {
    border-top: none;
}

.modal-custom-width {
    max-width: 60vw;
}


.modal li {
    position: relative;
    font-size: 0.9em;
    padding-left: 30px;
    margin-bottom: 1.5em !important;
}

.modal li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: #6a50a7;
    border-radius: 50%;
    transform: translateY(-50%);
}

.modal li:after {
    content: '\2713';
    position: absolute;
    left: 4px;
    top: 50%;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    transform: translateY(-50%);
}

/*These are modal cards!!!! */
.card-height-equal {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #1e2c33;
}

/* Still modal stuff */
.modal-card-container .card-header {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.modal-card-container .card-body .card-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

h4.card-title {
    text-transform: uppercase;
    color: #f6e6c9;
}

.modal-card-container .card-body .vat-span {
    font-size: 1.5rem;
    font-weight: 600;
}

.buy-modal-text {
    color: #f6e6c9;
}

@media (max-width: 1024px) {
    #buyModal {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .modal-custom-width {
        max-width: 100%;
    }
}



@media (max-width: 1024px) {


    .card-height-equal {
        margin-bottom: 2vh;
    }

    .modal-card-container {
        margin-bottom: 2vh;
        width: 100%;
    }

    .modal {
        margin-left: 15vw;
        margin-right: 15vw;
        width: 80%;
    }
}


/* Various media queries for all pages, and the landing page */
@media (max-width: 767px) {
    body {
        font-size: 0.75rem;
    }
    .doc-card, .char-card {
        background-color: rgba(9, 14, 16, 0.4);
        color: #f6e6c9;
    }

    .jumbo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        height: 20vh;
        max-height: 50vh;
    }

    .jumbo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (min-width:768px) and (max-width:1081px) {
    body {
        font-size: 0.9rem;
        overflow-x: hidden;
    }
    .landing-page-card {
        width: 25vw;
    }
    .doc-card, .char-card {
        width: 35vw;
        background-color: rgba(9, 14, 16, 0.4);
        color: #f6e6c9;
    }

    .jumbo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        margin: 0;
        height: 35vh;
        max-height: 50vh;
    }

    .jumbo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}


/*Writer page styling */

#error-message {
    transition: opacity 0.5s ease-in-out; /* Smooth transition for opacity */
}

#writing-area {
    background-color: #151f25;
    color: #f6e6c9;
    padding: 2vh;
    margin-bottom: 2vh;
    min-height: 75vh;
}

#text-select-menu {
    z-index: 1000;
    background-color: rgba(21,31,37, 0.8);/* color #151f25;*/
    border-radius: 25px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border: 1px solid #f6e6c9;
    gap: 0px;
}

#text-select-menu .generate-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0px;
    margin: 0; /* Remove margins to eliminate space between buttons */
}


@media (max-width: 768px) {
    #text-select-menu {
        padding: 6px 8px;
        width: 98%;
        max-width: 500px;
    }

    #text-select-menu .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        width: 100%;
    }

    #text-select-menu .generate-btns {
        padding: 4px 8px;
        font-size: 11px;
        height: 24px;
        min-height: 24px;
        min-width: min-content;
        width: auto;
        line-height: 1;
        margin: 0;
        border-radius: 4px;
    }

    /* Might as well add mobile styles for all generate-btns */
    .btn-writer,
    .align-items-center .btn,
    .btn-group .btn {
        padding: 4px 8px;
        font-size: 11px;
        height: 24px;
        min-height: 24px;
        min-width: min-content;
        width: auto;
        line-height: 1;
        margin: 0;
        border-radius: 4px;
    }
}

/*.generate-btns-col {
    padding:0;
}*/

#main-btn-menu {
    margin-right: 0;
}

#btn-menu-drop {
    margin-left: 0;
}

.character-selector-container select{
    min-width: 15vw;
}

.world-selector-container select {
    min-width: 15vw;
}

.custom-character-alert {
    max-width: 7vw;
    max-height: 1wh;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #313b47;
    color: #fff;
    border-radius: 25px;
    text-align: center;
}

.character-selector-container, .world-selector-container {
    max-width: 30%;
}

#add-world {
    margin-top: 0;
    }

#settingsModalContent {
    width: 30vw;
    height: 50vh;
    overflow: hidden;
}


@media (max-width: 1024px) {
    .character-selector-container, .world-selector-container {
        max-width: 40%;
        overflow: hidden;
    }

    #add-character, #add-world {
        margin-top: 0;
        font-size: 0.75rem;
    }

    #settingsModalContent {
        width: 70vw;
        height: 50vh;
    }

}

@media (min-width: 1024px) and (max-width: 1440px) {
    .character-selector-container, .world-selector-container {
        max-width: 40%;
        overflow: hidden;
    }

    #add-character, #add-world {
        margin-top: 0;
        font-size: 0.75rem;
    }

    #settingsModalContent {
        width: 50vw;
        height: 50vh;
    }
}

.world-selector-container {
    margin-left: 10vw;
}

.generate-buttons {
    float: right;
}

.btn-generate-primary {
    background-color: #6a50a7;
    border-color: #6a50a7;
    border: 1px solid;
    margin-top: 10px;
}


/* Remove blue-ish bootstrap glow from the writing and input areas */
#writing-area:focus, #prompt:focus {
    border: 1px solid #e7bf8f;
}

textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

.form-control:focus {
    outline: none !important;
    box-shadow: none !important;
}



#style-selector {
    max-width: 65vw;
}

#character-selector, #world-selector {
    max-width: 85vw;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#spinner-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-icon {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border: 5px solid #e7bf8f;
    /*background-color: #e7bf8f;*/
    border-radius: 50%;
    border-top: 5px solid #000;
    width: 50px;
    height: 50px;
    animation: spinbook 1s linear infinite;
}

@keyframes spinbook {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    #writing-area {
        font-size: 0.75rem;
    }
}

@media (min-width:768px) and (max-width:1081px) {
    #writing-area {
        font-size: 0.9rem;
    }
}

/* Free tool styles */
.free-tool-form-group {
    color: #f6e6c9;
}

.free-tool-form-group input, .free-tool-form-group textarea {
    background-color: #151f25;
    color: #f6e6c9;
    border: 1px solid #f6e6c9;
}

.free-tool-form-group input:focus, .free-tool-form-group textarea:focus {
    color: #f6e6c9;
    background-color: #151f25;
}

#characterThreeName:read-only, #characterFourName:read-only {
    background-color: #1e2c34;
}

#characterThreeName:read-only::placeholder, #characterFourName:read-only::placeholder {
    color: #f6e6c9;
}

.free-tool-select {
    background-color: #151f25;
    color: #f6e6c9;
    border: 1px solid #f6e6c9;
}

#textToTranslate {
    background-color: #151f25;
    color: #f6e6c9;
    border: 1px solid #f6e6c9;
}

#textToTranslate:focus {
    color: #f6e6c9;
    background-color: #151f25;
}

#translations-table {
    color: #f6e6c9;
}

#translations-table tbody tr td {
    color: #f6e6c9 !important;
    background-color: #151f25 !important;
}

/* contact page styles */

#btn-send-contact {
    background-color: #e7bf8f;
    border-color: #e7bf8f;
    border: 1px solid;
    width: 10%;
}

#btn-send-contact:hover {
    background-color: #1e2c34;
    border-color: #e7bf8f;
    border: 1px solid;
}

#btn-send-contact:active {
    background-color: #1e2c34;
    border-color: #e7bf8f;
    border: 1px solid;
}

#btn-privacy-policy {
    width: 10%;
}

#div_id_email input {
    background-color: #152734;
    color: #f6e6c9;
}

#div_id_email input:focus {
    background-color: #152734;
    color: #f6e6c9;
}

#div_id_email input:active {
    background-color: #152734;
    color: #f6e6c9;
}

#div_id_message textarea {
    background-color: #152734;
    color: #f6e6c9;
}

#div_id_message textarea:focus {
    background-color: #152734;
    color: #f6e6c9;
}

#div_id_message textarea:active {
    background-color: #152734;
    color: #f6e6c9;
}

/* Writing prompt generator */
#writing_prompt_result{
    color: #e7bf8f;
    font-size: 2.5em;
    /*font-family: "Caveat", cursive;*/
}

.results_of_generator{
    color: #e7bf8f;
    font-size: 2.5em;
    /*font-family: "Caveat", cursive;*/
}

#genre {
    color: #f6e6c9;
    background-color: #152734;
}

/* Writing form flex styles */
.free-tool-form-group {
    margin: 20px;
}


.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Provides spacing between elements */
}

/* AI story generator page */
#demo-content{
    color: #e7bf8f;
    font-size: 1.5em;
    text-align: center;
}

#generated_ai_story{
    color: #e7bf8f;
    font-size: 1.5em;
    text-align: center;
    /*font-family: "Caveat", cursive; */
}

@media (max-width: 768px) {
    #demo-content{
        font-size: 0.8em;
    }

    #generated_ai_story{
        font-size: 0.8em;
    }
}

.demo-radio-buttons {
    text-align: center;
    color: #f6e6c9;
}

.main-header-free-tools {
    color: #f6e6c9;
    text-align: center;
}


.input-group .form-control,
.input-group select {
    flex: 1 1 100%; /* Ensures the elements take full width on mobile */
}

/* Other tools div used in all free tools */
#other-tools-header{
    color: #f6e6c9;
    text-align: center;
}

#other-tools-div .card {
    background-color: #151f25;
    color: #f6e6c9;
    padding: 2vh;
    margin-bottom: 2vh;
    border-radius: 10px;
    border: 1px solid #f6e6c9;
}

#other-tools-div .card:hover {
    transform: scale(1.1);
    transition: transform 250ms;
}

#other-tools-div .card a {
    background-color: #151f25;
    color: #f6e6c9;
    text-decoration: none;
}

#bigass-register-card {
    background-color: #151f25;
    color: #f6e6c9;
    padding: 2vh;
    margin-bottom: 2vh;
    border-radius: 10px;
    border: 1px solid #f6e6c9;
}

.bigass-register-card {
    background-color: #151f25;
    color: #f6e6c9;
    padding: 2vh;
    margin-bottom: 2vh;
    border-radius: 10px;
    border: 1px solid #f6e6c9;
}

#onboarding-message {
    margin-top: 1vh;
    min-height: 5vh;
    background-color: #151f25;
    color: #f9fbfb;
    border-radius: 10px;
    border: 1px solid #f6e6c9;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow-y: auto;
    max-height: 20vh; /* Limit maximum height */
}


/* Media query for desktops and larger devices */
@media (min-width: 768px) {
    .input-group {
        flex-wrap: nowrap;
    }

    .input-group .form-control,
    .input-group select {
        flex: 1; /* Allows elements to share the row equally */
    }

    .input-group #genre {
        max-width: 30%; /* Limits the width of the genre dropdown */
    }
}

.btn-buy {
    margin-top: 10px; /* Spacing from the input elements */
}

/* campaign generator */
.include-campaign-label {
    color: #f6e6c9;
    font-size: 0.9em;
}

#playModalDiag {
    width: 100vw;
}

#chat-input{
    background-color: #152734;
    color: #f6e6c9;
}

@media (max-width: 768px) {
    #createCharacterModal, #createCampaignModal {
        font-size: 0.75rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }
}