/**
 *  TKCS - CUSTOMIZING BOOTSTRAP COMPONENTS
 */ 

#playlistSortable,
#playlistSortable * {

    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;

}

.playlist-item {

    margin-bottom: 1rem;

    border-radius: 12px;

}

/* Floating dragged item */
.sortable-fallback {

    background: #3b4452;

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.35);

}

/* Placeholder in original position */
.sortable-ghost {

    background: rgba(255,255,255,0.04);

    border: 2px dashed rgba(255,255,255,0.25);

}



/* Selected item */
.sortable-chosen {

    opacity: 0;

}

/* Placeholder between items */
/*.sortable-drag-placeholder {

    height: 88px;

    margin-bottom: 1rem;

    border-radius: 12px;

    border: 2px dashed rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.04);

}
*/

/* REAL PLACEHOLDER */
.sortable-drag-placeholder {

    height: 88px;

    margin-bottom: 1rem;

    border-radius: 12px;

    border: 2px dashed rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.04);

}

/* Dragged item */
.sortable-ghost {

    opacity: 1;

    border: 2px dashed rgba(255,255,255,0.25);

    background: rgba(255,255,255,0.04);

}



/* Floating dragged element */
.sortable-fallback {

    opacity: 0 !important;

    background: #3b4452 !important;

    border-radius: 12px;

    box-shadow: 0 15px 35px rgba(0,0,0,0.45);

    z-index: 99999 !important;

}

.drag-icon {

    cursor: grab;

    touch-action: none;

    -webkit-user-drag: none;

}

        .playlist-item {
            cursor: move;
            transition: all 0.2s ease;
            border-radius: 12px;
            min-height: 90px;
        }

        .playlist-item:hover {
            transform: translateY(-2px);
        }

        .drag-icon {
            cursor: grab;
            font-size: 22px;
            color: #9aa0ac;
            width: 30px;
        }

        .song-index {
            font-size: 28px;
            font-weight: 700;
            color: #dfe4ea;
            width: 40px;
        }

        .song-info h4 {
            margin: 0;
            font-size: 24px;
            font-weight: 600;
            color: #ffffff;
        }

        .song-info p {
            margin: 0;
            font-size: 16px;
            color: #9aa0ac;
        }

        .sortable-placeholder {
            height: 90px;
            border: 2px dashed rgba(255,255,255,0.2);
            border-radius: 12px;
            margin-bottom: 1rem;
            background: rgba(255,255,255,0.03);
        }
 
.song-line {

    white-space: pre-wrap;

    font-family: monospace;

    margin: 0;

    padding: 0;
}

/*
|--------------------------------------------------------------------------
| GENERATED CHORD LINE
|--------------------------------------------------------------------------
|
| generated from inline chords
|
*/

.song-line.chords-above {

    line-height: 1.3;

    margin-bottom: -6px;
        color: #4fc3ff;

    font-weight: bold;
}

/*
|--------------------------------------------------------------------------
| NORMAL LYRICS
|--------------------------------------------------------------------------
*/

.song-line.lyrics {

    line-height: 1.25;

    margin-bottom: 2px;
}

/*
|--------------------------------------------------------------------------
| STANDALONE CHORD LINES
|--------------------------------------------------------------------------
|
| Example:
| E A D
| Emi Hmi C
|
*/

.song-line.chords-inline {

    line-height: 1.3;

    //margin-top: 2px;

    margin-bottom: -6px;
}

/*
|--------------------------------------------------------------------------
| CHORD STYLE
|--------------------------------------------------------------------------
*/

.chord {

    color: #4fc3ff;

    font-weight: bold;
}


.modal-content {
    display: flex;
    flex-direction: column;
    height: 80vh;
}

#bottom-modal .modal-content {
    display: flex;
    flex-direction: column;
    height: auto;
} 
 

.modal-body {
    flex: 1;
    overflow: hidden;
}

.modal-body form {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-body textarea {
    flex: 1;
    resize: none;
    overflow-y: auto;
}

#ajaxConfirmModal .modal-content {
    height: 90vh;
    display: flex;
    flex-direction: column;
}

