:root {
    --everlit-grey: #cbd5e1;
    --everlit-cyan: #5eead4;
    --light-purple: #8268d9;
    --dark-purple: #4e2eb8;
}
/* This will apply a background color to text wrapped in .no-audio in the Gutenberg editor */
.editor-styles-wrapper .everlit-no-audio {
    border: ridge; /* Example style, adjust as needed */
    border-width: 0.16em;
    /* background-color: #e0ccff !important; Highlight color */
    /* border: 1px dashed #999 !important; */
    /* display: inline-block;  // To make sure the border surrounds the content properly */
}

/* If the .no-audio wraps a link, adjust the link color to ensure it's readable */
.editor-styles-wrapper .everlit-no-audio a {
    color: #ffffff !important; /* This makes the link white for readability. Adjust if needed. */
}

/* Target the span inside the active button */
.components-button.components-dropdown-menu__menu-item.is-active .dashicons-controls-pause {
    background-color: #000;
    color: #fff;
    padding: 2px; /* Adding a bit of padding can make the background more noticeable. Adjust if needed. */
    border-radius: 4px; /* Optional: To round the corners of the background. Adjust if needed. */
}

.components-button.components-dropdown-menu__menu-item.is-active .dashicons-hidden {
    background-color: #000;
    color: #fff;
    padding: 2px; /* Adding a bit of padding can make the background more noticeable. Adjust if needed. */
    border-radius: 4px; /* Optional: To round the corners of the background. Adjust if needed. */
}

/* Add this to your CSS file */
.everlit-info-button .dashicons-info {
    font-size:  15px; /* Set the font size to  15px */
    color: grey;
}

/* This will highlight the text wrapped in .audio-only in the Gutenberg editor */
.editor-styles-wrapper .everlit-audio-only {
    background-color: #FFFFB3;
    /* border: 1px dashed #999;
    display: inline-block;  // To make sure the border surrounds the content properly */
}

.editor-styles-wrapper .everlit-audio {
    background-color: #50505022;
}

/* Style for the active state of the ToolbarButton */
.is-active-toolbar-button {
    background-color: #000;
    color: #fff;
}

.checkbox-wrapper {
    display: flex;
    align-items: center; 
}

.everlit-custom-button-wrapper {
    display: flex;
    align-items: center;   /* Vertical alignment */
    justify-content: center; /* Horizontal alignment */
}

.everlit-custom-button-wrapper.energize{
    flex-direction: column; 
}


.everlit-custom-button {
    display: block;
    transition: background-color 0.3s ease;
    border-radius: 20px;
    border: 1px solid #000;
    text-align: center;
    width: 100%;
    padding: 10px 0;
    color: #000;
    margin-bottom: 10px;
    box-sizing: border-box;
}

.everlit-custom-button.is-active {
    background-color: #888;
    color: #fff;
}

.everlit-custom-action-button {
    display: block;
    color: #fff !important; 
    transition: background-color 0.3s ease;
    width: 80%;
    margin-bottom: 10px ;
    box-sizing: border-box;
    border: none;
    color: #fff;
    font-size: 12px;
    text-align: center;
    border-radius: 10px; /* square off some of the edges */
}

/* .everlit-custom-action-button.pre-record {
    background-color: rgb(128, 0, 128);
    margin: 10px 10%;
}
.everlit-custom-action-button.pre-record:hover{
    background-color:rgb(104, 0, 104);
    margin-left: 10%;
    margin-right: 10%;
} */
.everlit-custom-action-button.preview-audio {
    background-color: rgb(79, 70, 229);
    margin-top: 10px;
    margin-left:10%;
    margin-right:10%;
}

.everlit-custom-action-button.phonetic {
    background-color: rgb(70, 179, 229);
    border-radius: 20px; /* square off some of the edges */
}

.everlit-custom-action-button.preview-audio:hover {
    background-color: rgb(55, 48, 163);
}

