html.wait, html.wait * {
  cursor: wait !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #000 !important;
	}
.swal2-confirm {
background-color: #008080 !important; 
border: none; 
color: white !important; 
font-size: 16px; 
}
select#characterList option {
    font-size: 20px;
    padding-bottom: 4px;
    padding-top: 3px;
}
input.editable-wt\. {
    background-color: unset !important;
}
h2#swal2-title {
    color: #000;
}

.proficiencies-container {
    display: flex;
    align-items: center;
  gap: 10px;
  min-width: 170px;
}
#weapon_proficiency {
    flex-grow: 1; 
}
#selected_proficiencies {
    flex-grow: 2; 
}
tr {
font-size: 16px;
}
.section table {
   table-layout: fixed;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; 
}
.armor-type,
.equipment-section {
  flex: 1;
  min-width: 200px; 
}
.equipment-section {
  flex-grow: 2; 
}
.armor-type label { 
  display: block;
  margin-bottom: 5px;
}
select#armor_type {
  width: 100%;
  box-sizing: border-box;
}
textarea#equipment {
  width: 100%;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
header {
    text-align: center;
    margin: 0;
    background-image: url(https://pathfinder2e.org/rpg/wp-content/uploads/2024/07/bannerdnd.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
button, .link-button {
  cursor: pointer;
  padding: 10px 20px;
  font-size: 16px;
  margin-right: 10px;
  margin-bottom: 10px;
  text-decoration: none; 
  background-color: #EEE; 
  border: 1px solid #000;
  color: #000;
  display: inline-block;
  text-align: center;
}
.section h2 {
    font-size: 16px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 7px 10px;
    border: 0px solid #4d7bcd;
    margin-bottom: 0px;
    border-radius: 8px;
    display: inline-block;
    line-height: 1em;
    height: auto;
    -webkit-box-shadow: -3px -2px 6px 2px #ccc; 
    -moz-box-shadow: -3px -2px 6px 2px #ccc; 
    box-shadow: -3px -2px 6px 2px #ccc; 
}
button:hover, button:active,
.link-button:hover, .link-button:active {
  background-color: #20f90f; 
}
div#controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  border-color: #EEE;
  padding: 0px;
  margin-bottom: 0px;
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
button, .control-link, .link-button {
  cursor: pointer;
  padding: 10px 20px;
  font-size: 16px;
  margin: 5px;
  text-decoration: none;
  color: #000;
  border: 1px solid #aaa;
  border-radius: 5px;
  text-align: center;
}
button.small {
  padding: 5px 10px;
  font-size: 16px;
}
details#filters {
    display: none;
}
fieldset {
  border-color: #EEE;
  background-color: #EEE;
  padding: 2px;
  margin-bottom: 2px;
  box-sizing: border-box;
  width: 100%;
}
fieldset label {
  display: block;
  margin-bottom: 10px;
}
input, textarea {
    font-size: 16px;
}
.character-sheet input, .character-sheet textarea {
    font-size: 16px;
}
select#options-method {
    background: #cfffcf;
}
fieldset select {
  width: 100%;
}
#output_table th:nth-child(19),
#output_table td:nth-child(19),
#output_table th:nth-child(20),
#output_table td:nth-child(20) {
  display: none;
}
#download-button {
  position: absolute;
  right: 10px;
  top: 40px; 
  padding: 10px 20px;
  font-size: 16px;
  background-color: #EEE;
  border: 1px solid #000;
  cursor: pointer;
}
#download-button:hover {
  background-color: #d3d3d3; 
}

.select2-container {
  max-width: 300px !important;
}

.select2-dropdown {
  max-width: 300px !important;
}

.select2-selection {
  max-width: 300px !important;
}
div#options {
  max-width: 25%;
  margin: 0 auto;
}
select#options-method {
    width: 50%;
}
#output_textarea {
  display: none;
}
div#options fieldset {
    border: none !important;
}
#options label {
    text-align: center;
}
select#options-method {
    padding-left: 20px;
}
#output_table {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  margin-top: 20px;
  overflow-x: auto;
}
#output_table th, #output_table td {
  padding: 3px;
  text-align: left;
  border: 1px solid #000;
  white-space: nowrap; 
}
#output_table th {
  position: -webkit-sticky;
  position: sticky;
  background-color: white;
  top: 0;
  z-index: 2;
}
#output_table tr:nth-child(even) td {
  background: #eee6;
}
#output_table tbody tr:hover {
  background: #0003;
}
#output_table tr.highs td {
  background: #9e96;
}
#output_table td.high {
  background: #0f06;
}
#output_table td.low {
  background: #f996;
}
#output_table td.copy {
  background: unset;
  text-align: center;
  opacity: 100%;
}
#output_table tr:hover td.copy {
  background: gold;
  cursor: pointer;
}
#info code {
  background: gold;
  padding: 5px;
}
details summary {
  font-weight: bold;
}
.character-sheet {
  width: 100%;
  max-width: 800px;
  margin: 0px auto;
  border: 0px solid #000;
  padding: 0px;
  box-sizing: border-box;
}
.section {
  margin-bottom: 10px;
}
select#class, select#race, select#sex, select#alignment, select#armor_type, span.select2-selection.select2-selection--multiple {
    background: #cfffcf;
}
.populated, #armor_class  {
    font-size: 16px;
    background-color: #d6eff7a6; 
	width: 100%;
	padding-top: 6%;
	padding-bottom: 2%;
}

