html, body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

body {
  position: relative;
}

[class*=has-text-primary] {
 color: #8A2BE2 !important
}

.fade{
  background-color: rgba(100,100,100,0.3)
}

.outline {
  outline: 1px solid rgba(200,200,200,0.3);
  outline-width:1px 0 1px 0;
}

.blur-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/bg/bw3.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  filter: blur(5px) sepia(30%) brightness(50%);
  opacity: 0.2;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  margin-left: 250px; /* Match sidebar width */
  transition: margin-left 0.3s ease-in-out;
}

.sidebar.collapsed + .content-wrapper {
  margin-left: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: #1e2a38;
  color: #e0e0e0;
  text-align: center;
}


.hidden {
  display: none !important;
}

#config {
  background-color: #1e1e1e;
  border-radius: 5px;
  padding: 15px;
  margin-top: 20px;
}

#results {
  background-color: #1e4a6d;
  color: #e0e0e0;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
}

#chart-container {
  width: 50%
}

#webgl-canvas {
  display: block;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0.1;
}

.gear-icon {
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  color: #e0e0e0;
}

.page {
  display: none;
  z-index:1;
  position: relative;
}

.page.active {
  display: block;
}

.nav-btn {
  background-color: #1e4a6d;
  color: #e0e0e0;
  border: none;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  border-radius: 5px;
}

.nav-btn.active {
  background-color: #2c5d82;
}

/* Navbar styles */
.navbar {
  background-color: #1e2a38;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #333;
}

.navbar-item {
  color: #e0e0e0;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.navbar-item:hover {
  color: #fff;
  background-color: #2c3e50;
}

.navbar-item.active {
  color: #fff;
  border-bottom: 2px solid #8A2BE2;
  background-color: #2c3e50;
}

#config-options {
  margin-bottom: 20px;
}

.config-option {
  margin-bottom: 10px;
}

.config-option label {
  display: inline-block;
  width: 150px;
  margin-right: 10px;
}

.config-option input[type="text"],
.config-option input[type="number"],
.config-option select {
  width: 200px;
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
  padding: 5px;
  border-radius: 3px;
}

#results-page button {
  background-color: #2d7d4f;
  color: #e0e0e0;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

#round-stats {
  margin-bottom: 20px;
}
.yu-key-container {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  perspective: 1000px;
}
#routine-controls {
  background-color: #f0f0f0;
  padding: 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.routine-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.run-builder {
  margin-top: 20px;
  background-color: #2a2a2a;
  padding: 15px;
  border-radius: 5px;
}

#current-run {
  min-height: 50px;
  background-color: #3a3a3a;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 3px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.start-btn {
  text-align: center;
  margin: 2em auto;
  display: block;
  background-color: #2d7d4f;
  font-weight: bold;
    padding: 1.4em 2em;
    font-size: 2em;  
  }


  .throb {
    animation: throb 2s ease-in-out infinite;
    box-shadow: 0 0 10px 5px rgba(45, 125,79, 0.7);
  }
  
  @keyframes throb {
    0% {
      box-shadow: 0 0 10px 5px rgba(45, 125,79, 0.7);
    }
    20% {
      box-shadow: 0 0 15px 5px rgba(45, 125,79, 0.7);
    }25%{
       
      box-shadow: 0 0 17px 5px rgba(45, 125,79, 0.8);
    
    }
    30% {
      box-shadow: 0 0 18px 5px rgba(45, 125,79, 0.8);
    }
    50% {
      box-shadow: 0 0 20px 10px rgba(45, 125,79, 0.9);
    }
    89% {
      box-shadow: 0 0 10px 5px rgba(45, 125,79, 0.7);
    }
    90% {
      box-shadow: 0 0 10px 5px rgba(245, 125,79,0.5);
    }
    10% {
      box-shadow: 0 0 10px 5px rgba(45, 125,79, 0.2);
    }
   
  }

    
