.string {
    color: green;
}

.number {
    color: darkorange;
}

.boolean {
    color: blue;
}

.null {
    color: magenta;
}

.key {
    color: red;
    font-weight: bold;
}

.button.is-danger {
    font-weight: bold;
}

.button.is-light {
    display: flex; /* Ensure content inside the button is treated as flex items */
    align-items: center; /* Vertically align the content inside the button */
    justify-content: center; /* Center-align the content horizontally */
    line-height: 1; /* Ensure consistent text height */
    height: 40px; /* Explicit height to match adjacent elements */
}

.alignment-container {
    display: flex; /* Enables Flexbox layout */
    align-items: center; /* Vertically aligns all child items in the center */
    gap: 10px; /* Adds spacing between the child items */
}

.media-container {
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Default to center */
    flex-wrap: wrap;
}

.carousel {
    flex: 3 1 0; /* 75% width */
    box-sizing: border-box;
    margin-right: 10px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
}

.carousel img {
    position: relative; /* Added for overlay positioning */
    height: auto;
    flex-shrink: 0;
    margin-right: 10px;
}

.video-audio-container {
    width: 300px;
}

.video-container {
    position: relative;
    flex: 1 1 0; /* 25% width */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-container {
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center the audio players horizontally */
    justify-content: flex-start; /* Align audio players to the top */
    gap: 5px; /* Add spacing between audio players */
    box-sizing: border-box; /* Include padding and border in width */
}

.audio-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: -30px;
}

.audio-item i {
    font-size: 20px; /* Icon size */
    color: #007bff; /* Default blue color */
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.audio-item i:hover {
    color: #0056b3; /* Darker blue on hover */
    transform: scale(1.2); /* Slightly enlarge on hover */
}

/* When video is hidden */
.media-container.no-video {
    justify-content: center;
}

.media-container.no-video .carousel {
    margin-right: 0;
    flex: none;
    /* width: 100%; */
    justify-content: center; /* Center images inside carousel */
}

.image-wrapper {
    position: relative;
    display: inline-block;
}

.image-wrapper img {
    display: block;
}

.buttons {
    display: flex; /* Flexbox ensures consistent layout */
    flex-wrap: wrap; /* Allow buttons to wrap to the next line if necessary */
    justify-content: left; /* Center the buttons horizontally */
    align-items: center; /* Align buttons vertically */
    gap: 10px; /* Uniform spacing between buttons */
    width: 100%; /* Ensure the container spans full width */
    box-sizing: border-box; /* Prevent width calculations from breaking layout */
}

.button:hover {
    opacity: 0.9; /* Slight transparency on hover */
}

.custom-select:hover {
    box-shadow: 0 0 0 2px rgba(32, 156, 238, 0.7); /* Darker focus ring on hover */
}

/* Container for Buttons and Drop-downs */
.control-container {
    display: flex; /* Enables Flexbox */
    justify-content: space-between; /* Distributes space between items */
    align-items: center; /* Vertically centers items */
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    gap: 10px; /* Adds spacing between items */
    margin-bottom: 20px; /* Adds space below the container */
}

/* Buttons Group Styling */
.buttons-group {
    display: flex; /* Enables Flexbox for buttons */
    gap: 10px; /* Spacing between buttons */
    flex-wrap: wrap; /* Allows buttons to wrap on smaller screens */
}

/* Drop-downs Container Styling */
.dropdown-controls {
    display: flex; /* Enables Flexbox */
    align-items: center; /* Vertically centers drop-downs */
    gap: 20px; /* Spacing between drop-down fields */
    flex-wrap: wrap; /* Allows drop-downs to wrap on smaller screens */
}

.dropdown-controls .field {
    margin-right: 20px; /* Adjust as needed */
}

/* Individual Drop-down Field Styling */
.dropdown-field {
    display: flex; /* Enables Flexbox */
    flex-direction: column; /* Stacks label above select */
    align-items: flex-start; /* Aligns items to the start */
}

/* Label Styling */
.dropdown-field .label {
    margin-bottom: 2px; /* Space between label and select */
    font-size: 0.875rem; /* Slightly smaller font size */
    color: #209cee; /* Matching blue color */
    text-align: left;
}

.custom-select {
    width: 150px;
}

/* Focus State for Select Elements */
.custom-select:focus {
    outline: none; /* Remove default focus outline */
    box-shadow: 0 0 0 2px rgba(32, 156, 238, 0.5); /* Subtle focus ring */
}

.global-dropdowns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.field, .control {
    flex: 1; /* Allow flex items to grow */
}

.published-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

.subtitle {
    /* Remove default margin */
    padding: 0; /* Remove padding */
    line-height: normal; /* Ensure consistent alignment */
    text-transform: uppercase; /* Capitalize the text */
    font-weight: bold; /* Make the text bold */
    font-size: 42px;
    margin-bottom: 0 !important;
}

.field textarea.textarea.bold_parts {
    height: 100px; /* Set the fixed height */
}

.field textarea.textarea {
    height: 60px !important; /* Force height to 60px */
}

.errorbox {
    margin-bottom: 20px;
}

.spinner {
    justify-content: center; /* Horizontally center content within the spinner */
    align-items: center; /* Vertically align spinner squares */
    position: relative;
    width: 204px;
    height: 45px; /* 25px height + 20px padding */
    margin: auto;
    padding-bottom: 20px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    line-height: normal; /* Ensure consistent alignment */
    margin-top: 20px;
}

.spinningSquaresG {
    position: absolute;
    top: 0;
    background-color: rgb(1, 16, 38);
    width: 25px;
    height: 25px;
    animation-name: bounce_spinningSquaresG;
    -o-animation-name: bounce_spinningSquaresG;
    -ms-animation-name: bounce_spinningSquaresG;
    -webkit-animation-name: bounce_spinningSquaresG;
    -moz-animation-name: bounce_spinningSquaresG;
    animation-duration: 0.905s;
    -o-animation-duration: 0.905s;
    -ms-animation-duration: 0.905s;
    -webkit-animation-duration: 0.905s;
    -moz-animation-duration: 0.905s;
    animation-iteration-count: infinite;
    -o-animation-iteration-count: infinite;
    -ms-animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    animation-direction: normal;
    -o-animation-direction: normal;
    -ms-animation-direction: normal;
    -webkit-animation-direction: normal;
    -moz-animation-direction: normal;
    transform: scale(.3);
    -o-transform: scale(.3);
    -ms-transform: scale(.3);
    -webkit-transform: scale(.3);
    -moz-transform: scale(.3);
}

#spinningSquaresG_1 {
    left: 0;
    animation-delay: 0.366s;
    -o-animation-delay: 0.366s;
    -ms-animation-delay: 0.366s;
    -webkit-animation-delay: 0.366s;
    -moz-animation-delay: 0.366s;
}