.section table {
  width: 100%;
  border-collapse: collapse;
}
.section table th, .section table td {
  border: 1px solid rgba(128, 128, 128, 0.5);
  padding: 5px;
  text-align: left;
}
input {
    border: 0px;
}
  div#output {
    display: none;
  }
  #controls button {
    background: #95ff95;
}
#controls button:hover, #controls button:active {
    background-color: #20ff20;
}
.invalid-option {
  background-color: #ffcccc; 
}


select {
  -webkit-appearance: none; 
  -moz-appearance: none;    
  appearance: none;         
  background-image: none;   
  background-color: #fff;   
  border: unset !important;
  padding: 5px;
  font-size: 16px;
  border-radius: 0px;
 
  width: 100%;
  cursor: pointer;
}
select:hover {
  cursor: pointer; 
}
select:focus {
  border-color: #66afe9;
  outline: none;
  -webkit-box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
-moz-box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);
box-shadow: 0 0 5px rgba(102, 175, 233, 0.6);

}
footer { 
	text-align: center;
	font-size: 16px;
	color: #000;
	padding-bottom: 200px;
  padding-top: 10px
}
footer a:hover, footer a:active {
    color: #d75506;
}
.hidden {
    display: none;
	opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.visible {
    display: block;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}
span#exceptional-strength {
    padding-left: 10px;
    padding-right: 10px;
	background-color: #b9ffb9;
    padding-top: 5px;
    padding-bottom: 5px;
}
span#strength-bonus, span#dexterity-adjustments {
    padding: 5px 10px 5px 10px;
    background-color: lightblue;
}
.section th, .section td {
    padding: 4px; 
    border: 1px solid #ccc;
    text-align: left;
    white-space: nowrap; 
}
 .section table td {
 display: table-cell;
 }
.section th {
    background-color: #f4f4f4;
}
.shrink-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 50%; 
}
.shrink-input {
    width: 100%;
    box-sizing: border-box;
}
.strength-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.strength-container input {
    margin-bottom: 5px; 
    width: 100%;
}
.strength-container span {
    white-space: nowrap; 
}
main#main {
	background-image: url(https://pathfinder2e.org/rpg/wp-content/uploads/2021/11/cropped-background.webp);
	}