.everlit-custom-action-button.publish {
    background-color: red;
    margin-top: 20px;
}
.everlit-custom-action-button.publish:hover {
    background-color: rgb(207, 0, 0);
}
.everlit-spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em; /* Adjust the font size to change the spinner size */
    margin-bottom: 10px;
}

.everlit-hashtags-container, .everlit-authors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;  /* Optional: Add a gap between the items */
}

.everlit-pronunciation-library-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Adjust width as required */
    max-width: 800px; /* Max width */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 1001; /* This ensures the popup is above the overlay */
    overflow-y: auto; /* For scrollable content */
    height: 500px;
}

.everlit-header-section {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);  /* optional, adds a line separating header from content */
}

.everlit-title-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    margin-top: 4%;
}

.everlit-title-row div {
    flex: 1; /* allows the divs to take up equal width */
    text-align: center; /* center the content within each div */
}

.everlit-title-row div:first-child {
    flex: 4; /* gives the "Original" header a little more space than the arrow */
    text-align: left; /* aligns text to the left for the "Original" header */
}

.everlit-title-row div:last-child {
    flex: 1; /* gives the "Replacement" header even more space, moving it further to the right */
    text-align: left; /* aligns text to the left for the "Replacement" header */
}

.everlit-content-wrapper {
    overflow-y: auto;
    max-height: 500px;
    margin-top: 10px;
    padding: 0 15px 15px; /* Keep the left, right, and bottom padding consistent with the header */
}

.pronunciation-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center; /* this ensures vertical alignment */
}

.pronunciation-item div {
    flex: 1; /* allows the divs to take up equal width */
    text-align: center; /* center the content within each div */
}

.pronunciation-item div:first-child,
.pronunciation-item div:last-child {
    flex: 1; /* this ensures that the original and replacement words get more space than the arrow */
    text-align: left; /* aligns text to the left for the words */
}

.pronunciation-item button {
    border-radius: 50px;
    background-color: purple;
    color: white;
    cursor: pointer;
    padding: 5px 5px;
    font-size: 0.8em;
    margin-left: 5px; /* adds a little space between delete button and replacement word */
}

/* The semi-transparent background overlay */
.everlit-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the alpha value for transparency */
    z-index: 9998;
}

/* The floating window */
.everlit-picker-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%; /* Adjust width as required */
    max-width: 1000px; /* Max width */
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* This ensures the popup is above the overlay */
    overflow-y: auto; /* For scrollable content */
    height: 600px;
}

/* This class will be added to the main content (or Gutenberg editor) when the popup is open
.blur-background {
    filter: blur(3px);
    pointer-events: none;
} */

/* Voice option styling */
.everlit-picker-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 0 10px 10px;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
}

.everlit-heart, .everlit-heart.favorite:hover{
    color:rgb(30, 30, 30);
    transition: color 0.3s;
    font-size:20px;
    margin-right:20px;
}
.everlit-heart:hover, .everlit-heart.favorite{
    transition: color 0.3s;
    color:var(--everlit-cyan);
}


/* Play button */
/* .play-button { */
    /* WordPress blue, adjust if needed */
    /* background-color: #0073aa; 
    color: #ffffff;
    border: none; */
    /* Makes it a circle */
    /* border-radius: 50%; 
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
} */

.everlit-word-pillbox {
    display: inline-block;
    padding: 2px 5px;
    border-radius: 16px;
    background-color: #f1f1f1;
    cursor: pointer;
    margin: 0 4px 4px 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.everlit-word-pillbox:hover {
    background-color: #0073aa;
    color: #ffffff;
}

.everlit-word-pillbox:active {
    background-color: #005a88;
    color: #ffffff;
}

.everlit-word-pillbox.active {
    background-color: #005a88;
    color: #ffffff;
    animation: pulse 1s infinite; /* 1s duration, infinite loop */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08); /* Adjust this value to control the intensity of the pulse */
    }
    100% {
        transform: scale(1);
    }
}