#ajaxConfirmModal .modal-body {
    flex: 1;
    overflow: hidden;
}

#ajaxConfirmModal textarea {
    width: 100%;
    height: 60vh;
    resize: none;
    overflow-y: auto;
    font-family: monospace; /* IMPORTANT for tabs */
}
/*
.modal-full-height .modal-content {
    height: 90vh;
}*/

.modal-full-height .modal-body {
    overflow-y: auto;
}


/**
 *  TKCS - VARIABLES
 */ 

    .chord-container {
      display: inline-block;
      margin: 20px;
      text-align: center;
    }
    .chord-title {
      font-weight: bold;
      margin-bottom: 5px;
    }
    .chord-diagram {
      display: grid;
      grid-template-columns: repeat(6, 30px);
      grid-template-rows: repeat(5, 30px);
      gap: 2px;
      position: relative;
    }
    .chord-diagram .string {
      width: 100%;
      height: 5px;
      background: #ccc;
    }
    .chord-diagram .fret {
      width: 30px;
      height: 30px;
      border: 1px solid #999;
      position: relative;
    }
    .chord-diagram .marker {
      width: 20px;
      height: 20px;
      background: #333;
      border-radius: 50%;
      position: absolute;
      top: 5px;
      left: 5px;
    }
    .chord-diagram .muted {
      position: absolute;
      top: -20px;
      left: 10px;
      font-size: 12px;
      color: red;
    }


:root {
 --main-bg-color: #343a3f;
 
 --cover-bg-color: #333b52;
 --my-color-rgb: 51, 59, 82; 
 
 --ct-logo-lg-height: 40px;
 --ct-logo-sm-height: 22px;
 
}



.logo-topbar {
    padding: 0px;
}

.song-part-cover:nth-child(even){

    padding: 10px;
    background: #cccccc20;
    border-radius: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;

}


/**
 *  ADD TO TEMPLATE 
 */

.toll-free-box-left i {
    position: absolute;
    left: 5px;
    /* bottom: -15px; */
    font-size: 2rem;
    opacity: .4;
    /* -webkit-transform: rotate(30deg); */
    /* transform: rotate(30deg); */
    top: 5px;
}

.toll-free-box-right i {
    position: absolute;
    right: 5px;
    /* bottom: -15px; */
    font-size: 2rem;
    opacity: .4;
    /* -webkit-transform: rotate(30deg); */
    /* transform: rotate(30deg); */
    top: 5px;
}

.card-body-custom{
    padding: 0.2rem;
}

.link-custom:hover > h4{
    opacity: 0.95;
    font-size: 1.1rem;
   
} 





/**
 *  OTHERS
 */ 
.split-columns{
    column-count:   2;
    column-rule: dotted;
    column-rule-color: #ccc;
}

.secure-code{
    font-size: 2em;
    text-align: center;
}

.like-pre{
    font-family: monospace;

}


.song-move-bg {
    background: #000;
}

.reset-gutter{
    margin: 0px !important;
    padding: 0px !important;
}

.line-height-35{
    line-height: 3.5em;
}


.song-move-title{
    font-weight: bold;
}

.song-border-end{
    border-right: 1px solid #3c3c3c;
}


.song-move-cover:hover {

    opacity: 0.8;

}



.expansion-cover-backdrop{

        position: absolute;
    /*
    position: fixed;
    top: 0px;
    left: 0px;
    */
    width: 100%;
    height: 100vh;
    z-index: 998;

    
   // background: rgba(255,255,255,0.8);
    //padding: 30px;
    overflow: hidden;
    
    
/* From https://css.glass */
background: rgba(255, 255, 255, 0.04);
//border-radius: 16px;
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(2.7px);
-webkit-backdrop-filter: blur(2.7px);
//border: 1px solid rgba(255, 255, 255, 0.01);
}


.expansion-cover{
  
    position: sticky;
  
    width: 100%;
   // height: auto;
    height: 75vh;
    z-index: 999;
    
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    
   // background: rgba(52,52,52,0.8);
    background: rgba(var(--my-color-rgb), 0.8);
   
    
    //padding: 30px;
    //overflow: none;
        
}