@media print {
  
  body {
    margin: 0;
    padding: 20px;
  }
  
  .flex-container {
    display: flex;
    justify-content: space-between;
  }
  .section {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }
  .armor-type-section, .backstory-type-section {
    flex: 1;
  }
  .section.armor-type-section, .section.backstory-type-section {
    display: inline-block;  
    width: 49%;  
    vertical-align: top;  
  }
  
  .armor-type, .backstory-type {
    display: flex;
    align-items: center;  
    justify-content: space-between;  
    padding: 5px 0;  
  }
  
  select {
    max-width: 60%;  
  }
  
  #selected_armor_type, #backstory_output {
    flex-grow: 1;  
  }
	.section.armor-type-section {
    margin-top: 10px;
	}
	.section.backstory-type-section {
    margin-top: 10px;
	}
  .armor-type-section h2, .backstory-type-section h2, .aligntexter h2 {
    font-size: 16px !important;      
    font-weight: bold !important;    
    color: black !important;         
    background-color: transparent !important; 
    padding: 0 !important;           
    border: none !important;         
    margin-bottom: 0 !important;     
    border-radius: 0 !important;     
    display: inline !important;      
    line-height: normal !important;  
    -webkit-box-shadow: none !important;  
-moz-box-shadow: none !important;     
box-shadow: none !important;          

  }
    .select2-container .select2-selection--single {
    border: none !important; 
    background: none !important; 
   -webkit-box-shadow: none !important;  
-moz-box-shadow: none !important;     
box-shadow: none !important;          

  }
  .aligntexter, .aligntexter h2 {
  display: inline;
  float: left;
  }
  
  .select2-container .select2-selection--single .select2-selection__arrow {
    display: none !important; 
  }
  table {
    width: 100%;
    border-collapse: collapse;
  }
  th, td {
    padding: 5px;
    text-align: left;
    border: 1px solid #ddd;
  }
  
  .logo a {
    width: 360px;
    height: 60px;
    -webkit-print-color-adjust: exact; 
    print-color-adjust: exact; 
  }
  .equipment-section {
    padding-top: 80px;
  }
  
  .equipment-section label,
  .equipment-section select,
  .equipment-section button,
  .equipment-section input.select2-search__field,
  .equipment-section span.select2-selection.select2-selection--multiple,
  span.select2-selection.select2-selection--multiple,
  .select-add-controls,
  div#options,
  div#controls {
    display: none !important;
  }
  
  h2 {
    margin-top: 0;
    padding-top: 10px;
  }
  footer {
    page-break-inside: avoid;
    page-break-before: avoid;
    padding-top: 20px;
    margin-top: 20px;
  }
  
  main#main,
  .character-sheet td,
  .character-sheet tr,
  .character-sheet input,
  .character-sheet textarea,
  span#intelligence-bonuses,
  div#wisdom-bonuses,
  div#Charisma-bonuses,
  span#select2-backstory_type-container,
  ul#select2-backstory_type-results,
  ul#select2-weapon_proficiency-results,
  ul#select2-weapon_proficiency-container,
  ul#select2-nonweapon_proficiency-results,
  ul#select2-nonweapon_proficiency-container,
  select#class, 
  select#race, 
  select#sex, 
  select#alignment, 
  select#armor_type {
    font-size: 16px;
  }
  .character-sheet {
    padding: 0px;
  }
  textarea#selected_proficiencies, textarea#selected_nonproficiencies {
    display: block !important;
    border: 0px !important;
    margin-top: 10px !important;
	}
	span.select2.select2-container.select2-container--default.select2-container--below {
    display: none;
	}
	span.delete-icon {
    display:none;
	}
	.supplies-section {
    font-size: 16px;
	}
	.supplies-section h3 {
    text-align: center;
    font-size: 16px;
	}
	.supplies-section h4 {
	font-size: 16px;
	}
}
td.shrink-cell-small {
    display: flex !important;
    width: 45% !important;
    max-width: 45% !important;
}
  .small-text {
    font-size: 16px;
	text-align: center;
	
  }
  .custom-textareaaa {
 
  
}
textarea#selected_proficiencies, textarea#selected_nonproficiencies {
  height: 40px;
}
textarea#selected_proficiencies, textarea#selected_nonproficiencies {
    width: 300px !important;
    max-width: 320px !important;
}
#intelligence-bonuses {
    display: block; 
}
.somespacer{
padding-top: 3px;
padding-bottom: 5px;
}
div#wisdom-bonuses {
    padding-bottom: 15px;
}

    .select2-container--default .select2-selection--single {
        background-color: #cfffcf !important;
    }
    
    .select2-container--default .select2-results__option {
        background-color: #cfffcf !important;
    }
    
    .select2-container--default .select2-results__option--highlighted[aria-selected] {
        background-color: #a0e0a0 !important;
    }
    
    .select2-container--default .select2-selection--single .select2-selection__rendered {
        background-color: #cfffcf !important;
}


.armor-type-section, .backstory-type-section {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    gap: 10px; 
}

.armor-type-section select, .backstory-type-section select {
    flex-grow: 1;
    width: auto; 
    max-width: 300px; 
}

.armor-type-section .armor-output, .backstory-type-section .backstory-output {
    margin-left: 10px; 
    white-space: nowrap; 
}

.armor-type-section h2, .backstory-type-section h2 {
    font-size: 16px;
    font-weight: bold;
    background-color: #f0f0f0;
    padding: 7px 10px;
    border: 0px solid #4d7bcd;
    margin-bottom: 0px; 
    border-radius: 8px;
    display: inline-block;
    line-height: 1em;
    -webkit-box-shadow: -3px -2px 6px 2px #ccc;  
-moz-box-shadow: -3px -2px 6px 2px #ccc;     
box-shadow: -3px -2px 6px 2px #ccc;          

}
.backstory-type {
    display: flex;
    align-items: center;  // Ensures vertical alignment to the center
    justify-content: flex-start;  // Aligns children from the start
    width: 100%;  // Ensures the flex container takes up the full width
}
#backstory_type, #backstory_output {
    flex-grow: 0;  // Prevents both the select and the output from growing
    margin-right: 10px;  // Adds space between the select and the output text
}
#backstory_output {
    white-space: nowrap;  // Prevents the output text from wrapping
}

