body {
  font-family: 'Flexo', 'Roboto', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #f4f4f4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%23ddd' stroke-width='1'/%3E%3Ccircle cx='50' cy='50' r='12' fill='none' stroke='%23ddd' stroke-width='1'/%3E%3Cline x1='50' y1='10' x2='50' y2='90' stroke='%23ddd' stroke-width='1'/%3E%3Cline x1='10' y1='50' x2='90' y2='50' stroke='%23ddd' stroke-width='1'/%3E%3C/svg%3E");
}

#app {
  background-color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  text-align: center;
  max-width: 95%;
  width: 1200px;
  border: 3px solid #3B4CCA;
  position: relative;
}

h1 {
  color: #3B4CCA;
  font-size: 2.2em;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  position: relative;
  display: inline-block;
}

h1::before, h1::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF0000 0%, #CC0000 49%, #000000 50%, #FFFFFF 51%, #F0F0F0 100%);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

h1::before {
  left: -40px;
}

h1::after {
  right: -40px;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  background-color: #FF0000;
  color: white;
  cursor: pointer;
  border-radius: 30px;
  margin-bottom: 10px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

button:hover {
  background-color: #CC0000;
  transform: translateY(-2px);
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

button:disabled:hover {
  background-color: #cccccc;
}

#fakemon-display, #trainer-display {
  padding: 15px;
  border: 2px solid #3B4CCA;
  border-radius: 10px;
  margin-top: 15px;
  background-color: #F8F8F8;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

#fakemon-image, #trainer-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

#fakemon-name, #trainer-name {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 5px;
  color: #3B4CCA;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

#fakemon-description, #trainer-description {
  font-size: 1em;
  color: #333;
  line-height: 1.5;
}

.gallery {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding: 20px;
}

.gallery-item {
  background: white;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid #FFDE00;
}

.gallery-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item.selected {
  border: 3px solid #3B4CCA;
  box-shadow: 0 0 0 3px rgba(59, 76, 202, 0.3);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: #f8f8f8;
}

.gallery-item .name {
  font-weight: bold;
  margin: 10px 0 5px;
  color: #3B4CCA;
}

.gallery-item .description {
  font-size: 0.9em;
  color: #555;
}

.gallery-item .creator {
  font-size: 0.8em;
  color: #777;
  margin-top: 8px;
  font-style: italic;
}

#share-button, #share-trainer {
  background-color: #3B4CCA;
  margin-left: 10px;
}

#share-button:hover, #share-trainer:hover {
  background-color: #2A3980;
}

.tabs {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #FFDE00;
  border-radius: 50px;
  padding: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.tab-button {
  background: none;
  border: none;
  padding: 8px 15px;
  margin: 3px;
  cursor: pointer;
  border-radius: 50px;
  color: #333;
  font-weight: bold;
  box-shadow: none;
  font-size: 0.9em;
}

.tab-button.active {
  background-color: #3B4CCA;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.evolution-controls {
  margin: 15px 0;
  display: none;
}

.evolution-type {
  margin: 10px 0;
}

.evolution-type label {
  margin-right: 10px;
}

#selected-fakemon {
  margin: 15px 0;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 5px;
  display: none;
}

#selected-fakemon img {
  max-width: 150px;
  height: auto;
}

.error-state {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  text-align: center;
}

#loading-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px 30px;
  border-radius: 50px;
  z-index: 1000;
  display: none; 
  min-width: 150px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 222, 0, 0.5);
  border: 2px solid #FFDE00;
}

input[type="text"], select {
  padding: 10px 15px;
  border: 2px solid #FFDE00;
  border-radius: 30px;
  font-size: 1em;
  margin: 10px 0;
  background-color: #FAFAFA;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233B4CCA' d='M6 9L0 3h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.type-selectors {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 10px 0;
}

.type-selector {
  flex: 1;
  max-width: 150px;
}

.type-selector label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

#trainer-section {
  padding: 20px;
}

.trainer-customization {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.trainer-customization label {
  font-weight: bold;
  margin-bottom: 5px;
}

.trainer-customization select {
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

#trainer-team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 15px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
}

.team-pokemon {
  background: white;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.team-pokemon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

#type-creator-section {
  padding: 20px;
}

.type-creation-controls {
  margin-bottom: 20px;
}

#type-base-concept {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  margin-bottom: 10px;
}

.type-card {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  border: 3px solid rgba(255,255,255,0.3);
  transition: transform 0.3s ease;
}

.type-card:hover {
  transform: translateY(-5px);
}

.type-symbol {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 10px;
}

.type-relationships {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.type-chart-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.9em;
}

.legend-item::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 5px;
  border-radius: 3px;
}