.riff-item {
  display: inline-block;
  margin: 0 10px;
  background-color: #3a3a3a;
  padding: 10px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid #4a4a4a;
}

.riff-item:hover{
  background-color: #4a4a4a;
  border-bottom-color: #2d7d4f;
  
}

.riff-split{
  display:block;
  border-top:1px solid #666;
  margin: 1.1em 3em 0 0;
}
.append-btn {
  background-color: #2d7d4f;
  color: #e0e0e0;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 3px;
  margin-top: 5px;
}

.riff-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  background-color: #4a4a4a;
  padding: 5px;
  border-radius: 3px;
  position: relative;
}

#routine-display .riff-name {
  color: #e0e0e0;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold; 

  background-color: #2d7d4f;
}
#current-run .riff-name {
  position: absolute;
  top: -20px;
  left: 5px;
  background-color: #2d7d4f;
  color: #e0e0e0;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 0.8em;
  font-weight: bold;
}

.interval-block {
  background-color: #5a5a5a;
  padding: 5px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.interval {
  font-size: 1.2em;
  font-weight: bold;
}

.notes {
  font-size: 0.9em;
  color: #bbb;
}

#routine-display {
  background-color: #2a2a2a;
  border-radius: 5px;
}

#routine-display .riff-container {
  display: flex;
  align-items: center;
}

#routine-display .riff-container{
  padding: 0;
}

#routine-display .riff-name {
  font-weight: bold;
  margin-right: 10px;
  color: #ffffff;
}

#routine-display .riff-notes {
  font-family: monospace;
  color: #e0e0e0;
}
 /* Breadcrumb navigation styles */                                                                   
 .breadcrumb-nav {                                                                                    
  display: flex;                                                                                     
  align-items: center;                                                                               
  font-size: 1.2em;                                                                                  
  margin-left: 20px;                                                                                 
}                                                                                                    
                                                                                                     
.breadcrumb-item {
  font-weight: bold;
  padding: 5px 10px;
  background-color: #2a3f5f;
  color: #e0e0e0;
  position: relative;
  /* margin-right: 20px; */
  border: 1px solid #4a6491;
}                                                                                                    
                                                                                                     
.breadcrumb-separator {                                                                              
  margin: 0 10px;                                                                                    
  color: #666;                                                                                       
}                                                                             

/* Nav icons styles */
.nav-icons {
  display: inline-block;
  text-align :right ;
}

.piano-icon, .skull-icon {
  font-size: 1.5em;
  margin-left: 10px;
}

.main-btn.active{border: 1px solid #2d7d4f;}
.main-btn {
  height: 140px;
  width: 140px;
  margin: 0 1em;
  padding:0.3em 1em;
}
.main-btn:hover{
  background-color: green;
}
.main-btn strong{ display: block}

.custom-riff.done {
  background-color: #3399FF;
  color: #0c0c0c;
  border-radius:100px;
}
.custom-riff.done {
  transition: all 1s;
}

.custom-riff {
  width: 20%;
  padding: 2em;
  text-align: center;
  user-select: none;
}

.custom-riff .progress-bar {
  background-color: #2d7d4f;
  height: 5px;
  border-radius: 10px;
}
.custom-riff .progress-bar.invalid {
  background-color: red;
}


.scroll {
  font-family: "Estonia", serif;
  font-weight: 800;
  font-style: normal;
  font-size:2em;
  position: relative;
  width: 600px;
  min-height: 300px;
  margin: 2rem auto;
  padding: 2rem;
  /* Base parchment look using a subtle gradient */
  background: radial-gradient(ellipse at center, #fbf0c2 0%, #dfc18f 100%);
  border: 2px solid #c0a472;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  color: #444;
  line-height: 1.2em;
  transform: translateY(-70px) rotate3d(6.1, 2, 1, -40deg) perspective(500px) rotateX(10deg);
}
.scroll h1{
  font-size: 1.2em;
  font-weight: bolder;
}