.everlit-voice-demo-play-button {
    background-color: #0073aa; /* WordPress blue, adjust if needed */
    color: #ffffff;
    border: none;
    border-radius: 50%; /* Makes it a circle */
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    content: '▶';
    margin-left:auto;
}

.everlit-voice-demo-play-button:hover{
    background-color:rgb(0, 93, 138);
    transition: background-color 0.3s;
}

.everlit-voice-demo-play-button.play {
    /* Unicode for play symbol */
    content: '▶';
}

.everlit-voice-demo-play-button.playing {
    /* Add a simple wiggle or shake animation */
    animation: wiggle 0.5s infinite alternate;
    background:purple;
}

.everlit-mixable-demo-play-button {
    background-color: #0073aa; /* WordPress blue, adjust if needed */
    color: #ffffff;
    border: none;
    border-radius: 50%; /* Makes it a circle */
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    content: '▶';
    margin-left:auto;
}

.everlit-mixable-demo-play-button:hover{
    background-color:rgb(0, 93, 138);
    transition: background-color 0.3s;
}

.everlit-mixable-demo-play-button.play {
    /* Unicode for play symbol */
    content: '▶';
}

.everlit-mixable-demo-play-button.playing {
    /* Add a simple wiggle or shake animation */
    animation: wiggle 0.5s infinite alternate;
    background:purple;
}

.everlit-picker-option:hover {
    background-color: rgba(0, 0, 0, 0.05); /* This gives a light gray background. Adjust as needed. */
    cursor: pointer;
}

@keyframes wiggle {
    0% { transform: rotate(-40deg); }
    100% { transform: rotate(40deg); }
}

.everlit-voice-style-filter {
    width: 50%;
}

.everlit-voice-picker-button {
    display: flex;  
    align-items: center;
    justify-content: center;
    margin-top: -10px;  
    padding: 2px 4px;
    font-size: 0.9em; 
    color: #009dff;
    cursor: pointer;
    margin-bottom: 10px;
}
.everlit-voice-picker-button:hover {
    color: #afe8ff;  
}

.everlit-voice-picker-icon {
    margin-right: 8px; 
}

.everlit-picker-header {
    display: flex;
    align-items: center;  /* Vertically centers the child elements */
    justify-content: space-between;  /* Spreads the child elements apart */
    margin-bottom: 10px;  /* to give space between this header and the next element */
    width: 100%;  /* Ensures the header takes up the full width */
}

.everlit-picker-search-input {
    flex: 0.5;  /* This allows it to take as much space as possible */
    padding: 8px;
    margin-right: 10px;  /* to give some space between the search input and the SelectControl */
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 250px;
}

.everlit-voice-style-filter {
    width: 200px;
}

.everlit-voice {
    border-bottom: 1px dotted #888;
}

.everlit-voice:hover {
    background-color: rgba(255, 255, 0, 0.3); /* Highlight on hover */
}

.everlit-progress-container {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    margin-top: 10px;
}

.everlit-progress-bar-background {
    width: 100%;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden; /* Ensures the inner bar doesn't overflow the rounded corners */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Adds a shadow for depth */
}