#backstory_type {
    width: 300px !important;
}
span#selected_armor_type, div#backstory_output {
    margin-left: 20px;
}
select#armor_type {
border-bottom: none !important;
padding: 10px !important;
font-size: 16px !important;
margin-top: 10px !important;
border-radius: 4px !important;
}
.backstory-type {
    margin-top: 10px !important;
	margin-left: 10px !important;
}
td.shrink-cell {
    padding: 0px !important;
}
span#select2-backstory_type-container {
    font-size: 16px;
}
ul#select2-backstory_type-results {
    font-size: 16px;
}
.logo {
  position: relative;
  display: inline-block;
}
.logo a {
  display: block;
  text-indent: -9999px; 
  background: url('https://pathfinder2e.org/adnd-2e-logo.png') no-repeat;
  width: 320px; 
  height: 60px; 
  background-size: 88% 100%; 
}
ul#select2-weapon_proficiency-container {
    font-size: 16px;
}
ul#select2-weapon_proficiency-results {
    font-size: 16px;
}
  
  .select2-container--default .select2-selection--single {
    border: none !important; 
    background: none !important; 
  }
  
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none !important; 
  }
  
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: black !important; 
  }
  div#display-wisdom-bonus {
    margin-top: 10px;
}
div#consultwithdm p {
    font-size: 10px;
}
.nonproficiencies-container {
    display: flex;
    align-items: center;
    gap: 10px;
  min-width: 170px;
}

.proficiency-storage {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.proficiency-chip-box {
  width: 300px;
  max-width: 320px;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #9ac79a;
  border-radius: 6px;
  background: #ecffec;
  box-sizing: border-box;
}

.proficiency-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #8ebf8e;
  background: #d6f7d6;
  color: #123112;
  font-size: 14px;
  line-height: 1;
}

.proficiency-chip-remove {
  border: none;
  background: #d84b4b;
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  line-height: 18px;
  padding: 0;
}

.proficiency-chip-remove:hover,
.proficiency-chip-remove:focus-visible {
  background: #b92f2f;
}

.proficiency-chip-empty {
  font-size: 13px;
  color: #4e5f4e;
}

.select2-selection.proficiency-at-limit,
.proficiency-chip-box.proficiency-at-limit {
  background: #d8d8d8 !important;
  border-color: #8a8a8a !important;
}

.select2-selection--multiple.proficiency-at-limit .select2-search__field {
  background: #d8d8d8 !important;
}

.select2-selection--multiple.proficiency-at-limit .select2-selection__choice {
  background: #ededed !important;
  border-color: #b8b8b8 !important;
  color: #333 !important;
}