.legend-item.super::before {
  background-color: #78C850;
}

.legend-item.not-very::before {
  background-color: #F08030;
}

.legend-item.no-effect::before {
  background-color: #68A090;
}

.legend-item.normal::before {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
}

.type-chart {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 30px;
}

.type-chart table {
  border-collapse: collapse;
  background: white;
  min-width: 100%;
  font-size: 0.9em;
}

.type-chart th, .type-chart td {
  padding: 8px;
  text-align: center;
  border: 1px solid #ddd;
}

.type-header {
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.type-chart td {
  width: 30px;
  height: 30px;
}

.type-chart td.super {
  background: #78C850;
}

.type-chart td.not-very {
  background: #F08030;
}

.type-chart td.no-effect {
  background: #68A090;
}

.type-chart td.normal {
  background: #f8f8f8;
}

.type-chart-container {
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.error {
  color: red;
  padding: 10px;
  background: #fee;
  border-radius: 4px;
  margin: 10px 0;
}

#type-creation-area,
#type-chart-area {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  text-align: left; 
}

#type-creation-area h3,
#type-chart-area h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

#fakemon-name-input, #trainer-name-input {
  margin-bottom: 15px;
  font-weight: bold;
  border: 2px solid #3B4CCA;
  background-color: #F8F8F8;
}

#fakemon-name-input::placeholder, #trainer-name-input::placeholder {
  color: #888;
  font-style: italic;
}

.gallery-controls {
  margin: 15px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-bar {
  flex-grow: 1;
  max-width: 400px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #FFDE00;
  border-radius: 30px;
  background-color: white;
}

.filter-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-controls select {
  padding: 8px 15px;
  border: 2px solid #3B4CCA;
  border-radius: 20px;
  background-color: white;
  cursor: pointer;
}

.fakemon-details {
  background-color: #f5f5f5;
  border-radius: 8px;
  padding: 10px 15px;
  margin-top: 10px;
  text-align: left;
  border: 1px solid #ddd;
  max-height: 400px;
  overflow-y: auto;
}

.fakemon-details p {
  margin: 5px 0;
  font-size: 0.95em;
}

.fakemon-details strong {
  color: #3B4CCA;
}

.fakemon-abilities, .fakemon-hidden-ability {
  font-size: 0.9em;
  margin: 4px 0;
}

.fakemon-hidden-ability {
  color: #CC0000;
  font-style: italic;
}

.fakemon-details h4 {
  margin-top: 12px;
  margin-bottom: 8px;
  color: #3B4CCA;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

.fakemon-details h5 {
  margin-top: 10px;
  margin-bottom: 5px;
  color: #505050;
  font-weight: bold;
  font-style: italic;
}

.fakemon-evolution-details {
  margin-top: 10px;
  padding: 10px;
  background-color: #f0f5ff;
  border-radius: 8px;
  border-left: 4px solid #3B4CCA;
}

.fakemon-additional-ecology,
.fakemon-intelligence,
.fakemon-defense,
.fakemon-habitats,
.fakemon-care,
.fakemon-resistances,
.fakemon-communication {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #f8f8f8;
  border-left: 4px solid #78C850;
}

.fakemon-intelligence {
  border-left-color: #F85888;
  background-color: #fff5fb;
}

.fakemon-defense {
  border-left-color: #C03028;
  background-color: #fff0f0;
}

.fakemon-habitats {
  border-left-color: #A8B820;
  background-color: #f9fff5;
}

.fakemon-care {
  border-left-color: #EE99AC;
  background-color: #fff5f8;
}

.fakemon-resistances {
  border-left-color: #B8B8D0;
  background-color: #f5f5ff;
}

.fakemon-communication {
  border-left-color: #A890F0;
  background-color: #f8f5ff;
}

.unique-factor-controls {
  margin: 10px 0;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 10px;
  border: 1px dashed #FFDE00;
}

.unique-factor-controls label {
  font-weight: bold;
  color: #3B4CCA;
}

.unique-factor {
  margin-top: 10px;
  padding: 8px;
  background-color: #ffffd0;
  border-radius: 8px;
  border-left: 4px solid #FFDE00;
}

.unique-factor p:first-child {
  font-weight: bold;
  color: #CC0000;
}

.unique-factor-badge {
  display: inline-block;
  background-color: #FFDE00;
  color: #CC0000;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  margin: 5px 0;
  border: 1px solid #CC0000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legendary {
  color: #FFD700;
  text-shadow: 0 0 3px rgba(255, 215, 0, 0.5);
}

.advanced-options {
  margin: 15px 0;
}

#toggle-advanced-options {
  width: 100%;
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

#toggle-advanced-options:hover {
  background-color: #e0e0e0;
}

#advanced-options-panel {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-top: none;
  padding: 15px;
  border-radius: 0 0 10px 10px;
}