.everlit-progress-bar-foreground {
    height: 20px;
    background: linear-gradient(-45deg, #007cba, #0088d1, #0094e1, #00a1f1);
    background-size: 200% 200%; /* Larger background size for the gradient animation */
    border-radius: 10px;
    transition: width 0.3s ease;
    animation: progressAnimation 2s ease infinite, pulse 1s ease-out infinite;
}

@keyframes progressAnimation {
    0% { background-position: 100% 0; }
    100% { background-position: 0 100%; }
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px #0094e1; }
    100% { box-shadow: 0 0 20px #007cba; }
}


.everlit-progress-state-text {
    text-align: center; /* Center the text */
    animation: ellipsis 1.5s infinite;
    margin-top: 10px;
}

.everlit-embed-placeholder {
    border: 1px dashed #000; 
    padding:10px;
}

@keyframes ellipsis {
    0% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
    100% { content: '.'; }
}

.everlit-progress-state-text::after {
    animation: ellipsis 1.5s infinite;
    content: '';
    display: inline-block;
    width: 1em; /* Control the width of the animated area */
    text-align: left;
}

.everlit-voice-selection-popout {
    z-index: 1000; /* Ensure it's above other elements */
}

.everlit-custom-toolbar-section {
    order: -1; /* Positions it to the far right */
}

.everlit-audio.audio-only {
    border: dotted; /* Example style, adjust as needed */
    border-width: 0.16em;
}

.everlit-audio.no-audio {
    border: ridge; /* Example style, adjust as needed */
    border-width: 0.16em;
}

.everlit-voice-options{
    margin-bottom:20px;
}

.everlit-voice-line-wrapper {
    display: flex;
    align-items: center;   /* Vertical alignment */
    justify-content: flex-start; /* Horizontal alignment */
    margin-bottom:10px;
    transition: color 0.3s;
}
.everlit-voice-line-wrapper:hover{
    color: #afe8ff;
    
}
.everlit-voice-line-wrapper:hover .everlit-circle{
    background-color: #afe8ff;
}

.everlit-mixable-options{
    margin-bottom:20px;
}

.everlit-mixable-line-wrapper {
    display: flex;
    align-items: center;   /* Vertical alignment */
    justify-content: flex-start; /* Horizontal alignment */
    margin-bottom:10px;
    transition: color 0.3s;
}
.everlit-mixable-line-wrapper:hover{
    color: #afe8ff;
    
}
.everlit-mixable-line-wrapper:hover .everlit-circle{
    background-color: #afe8ff;
}

.everlit-circle{
    width:30px;
    height:30px;
    border-radius:50%;
    margin-right:5px;
    display:flex;
    justify-content:center;
    align-content:center;
    transition: background-color 0.3s;
    
}
.everlit-circle.AI-voice{
    background-color:var(--everlit-grey);
    font-size:14px;
    filter: grayscale(100%);
}
.everlit-circle.person-voice{
    background-color:var(--everlit-cyan);
}
.everlit-voice-name{
    width:110px;
}
.everlit-tag-group{
    width:50%;
    display:flex;
    justify-content:flex-start;
    align-content:center;
    max-height: 40px;
    flex-wrap:wrap;
}

.everlit-intro-outro-buttons{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:10px;
}

.everlit-tag{
    border-style:solid;
    /* margin-left:10px; */
    padding:0 5px;
    font-size:11px;
}

.everlit-mixable-tag.selected {
    /* Styling for selected tags */
    background-color: #007cba; /* Example color */
    color: white;
}

.everlit-mixable-attributes-tag{
    border-style:solid;
    /* margin-left:10px; */
    padding:0 5px;
    font-size:11px;
    margin: 2%;
}

.everlit-mixable-attributes-tag.selected{
    background-color:var(--dark-purple);
    color:white;
    cursor: pointer
}

.everlit-mixable-subjects-tag{
    border-style:solid;
    border-color:var(--everlit-cyan);
    /* margin-left:10px; */
    padding: 0 5px;
    font-size:11px;
    margin: 2%;
}
.everlit-tag.AI-voice{
    border-color:var(--everlit-grey);
    
}
.everlit-tag.person-voice{
    border-color:var(--everlit-cyan);
}

.everlit-embed-text{
    padding-right:60px;
}

.everlit-embed-size-selection{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:10% 0;
}

.everlit-slider-column-label {
    margin-bottom: 10px; 
    font-size: 1.2em;

}

.everlit-slider-group {
    display: flex;
}

.everlit-slider-column {
    flex: 1;
    padding: 0 10px;
}

.everlit-slider-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-right: 8%
}

.everlit-slider-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10%;
    height: 100px;
}

.everlit-slider-label {
    margin-top: 5px; 
}

.everlit-warning {
    color: orange;
    font-size: 1.1em;
    margin-top: 15px;
}

input[type="radio"] + .everlit-embed-label{
    cursor: pointer;
    display: flex;
    justify-content:center;
    align-items:center;
    position:relative;
    width:50%;
}