.proficiency-chip-box.proficiency-at-limit .proficiency-chip {
  background: #ededed;
  border-color: #b8b8b8;
  color: #333;
}
span.delete-icon {
    color: #fff;
    background-color: #f44336;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
span.delete-icon:hover {
    background-color: #d32f2f;
}
.supplies-section {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 20px;
}
.supply h4 {
    margin-top: 0;
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr); 
    gap: 5px;
    padding: 5px;
}
.checkbox-grid input[type="checkbox"] {
    accent-color: black; 
}
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: unset !important;
    padding: 0px;
}
.supplies-section h3 {
    text-align: center;
	font-size: 16px;
}
input[type="checkbox"] {
    border: 1px solid #000; 
    appearance: none; 
    -webkit-appearance: none; 
    background: #fff; 
    width: 15px; 
    height: 15px; 
}
input[type="checkbox"]:checked {
    background-color: #000; 
}
.supply.rations h4, .supply.feed h4 {
    margin-top: 15px;
}
li.select2-selection__choice {
    font-size: 16px;
}
ul#select2-nonweapon_proficiency-results {
    font-size: 16px;
}
.supply .checkbox-grid input[type="checkbox"] {
    accent-color: blue; 
    margin: 5px; 
}
.supplies-section {
    font-size: 16px;
}
.aligntexter h2 {
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}
.aligntexter {
    display: inline-flex;
    align-items: flex-start; 
    width: 100%; 
}
.aligntexter h2 {
    flex-shrink: 0; 
    flex-grow: 0; 
}
select.shrink-input {
    width: 100%;
    box-sizing: border-width: 2px;
    border: none;
    background-color: transparent;
}
ul#select2-nonweapon_proficiency-container {
    font-size: 16px;
}
@media (max-width: 768px) {
  
  body {
    font-size: 18px; 
    padding: 10px; 
  }
  tr, .section table th, .section table td {
    font-size: 16px; 
    padding: 10px; 
  }
  button, .link-button {
    font-size: 16px; 
    padding: 15px 25px; 
    margin-right: 5px; 
    margin-bottom: 5px; 
  }
  .section {
    padding: 10px; 
    margin-bottom: 10px; 
  }
  header {
    font-size: 20px; 
    margin: 5px 0; 
  }
  input, textarea, select, .character-sheet input, .character-sheet textarea, .select2-selection__rendered {
    font-size: 16px; 
    padding: 10px; 
  }
  .flex-container, .proficiencies-container, .nonproficiencies-container {
    gap: 15px; 
  }
  .roll-character-btn, .download-btn, .select-weapon, .select-nonweapon, button, .control-link, .link-button, select {
    width: 100%; 
    margin: 5px 0; 
  }
  .select2-container, .select2-dropdown, .select2-selection, .select2-selection--multiple {
    width: 100% !important; 
    max-width: 100% !important; 
  }
  .character-info, .small-text, .select2-container--default .select2-selection--single .select2-selection__rendered, .select2-container--default .select2-results__option, .select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 16px; 
  }
  .logo a {
    width: 320px; 
    height: 60px; 
    background-size: contain; 
  }
  #output_table {
    width: 100%;
    font-size: 16px; 
    overflow-x: auto; 
  }
  #output_table th, #output_table td {
    padding: 10px; 
  }
  	div#options {
	max-width: 100%
	}
		input#player_name, 
	input#family_race, 
	input#religion, 
	input#silverpieces, 
	input#electrumpieces, 
	input#copperpieces,
	input#platinumpieces, 
    textarea#selected_proficiencies, 
    textarea#selected_nonproficiencies, 
	input.editable-weight, 
	input.editable-location, input#currenthitpoints {
		background-color: transparent !important;
	}
    .proficiency-chip-box {
      width: 100%;
      max-width: 100%;
    }
}
@media (max-width: 605px) {
	
	#weapons-table th {
	display: none;
	}
  
  body {
    font-size: 16px; 
    padding: 5px; 
  }
  tr, .section table th, .section table td {
    font-size: 16px; 
    padding: 5px; 
  }
  button, .link-button {
    font-size: 16px; 
    padding: 10px 15px; 
    margin-right: 2px; 
    margin-bottom: 2px; 
  }
  .section {
    padding: 5px; 
    margin-bottom: 5px; 
	
  }
  header {
    font-size: 18px; 
    margin: 3px 0; 
  }
  input, textarea, select, .character-sheet input, .character-sheet textarea, .select2-selection__rendered {
    font-size: 16px; 
    padding: 5px; 
  }
  .flex-container, .proficiencies-container, .nonproficiencies-container {
    gap: 10px; 
  }
  .roll-character-btn, .download-btn, .select-weapon, .select-nonweapon, button, .control-link, .link-button, select {
    width: 100%; 
    margin: 2px 0; 
  }
  .select2-container, .select2-dropdown, .select2-selection, .select2-selection--multiple {
    width: 100% !important; 
    max-width: 100% !important; 
  }
  .character-info, .small-text, .select2-container--default .select2-selection--single .select2-selection__rendered, .select2-container--default .select2-results__option, .select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 16px; 
  }
  .logo a {
    width: 360px; 
    height: 100px; 
    background-size: contain; 
  }
  #output_table {
    width: 100%;
    font-size: 16px; 
    overflow-x: auto; 
  }
  #output_table th, #output_table td {
    padding: 5px; 
  }
  
  .select2-container--default .select2-selection--single {
    height: auto; 
    padding: 5px; 
  }
  .select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 50%; 
    transform: translateY(-50%); 
  }
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 10px; 
    padding-right: 10px; 
  }
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    font-size: 16px; 
  }
  .select2-container--default .select2-results__option {
    font-size: 16px; 
  }
  
  .proficiencies-container, .nonproficiencies-container {
    flex-direction: column; 
    align-items: flex-start; 
  }
  #weapon_proficiency, #nonweapon_proficiency {
    width: 100%; 
    margin: 5px 0; 
  }
  tbody tr {
    display: inline-grid;
	}
	table#equipment-table th:nth-child(2), table#equipment-table th:nth-child(3), table#equipment-table td:nth-child(2), table#equipment-table td:nth-child(3) {
    display: none;
	}
	.aligntexter {
    display: unset;
	}
	td.shrink-cell {
    max-width: 100% !important;
	}
	.character-sheet {
	max-width: 400px !important;
	}
	tbody tr {
    display: grid;
	}
	p.small-text {
    font-size: 11px;
	}
	td.shrink-cell select {
    font-size: 16px !important;
	}
	td.shrink-cell input {
    font-size: 16px !important;
	}
	.section h2 {
	font-size: 16px;
	}
	.abilities-container {
    flex-direction: column;
    }
	.list-of-class-abil {
    padding-bottom: 20px;
	}
	input#player_name, 
	input#family_race, 
	input#religion, 
	input#silverpieces, 
	input#electrumpieces, 
	input#copperpieces,
	input#platinumpieces, 
	textarea#selected_proficiencies, 
	textarea#selected_nonproficiencies, 
	input.editable-weight, 
	input.editable-location, input#currenthitpoints {
		background-color: transparent !important;
	}
	#weapons-table th:nth-child(2),  
	#weapons-table th:nth-child(3),  
	#weapons-table th:nth-child(4),  
	#weapons-table td:nth-child(2),  
	#weapons-table td:nth-child(3),  
	#weapons-table td:nth-child(4)   
	{display: none !important;}
}
.somespacer, div#consultwithdm p, span#enchantment-bonus-display, span#constitution-bonus-display, span#constitutionz-bonus-display, span#dwarf-detection-display, span#elf-abilities-display, span#half-elf-abilities-display,
span#halfling-combat-surprise-display, span#gnome-combat-detection-display, span#half-orc-combat-bonuses-display {
    font-size: 16px;
}
.list-of-class-abil {
    font-size: 16px;
}
div#display-wisdom-bonus {
    font-size: 16px;
}
div#unique-constitution-details {
    padding-bottom: 15px;
}
input#strength {
    margin-top: 0%;
    margin-bottom: 0%;
}
.weaponznotez {
    font-size: 10px;
}
#weapons-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }
    #weapons-table th, #weapons-table td {
        border: 1px solid #ddd;
        padding: 8px;
        text-align: left;
    }
    #weapons-table .weapon-column {
        width: 25%; 
    }
    #weapons-table th:not(.weapon-column):not(:last-child) {
        width: 12%; 
    }
    #weapons-table th:last-child {
        width: 5%; 
    }
    .delete-cell {
        text-align: center;
        cursor: pointer;
    }
    .delete-icon {
        color: red;
        font-weight: bold;
    }