.expansion-header{
   // height: 100px;
}
.expansion-content{
    width: 100%;
    height: 80%;
    overflow: auto;
}



.tkcs-playlist-btn{
  /*
  margin-top: 1em;
  display: block;
  */
}


.tkcs-playlist-btn > .badge{
    /*margin-right: 10px;
    justify-content: space-evenly; */  
}

.tkcs-playlist-btn > .badge > .dropdown-toggle::after{
 
   /*display: none !important;*/

}



.pl-btn-cover {

    position: relative;
    background: #212529;
    height: 54px;
    
    width: 95%;
    
    vertical-align: middle;
    display: inline-flex;
    margin-left: 8px;
    padding: 0.5rem 1rem;
    padding-left: 55px;
    border-radius: 27px;
    line-height: 2.2rem;
    
    margin-bottom: 15px;
    color: #fff;

}

.pl-circle{

    position: absolute;
    top: 7px;
    left: 8px;
    width: 40px;
    height: 40px;
    
    line-height: 38px;
    text-align: center;
    border-radius: 40px;
    
    background: #f9f9f9;
    color: #000;
}

.pl-dropdown{

    position: absolute;
    top: 7px;
    right: 8px;
    width: 40px;
    height: 40px;
    background: #333;
    line-height: 38px;
    text-align: center;
    border-radius: 40px;
}

.pl-dropdown-menu {
    background: #212529;
}
.pl-dropdown-item{

  /*  background: #333;*/
    padding-left: 15px;
    display: block;
    color: #fff;
    border-bottom: 1px solid #333;
}

a.pl-dropdown-item {
    text-decoration: none;   
}

a.pl-dropdown-item:hover {
    text-decoration: none;  
    background: #ccc;
}






.pl-btn-cover.blank {

 border: 2px dashed #ccc;

}



.pl-btn-cover.sm {

    position: relative;
    background: #212529;
    height: 40px;
    
    width: 95%;
    
    vertical-align: middle;
    display: inline-flex;
    margin-left: 8px;
    padding: 0.5rem 1rem;
    padding-left: 40px;
    border-radius: 20px;
    line-height: 1.5rem;
    margin-bottom: 10px;
    color: #fff;

}

.pl-btn-cover.sm > .pl-circle{

    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    
    line-height: 30px;
    text-align: center;
    border-radius: 30px;
    
    background: #f9f9f9;
    color: #000;
    
    font-size: 0.8em;
}


.pl-btn-cover.sm > .pl-dropdown{

    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: #333;
    line-height: 30px;
    text-align: center;
    border-radius: 30px;
}




html,
body {
 // overflow-x: hidden; /* Prevent scroll on narrow devices */
 // height: auto;
 // min-height: 100%;
}

html {
        scroll-behavior: auto !important;
      }
      
body {
 // padding-top: 56px;
  //background: #f1f1f1;
    //background: rgba(26, 27, 32, .80);
    //background: var(--main-bg-color);
    background: var(--main-bg-color);
    color: #a7a7af;
 
 
 // margin-bottom: 60px; /* Margin bottom by footer height */
  
   // overflow-x: hidden;
    //overflow-y: hidden;

}




#main-content{
    position: relative;
   /* min-height: 70vh;*/
    
}

/*
#footer{
    //background: #141414;
    color: #ccc;
   
}
*/

#brand-logo {
  font-size: 34px;
}