.stat-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 15px;
}

.stat-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-slider label {
  min-width: 80px;
  font-weight: bold;
}

.stat-slider input {
  flex-grow: 1;
}

.stat-value {
  min-width: 30px;
  text-align: right;
  font-weight: bold;
}

.total-bst {
  grid-column: 1 / -1;
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
  padding: 5px;
  background-color: #3B4CCA;
  color: white;
  border-radius: 5px;
}

.additional-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.attribute-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.attribute-row label {
  font-weight: bold;
}

.attribute-row select, .attribute-row input {
  width: 100%;
}

.attribute-row select[multiple] {
  height: 80px;
}

.catch-rate-value {
  font-weight: bold;
}

.competitive-info {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #f0f5ff;
  border-radius: 8px;
  border-left: 4px solid #3B4CCA;
}

.competitive-info h4 {
  color: #3B4CCA;
  margin-top: 0;
  margin-bottom: 10px;
}

.competitive-movesets {
  margin-top: 12px;
}

.moveset {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.moveset h6 {
  margin-top: 0;
  margin-bottom: 6px;
  color: #3B4CCA;
  font-size: 0.95em;
}

.fakemon-locations {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #f0f8ff;
  border-left: 4px solid #3498db;
}

.location-entry {
  margin-bottom: 10px;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

.fakemon-game-interactions {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #f0fff0;
  border-left: 4px solid #2ecc71;
}

.contest-stats {
  margin-top: 8px;
  padding: 6px 10px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
}

.body-shape-card, .unique-factor-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.body-shape-card:hover, .unique-factor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.body-shape-image, .unique-factor-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.unique-factor-type {
  display: inline-block;
  padding: 5px 10px;
  background-color: #3B4CCA;
  color: white;
  border-radius: 15px;
  font-size: 0.8em;
  margin: 5px 0 10px;
  font-weight: bold;
}

.created-by {
  font-size: 0.8em;
  color: #777;
  font-style: italic;
  margin-top: 10px;
}

.gallery-card {
  display: inline-block;
  width: 250px;
  margin: 10px;
  vertical-align: top;
}

#bodyshape-gallery, #uniquefactor-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.custom-element-creation-area {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.creation-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.custom-element-display {
  margin-top: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  min-height: 100px;
  border: 1px dashed #ccc;
}

.custom-element-gallery {
  margin-top: 30px;
  padding: 15px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.idea-generator {
  margin: 15px 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.idea-button {
  background-color: #FFDE00;
  color: #3B4CCA;
  border: 2px solid #3B4CCA;
  padding: 8px 15px;
  border-radius: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  width: auto;
  min-width: 180px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.idea-button:hover {
  background-color: #FFE74C;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.idea-button:disabled {
  background-color: #d3d3d3;
  color: #888;
  border-color: #888;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.idea-display {
  background-color: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  width: 90%;
  max-width: 500px;
  min-height: 50px;
  font-style: italic;
  color: #555;
  text-align: center;
  display: none;
  line-height: 1.5;
}

.idea-display:not(:empty) {
  display: block;
}

.move-card, .item-card, .region-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin: 15px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  border: 3px solid #ddd;
}

.move-card:hover, .item-card:hover, .region-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.move-image, .item-image {
  width: 150px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.region-map {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto 15px;
  display: block;
  border-radius: 8px;
  border: 2px solid #ddd;
}

.move-header, .item-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.move-type-badge {
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
}

.move-category-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
}

.move-category-badge.physical {
  background-color: #C92112;
  color: white;
}

.move-category-badge.special {
  background-color: #4F5870;
  color: white;
}

.move-category-badge.status {
  background-color: #8C888C;
  color: white;
}

.move-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.move-stat {
  flex: 1;
  min-width: 80px;
}

.move-description {
  font-style: italic;
  margin-bottom: 15px;
  padding: 8px;
  background-color: #f9f9f9;
  border-left: 3px solid #3B4CCA;
}

.move-details {
  font-size: 0.9em;
  line-height: 1.4;
}

.item-category-badge {
  padding: 4px 10px;
  border-radius: 15px;
  color: white;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.item-category-badge.medicine {
  background-color: #FF5F5F;
}

.item-category-badge.battle-item {
  background-color: #5F5FFF;
}

.item-category-badge.berry {
  background-color: #5FFF5F;
}

.item-category-badge.evolution-item {
  background-color: #FF5FFF;
}

.item-category-badge.held-item {
  background-color: #FFAA5F;
}

.item-category-badge.key-item {
  background-color: #5FFFFF;
}

.item-flavor-text {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
}

.item-description {
  margin-bottom: 15px;
}

.item-details {
  font-size: 0.9em;
  line-height: 1.4;
  background-color: #f5f5f5;
  padding: 10px;
  border-radius: 8px;
}

.region-climate-badge {
  padding: 5px 10px;
  border-radius: 15px;
  background-color: #3B4CCA;
  color: white;
  font-size: 0.8em;
  font-weight: bold;
  display: inline-block;
  margin: 5px 0 15px;
}

.region-description {
  margin-bottom: 15px;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.location-card {
  background-color: white;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.location-card h5 {
  margin: 0 0 5px 0;
  color: #3B4CCA;
}

.gym-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  color: white;
  font-size: 0.8em;
  margin-top: 5px;
}

.region-section {
  margin-bottom: 15px;
}

.region-section h4 {
  color: #3B4CCA;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-bottom: 8px;
}

.special-feature {
  background-color: #FFFAE0;
  padding: 10px;
  border-radius: 8px;
  border-left: 4px solid #FFDE00;
}

#move-gallery, #item-gallery, #region-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.custom-abilities-section,
.custom-evolution-section {
  margin-top: 15px;
  border-top: 1px dashed #FFDE00;
  padding-top: 10px;
}

.custom-abilities-section label,
.custom-evolution-section label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #3B4CCA;
}

.custom-abilities-section select,
.custom-evolution-section select {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border-radius: 20px;
  border: 2px solid #FFDE00;
  background-color: white;
  margin-bottom: 10px;
}

.fakemon-pokedex,
.fakemon-egg-info,
.fakemon-evolution-line,
.fakemon-berry-preferences,
.fakemon-seasonal-behavior,
.fakemon-camp-behavior,
.fakemon-biology,
.fakemon-ecology,
.fakemon-physical-attributes,
.fakemon-game-stats,
.fakemon-behavior,
.alternative-forms {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  background-color: #f7f7f7;
  border-left: 4px solid #3B4CCA;
}

.fakemon-pokedex {
  background-color: #fef8e8;
  border-left-color: #FFDE00;
}

.pokedex-short, .pokedex-expanded, .pokedex-scientific {
  margin: 5px 0;
  font-style: italic;
}

.fakemon-egg-info {
  background-color: #f5f5ff;
  border-left-color: #A890F0;
}

.fakemon-berry-preferences {
  background-color: #f5fff5;
  border-left-color: #78C850;
}

.fakemon-seasonal-behavior {
  background-color: #fff8f5;
  border-left-color: #F08030;
}

.fakemon-physical-attributes {
  background-color: #f5f5f5;
  border-left-color: #B8A038;
}

.fakemon-game-stats {
  background-color: #f5f5ff;
  border-left-color: #6890F0;
}

.fakemon-behavior {
  background-color: #fff5fb;
  border-left-color: #F85888;
}

.fakemon-ecology {
  background-color: #f9fff5;
  border-left-color: #A8B820;
}

.fakemon-biology {
  background-color: #f5fcff;
  border-left-color: #98D8D8;
}

.fakemon-camp-behavior {
  background-color: #fffaf5;
  border-left-color: #F8D030;
}

.fakemon-evolution-line {
  background-color: #f9f5ff;
  border-left-color: #7038F8;
}

.fakemon-details h4 {
  color: #3B4CCA;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin: 12px 0 8px;
}

.alternative-forms {
  background-color: #f8f8ff;
  border-left-color: #EE99AC;
}

.fakemon-option-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.option-dialog-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid #3B4CCA;
}

.option-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 30px;
  border: none;
  background-color: #FF0000;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1em;
}

.option-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.option-btn.cancel {
  background-color: #666;
}

.fakemon-detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.detail-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 3px solid #3B4CCA;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.close-modal:hover {
  color: #FF0000;
}

.fakemon-detail-view {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fakemon-detail-view img {
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
}

.fakemon-full-details {
  width: 100%;
  text-align: left;
  margin-top: 15px;
}

.fakemon-full-details h4 {
  color: #3B4CCA;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
  margin-top: 15px;
  margin-bottom: 8px;
}

.fakemon-stats, .fakemon-abilities, .fakemon-ecology, .fakemon-evolution {
  margin-bottom: 15px;
  padding: 10px;
  background-color: #f8f8f8;
  border-radius: 8px;
}

.type-badge {
  display: inline-block;
  padding: 3px 10px;
  margin: 3px;
  border-radius: 15px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
  .gallery-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    max-width: 100%;
  }
}