#weapons-table td:first-child, #equipment-table td:first-child {
    background-color: #e4f5fa !important;
}
.abilities-container {
  display: flex;
  gap: 20px; 
}
.list-of-race-abil,
.list-of-class-abil {
  flex: 1; 
  min-width: 200px; 
}
input#player_name, 
input#family_race, 
input#religion, 
input#silverpieces, 
input#electrumpieces, 
input#copperpieces,
input#platinumpieces, 
textarea#selected_proficiencies, 
textarea#selected_nonproficiencies, 
input.editable-weight, 
input.editable-location, input#currenthitpoints {
    background-color: transparent !important;
}
#spell-table {
    width: 100%;
    border-collapse: collapse;
}
#spell-table th, #spell-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
#spell-table .delete-cell {
    cursor: pointer;
    text-align: center;
}
#spell-table .delete-icon {
            color: #fff;
        font-weight: bold;
}

#constitution-bonus-display,
#enchantment-bonus-display,
#constitutionz-bonus-display,
#dwarf-detection-display,
#elf-abilities-display,
#half-elf-abilities-display,
#gnome-combat-detection-display,
#halfling-combat-surprise-display,
#half-orc-combat-bonuses-display,
#cleric-abilities-display,
#paladin-abilities-display,
#ranger-abilities-display,
#fighter-abilities-display,
#thief-abilities-display,
#bard-abilities-display,
#druid-abilities-display,
#mage-abilities-display,
#abjurer-abilities-display,
#conjurer-abilities-display,
#diviner-abilities-display,
#enchanter-abilities-display,
#illusionist-abilities-display,
#invoker-abilities-display,
#necromancer-abilities-display,
#transmuter-abilities-display,
#multi-class-abilities-display {
    display: none;
}

#racer-abili, #classer-abili {
    transition: all 0.3s ease;
    color: initial;
-webkit-box-shadow: none;  
-moz-box-shadow: none;     
box-shadow: none;          
    cursor: pointer;
    position: relative; 
}

#racer-abili::after, #classer-abili::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-box-shadow: 0 0 8px 4px limegreen;  
-moz-box-shadow: 0 0 8px 4px limegreen;     
box-shadow: 0 0 8px 4px limegreen;          
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#racer-abili, #classer-abili {
    transition: all 0.3s ease;
    color: initial;
-webkit-box-shadow: none;  
-moz-box-shadow: none;     
box-shadow: none;          
    cursor: pointer;
}

#racer-abili.open, #classer-abili.open {
    -webkit-box-shadow: 0 0 8px 4px limegreen;
-moz-box-shadow: 0 0 8px 4px limegreen;
box-shadow: 0 0 8px 4px limegreen;

}

#racer-abili:hover, #classer-abili:hover {
    -webkit-box-shadow: 0 0 8px 4px limegreen;
-moz-box-shadow: 0 0 8px 4px limegreen;
box-shadow: 0 0 8px 4px limegreen;

}
h2#classer-abili,h2#racer-abili {
    margin: 20px 0px 20px 0;
}
select#weapon_specialization {
    background-color: #cfffcf;
}
select#weapon_specialization {
    max-width: 210px;
}
span#select2-backstory_type-container {
	padding: 3px;
	}
select#weapon_specialization {
    padding: 10px;
}
h2#classer-abili, h2#racer-abili {
    border-radius: unset;
    background-color: #e3f3f7;
}

#racer-abili, #classer-abili {
    position: relative;
    padding-left: 30px; 
    cursor: pointer;
    font-size: 16px;
}





#racer-abili:hover::before, #classer-abili:hover::before {
    color: #000; 
}


#racer-abili:hover::before, #classer-abili:hover::before {
    transform: rotate(180deg); 
}
.disabled-button {
	cursor: none !important;
	background-color: #eee !important;
	background: #eee !important;
	opacity: 1;
	color: #ccc;
	cursor: not allowed;
}
select:disabled {
    color: #000 !important;
    background-color: #fff !important;
    opacity: 1;
}
select:disabled:hover{
	cursor: unset !important;
}
button#saveCharacterBtn:hover {
   
}
.select2-container--default.select2-container--disabled #select2-backstory_type-container {
    background-color: #eee !important;
    color: #aaa; 
}

