/* Icon styles */

.dropdown .btn span {
  display: inline-block;
  width: 100%;
  text-align: center;
}
.dropdown .btn.zoomable-button {
  font-weight: bold;
  text-align: center;
  transition: all 0.2s ease;
}
.dropdown-toggle::after {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.no-zoom {
  transform: scale(1) !important;
  font-size: 1.4em !important;
}

.dice-icon {
  font-size: 40px;
  color: #444;
  margin: 0 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dice-icon:hover {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

/* Page and scroll aesthetic */
body {
  font-family: 'Segoe UI', sans-serif;
  background: url('https://www.transparenttextures.com/patterns/paper-fibers.png') repeat;
  background-color: #f5ecd7;
  padding: 30px;
  margin: 0;
  justify-content: center;
}

h1 {
  text-align: center;
  color: #3b2f2f;
  font-family: 'wonton', sans-serif;
  font-size: 38px;
  margin: 0 0 16px 0;
  border-bottom: 2px solid #3b2f2f;
  padding-bottom: 10px;
}

.scroll {
   width: 100%;
}

.scroll-inner {
  background-color: #fffaf0;
  border: 2px solid #3b2f2f;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border-radius: 12px;
  position: relative;
  padding: 20px;
  overflow: hidden;
}

.scroll-inner::before,
.scroll-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(to right, #c0a074, #e7d2a5 20%, #e7d2a5 80%, #c0a074);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.scroll-inner::before {
  top: -10px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.scroll-inner::after {
  bottom: -10px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

/* Form basics */
label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #5c4438;
  letter-spacing: 0.25px;
}

input[type="text"],
input[type="number"],
textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  box-sizing: border-box;
  border: 1px solid #bfae97;
  border-radius: 6px;
  background-color: #fffef9;
  color: #2f2a25;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

/* Layout rows */
.stat-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.stat-group {
  flex: 1;
  min-width: 120px;
}

/* Specific widths */
#name { width: 220px; }


#shurikens {
  width: 40px;
}

#ninjatools,
#items {
  min-height: 60px;
  font-size: 1rem;
  line-height: 1.3;
}

/* Buttons */
.button-row {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

button {
  flex: 1;
  padding: 10px 12px;
  background-color: #3b2f2f;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 6px;
  min-width: 160px;
}

button:hover {
  background-color: #5c4438;
}

/* Output box */
#codeOutput {
  margin-top: 15px;
  background-color: #eee;
  padding: 10px;
  font-family: monospace;
  white-space: pre-wrap;
  border-radius: 6px;
  border: 1px solid #d7d7d7;
}

/* Section dividers */
.section {
  padding: 8px 0 2px;
  border-top: 1px dashed #bfae97;
  margin-top: 14px;
}

.section:first-of-type {
  border-top: none;
  margin-top: 0;
}

.note {
  color: #6a5749;
  font-size: 0.9rem;
  margin-top: 6px;
}

.zoomable-text {
  font-size: 1.2em;
}

.zoomable-textarea {
  font-size: 1.2em;
  padding: 10px;
}

input[type="text"],
textarea,
select,
.dropdown-menu .dropdown-item {
  font-size: 1.2em;
}

/* Remove dropdown arrow from Bootstrap buttons */
.btn.dropdown-toggle::after {
  display: none !important;
}
/* Make dropdown menus scrollable if too tall */
.dropdown-menu {
  max-height: 300px; /* or whatever fits your layout */
  overflow-y: auto;
}

.shuriken-icon {
  font-size: 0.6em;
  margin: 2px;
}


.shuriken-grid {
  line-height: 1.2;
  transform: scale(0.9);
}
.shuriken-row {
  display: inline-flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
}


.ninja-skills label {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: 50px;
  font-weight: normal;
  color: #3b2f2f;
  font-size: 1.1em;
}
.ninja-skills input[type="checkbox"] {
  transform: scale(2.5);
padding: 15px; /* Add 5px padding on all sides */
}
.ninja-tools label {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-left: 50px;
  font-weight: normal;
  color: #3b2f2f;
  font-size: 1.1em;
}
.ninja-tools input[type="checkbox"] {
  transform: scale(2.5);
padding: 15px; /* Add 5px padding on all sides */
}