#spinningSquaresG_2 {
    left: 25px;
    animation-delay: 0.4525s;
    -o-animation-delay: 0.4525s;
    -ms-animation-delay: 0.4525s;
    -webkit-animation-delay: 0.4525s;
    -moz-animation-delay: 0.4525s;
}

#spinningSquaresG_3 {
    left: 51px;
    animation-delay: 0.549s;
    -o-animation-delay: 0.549s;
    -ms-animation-delay: 0.549s;
    -webkit-animation-delay: 0.549s;
    -moz-animation-delay: 0.549s;
}

#spinningSquaresG_4 {
    left: 76px;
    animation-delay: 0.6355s;
    -o-animation-delay: 0.6355s;
    -ms-animation-delay: 0.6355s;
    -webkit-animation-delay: 0.6355s;
    -moz-animation-delay: 0.6355s;
}

#spinningSquaresG_5 {
    left: 102px;
    animation-delay: 0.732s;
    -o-animation-delay: 0.732s;
    -ms-animation-delay: 0.732s;
    -webkit-animation-delay: 0.732s;
    -moz-animation-delay: 0.732s;
}

#spinningSquaresG_6 {
    left: 127px;
    animation-delay: 0.8185s;
    -o-animation-delay: 0.8185s;
    -ms-animation-delay: 0.8185s;
    -webkit-animation-delay: 0.8185s;
    -moz-animation-delay: 0.8185s;
}

#spinningSquaresG_7 {
    left: 153px;
    animation-delay: 0.905s;
    -o-animation-delay: 0.905s;
    -ms-animation-delay: 0.905s;
    -webkit-animation-delay: 0.905s;
    -moz-animation-delay: 0.905s;
}

