
:root {
  --main-color: #0056b3;
}

html, body {height: 100%;}
/*body { display: flex; flex-direction: column; margin:0; padding:0; font-size:120%;     font-family: 'Assistant', sans-serif;}*/

body {background: #fff; color: #333; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin:0; padding:0; direction:rtl; text-align:right;} 

.fade-in {animation: fadeIn ease 0.33s;} 
@keyframes fadeIn {0% {opacity: 0;} 100% {opacity: 1;}}

h1 {font-weight: 900; margin-bottom: 0.5rem; color: var(--main-color);} 


.navbar {background: #f8f9fa; box-shadow: 0 2px 8px rgba(0,0,0,0.1);} 
.navbar-brand {font-weight: 900; font-size: 1.75rem; color: #007bff;} 
.nav-link {color: #555 !important; font-weight: 600; transition: color 0.25s ease;} 
.nav-link:hover, .nav-item.active .nav-link {color: #007bff !important;} 

/* orig hero 
.hero {min-height: 85vh;}
*/
.hero {display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 2rem 1rem;} 
.hero h1 {font-size: 4rem; letter-spacing: 4px;} 

.hero p {max-width: 600px; font-size: 1.3rem; font-weight: 400; color: #666; line-height: 1.5;} 
/*.search-container {max-width: 600px; margin: 2rem auto; position: relative;} */

#song_search {width:100%; max-width:300px; margin:0 auto; font-size: 1.25rem; border-radius: 50px !important; padding: .2rem 1rem; border: 2px solid #007bff; transition: border-color 0.3s ease;} 
#song_search:focus {border-color: var(--main-color); box-shadow: 0 0 8px var(--main-color);} 
#song_search.home-search {display:block; padding: 1rem 2rem;}

.home-illustration {}
.home-illustration img {max-width:100%; height:20rem;}

/*
#search-btn {border-radius: 50px !important; background: #007bff; border: none; padding: 1rem 2rem; font-size: 1.2rem; font-weight: 700; color: #fff; transition: background 0.3s ease; cursor: pointer;} 
#search-btn:hover {background: var(--main-color);} 

.search-suggestions {position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border: 2px solid #007bff; border-top: none; border-radius: 0 0 16px 16px; max-height: 280px; overflow-y: auto; box-shadow: 0 8px 15px rgba(0,123,255,0.2); display: none; z-index: 1050;} 
.search-suggestions li {list-style: none; padding: 10px 20px; cursor: pointer; font-weight: 600; color: #444; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #eee; transition: background-color 0.2s ease;} 
.search-suggestions li:last-child {border-bottom: none;} 
.search-suggestions li:hover {background-color: #e9f2ff;} 
*/
.song-icon {width: 28px; height: 28px; background: #007bff; border-radius: 6px; color: #fff; display: flex; justify-content: center; align-items: center; font-weight: 900; font-size: 1.1rem;} 
.random-songs-section {max-width: 960px; margin: 3rem auto 5rem auto; padding: 0 1rem;} 
.random-songs-title {font-weight: 900; font-size: 2.5rem; color: #007bff; margin-bottom: 1.5rem; text-align: center;} 
.reload-btn-container {text-align: center; margin-bottom: 1.5rem;}
#reload-btn {background: #007bff; border: none; color: #fff; font-weight: 700; padding: 0.5rem 1.5rem; border-radius: 50px; cursor: pointer; transition: background 0.3s ease;}
#reload-btn:hover {background: var(--main-color);}
.songs-list {display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.5rem; padding-top:2em;} 
.song-card {position:relative; display: flex; flex-direction: column; justify-content: center; height: 8em;
    background: #f8f9fa; border-radius: 16px; padding: 1.5rem;
    cursor: pointer; text-decoration: none; color: inherit;
    box-shadow: 0 8px 20px rgba(0,123,255,0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.song-card:hover, .song-card:focus {transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,123,255,0.2); outline: none;}
.song-name {font-weight: 900; font-size: 1.6rem; color: var(--main-color); margin-bottom: 0.1rem;}
.song-second-name {font-size: 0.9rem; color: #007bff; font-weight: 700; margin-bottom: 0.4rem; line-height: 1.2;}
.song-credit {font-weight: 600; color: #666; font-size: 1rem;}

.song-name, .song-credit {overflow: hidden; text-overflow: ellipsis; width: 100%; white-space: nowrap;}

.chords-control {direction: rtl;}

/*
header {position:fixed; width:100%; z-index:10;}
header > nav {background: linear-gradient(240deg, #c6ffdd, #fbd786, #f7797d) #39CCCC; display:flex;}
header > nav h1 {font-size:1em; margin: .2em; flex-grow: 2; text-align:center; line-height:2em; padding:.2em; white-space: nowrap; overflow: hidden;}
header > nav button {background:none; font-size:1.4em; margin:-.1em .5em 0; border:none; cursor:pointer;}
header > nav a {text-decoration:none; box-shadow:inset 0 0 7px #eee; border-radius:.5em; padding:.3em; border:#ddd; margin: .5em; color:#000; white-space: nowrap;;}
header > nav img {height: 2em; margin: .5em 0 0 .5em; border-radius: 50%;;}

header #menu {background:#000; display: block; position: absolute; top: 2.8em; display: flex; flex-direction: column; border:1px solid #bbb; border-bottom:none;}
header #menu button, header #menu a {text-decoration:none; border-bottom:1px solid #bbb; padding:.3em; background:#eee; color:#fff; font-size:1em; text-align:right; background:transparent;}

main {flex-grow:1; padding-top:3em;}
input[type='search'] {display: block; width: 100%; padding: .3em .6em; font-size: 1em; border: none; background: #ddd; border-radius: 10px;}

*/

.list-group {padding-top:3em;}

a.song .name2 {font-size:.7em; line-height: 1em;}
a.song .name2::before {content: "/ ";}

a.song .credit {font-size:.7em; line-height: 1em; opacity:0.7;}
a.song .credit::before {content: "(";}
a.song .credit::after {content: ")";}

main p {font-size:1em;}

.hidden, .hide {display:none !important;}

#song {padding:1rem; font-size:1.3em;}
#chords_container, .chrd {direction: ltr; color:#9B2335; display:none;}
#chords_container {text-align: left; direction:ltr;}
.chrd {position: absolute; font-size: 0.6em; line-height: 0; font-weight: bold;}
#chords_container.show {display:block;}
.chrd.show {display:inline-block;}

footer {background: #333; color:#eee; text-align:center; padding:.5em 0;}
footer a {color:#eee; display:block;}


