.fit-content {
    width: fit-content;
}

.playbook_container {
    max-width: 960px;
}

.content_container {
    max-width: 1320px;
}

.nav-masthead .nav-link {
    color: rgba(0, 0, 0, 0.5);
    border-bottom: .25rem solid transparent;
  }
  
  .nav-masthead .nav-link:hover,
  .nav-masthead .nav-link:focus {
    border-bottom-color: rgba(40, 0, 238, 0.798);
  }
  
  .nav-masthead .nav-link + .nav-link {
    margin-left: 1rem;
  }
  
  .nav-masthead .active {
    color: #000000;
    border-bottom-color: #ff0000;
  }

.htmx-request .loading, .htmx-request.loading {
    opacity: 1;
    animation: fade 3s infinite;
}

@keyframes fade {
  0%,100% { opacity: .3 }
  50% { opacity: 1 }
}

span.add {
    color: green;
    background: lightgreen;
}

span.remove {
    color: red;
    background: lightcoral;
}

.history-button {
    padding: 0 4px 3px 4px !important;
    font-size: 11px !important;
    border-radius: 0 !important;
    color: gray;
    border-bottom: 2px solid white;
}

.history-button.active {
    border-bottom: 2px solid blue;
    background: inherit !important;
    color: black !important;
}

div.modified_object pre {
    white-space: pre-wrap;
    margin: 0 !important;
    font-size: 14px;
}

span.added, span.removed {
    padding: 0 4px;
}

span.added {
    color: rgb(0, 111, 0);
    background: rgba(0, 161, 0, 0.513);
}

span.removed {
    color: rgb(124, 0, 0);
    background: rgba(187, 0, 0, 0.5);
}

div.modified_object div.history_note, div.modified_object div.history_step, div.modified_object div.history_playbook {
    border-left: 3px solid rgb(220, 220, 220);
    padding-left: 10px;
    margin-left: 10px;
}

div.history_content {
}

div.popover-body {
    padding: 3px;
    margin: 0;
}

ul#description_option_tab .active {
    font-weight: bold;
}

.image_modal {
    cursor: pointer !important;
}

div.article_link:hover div.article_icon {
    background-color: #757575 !important;
}

div.post_content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

div.post_content p {
    font-family: "Bitter", serif;
}

div.post_content ul, div.post_content ol {
    font-family: "Bitter", serif;
    margin-bottom: 25px !important;
    margin-left: 10px !important;
}

div.post_content ul, div.post_content ol {

}

.code-style {
    font-family: monospace;
    color: #333;
    padding: 10px;
    border: none;
    background: inherit;
    overflow: hidden; /* Hide scrollbar */
    resize: none; /* Disable manual resizing */
    font-size: 14px;
}

div#markdown_content p, div#markdown_content ul, div#markdown_content ol {
    font-family: "Bitter", serif;
}

div.audience_content h2 {
    font-size: 24px;
    margin-top: 20px;
}

.masonry-container {
    column-count: 1 !important;  /* Number of columns */
}

@media (min-width: 768px) {
    .masonry-container {
        column-count: 2 !important;
    }
}

.masonry-container-3 {
    column-count: 1 !important;  /* Number of columns */
}

@media (min-width: 768px) {
    .masonry-container-3 {
        column-count: 3 !important;
    }
}

.masonry-item {
    break-inside: avoid !important; /* Prevents items from being split across columns */
}

span#audioDuration {
    font-family: 'Courier New', monospace;
}

div#playbook_initializing_steps p {
    font-family: 'Courier New', monospace;
    color: white;
    margin: 3px;
    opacity: 0;
    animation: fadeIn 1s forwards;
    display: inline !important;
}

#playbook_initializing_steps p:nth-child(1) {
    /* The first child is always visible, so no delay is needed */
}

#playbook_initializing_steps p:nth-child(2) {
    animation-delay: 3s; /* Starts 3 seconds after the first */
}

#playbook_initializing_steps p:nth-child(3) {
    animation-delay: 6s; /* 3 seconds after the second */
}

#playbook_initializing_steps p:nth-child(4) {
    animation-delay: 9s; /* and so on... */
}

#playbook_initializing_steps p:nth-child(5) {
    animation-delay: 12s;
}

#playbook_initializing_steps p:nth-child(6) {
    animation-delay: 15s;
}

#playbook_initializing_steps p:nth-child(7) {
    animation-delay: 18s;
}

#playbook_initializing_steps p:nth-child(8) {
    animation-delay: 21s;
}

#playbook_initializing_steps p:nth-child(9) {
    animation-delay: 24s;
}

#playbook_initializing_steps p:nth-child(10) {
    animation-delay: 27s;
}

#playbook_initializing_steps p:nth-child(11) {
    animation-delay: 30s;
}

#playbook_initializing_steps p:nth-child(12) {
    animation-delay: 33s;
}

#playbook_initializing_steps p:nth-child(13) {
    animation-delay: 36s;
}

#playbook_initializing_steps p:nth-child(14) {
    animation-delay: 39s;
}

#playbook_initializing_steps p:nth-child(15) {
    animation-delay: 42s;
}

#playbook_initializing_steps p:nth-child(16) {
    animation-delay: 45s;
}

#playbook_initializing_steps p:nth-child(17) {
    animation-delay: 48s;
}

#playbook_initializing_steps p:nth-child(18) {
    animation-delay: 51s;
}

#playbook_initializing_steps p:nth-child(19) {
    animation-delay: 54s;
}

#playbook_initializing_steps p:nth-child(20) {
    animation-delay: 57s;
}



@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.sanserif {

}

.iframe-container {
    position: relative;
    width: 100%; /* or any desired width */
    padding-top: 56.25%; /* Aspect Ratio (height / width * 100%) for 16:9 */
    overflow: hidden;
    margin-bottom: 30px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

#playbook_nav {
    margin-bottom: -2px !important;
}

#playbook_nav .active {
    border-width: 3px;
}

#playbook_nav .nav-link:hover:not(.active) {
    background: rgba(255, 255, 255, 0.7) ;
    border-color: rgba(255, 255, 255, 0.7) ;
}

div.icons figure {
    max-width: 100px;
}

body.content_body {
    background: rgba(173, 181, 189, 0.552) !important;
}

@media (max-width: 767.98px) {
    .btn-md-sm {
      padding: .375rem .5rem;
      font-size: 1rem;
      line-height: 1.5;
      border-radius: .75rem;
    }
  }

.text-primary-light {
    color: rgb(185, 208, 245);
}

div.element p {
    font-family: "Bitter", serif;
}

div.box-hover:hover {
    box-shadow: 0 0 0 0.25rem rgba(0, 0, 0, 0.25);
}

a.link-hover-underline:hover {
    text-decoration: underline !important;
}

div.sop {
    border: 1px solid rgba(0, 0, 0, 0.322);
    background: rgba(255, 255, 255, 0.525);
    margin-bottom: 20px;
    border-radius: 0.5rem;
}

div.sop ol {
    margin-left: 0 !important;
    margin-top: 20px !important;
}

div.sop h3 {
    text-decoration: underline;
    text-align: center;
}

.serif {
    font-family: "Bitter", serif !important;
}