html {
  font-size: 14px;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    
}

label, span {
    font-size: 12px;
}

div
{
    text-align:center;
    font-size: 11px;
}

pre {
    white-space: pre-wrap; /* Since CSS 2.1 */
    white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
    white-space: -pre-wrap; /* Opera 4-6 */
    white-space: -o-pre-wrap; /* Opera 7 */
    word-wrap: break-word; /* Internet Explorer 5.5+ */
    overflow: visible;
    font-size: 11px;
    font-family: system-ui, -apple-system;
}

.inputai
{
    min-width: 450px;
    min-height: 150px;
}

.tabButton {
    margin-right: 5px;
    min-width: 50px;
    background-color: #ccc;
    border: 1px solid #ccc;
    border-bottom: none;
    margin: 1px;
    color: black;
}

.tabButton:disabled {
    background-color: white;
    border: 1px solid black;
    border-bottom: none;
}

.smallbutton {
    margin-right: 5px;
    min-width: 50px;
}

.smallbutton, a, select
{
    font-size: 11px;
}

.buyButton
{
    background-color:orange;
    color:white;
    font-weight:bold;
    text-decoration:none;
    padding:2px;
    border:1px solid darkorange;
    border-radius:2px;
}

.portrait
{
    max-width:50px;
    padding: 2px;
    border-radius: 5px;
    border: 1px solid black;
    margin-right: 5px;
}

.mediumnail {
    max-width: 300px;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid black;
}

.thumbnail {
    max-width: 100px;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid black;
}

textarea, span {
    font-size: 11px;
}

.full-width-textarea {
    width: 100%; 
    min-height: 150px; 
    overflow: visible;
    box-sizing: border-box; 
    font-size: 12px;
}

input[type="file"], input[type="submit"], button {
    font-size: 12px;
    background-color: teal;
    color: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(30, 80, 180, 0.07);
    cursor: pointer;
    letter-spacing: 0.01em;
    font-variant: small-caps;
}

input[type="file"]:hover, input[type="submit"]:hover, button:hover,
input[type="file"]:focus, input[type="submit"]:focus, button:focus {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 4px 14px rgba(30, 80, 180, 0.14);
    outline: none;
}

.bigbutton {
    background-color: #4CAF50 !important; 
    padding: 10px 15px; 
    font-size: 20px !important; 
}

.mediumbutton {
    background-color: darkgray !important;
    font-size: 12px !important;
    padding: 0px;
    min-width: 25px;
    margin: 7px;
}

.trash {
    background-color: darkgray !important;
    font-size: 15px !important;
    padding: 5px 10px;
}

.audioButton {
    font-size: 30px !important;
    color: black;
    padding: 5px 10px;
    background-color: whitesmoke !important;
    border: 1px solid black;
    border-radius: 5px;
}


@keyframes blink {
    75% {
        opacity: 0.75;
    }
    50% {
        opacity: 0.5;
    }
}

.blinking-text {
    opacity: 1;
    animation: blink 1s linear infinite;
    color: darkorange;
    font-size:20px;
}

.loading-text {
    display: none;
    padding: 10px;
    font-weight: bold;
    font-size: 20px;
    border: 1px solid orange;
    position: fixed;
    bottom: 5%;
    width:80%;
    left:10%;
    background-color: whitesmoke;
    opacity: 0.9;
    z-index: 666;
}

code, .code-block, .ql-editor pre {
    background-color: #f9f9f9; /* Light grey background */
    border: 1px solid #ddd; /* Light grey border */
    border-left: 3px solid #f36d33; /* Add a left border for emphasis */
    padding: 10px;
    display: block;
    white-space: pre-wrap; /* Maintains whitespace formatting */
    word-wrap: break-word; /* Breaks long lines of code */
    margin: 10px 0; /* Add some space before and after the block */
    text-align: left;
    font-size: 11px;
    font-family: 'Courier New';
}

.highlight
{
    background-color: whitesmoke;
    padding: 3px;
    text-align: left;
}

.highlight h1 {
    font-size: 16px;
}

.highlight h2 {
    font-size: 14px;
}

.highlight h3 {
    font-size: 12px;
}

.highlight h4 {
    font-size: 11px;
}

.highlight h5 {
    font-size: 10px;
}

.infoText {
    font-size: 8px;
    font-style: italic;
    margin-top: 10px;
}

.ui-dialog-titlebar 
{
    background: white;
    position: fixed;
    left:10%;
    top:35px;
    width:80%;
    font-weight: bold;
    font-variant: small-caps;
    border: 1px solid #ddd; 
}

.ui-dialog-titlebar-close 
{
    width: 75px;
    height: 25px;
    position: absolute;
    top: 0px;
    left: 0px;
}

.ui-dialog-titlebar-close:after 
{
    content: "X";
}

.ui-dialog{
    display:none;              
}

.ui-widget-overlay {
    background-color: rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
}

.ui-widget-content {
    border: 1px solid transparent !important;
    background: transparent !important;
}

.ui-dialog-titlebar {
    display: none;
}

.editor
{
    max-height:75%;
}

.draggable
{
    cursor:grab;
}

.draggable:active 
{
    cursor: grabbing;
}

.dragging {
    position: absolute;
    z-index: 9999; 
    pointer-events: none; 
}

.readOnlyFullText {
    display: none;
    min-height: 25px;
    margin-top: -100px;
    font-style: italic;
}

.question {
    text-align: left;
    font-style: italic;
    border-left: double 5px black;
    border-bottom: 1px dashed black;
}

.question pre {
    padding-left: 5px;
    font-weight:bold;
    margin-bottom: 8px;
 }

.popup {
    background-color: whitesmoke;
    border: 1px solid black;
    width: 80%;
    height: 75%;
    position: fixed;
    left: 10%;
    top: 60px;
    overflow: auto;
    padding: 10px;
}

.settings{
    padding:10px;
}

.currentUser {
    background-color: aquamarine;
}

.otherUser {
    background-color: whitesmoke;
}

.help {
    margin: 10px;
    padding: 10px;
    font-style: italic;
    font-size: 11px;
    background-color: papayawhip;
    display: flex; /* Center the icon */
    justify-content: center;
    align-items: center;
}

.help .fa-question-circle {
    font-size: 5em; 
    color: darkorange;
    padding:10px;
}

.info {
    margin: 10px;
    padding: 10px;
    font-style: italic;
    font-size: 11px;
    background-color: lightskyblue;
    display: flex; /* Center the icon */
    justify-content: center;
    align-items: center;
}

.info .fa-info-circle {
    font-size: 5em;
    color:white ;
    padding: 10px;
}

.slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px;
}

.slider-value {
    margin-left: 15px;
    font-size: 1.2em;
    min-width: 50px;
    text-align: center;
}

#favoritesPanel {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 2px;
    z-index: 1000;
}

#favouritesList {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.favorite-item {
    display: flex;
    align-items: center;
    margin: 5px;
    padding: 2px 5px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.favorite-link {
    margin-left: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width:880px) {
    .navbar-expand-custom {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

        .navbar-expand-custom .navbar-collapse {
            display: none !important;
            flex-basis: 100%;
            flex-grow: 1;
            align-items: center;
        }

        .navbar-expand-custom .navbar-toggler {
            display: block;
            margin-bottom: auto;
        }

        .navbar-expand-custom .navbar-collapse.collapse.show {
            display: flex !important;
        }
}