/* Live API */

.code-placeholder {
    height: auto;
    width: auto;
    border: 1px solid #eeebee;
    padding: 10px;
}

.element-hidden {
    visibility: hidden;
}

.visible-false {
    display: none;
}

.visible-true {
    display: block;
}

.input-form {
    margin-top: 20px;
}

.input-field {
    display: flex;
    align-items: end;
    justify-content: space-between;
}

.input-field-row {
    width: 100%;
}

.input-field-row>*:not(:last-child) {
    display: block;
    margin-bottom: 10px;
}

input[type=text],
input[type=number],
textarea,
select {
    line-height: 1.5;
    border: 1px solid #eeebee;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: transparent !important;
}

.input-element {
    width: 95%;
}

input[type=text]:focus,
input[type=number]:focus,
textarea:focus,
select:focus {
    outline: none !important;
    border: 1px solid #5739ce;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), 0 4px 10px rgba(0, 0, 0, 0.12);
}

.http-status-good {
    color: green;
}

.http-status-bad {
    color: red;
}

.required-input-field {
    color: red;
}

.spinner {
    animation-name: spinner-rotate;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: bezier;
}

@keyframes spinner-rotate {
    100% {
        transform: rotate(360deg);
    }
}

.audio-speaker {
    animation-name: size-and-tilt-change;
    animation-duration: 4s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes size-and-tilt-change {
    0% {
        transform: scale(1) rotate(0deg);
    }

    10% {
        transform: scale(1.1) rotate(10deg);
    }

    20% {
        transform: scale(1.2) rotate(20deg);
    }

    30% {
        transform: scale(1.3) rotate(30deg);
    }

    40% {
        transform: scale(1.4) rotate(20deg);
    }

    50% {
        transform: scale(1.5) rotate(10deg);
    }

    60% {
        transform: scale(1.4) rotate(0deg);
    }

    70% {
        transform: scale(1.3) rotate(-10deg);
    }

    80% {
        transform: scale(1.2) rotate(-20deg);
    }

    90% {
        transform: scale(1.1) rotate(-30deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

/* https://github.com/Ovski4/jekyll-tabs */

.tab {
    display: flex;
    flex-wrap: wrap;
    margin-left: -20px;
    padding: 0;
    list-style: none;
    position: relative;
}

.tab>* {
    flex: none;
    padding-left: 20px;
    position: relative;
}

.tab>*>a {
    display: block;
    text-align: center;
    padding: 9px 20px;
    color: #999;
    border-bottom: 2px solid transparent;
    border-bottom-color: transparent;
    font-size: 12px;
    /* text-transform: uppercase; */
    transition: color .1s ease-in-out;
    line-height: 20px;
}

.tab>.active>a {
    color: #222;
    opacity: 1;
    border-color: #5739ce;
}

.tab>li>a {
    color: #222;
    opacity: 0.65;
    text-decoration: none;
    cursor: pointer;
}

.tab-content {
    padding: 0;
}

.tab-content>li {
    display: none;
}

.tab>li::before {
    content: none !important;
}

.tab-content>li.active {
    display: initial;
}

.tab-content>li.active::before {
    content: none !important;
}

ul.tab,
ul.tab-content {
    padding-left: 0px !important;
}

/* Overrides */

.breadcrumb-nav-list-item::after {
    content: "»";
}

.site-footer {
    display: none;
}

p>img {
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.08);
}

.site-logo {
    display: flex;
    justify-content: flex-end;
    align-content: baseline;
    align-items: center;
    font-size: small;
}

.site-logo:after {
    content: "Experimental API";
}

.site-title {
    padding-top: 2px;
    padding-bottom: 2px;
}

.search-input-wrap {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 50rem) {
    .search-input-wrap:has(input.search-input) {
        background: #fff;
    }
}

.background-method-wss {
    background-color: rgba(255, 235, 130, 0.2);
}

.background-method-post {
    background-color: rgba(65, 214, 147, 0.2);
}

.background-method-put {
    background-color: rgba(65, 214, 147, 0.2);
}

.background-method-get {
    background-color: rgba(44, 132, 250, 0.2);
}

.background-method-delete {
    background-color: rgba(247, 126, 126, 0.2);
}

a.nav-list-link {
    text-wrap: nowrap;
}

.audio-player {
    width: 300px;
    /* Set a fixed width for better control */
    height: 24px;
    /* Reduce the height to minimize the player's size */
    margin-top: 5px;
    padding: 0;
    /* Remove padding */
    border: none;
    /* Remove border */
    background-color: transparent;
    /* Make background transparent */
}

/* Additional input range styling for browsers matching the pseudo-element */
.audio-player::-webkit-media-controls-panel,
.audio-player::-webkit-media-controls-play-button,
.audio-player::-webkit-media-controls-start-playback-button {
    background-color: transparent;
    padding: 0;
    margin: 0;
    height: 18px;
    /* Make buttons smaller */
    width: auto;
}

.audio-player::-webkit-media-controls-mute-button {
    transform: scale(0.8);
    /* Scale down the mute button */
}
.aux-nav {
    font-size: 1rem !important;
}

input#search-input.search-input:not(:hover):not(:focus) {
    border: none;
}

/* Midjourney v3 Media Links */

.media-links-container {
    background: #f0f7ff;
    border-left: 4px solid #0066cc;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.media-link {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: #0066cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
}

.media-link:hover {
    background: #0052a3;
    color: white;
}

.media-link.image::before {
    content: "🖼️ ";
}

.media-link.video::before {
    content: "🎬 ";
}

.media-link.attachment::before {
    content: "📎 ";
}

/* Media links container styling */
div[id$="-media-links"] {
    margin-top: 16px;
}

.media-links-container {
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.media-links-container strong {
    font-size: 0.95em;
}