#weapon_specialization_container, #spell-selection {
    transition: all 0.3s ease-in-out !important;
    overflow: hidden;
}
div#swal2-html-container {
    font-size: 1.2em !important;
}
.disabled-button:hover {
background-color: #eee !important;
cursor: not-allowed;
}
#controls button.disabled-button:hover,
#controls button.disabled-button:active,
#controls button.disabled-button:focus {
background-color: #eee !important;
}

.delete-icon.disabled {
color: #eee !important;
}
div#abilities-square {
    padding: 10px;
    background-size: cover;
    border: 15px solid transparent;
    border-image: url(https://pathfinder2e.org/rpg/wp-content/uploads/2022/07/demon-border.bak.png) 34 round;
}
.info-icon {
    display: inline-block;
	font-family: Arial, sans-serif;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%; 
    background-color: #f0f0f0; 
    color: #333; 
    margin-right: 8px; 
    vertical-align: middle;
    font-size: 14px; 
    cursor: pointer;
    -webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
-moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
box-shadow: 0 2px 2px rgba(0,0,0,0.1);
}
.info-icon::before {
    content: 'i'; 
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #000;
    margin-right: 8px;
    vertical-align: middle;
    font-size: 16px;
    cursor: pointer;
	-webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.8);
    -moz-box-shadow: 0 2px 2px rgba(0,0,0,0.8);
    box-shadow: 0 2px 2px rgba(0,0,0,0.8);
}
span.select2-selection.select2-selection--multiple {
    margin-top: 10px !important;
}
.select2-container {
    max-width: 205px !important;
}

.proficiencies-container .select2-container,
.nonproficiencies-container .select2-container,
.proficiencies-container .select2-dropdown,
.nonproficiencies-container .select2-dropdown {
  width: 170px !important;
  min-width: 170px !important;
  max-width: 170px !important;
}

@media (max-width: 768px) {
  .proficiencies-container .select2-container,
  .nonproficiencies-container .select2-container,
  .proficiencies-container .select2-dropdown,
  .nonproficiencies-container .select2-dropdown {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }
}
.section.armor-type-section, .section.backstory-type-section {
    margin-top: 15px;
}
div#weapon_specialization_container {
    margin-top: 20px !important;
}
.aligntexter {
    margin-top: 10px;
}
select#spell_selection {
    background: unset;
}
.swal2-html-container ul {
    text-align: left;
}
.swal2-html-container li {
    padding: 8px;
}


#loading-data, #loading-code {
  background-color: #0556ce;
  padding: 10px; 
  margin-bottom: 0px; 
  text-align: center;
  font-size: 2em;
  color: #fff;
}
.swal2-popup.swal2-modal.custom-popup.swal2-show {
    -webkit-box-shadow: 0px 0px 22px 10px #FFC; 
    -moz-box-shadow: 0px 0px 22px 10px #FFC;    
    box-shadow: 0px 0px 22px 10px #FFC;         
}





.loading-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}


.loading-container {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    text-align: center;
}

.loading-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.loading-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: #0556ce;
    border-radius: 10px;
    animation: load 1s forwards;
}

@keyframes load {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.loading-text {
    font-size: 1.2em;
    color: #0556ce;
    margin-bottom: 10px;
}

        #notice-button {
            background-color: #ff2020;
            color: white;
            border: none;
            /* Sized to match the Weapons heading exactly. The h2 is 16px text on a
               1em line box with 7px padding, so 16 + 14 = 30px tall. This button
               declares border: none above, so the same 7px gives the same 30px. */
            padding: 7px 14px;
            /* The shared `button` rule adds 10px bottom and right margins, which
               reintroduced the vertical spacing. Clear them for this one. */
            margin: 0 0 0 8px;
            /* The h2 keeps its browser-default top margin (~0.83em) while this
               button has none, so aligning by the top left the button floating
               above it. Both have margin-bottom: 0 and both are 30px tall, so
               aligning the bottom edges puts them exactly level. */
            vertical-align: bottom;
            line-height: 1em;
            font-size: 16px;
            border-radius: 8px;
            cursor: pointer;
        }

        #notice-button:hover {
            background-color: #20ff20;
        }
div#swal2-html-container {
    text-align: left;
	color: #000;
}
/* Hide default checkbox */
input[type="checkbox"] {
    display: none;
}

/* Create a custom checkbox */
input[type="checkbox"] + label {
    position: relative;
    cursor: pointer;
    padding-left: 25px;
    user-select: none;
}

/* Create a custom checkmark (unchecked state) */
input[type="checkbox"] + label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #555;
    border-radius: 3px;
    background-color: #fff;
}