#spinningSquaresG_8 {
    left: 178px;
    animation-delay: 1.0015s;
    -o-animation-delay: 1.0015s;
    -ms-animation-delay: 1.0015s;
    -webkit-animation-delay: 1.0015s;
    -moz-animation-delay: 1.0015s;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .control-container {
        flex-direction: column; /* Stack buttons and drop-downs vertically */
        align-items: flex-start; /* Align items to the start */
    }

    .dropdown-controls {
        justify-content: flex-start; /* Align drop-downs to the start */
        gap: 15px; /* Adjust gap for smaller screens */
    }

    .dropdown-field {
        width: 100%; /* Full width for drop-downs */
    }

    .global-dropdowns,
    .field,
    .control {
        width: 100%;
    }

    .field .control .custom-select {
        width: 100% !important;
        max-width: 100%;
        box-sizing: border-box; /* Ensure padding and borders are included */
    }

    .global-dropdowns {
        flex-direction: column;
        align-items: stretch;
    }

    .media-container {
        flex-direction: column;
        align-items: center;
        width: 100%; /* Ensure it does not exceed screen width */
    }

    .video-container {
        width: calc(100% - 20px); /* Add padding if needed */
        max-width: 100%; /* Ensure it stays within the screen */
        box-sizing: border-box; /* Include padding/borders in width calculation */
    }

    .carousel,
    .video-container {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }

    video, video-js {
        width: 90%; /* Stretch to container */
        height: auto; /* Maintain aspect ratio */
    }

    .carousel {
        width: calc(100% - 20px); /* Add padding if necessary */
        margin-right: 0;
        margin-bottom: 10px;
    }

    .carousel img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .spinner {
        width: 100px; /* Reduce spinner width */
        height: 30px; /* Reduce spinner height */
        margin-top: 10px; /* Adjust top margin */
        padding-bottom: 10px; /* Adjust padding */
        position: relative; /* Maintain relative positioning */
    }

    .spinningSquaresG {
        width: 10px; /* Scale down square width */
        height: 10px; /* Scale down square height */
        background-color: rgb(1, 16, 38); /* Ensure visibility */
    }

    #spinningSquaresG_1 {
        left: 0;
    }

    #spinningSquaresG_2 {
        left: 15px;
    }

    #spinningSquaresG_3 {
        left: 30px;
    }

    #spinningSquaresG_4 {
        left: 45px;
    }

    #spinningSquaresG_5 {
        left: 60px;
    }

    #spinningSquaresG_6 {
        left: 75px;
    }

    #spinningSquaresG_7 {
        left: 90px;
    }

    #spinningSquaresG_8 {
        left: 105px;
    }

    .buttons {
        flex-direction: column; /* Stack buttons vertically on small screens */
        align-items: stretch; /* Ensure buttons align uniformly across the container */
    }

    .buttons button {
        flex: 1; /* Make buttons take equal width */
        width: 100%; /* Ensure full width */
    }

    .media-container {
        flex-direction: column; /* Stack images and video vertically */
        align-items: center; /* Center items horizontally */
    }

    .carousel,
    .video-container {
        width: 100%; /* Make both take full width */
        margin-right: 0; /* Reset margins */
        margin-bottom: 10px; /* Add spacing between the two */
    }

    .carousel,
    .audio-container {
        width: 100%; /* Make both take full width */
        margin-right: 0; /* Reset margins */
        margin-bottom: 10px; /* Add spacing between the two */
    }

    .control.buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Make buttons span full width */
    }

    .control.buttons button {
        width: 100%; /* Ensure buttons take up full width */
    }
}

@keyframes bounce_spinningSquaresG {
    0% {
        transform: scale(1);
        background-color: rgb(0, 0, 0);
    }
    100% {
        transform: scale(.3) rotate(90deg);
        background-color: rgb(255, 255, 255);
    }
}

@-o-keyframes bounce_spinningSquaresG {
    0% {
        -o-transform: scale(1);
        background-color: rgb(0, 0, 0);
    }
    100% {
        -o-transform: scale(.3) rotate(90deg);
        background-color: rgb(255, 255, 255);
    }
}

@-ms-keyframes bounce_spinningSquaresG {
    0% {
        -ms-transform: scale(1);
        background-color: rgb(0, 0, 0);
    }
    100% {
        -ms-transform: scale(.3) rotate(90deg);
        background-color: rgb(255, 255, 255);
    }
}

@-webkit-keyframes bounce_spinningSquaresG {
    0% {
        -webkit-transform: scale(1);
        background-color: rgb(0, 0, 0);
    }
    100% {
        -webkit-transform: scale(.3) rotate(90deg);
        background-color: rgb(255, 255, 255);
    }
}

@-moz-keyframes bounce_spinningSquaresG {
    0% {
        -moz-transform: scale(1);
        background-color: rgb(0, 0, 0);
    }
    100% {
        -moz-transform: scale(.3) rotate(90deg);
        background-color: rgb(255, 255, 255);
    }
}