.custom-app-footer-bg{
    background: linear-gradient(120deg, #141414, #393939);
}

.custom-app-bg{
  background: linear-gradient(120deg, #00e4d0, #5983e8);
}

.custom-app-bg > .offcanvas-header, .custom-app-bg > .offcanvas-body{
  background: linear-gradient(120deg, #00e4d0, #5983e8);
}


#app-navbar {
  // background: linear-gradient(120deg, #00e4d0, #5983e8);
  background: #3a444e;

}

.backgrop {
    backdrop-filter: blur(2px);
    --bs-bg-opacity: 0.5;
}


.offcanvas.offcanvas-end{

   // min-width: 400px;
    width: 50%;
    /*
    bottom: 0px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0px;
    transform: translateY(100%);
    transition: transform 0.25s;
    width: 100%;*/
    /*
    background: rgba(155, 147, 207, 0.2);
    backdrop-filter: blur(40px);
    color: rgb(255, 255, 255);*/

}

@media screen and (min-width: 768px) {
/*
  .offcanvas.offcanvas-end{

        border-radius: 24px 0px 0px 24px;
        max-width: 480px;
        right: 0px;
        top: 0px;
        transform: translateX(100%);
        width: calc(100% - 45px);

  }
  */
.offcanvas {
  border-radius: 24px 0px 0px 24px !important;
  background: rgba(155, 147, 207, 0.2) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important; /* For Safari */
  overflow: hidden;
}
}




.form-signin {
 // max-width: 330px;
  padding: 15px;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

/*
.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
*/




.bg-light{
    backdrop-filter: blur(2px);
    --bs-bg-opacity: 0.5;
}

.bg-playlist{
  // background: #333;
    color: #ccc;

}

.bg-playlist .list-group-item{
    background: none;
}

.bg-playlist .list-group-item a{
    color: #abafb7;
}

.bg-playlist .list-group-item:hover{
    background: #aaa;
    
}

.bg-playlist .list-group-item:hover a{
    color: #000;
}
@media (max-width: 991.98px) {
  .offcanvas-collapse {
    position: fixed;
    top: 56px; /* Height of navbar */
    bottom: 0;
    left: 100%;
    width: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-y: auto;
    visibility: hidden;
    background-color: #343a40;
    transition: transform .3s ease-in-out, visibility .3s ease-in-out;
    z-index: 1040;
    
  }
  .offcanvas-collapse.open {
    visibility: visible;
    transform: translateX(-100%);
    
  }
}

.nav-scroller {
  position: relative;
  z-index: 2;
  height: 2.75rem;
  overflow-y: hidden;
}

.nav-scroller .nav {
  display: flex;
  flex-wrap: nowrap;
  padding-bottom: 1rem;
  margin-top: -1px;
  overflow-x: auto;
  color: rgba(255, 255, 255, .75);
  text-align: center;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-underline .nav-link {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: .875rem;
  color: #6c757d;
}

.nav-underline .nav-link:hover {
  color: #007bff;
}

.nav-underline .active {
  font-weight: 500;
  color: #343a40;
}

.bg-purple {
  background-color: #6f42c1;
}


.fs0{ font-size: 0.7em !important;  }
.fs1{ font-size: 0.85em !important; }
.fs2{ font-size: 1.0em !important;  }
.fs3{ font-size: 1.1em !important; }
.fs4{ font-size: 1.3em !important; }
.fs5{ font-size: 1.5em !important; }
.fs6{ font-size: 1.7em !important; }
.fs7{ font-size: 1.9em !important; }
.fs8{ font-size: 2.1em !important; }
.fs9{ font-size: 2.2em !important; }
.fs10{ font-size: 2.3em !important; }
.fs11{ font-size: 2.4em !important; }


.toolbar-button{
    font-size: 1em;
}

#song-toolbar.vertical {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #fff;
    border-radius: 50px;  
    opacity: .85;
    width: 75px;
    text-align: center;

    height: 50vh; 
    padding-top: 20px;
    font-size: 2rem;
    overflow: none;
    
    
 


}

#song-toolbar.horizontal{

/*
    position: fixed;
    bottom: 10px;
    left: 5%;
    background: #fff;
    border-radius: 50px;  
    opacity: .85;
  //  width: 75px;
    text-align: center;
    height: 60px;
    line-height: 60px;
    width: 90vw; 
 //   padding-top: 20px;
    font-size: 2rem;
    overflow: none;
    margin:0 auto 0;
    */
    
    
    
    position: fixed;
    bottom: 10px;
    bottom: 0px;
    left: 5%;
    left: 0;
    //background: #fff;
//    border-radius: 50px;  
  //  opacity: .85;
  //  width: 75px;
    text-align: center;
    height: 240px;
    line-height: 60px;
    width: 90vw; 
    width: 100vw;
 //   padding-top: 20px;
    font-size: 2rem;
    overflow: none;
    margin:0 auto 0;
    
    
       background: rgba( 255, 255, 255, 0.25 );
    box-shadow: 0 8px 32px 0 rgba( 31, 38, 135, 0.37 );
    backdrop-filter: blur( 5px );
    -webkit-backdrop-filter: blur( 5px );
   // border-radius: 10px;
    
}


#song-content{
    font-size: 1.0em;
    touch-action: pan-y;   /* scrolling only - pinch / swipe here change the font size (tkcs_app.js) */
   // color: #333;
     color: #a7a7af;
   
   // border: 1px solid #aaa;
   font-family: monospace;
}

.song-line {
    position: relative;
    line-height: 1.2em;
   // margin-bottom: 10px;
   font-family: monospace;
}



.chord {
   /*
    position: absolute;
    top: -0.8em;
    */
    font-size: inherit;
    font-weight: bold;
   // background: #f7f7f7; 
    border-radius: 5px;
    padding: 0px 3px;
    //line-height: 1.25em;
    color: #3ebbeb;

}


.chords-hidden .song-line.chords-above,
.chords-hidden .song-line.chords-inline,
.chords-hidden .song-line.cp-grid-line,
.chords-hidden .cp-section.cp-tab{
    display: none;
}

/* CHORDPRO in the song (Zpevnik::SongHTML): sections, comments, key / tempo labels */

.cp-section { margin: .35em 0 .6em; padding-left: .9em; border-left: 3px solid rgba(139, 92, 246, .35); }
.cp-section.cp-chorus { border-left-color: #8b5cf6; background: linear-gradient(90deg, rgba(139, 92, 246, .10), transparent 70%); border-radius: 0 6px 6px 0; padding-top: .15em; padding-bottom: .15em; }
.cp-section.cp-bridge { border-left-color: rgba(62, 187, 235, .6); }
.cp-section.cp-tab, .cp-section.cp-grid { border-left-color: rgba(167, 167, 175, .35); }
.cp-label { font-family: "Nunito", sans-serif; font-size: .72em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a78bfa; margin-bottom: .2em; }
.song-line.cp-comment { font-family: "Nunito", sans-serif; font-weight: 600; color: #c4b5fd; margin: .3em 0; }
.song-line.cp-comment.cp-italic { font-style: italic; font-weight: 400; }
.song-line.cp-comment.cp-box { display: inline-block; border: 1px solid rgba(196, 181, 253, .45); border-radius: 6px; padding: .1em .5em; }
.cp-section.cp-comment { border-left-color: rgba(196, 181, 253, .35); }
.cp-section.cp-comment .song-line.cp-comment { margin: 0; }
.song-line.cp-chorus-ref { font-family: "Nunito", sans-serif; font-weight: 700; color: #a78bfa; margin: .35em 0; padding-left: .9em; border-left: 3px dashed #8b5cf6; }
.song-line.cp-meta { display: flex; flex-wrap: wrap; gap: .4em; margin: .2em 0 .5em; }
.cp-chip { font-family: "Nunito", sans-serif; font-size: .8em; padding: .15em .6em; border-radius: 999px; background: rgba(62, 187, 235, .12); }
.cp-chip-label { color: #a7a7af; }
.cp-chip .chord { padding: 0; }
.song-line.cp-tab-line { white-space: pre; overflow-x: auto; }

.toolbar-button.active{
    background-color: rgba(124, 58, 237, .25);
}

.toolbar-button.disabled{
    opacity: .45;
}

/* TOOLS dialog of the song page (#bottom-modal, index.php): a bottom sheet with grouped buttons, template colours only */
#bottom-modal .modal-dialog{
    max-width: 640px;
}

.tools-sheet{
    border: 1px solid var(--ct-border-color);
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .25);
}

.tools-handle{
    width: 40px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: var(--ct-border-color);
}

#bottom-modal .tools-body{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.25rem;
    justify-content: center;
    padding: 1rem 1rem 1.25rem;
    overflow: visible;
}

.tools-label{
    margin: 0 0 .35rem .25rem;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ct-secondary-color);
}

.tools-seg{
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: .75rem;
    background: var(--ct-tertiary-bg);
}

.tools-btn{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: .4rem .5rem .3rem;
    border: 0;
    border-radius: .6rem;
    color: var(--ct-body-color);
    line-height: 1.1;
    transition: background-color .15s, color .15s, transform .1s;
}

.tools-btn .mdi,
.tools-btn .transpose-indicator{
    font-size: 22px;
    line-height: 26px;
}

.tools-btn .transpose-indicator{
    font-weight: 700;
}

.tools-btn small{
    margin-top: 2px;
    font-size: .68rem;
    color: var(--ct-secondary-color);
    white-space: nowrap;
}

.tools-btn:hover,
.tools-btn:focus-visible{
    background-color: var(--ct-secondary-bg);
    color: var(--ct-primary);
}

.tools-btn:active{
    transform: scale(.94);
}

.tools-btn.active{
    background-color: rgba(var(--ct-primary-rgb), .18);
    color: var(--ct-primary);
}

.tools-btn.active small{
    color: var(--ct-primary);
}

/* the guitar button is "on" when the chords are HIDDEN: strike its caption instead of highlighting it */
.tools-btn.chords-toggle.active{
    background-color: transparent;
    color: var(--ct-secondary-color);
}

.tools-btn.chords-toggle.active small{
    color: var(--ct-secondary-color);
    text-decoration: line-through;
}

.tools-btn.tools-key:not(.disabled) .transpose-indicator{
    color: var(--ct-primary);
}

.tools-btn.disabled{
    opacity: 1;
}

.tools-btn.disabled small{
    opacity: .5;
}

@media (max-width: 575.98px){
    #bottom-modal .modal-dialog{
        margin: 0;
    }
    #bottom-modal .tools-body{
        gap: .75rem;
    }
    .tools-btn{
        min-width: 54px;
    }
}

