/* Global Theme */
body {
    font-family: 'Georgia', serif;
    margin: 20px;
    background-color: #f6f1e7;
    color: #2e1f0f;
    line-height: 1.6;
}

h1, h2, h3 {
    color: #4b2e12;
    border-bottom: 2px solid #d4b483;
    padding-bottom: 5px;
}

a {
    color: #7b3e19;
    text-decoration: none;
    font-weight: bold;
}
a:hover {
    text-decoration: underline;
}

/* Tuple Boxes */
.tuple-box {
    background-color: #fffdf6;
    border: 1px solid #d4b483;
    border-radius: 8px;
    padding: 15px;
    margin: 10px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
    width: 320px;
    display: inline-block;
    vertical-align: top;
}

/* Names and Descriptions */
.name {
    font-weight: bold;
    font-size: 1.2em;
    color: #3b240b;
    margin-bottom: 5px;
}
.description {
    margin-left: 10px;
    margin-bottom: 4px;
    font-size: 0.95em;
}

/* Section Headers */
ul {
    list-style: none;
    padding: 0;
}

/* Button Styling */
button {
    background-color: #d4b483;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    color: #2e1f0f;
    font-weight: bold;
    cursor: pointer;
}
button:hover {
    background-color: #c7a96b;
}

/* Levels */
h3 {
    margin-top: 30px;
    font-size: 1.1em;
    color: #5b3a1a;
}

/* Links under abilities */
.tuple-box p {
    margin-top: 10px;
}

/* Misc form elements */
input[type="text"], select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* ========== Layout ========== */
.main-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-gap: 20px;
  margin-top: 20px;
}

/* ========== Section Headers ========== */
section h2 {
  color: #4b2e12;
  border-bottom: 2px solid #d4b483;
  padding-bottom: 5px;
  margin-top: 0;
}

/* ========== Maneuver Builder ========== */
.maneuver-builder {
  background-color: #fffdf6;
  border: 1px solid #d4b483;
  border-radius: 8px;
  padding: 15px;
}
.maneuver-builder label {
  display: block;
  margin-top: 10px;
}
.maneuver-builder select,
.maneuver-builder input[type="number"],
.maneuver-builder input[type="text"] {
  width: 100%;
  margin-bottom: 10px;
}
#evaluate-maneuver {
  margin-top: 10px;
}

/* ========== Techniques Tree ========== */
.techniques {
  background-color: #fffdf6;
  border: 1px solid #d4b483;
  border-radius: 8px;
  padding: 15px;
  max-height: 75vh;
  overflow-y: auto;
}
.techniques details {
  margin-bottom: 10px;
}
.techniques summary {
  font-weight: bold;
  cursor: pointer;
}
.special-ability,
.maneuver-template {
  margin-left: 1.5em;
  margin-top: 4px;
}

/* ========== Inventory ========== */
.inventory {
  margin-top: 20px;
}
.inventory .item {
  background-color: #fffdf6;
  border: 1px solid #d4b483;
  border-radius: 4px;
  padding: 10px;
  margin-bottom: 8px;
}
.inventory .item label {
  font-size: 0.9em;
}

/* ========== Maneuver Result ========== */
.maneuver-result {
  margin-top: 15px;
  padding: 10px;
  background-color: #eef6ff;
  border: 1px solid #b3c7e6;
  border-radius: 4px;
}
.maneuver-result p {
  margin: 4px 0;
}
