/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}@font-face{font-family:Caladea;src:url(../fonts/caladea-regular-webfont.eot);src:url(../fonts/caladea-regular-webfont.eot?#iefix) format("embedded-opentype"),url(../fonts/caladea-regular-webfont.woff2) format("woff2"),url(../fonts/caladea-regular-webfont.woff) format("woff"),url(../fonts/caladea-regular-webfont.ttf) format("truetype"),url(../fonts/caladea-regular-webfont.svg#caladearegular) format("svg");font-weight:400;font-style:normal}@font-face{font-family:Cinzel;src:url(../fonts/cinzel-bold-webfont.eot);src:url(../fonts/cinzel-bold-webfont.eot?#iefix) format("embedded-opentype"),url(../fonts/cinzel-bold-webfont.woff2) format("woff2"),url(../fonts/cinzel-bold-webfont.woff) format("woff"),url(../fonts/cinzel-bold-webfont.ttf) format("truetype"),url(../fonts/cinzel-bold-webfont.svg#cinzelbold) format("svg");font-weight:700;font-style:normal}*{box-sizing:border-box}html{font-family:Caladea,serif;background:#2f2f2f;overflow-x:hidden;font-size:20px;background-image:url(../img/hkbg.png);background-position:top center;background-attachment:fixed;background-repeat:no-repeat;background-size:cover}body{color:#eee;width:100%;overflow-x:hidden;background:linear-gradient(180deg,rgba(0,0,0,.2) 0,rgba(0,0,0,.5) 100%)}#percent,h1,h2,h3,h4,h5,h6{font-family:Cinzel,serif;font-weight:700}h1{text-align:center}h1 img{max-width:100%;height:auto;width:600px}h2{text-align:center;font-size:1.2em;white-space:nowrap}h2:after,h2:before{content:"";display:inline-block;width:42px;height:17px;background:url(../img/flourish.png) top center/42px 17px no-repeat;padding-left:3px}@media (min-width:400px){h2:after,h2:before{width:64.5px;height:25px;background-size:64.5px 25px}}h2:before{transform:scaleX(-1);padding-right:3px}ul{padding:0;list-style:none;margin-bottom:3em;background:#222;box-shadow:0 5px 5px -2px #1f1f1f}ul li{line-height:1.5em}a,a:visited{color:inherit}a:focus,a:hover{color:#fff}footer{text-align:center;padding:40px 15px;background:#111;font-size:12px}.checkboxLabel{margin-bottom:-5px;padding:15px;display:block}.checkboxLabel input{opacity:0;position:absolute}.checkboxLabel input:checked+span{text-decoration:line-through;color:#666!important}.checkboxLabel input:checked+span img{opacity:.6}.checkboxLabel input:checked+span:after{display:inline-block;color:#eee}.checkboxLabel input:checked+span a:focus,.checkboxLabel input:checked+span a:hover{color:#999!important}.checkboxLabel input:focus+span{color:#fff}.checkboxLabel input:focus+span:before{outline:1px solid #eee}.checkboxLabel:focus,.checkboxLabel:hover{background:#111;cursor:pointer}.checkboxLabel>span{display:inline-block;padding-left:38px;position:relative}.checkboxLabel>span:before{content:' ';width:20px;height:20px;border:2px solid #ccc;display:block;position:absolute;top:3px;left:0}.checkboxLabel>span:after{content:'\2713 ';position:absolute;left:6px;display:none;top:1px}.container{width:100%;padding:0 15px}.container .row{margin:0 auto}@media (min-width:700px){.container .row{display:flex}}@media (min-width:840px){.container .row{width:800px;display:flex}}@media (min-width:960px){.container .row{width:900px}}@media (min-width:700px){.container .row .column{width:50%;margin:0 7.5px}}.icon{width:auto;height:22px;vertical-align:middle;margin-top:-4px}.subtitle{text-align:center}#congrats,#uncheckAll{display:none}#cookieAlert{text-align:center;background:#ddd;color:#222;padding:10px}#cookieAlert a{color:#00f}#cookieAlert,.subtitle{display:none}.js #cookieAlert,.js .subtitle{display:block}#noJsAlert{color:#f66;text-align:center}#percent{font-size:64px}#percent.complete{animation:glow 1.5s ease-out infinite alternate}@keyframes glow{to{text-shadow:0 0 10px #fff}}

/* Dynamic Progress Bar Styles */
.progress-container{margin:20px auto;max-width:600px;padding:0 20px}
.progress-bar-bg{position:relative;height:20px;background:linear-gradient(90deg,#1a1a1a 0%,#333 50%,#1a1a1a 100%);border-radius:25px;border:2px solid #444;box-shadow:inset 0 2px 8px rgba(0,0,0,0.7),0 2px 4px rgba(255,255,255,0.1);overflow:hidden}
.progress-bar-fill{height:100%;width:0%;background:linear-gradient(90deg,#ff6b35 0%,#f7931e 25%,#ffd23f 50%,#4a90e2 75%,#6bb6ff 100%);border-radius:20px;transition:width 0.8s cubic-bezier(0.25,0.46,0.45,0.94);position:relative;box-shadow:0 0 20px rgba(255,107,53,0.6)}
.progress-bar-fill.complete{animation:complete-glow 2s ease-in-out infinite alternate;background:linear-gradient(90deg,#4a90e2 0%,#6bb6ff 25%,#45b7d1 50%,#74b9ff 75%,#00cec9 100%)}
.progress-bar-glow{position:absolute;top:-2px;left:-2px;right:-2px;bottom:-2px;background:inherit;border-radius:25px;filter:blur(8px);opacity:0.7;z-index:-1}
.progress-segments{position:absolute;top:0;left:0;right:0;bottom:0;pointer-events:none}
.progress-segment{position:absolute;top:0;bottom:0;width:1px;background:rgba(255,255,255,0.2);z-index:1}
.progress-labels{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:#999;font-family:Cinzel,serif}
.progress-labels span{position:relative}
.progress-labels span:last-child{color:#dc3545;font-weight:bold}

/* Knight Indicator */
.knight-indicator{position:absolute;right:-16px;top:-28px;width:32px;height:32px;opacity:0;transition:all 0.3s ease;transform:translateX(0);filter:drop-shadow(0 0 8px #4a90e2) drop-shadow(0 0 12px #6bb6ff);z-index:10}
.progress-bar-fill.active .knight-indicator{opacity:1;animation:knight-bounce 1s ease-in-out infinite}
.progress-bar-fill.complete .knight-indicator{animation:knight-celebrate 2s ease-in-out infinite alternate}

@keyframes complete-glow{
  0%{box-shadow:0 0 20px rgba(74,144,226,0.6),0 0 40px rgba(74,144,226,0.4)}
  100%{box-shadow:0 0 30px rgba(74,144,226,0.8),0 0 60px rgba(74,144,226,0.6),0 0 80px rgba(74,144,226,0.2)}
}
@keyframes pulse{
  0%,100%{transform:scale(1);opacity:1}
  50%{transform:scale(1.2);opacity:0.7}
}
@keyframes knight-bounce{
  0%,100%{transform:translateY(0) scale(1)}
  50%{transform:translateY(-4px) scale(1.1)}
}
@keyframes knight-celebrate{
  0%{transform:translateY(0) scale(1) rotate(-5deg)}
  100%{transform:translateY(-2px) scale(1.05) rotate(5deg)}
}

/* Section Headers and Select All Buttons */
.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1em}
.section-header h2{margin:0;flex:1}
.select-all-btn{background:linear-gradient(135deg,#444 0%,#666 100%);color:#eee;border:1px solid #555;border-radius:6px;padding:8px 12px;font-size:12px;font-family:Cinzel,serif;cursor:pointer;transition:all 0.3s ease;white-space:nowrap;margin-left:10px}
.select-all-btn:hover{background:linear-gradient(135deg,#555 0%,#777 100%);border-color:#666;transform:translateY(-1px);box-shadow:0 2px 4px rgba(0,0,0,0.3)}
.select-all-btn:active{transform:translateY(0);box-shadow:0 1px 2px rgba(0,0,0,0.3)}
.select-all-btn.selected{background:linear-gradient(135deg,#dc3545 0%,#e74c3c 100%);border-color:#dc3545;color:#fff;font-weight:bold}

/* Mobile Responsive */
@media (max-width:600px){
  .progress-container{padding:0 10px}
  .progress-bar-bg{height:16px}
  .progress-labels{font-size:10px}
  .section-header{flex-direction:column;align-items:flex-start;gap:5px}
  .select-all-btn{margin-left:0;align-self:flex-end}
}

/* Silksong Specific Styles */

/* Left Sidebar Navigation */
.sidebar-nav {
  background: rgba(34, 34, 34, 0.8);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
  border: 1px solid #444;
}

.nav-section {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background: rgba(17, 17, 17, 0.5);
  border-radius: 6px;
  border: 1px solid #333;
}

.nav-item h4 {
  font-family: Cinzel, serif;
  font-size: 0.9rem;
  margin: 0 0 0.5rem 0;
  color: #eee;
  text-align: left;
}

.progress-mini {
  font-family: monospace;
  font-size: 0.8rem;
  color: #dc3545;
  margin: 0.3rem 0;
  letter-spacing: 1px;
}

.progress-text {
  font-size: 0.8rem;
  color: #999;
  display: block;
  margin: 0.3rem 0;
}

.nav-select-all {
  background: linear-gradient(135deg, #444 0%, #666 100%);
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 10px;
  font-family: Cinzel, serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.3rem;
}

.nav-select-all:hover {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border-color: #dc3545;
  transform: translateY(-1px);
}

/* Tool Grid and Color Tabs */
.tools-section {
  margin-bottom: 2rem;
}

.tool-color-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tool-tab {
  background: linear-gradient(135deg, #444 0%, #666 100%);
  color: #eee;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: Cinzel, serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tool-tab:hover {
  background: linear-gradient(135deg, #555 0%, #777 100%);
  border-color: #666;
  transform: translateY(-1px);
}

.tool-tab.active {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border-color: #dc3545;
  color: #fff;
  font-weight: bold;
}

.current-tab-info {
  background: rgba(34, 34, 34, 0.6);
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #444;
}

.current-tab-info p {
  margin: 0;
  font-size: 14px;
  color: #ccc;
}

.tool-grid {
  margin-bottom: 2rem;
}

.tool-icon {
  width: 55px;
  height: 55px;
  vertical-align: middle;
  margin-right: 12px;
  margin-top: -2px;
}
.crest-icon {
  width: 44px;
  height: 44px;
  vertical-align: middle;
  margin-right: 12px;
  margin-top: -2px;
  border-radius: 4px;
}

.centered-select-all {
  text-align: center;
  margin: 1rem 0;
}

/* Update select-all-btn to match original HK style */
.select-all-btn {
  background: linear-gradient(135deg, #444 0%, #666 100%);
  color: #eee;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-family: Cinzel, serif;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.select-all-btn:hover {
  background: linear-gradient(135deg, #555 0%, #777 100%);
  border-color: #666;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.select-all-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.select-all-btn.selected {
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border-color: #dc3545;
  color: #fff;
  font-weight: bold;
}

/* Update progress bar to red theme */
.progress-bar-fill {
  background: linear-gradient(90deg, #dc3545 0%, #e74c3c 25%, #f56565 50%, #fc8181 75%, #feb2b2 100%);
  box-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
}

.progress-bar-fill.complete {
  animation: complete-glow-red 2s ease-in-out infinite alternate;
  background: linear-gradient(90deg, #dc3545 0%, #e74c3c 25%, #f56565 50%, #fc8181 75%, #feb2b2 100%);
}

@keyframes complete-glow-red {
  0% { box-shadow: 0 0 20px rgba(220, 53, 69, 0.6), 0 0 40px rgba(220, 53, 69, 0.4); }
  100% { box-shadow: 0 0 30px rgba(220, 53, 69, 0.8), 0 0 60px rgba(220, 53, 69, 0.6), 0 0 80px rgba(220, 53, 69, 0.2); }
}

/* Mobile Navigation Toggle Button */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
  border: 2px solid #fff;
  border-radius: 8px;
  padding: 12px;
  color: #fff;
  font-family: Cinzel, serif;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.mobile-nav-toggle:hover {
  background: linear-gradient(135deg, #c82333 0%, #dc3545 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

.mobile-nav-toggle:active {
  transform: translateY(0);
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 998;
}

.sidebar-overlay.active {
  display: block;
}

/* Mobile Responsive for Sidebar */
@media (max-width: 768px) {
  /* Hide toggle button on desktop */
  .mobile-nav-toggle {
    display: block;
  }
  
  /* Main container adjustments */
  .container .row {
    flex-direction: row;
    margin: 0;
    padding: 0;
  }
  
  /* Hide sidebar by default on mobile */
  .column[style*="width: 25%"] {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 85% !important;
    height: 100vh;
    background: rgba(17,17,17,0.98);
    z-index: 999;
    overflow-y: auto;
    padding: 80px 15px 20px 15px;
    border-right: 2px solid #dc3545;
  }
  
  .column[style*="width: 25%"].mobile-nav-open {
    display: block;
    animation: slideInLeft 0.3s ease-out;
  }
  
  /* Main content takes full width */
  .column[style*="width: 75%"] {
    width: 100% !important;
    margin: 0;
    padding-top: 70px;
  }
  
  /* Optimize tool tabs for mobile */
  .tool-color-tabs {
    justify-content: center;
    gap: 6px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
  }
  
  .tool-tab {
    font-size: 11px;
    padding: 6px 10px;
    flex: 1;
    text-align: center;
    min-width: 0;
    white-space: nowrap;
  }
  
  /* Mobile-specific header adjustments */
  h1 {
    margin-top: 0;
    padding-top: 10px;
  }
  
  h1 img {
    width: 90%;
    max-width: 400px;
  }
  
  h2 {
    font-size: 1.1em;
  }
  
  /* Progress bar mobile optimizations */
  .progress-container {
    padding: 0 10px;
    margin: 15px auto;
  }
  
  .progress-bar-bg {
    height: 16px;
  }
  
  .progress-labels {
    font-size: 10px;
    margin-top: 6px;
  }
  
  /* Section header mobile optimizations */
  .section-header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  
  .section-header h2 {
    margin: 0;
  }
  
  .select-all-btn {
    margin-left: 0;
    font-size: 11px;
    padding: 6px 10px;
  }
  
  /* Current tab info mobile optimization */
  .current-tab-info {
    padding: 10px;
    margin-bottom: 0.8rem;
  }
  
  .current-tab-info p {
    font-size: 12px;
    text-align: center;
  }
  
  /* Tool icons mobile optimization */
  .tool-icon {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  
  .crest-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  
  /* Checkbox labels mobile optimization */
  .checkboxLabel {
    padding: 12px 10px;
    margin-bottom: -3px;
  }
  
  .checkboxLabel>span {
    font-size: 14px;
    padding-left: 32px;
  }
  
  .checkboxLabel>span:before {
    width: 18px;
    height: 18px;
    top: 1px;
  }
  
  .checkboxLabel>span:after {
    left: 5px;
    top: -1px;
    font-size: 14px;
  }
  
  /* Footer mobile optimization */
  footer {
    padding: 20px 15px;
    font-size: 11px;
  }
  
  /* Centered select all button mobile */
  .centered-select-all {
    margin: 0.8rem 0;
  }
  
  /* Optimize navigation sections for mobile sidebar */
  .sidebar-nav {
    padding: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .nav-section {
    margin-bottom: 0.8rem;
    padding: 0.6rem;
  }
  
  .nav-item h4 {
    font-size: 0.85rem;
  }
  
  .progress-mini {
    font-size: 0.7rem;
  }
  
  .progress-text {
    font-size: 0.7rem;
  }
  
  .nav-select-all {
    font-size: 9px;
    padding: 3px 6px;
  }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 900px) {
  .container .row {
    flex-direction: column;
  }
  
  .sidebar-nav {
    order: 2;
    margin-top: 2rem;
  }
  
  .column[style*="width: 25%"] {
    width: 100% !important;
  }
  
  .column[style*="width: 75%"] {
    width: 100% !important;
  }
  
  .tool-color-tabs {
    justify-content: center;
  }
  
  .nav-section {
    display: inline-block;
    width: calc(50% - 10px);
    margin-right: 10px;
    vertical-align: top;
  }
}

/* Slide in animation */
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}