.no-chords{
  //  line-height: 1.0em;
  margin-bottom: 0.35em;
}

.chords-off{
 //display: none;
}

/*
.chords-off > .chord {
    display: none;
    line-height:0.1em;
}
*/



.offcanvas-header{
   background-color: #343a3f; // #  303c54
}

.offcanvas-body{
    background-color: #37404a; //    3c4b64
    color: #aab8c5;
}

.offcanvas-body label{
    color: #aab8c5;
    margin-top: 10px;
}

.offcanvas-body::-webkit-scrollbar {
  width: 20px;
}

.offcanvas-body::-webkit-scrollbar-track {
//  background-color: #e4e4e4;
  border-radius: 100px;
}

.offcanvas-body::-webkit-scrollbar-thumb {
  border-radius: 100px;
  border: 8px solid transparent;
  background-clip: content-box;
 // background-color: #8070d4;
 //background-color: #777;
 background-color: #333;
}


.song-line.chords-with-text{
    //line-height: 1.5em;
}

.song-line.chords-with-text > .chord{
    position: relative;
    top: 0;
}


.fixed-bottom{
    z-index: 1;
}

/* a notice container without content takes no space */
.empty-hidden:empty { display: none; }


/* a detail still to be filled in on a legal page (see inc/config.php 'legal') */
.legal-missing { background: #fde68a; color: #7c2d12; padding: 0 .35rem; border-radius: 4px; }
.legal-page h5 { font-weight: 700; }


/* the shared dialog fits its content unless it holds the song editor (see FitAjaxModal in tkcs_app.js) */
#ajaxConfirmModal.ud-modal-fit .modal-content { height: auto; max-height: 90vh; }
#ajaxConfirmModal.ud-modal-fit .modal-body { flex: 0 1 auto; overflow-y: auto; }

/* the song editor (form in ajax-songs.php: songFormHtml): title and artist side by side, the song text takes all the room left */
#ajaxConfirmModal.modal-xl .modal-body { display: flex; flex-direction: column; }
.sf-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sf-editor { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

.sf-form textarea.sf-text,
#ajaxConfirmModal textarea.sf-text {
    flex: 1 1 auto;
    height: auto;
    min-height: 45vh;
    resize: vertical;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
    line-height: 1.5;
}

/* SMART SONG EDITOR (inc/js/tkcs_song_editor.js): toolbar, coloured text behind a transparent textarea, suggestions, preview */

.sf-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-bottom: .5rem; }
.sf-toolbar .btn { white-space: nowrap; }
.sf-toolbar .btn.active { background: rgba(139, 92, 246, .25); border-color: #8b5cf6; color: #fff; }
.sf-tb-sep { width: 1px; align-self: stretch; margin: 0 .2rem; background: rgba(255, 255, 255, .12); }
@media (max-width: 575.98px) { .sf-toolbar .btn span { display: none; } }

.sf-issues { text-decoration: none; }
.sf-issues:hover { text-decoration: underline; }

.sf-body { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; gap: .75rem; }
@media (min-width: 768px) {
    .sf-body.sf-split { flex-direction: row; }
    .sf-body.sf-split > * { flex: 1 1 0; min-width: 0; }
}

.sf-hl-wrap { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; min-width: 0; }
.sf-hl { display: none; }

.sf-hl-wrap.sf-hl-on .sf-hl {
    display: block;
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: pre;
    tab-size: 4;
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .9rem;
    line-height: 1.5;
}

.sf-hl-wrap.sf-hl-on textarea.sf-text {
    position: relative;
    z-index: 1;
    background: transparent !important;
    color: transparent;
    caret-color: #e9ecef;
}
.sf-hl-wrap.sf-hl-on textarea.sf-text::selection { background: rgba(139, 92, 246, .38); color: transparent; }

.sf-hl .hl-chord { color: #3ebbeb; font-weight: 700; }
.sf-hl .hl-label { color: #f0b860; }
.sf-hl .hl-heading { color: #42d29d; }
.sf-hl .hl-remark { color: #6c757d; font-style: italic; }
.sf-hl .hl-tab { color: #b8c2cc; }
.sf-hl .hl-dir { color: #c4b5fd; }
.sf-hl .hl-dir-name { color: #a78bfa; font-weight: 700; }
.sf-hl .hl-dir-sec { background: rgba(139, 92, 246, .16); border-radius: 3px; }
.sf-hl .hl-warn { text-decoration: underline wavy #fa5c7c; text-underline-offset: 3px; }

.sf-ac {
    position: absolute;
    z-index: 5;
    min-width: 9rem;
    max-width: 16rem;
    padding: .25rem;
    border-radius: 8px;
    background: #2b2f3a;
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
    font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: .85rem;
}
.sf-ac-item { padding: .2rem .55rem; border-radius: 5px; cursor: pointer; color: #dee2e6; white-space: nowrap; }
.sf-ac-item.active, .sf-ac-item:hover { background: rgba(139, 92, 246, .35); color: #fff; }

.sf-preview {
    min-height: 45vh;
    overflow: auto;
    padding: .6rem .9rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .25rem;
    background: rgba(0, 0, 0, .15);
    color: #a7a7af;
    font-family: monospace;
}
.sf-body.sf-split .sf-preview { min-height: 0; }
@media (max-width: 767.98px) { .sf-body.sf-split .sf-preview { max-height: 40vh; } }

.sf-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: .9rem; }
.sf-hint code { padding: .05rem .3rem; border-radius: 4px; background: rgba(139, 92, 246, .15); color: #c4b5fd; }

/* AUTO SCROLL: the small control that floats at the bottom right of a long song (inc/js/tkcs_autoscroll.js) */

.as-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1060;
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: .3rem .4rem;
    border-radius: 999px;
    background: rgba(31, 41, 55, .94);
    border: 1px solid rgba(139, 92, 246, .5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    backdrop-filter: blur(6px);
}

.as-float button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #e5e7eb;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.as-float button:hover { background: rgba(139, 92, 246, .25); }
.as-float .as-f-toggle { background: linear-gradient(135deg, #7c3aed, #06b6d4); color: #fff; }
.as-float.is-paused .as-f-toggle { background: #f59e0b; }
.as-float .as-f-level { min-width: 1.6rem; text-align: center; font-weight: 700; color: #c4b5fd; font-size: .95rem; }
.as-float .as-f-stop { color: #9ca3af; }

/* no application footer (the landing page has its own), so no space kept for it */
html[data-layout=topnav] .content-page { padding-bottom: 1.5rem; }
html[data-layout=topnav] .content-page:has(.lp) { padding-bottom: 0; }

/* CHORD DIAGRAMS (inc/js/tkcs_chord_diagrams.js) - drawn in currentColor, so they follow the light / dark theme */
#chord-diagrams .cd-list { display: flex; flex-wrap: wrap; gap: .5rem; }
#chord-diagrams .cd-tile {
    position: relative; display: flex; flex-direction: column; align-items: center;
    width: 92px; padding: .35rem .25rem .25rem; border-radius: .5rem;
    background: rgba(124, 58, 237, .06); border: 1px solid rgba(124, 58, 237, .15); color: inherit;
}
#chord-diagrams .cd-name { font-weight: 700; font-size: 1rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chord-diagrams .cd-diagram { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; line-height: 0; }
#chord-diagrams .cd-foot { font-size: .7rem; opacity: .6; min-height: 1em; line-height: 1; }
#chord-diagrams .cd-none { display: flex; align-items: center; justify-content: center; width: 78px; height: 92px; font-size: 2rem; opacity: .35; }
#chord-diagrams .cd-remove {
    position: absolute; top: 2px; right: 2px; border: 0; background: none; color: inherit;
    opacity: .45; padding: 0 .15rem; line-height: 1;
}
#chord-diagrams .cd-remove:hover { opacity: 1; }
#chord-diagrams .cd-add { justify-content: center; min-height: 128px; border-style: dashed; cursor: pointer; font-size: .75rem; opacity: .75; }
#chord-diagrams .cd-add:hover { opacity: 1; background: rgba(124, 58, 237, .12); }
#chord-diagrams .cd-empty { align-self: center; margin-right: .5rem; }
#chord-diagrams .cd-form { margin-top: .75rem; }
.cd-svg .cd-fret, .cd-svg .cd-string { stroke: currentColor; stroke-width: 1; opacity: .55; }
.cd-svg .cd-nut, .cd-svg .cd-dot { fill: currentColor; }
.cd-svg .cd-open { fill: none; stroke: currentColor; stroke-width: 1.2; }
.cd-svg .cd-muted { stroke: currentColor; stroke-width: 1.2; opacity: .7; }
.cd-svg .cd-base { fill: currentColor; font-size: 9px; text-anchor: end; opacity: .8; }

/* Master songbook: the name of a song opens it */
.sb-card-link:hover h5{ color: var(--bs-primary); }

/* the icons of the song title row that explain themselves on a click (a tablet has no hover) */
.tkcs-hint{ cursor: pointer; }
.popover.tkcs-hint-pop{ max-width: 280px; font-size: .85rem; }

/* a chord in the song text shows its diagram (inc/js/tkcs_chord_diagrams.js); the spans keep the monospace spacing */
#song-content .chord-tap, #song-content .chord[data-c] { cursor: pointer; }
#song-content .chord-tap:hover, #song-content .chord[data-c]:hover { text-decoration: underline dotted; text-underline-offset: 3px; }
.cd-pop {
    position: absolute; z-index: 1060; display: flex; flex-direction: column; align-items: center;
    padding: .4rem .5rem .3rem; border-radius: .5rem; color: var(--bs-body-color);
    background: var(--bs-secondary-bg, #2b333d); border: 1px solid rgba(124, 58, 237, .35); box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .35);
}
.cd-pop .cd-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }
.cd-pop .cd-diagram { border: 0; background: none; padding: 0; color: inherit; cursor: pointer; line-height: 0; }
.cd-pop .cd-foot { font-size: .7rem; opacity: .6; min-height: 1em; line-height: 1; }