/* Checkmark (checked state) */
input[type="checkbox"]:checked + label::before {
    content: '✔';
    font-size: 16px;
    color: #555;
    text-align: center;
    line-height: 18px;
}
div#checkerboxers {
    padding: 10px;
    background-color: #e3f3f8;
}
label[for="remove-class-requirements"] {
  padding-right: 10px;
}
button#roll-ability-dice {
    background-color: #95ff95;
}

button#roll-ability-dice:hover, button#roll-ability-dice:active {
    background-color: #20ff20 !important;
}
button#loadCharactersBtn {
    background-color: chartreuse;
}
button#saveCharacterBtn {
    background-color: #f7d105;
}
button#resetButton {
    background-color: #af0808;
    color: #fff;
    text-shadow: 0px 0px 5px #fff;
}
button#resetButton:hover, button#resetButton:active  {
    background-color: red;
}
button#saveCharacterBtn:hover, button#saveCharacterBtn:active {
    background-color: yellow;
}
button#loadCharactersBtn:hover, button#loadCharactersBtn:active {
    background-color: #00eaff;
}
button#loadCharactersBtn {
    background-color: #15c1ff;
}
button#helpButton {
    background-color: #008080;
    color: #fff;
}
button#helpButton:hover, button#helpButton:active {
    background-color: #02cdcd;
    color: #fff;
}
a.link-button {
    background-color: #000;
    color: #fff;
}
/* Style for disabled checkboxes */
input[type="checkbox"][disabled] {
    opacity: 0.5; /* Lower opacity to make checkbox look greyed out */
    cursor: not-allowed; /* Show that the checkbox is not interactable */
}

/* Style for labels of disabled checkboxes to change background and text color */
input[type="checkbox"][disabled] + label {
    color: #888; /* Grey text color */
	cursor: default;
}

h2#racer-abili, h2#classer-abili {
	font-size: 18px !important;
	font-weight: unset !important;
}

/* Dice-method options with the OpenDungeons advert alongside it.
   #options carries max-width:25% and margin:0 auto on its own, so both are reset
   inside the row and the row itself handles the centring. */
#options-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

#options-row div#options {
    max-width: none;
    margin: 0;
    flex: 0 1 auto;
}

#options-ad {
    display: block;
    flex: 0 1 380px;
    max-width: 380px;
    line-height: 0;
}

#options-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* Below the options block on narrow screens rather than squeezed beside it. */
@media (max-width: 768px) {
    #options-ad {
        flex-basis: 100%;
        max-width: 420px;
    }
}

/* div#options is already suppressed for print; the advert must go with it. */
@media print {
    #options-row,
    #options-ad {
        display: none !important;
    }
}

/* Second entry point to the PDF export, sitting under the gear picker so the
   control is reachable without scrolling back to the top toolbar. Inherits the
   .link-button appearance from the toolbar copy. */
#save-pdf-bottom {
    margin-top: 18px;
}

/* Keep it clear of the equipment section's print suppression - the export button
   is screen-only anyway. */
@media print {
    #save-pdf-bottom {
        display: none !important;
    }
}

/* Shared layout for the "pick something, then add it" rows - the weapon and
   ammunition pickers, and the additional gear picker.

   Three aligned columns: label, dropdown, button. Every row lines up on all
   three edges no matter how wide the label text is, and the columns stay
   consistent between the two sections. Select2 replaces each <select> with a
   sibling .select2-container and takes the original out of flow, so the
   container is what actually occupies the middle column. */
.select-add-controls {
    display: grid;
    grid-template-columns: auto minmax(0, 300px) auto;
    align-items: center;
    justify-content: start;
    gap: 10px 12px;
    margin-top: 10px;
}

.select-add-controls > label {
    justify-self: end;
    white-space: nowrap;
    margin: 0;
}

/* Fill the shared middle column so right edges agree across rows and sections.
   Overrides the global 205px cap for these fields only. */
.select-add-controls .select2-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* The global rule puts margin-top:10px on the select2 box, which pushed these
   fields below the neighbouring buttons. Clear it so the row centres properly. */
.select-add-controls span.select2-selection.select2-selection--multiple {
    margin-top: 0 !important;
}

.select-add-controls > button {
    justify-self: start;
    white-space: nowrap;
}

/* Reset sits under the dropdown column, clear of the label gutter. */
#weapon-select-controls #ammowhat {
    grid-column: 2 / 4;
    justify-self: start;
    margin: 0;
}

/* Narrow screens: stack into one column, labels back on the left. */
@media (max-width: 605px) {
    .select-add-controls {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .select-add-controls > label {
        justify-self: start;
    }

    .select-add-controls > label:not(:first-child) {
        margin-top: 8px;
    }

    #weapon-select-controls #ammowhat {
        grid-column: 1;
        margin-top: 8px;
    }
}