input[type="radio"] + .everlit-embed-label::before {
    content:'';
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: rgba(211, 211, 211, 0.5);
    display: inline-block;
    position: absolute;
    margin-left: 0.5lvh;

}

input[type="radio"]:checked + .everlit-embed-label::after {
    content:'';
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background:black !important;
    position: absolute;
    margin-left: 0.5lvh;

}

input[type="radio"] + .everlit-embed-label:hover::after {
    content:'';
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: absolute;
    background:grey;
    margin-left: 0.5lvh;

}

input[type="radio"] + .everlit-sponsored-embed-label{
    cursor: pointer;
    display: flex;
    justify-content:center;
    align-items:center;
    position:relative;
    width:50%;
}

input[type="radio"] + .everlit-sponsored-embed-label::before {
    content:'';
    width: 2em;
    height: 2em;
    border-radius: 50%;
    background: rgba(211, 211, 211, 0.5);
    display: inline-block;
    position: absolute;
    margin-left: 3lvh;
}

input[type="radio"]:checked + .everlit-sponsored-embed-label::after {
    content:'';
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background:black !important;
    position: absolute;
    margin-left: 3lvh;
}

input[type="radio"] + .everlit-sponsored-embed-label:hover::after {
    content:'';
    width: 1em;
    height: 1em;
    border-radius: 50%;
    position: absolute;
    background:grey;
    margin-left: 3lvh;
}

.everlit-tooltip-icon-intro {
    display: inline-block;
    cursor: help;
    color: #999;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dcdcdc;
    text-align: center;
    line-height: 20px;
    vertical-align: middle;
}

.everlit-tooltip-icon-intro:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    padding: 5px;
    background: black;
    color: white;
    border-radius: 3px;
    z-index: 1000;
    width: 200px;
    left: 31%;
    transform: translateX(-30%);
    top: 9lvh;
}

.everlit-tooltip-icon-outro {
    display: inline-block;
    cursor: help;
    color: #999;
    margin-left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #dcdcdc;
    text-align: center;
    line-height: 20px;
    vertical-align: middle;
}

.everlit-tooltip-icon-outro:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    padding: 5px;
    background: black;
    color: white;
    border-radius: 3px;
    z-index: 1000;
    width: 200px;
    left: 75%;
    transform: translateX(-30%);
    top: 9lvh;
}

 .everlit-audio-container {
    cursor: pointer;
    position: relative;
  }

  #everlit-hover {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
    pointer-events: none;
    height: 100%;
    width: 0;
    mix-blend-mode: overlay;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .everlit-audio-container:hover #hover {
    opacity: 1;
  }
  #everlit-time,
  #everlit-duration {
    position: absolute;
    z-index: 11;
    top: 8lvh;
    margin-top: -1px;
    transform: translateY(-50%);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.75);
    padding: 2px;
    color: #ddd;
  }
  #everlit-time {
    left: 0;
  }
  #everlit-duration {
    right: 0;
  }

  .everlit-audio-play-button {
    background-color: #0073aa; /* WordPress blue, adjust if needed */
    color: #ffffff;
    border: none;
    border-radius: 50%; /* Makes it a circle */
    width: 2.5lvh;
    height: 2.5lvh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    content: '▶';
    margin-left:auto;
    position: relative;
    z-index: 999;
    margin-top: -17%;
    margin-right: 45%;
    margin-bottom: 20px;
}

.everlit-audio-play-button:hover{
    background-color:rgb(0, 93, 138);
    transition: background-color 0.3s;
}

.everlit-audio-play-button.play {
    /* Unicode for play symbol */
    content: '▶';
}

.everlit-audio-play-button.playing {
    /* Add a simple wiggle or shake animation 
    animation: wiggle 0.5s infinite alternate; */
    background:purple; 
}

.everlit-tag-columns {
    display: flex;
    justify-content: space-between;
    width: 60%;
}

.everlit-tag-column {
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}


