:root {
    --brand-color-main: #5a67d8;
    --brand-color-complementary: #ffb700f9;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
}

html, body {
    height: 100%;
    margin: 0;
}

.main-content {
    flex-grow: 1;
}

.vertical-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Add the following to your existing styles */
#errorContainer,
#progressContainer,
#videoPlayerContainer,
#videoContainer {
    text-align: center;
}

#videoPlayer {
    max-width: 100%;
    margin: 0 auto;
}

#downloadButton {
    background-color: #5a67d8;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
    display: inline-block;
    margin-top: 10px;
}

#downloadButton:hover {
    background-color: #434190;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    align-items: center;
    box-sizing: border-box; /* add this */
}
#generateButtonContainer {
    text-align: center;
}

h1 {
    display: block;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 20px;
    color: #444;
}

.beta {
    color: --brand-color-main;
    font-size: 1rem;
    position: relative;
    top: -1.6em;  /* Adjust this value to fine-tune the vertical position */
}


h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
    color: #444;
}

h3 {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 20px;
    color: #444;
}

/* Form Styles */

.copy-button {
    position: relative;
    background-color: #f1f1f1;
    border: none;
    font-size: 12px;
    color: #333;
    padding: 5px 10px;
    cursor: pointer;
    margin-left: 5px;
    margin-bottom: 10px;
    border-radius: 5px;
    float: right;
}

.copy-button:hover {
    background-color: #ddd;
}


form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    background-color: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}

.form-group > label {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #444;
}

label {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 3px;
    margin-bottom: 3px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
    resize: none;
    word-wrap: break-word;
}

input[type="checkbox"] {
    margin-bottom: 10px;
}

.panel {
    display: none;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    background-color: #f7f7f7;
    padding: 10px;
    border-radius: 5px;
}

.container #submitButton {
    background-color: #5a67d8;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    align-items: center;
}

.container #submitButton :hover {
    background-color: #434190;
}

fieldset {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.field {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

legend {
    font-weight: bold;
    color: #444;
}
.slider-container {
    display: flex;
    flex: 1;
    width: 100%;
}

/* Navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    background-color: #FFFFFF;
    overflow-x: auto;
  }
  
#logoLink {
    display: inline-block; /* This will allow the anchor to wrap tightly around the image */
    text-decoration: none; /* Removes underline if any */
    border: none; /* Removes any border */
    padding: 0; /* Removes any padding */
    margin: 0; /* Removes any margin */
    background: none; /* Removes any background */
    cursor: pointer; /* Changes the cursor to a hand when hovering over the link */
}



div.navbar img.logo {
    max-height: 60px; /* Adjust this percentage as needed */
    width: auto; /* Ensure the width adjusts automatically */
}

.navbar a.nav {
    background-color: transparent;
    color: #111111;
    border: none;
    margin-right: auto;
    text-align: center;
    text-decoration: none;
    padding: 8px 16px;
    font-weight: 500;
    font-size: 1.2rem;    
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar #availableSeconds {
    margin-right: 15px;
    font-weight: 600;
    padding: 8px;
    border:rgba(0, 0, 0, 0.5) 1px solid;
    border-radius: 5px;
}

.specialButton {
    background-color: #3e8e41;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.defaultButton {
    background-color: #5A67D8;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.nav-container {
    display: flex;
    justify-content: center;
    font-size: 16px;
}

.right-section {
    display: flex;
    align-items: center;
}

/* Styles for the modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    text-align: center;
    border-radius: 5px;
}

.close-button {
    float: right;
    width: 30px; 
    height: 30px;
    text-align: center;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    line-height: 30px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles for the footer */

.footer {
    display: flex;
    background-color: #f8f8f8;
    padding: 20px;
    justify-content: space-evenly;
    color: #333;
}

.footer h3 {
    margin-bottom: 15px;
    font-weight: 700;
    text-align: left;
}

.footer-col {
    flex-basis: 30%;
}

.footer ul {
    list-style-type: none;
    padding: 0;
}

.footer li {
    margin-bottom: 10px;
}

.footer a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: --brand-color-complementary;
}

.footer-bottom {
    background-color: #efefef;
    padding: 10px 0;
    color: #444;
}
.voice-options {
    position: relative;
    display: inline-block;
}

.lock-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none; /* Initially hidden */
}

.lock-icon i {
    cursor: pointer;
}

.lock-icon .hover-text {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position the text above the icon */
    left: 50%;
    margin-left: -60px; /* Center the text */
    opacity: 0;
    transition: opacity 0.3s;
}

.lock-icon:hover .hover-text {
    visibility: visible;
    opacity: 1;
}

#font {
    font-size: 18px; /* Adjust the size as desired */
}

/* CSS styles for the Description and Transcript buttons */
.metadata-buttons {
    display: flex;
    justify-content: start;
}

.badge {
    background-color: rgb(255, 0, 0);
    border-radius: 50%;
    color: white;
    font-size: 18px;
    font-weight: bolder;
    height: 30px;
    width: 30px;
    position: absolute;
    top: -11px;
    right: -5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.button-with-badge {
    position: relative;
    display: inline-block;
}


.video-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-item {
    display: flex;
    align-items: flex-start;
    margin: 16px;
    border: 1px solid #ccc;
    box-shadow: #111111;
    padding: 16px;
    border-radius: 8px;
    max-width: 90%; /* Adjust as needed */
    min-width: 60%;
}

.video-container {
    width: 40%;
    position: relative;
    padding-bottom: 22.5%; /* 9:16 aspect ratio */
    margin-right: 16px;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.metadata-container {
    width: 60%; /* Remaining space */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.title {
    font-size: 18px;
    font-weight: bold;
}

.smallText {
    font-size: 12px;
    color: #333;
    margin-top: 4px;
    display: flex;
    justify-content: start;
}

.clickable {
    cursor: pointer;
    color: blue;
    text-decoration: underline;
}

.tooltip {
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    max-width: 400px; /* Adjust as needed */
    z-index: 1000; /* Ensure it's on top of other content */
}

.tooltip2 {
    display: inline-block;
    position: relative;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 4px;
    border-radius: 4px;
    transition: opacity 0.3s;
    margin-left: 10px;
    font-size: 0.8em;
}


/*Script Preview*/

#script {
    width: 100%;
    padding: 10px;
    overflow-y: hidden;  /* Hide vertical scrollbar */
    height: 40px; 
    white-space: pre-wrap; 
    word-wrap: break-word; 
    box-sizing: border-box; 
}

#output {
    border: 1px solid #ccc; /* Optional: add a border to indicate it's a scrollable container */
    padding: 5px;
    margin-bottom: 10px;
}

#output > div {
    border: 1px solid black;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    min-height: 40px; 
    word-wrap: break-word; 
    overflow-wrap: break-word;
    box-sizing: border-box; 
}

.line-number {         
    font-weight: bold;     
    margin-right: 10px;
}

#previewLabel {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}


/*Accordion*/

.accordion-content {
    border: 1px solid transparent;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.accordion-button {
    cursor: pointer;
    width: 100%;
    text-align: left;
    outline: none;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background-color: #f1f1f1;
    transition: background-color 0.2s ease-out;
    font-weight: bold;
    font-size: 16px;
}

.accordion-button:hover {
    background-color: #e6e6e6;
}

.accordion-button:after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
    float: right;
}

.accordion-content.show {
    max-height: 2000px; /* you can adjust this value based on your needs */
    border-color: #ccc;
}

.accordion-button.active:after {
    content: "\2796"; /* Unicode character for "minus" sign (-) */
}
