body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: #f0f0f0;
  color: #333;
  line-height: 1.6;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

div {
  background: rgba(255,255,255,0.95);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(34, 34, 34, 0.08), 0 1.5px 4px rgba(238, 21, 21, 0.06);
  margin-bottom: 28px;
  transition: box-shadow 0.3s;
}
div:hover {
  box-shadow: 0 12px 32px rgba(34, 34, 34, 0.12), 0 2px 8px rgba(238, 21, 21, 0.10);
}

.header-image {
    display: block;
    margin: 0 auto 24px auto;
    /* Optional: add a subtle shadow or border for style */
    border-radius: 16px;
    box-shadow: 0 2px 12px #3b4cca22;
}

.pokemon-details-row {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pokemon-details-row h3, h4 {
    text-align: center;
    width: 100%;
}

.pokemon-details-main {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

.pokemon-select-div {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 2 1 0;
    min-width: 180px;
    max-width: 350px;
}
.pokemon-select-div select {
    width: 90%;
    max-width: 250px;
    margin-bottom: 16px;
}
.pokemon-select-div img {
    display: inline-block;
    margin: 4px 8px;
}
.pokemon-stats-div {
    flex: 2 1 0;
    min-width: 220px;
    max-width: 350px;
}

.pokemon-stats-div ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pokemon-type-effects-div {
    flex: 3 1 0;
    min-width: 300px;
    max-width: 350px;
}

.pokemon-stats {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px #3b4cca22;
    padding: 20px 30px;
    min-width: 180px;
}

.pokemon-stats h4 {
    margin-top: 0;
    color: #3b4cca;
    font-size: 1.2em;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.pokemon-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pokemon-stats li {
    font-size: 1.05em;
    margin-bottom: 8px;
    color: #222;
}

@media (max-width: 700px) {
    .pokemon-details-row {
        flex-direction: column;
        gap: 20px;
    }
}

.pokemon-stats-div ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pokemon-stats-div li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.pokemon-stats-div label {
    display: inline-block;
    width: 90px; /* Adjust as needed for alignment */
    font-weight: 500;
    color: #333;
    margin-right: 8px;
    text-align: right;
}

.pokemon-stats-div input[type="number"] {
    width: 60px;
    text-align: left;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #f8fafc;
    font-weight: bold;
    color: #ee1515;
    margin-left: 0;
}

.pokemon-type-effects-div h4 {
    margin-bottom: 4px;
    margin-top: 16px;
}

.pokemon-type-effects-div ul {
    margin-top: 0;
    margin-bottom: 8px;
}

.pokemon-type-effects-div li {
  font-size: 14px;
}

.pokemon-level-div {
    margin-top: 16px;
    text-align: center;
}

.pokemon-level-div label {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(90deg, #00ff9d 0%, #0400ff 100%);
  color: #fff;
  border-radius: 12px;
  font-size: 1.5em;
  font-weight: bold;
  box-shadow: 0 2px 8px #ee151544;
  text-align: center;
  border: 2px solid #3b4cca;
  margin: 0 0 16px 0;
}

#level-slider {
    width: 100%;
    height: 18px;
    accent-color: #3b4cca;
    margin: 0 auto;
    display: block;
    box-sizing: border-box;
}

#level-slider::-webkit-slider-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffd000;
  border: 3px solid #ffc341;
  box-shadow: 0 2px 8px #3b4cca44;
  cursor: pointer;
  transition: background 0.2s;
}

#level-slider::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b4cca;
  border: 3px solid #f7d51d;
  box-shadow: 0 2px 8px #3b4cca44;
  cursor: pointer;
  transition: background 0.2s;
}

#level-slider::-ms-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3b4cca;
  border: 3px solid #f7d51d;
  box-shadow: 0 2px 8px #3b4cca44;
  cursor: pointer;
  transition: background 0.2s;
}

h1, h2, h3 {
  font-family: 'Fredoka One', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 1px;
}
h1 {
  text-align: center;
  font-size: 2.8em;
  color: #ee1515;
  text-shadow: 0 2px 8px #fff, 0 1px 0 #bdbdbd;
}
h2 {
  color: #3b4cca;
  border-bottom: 2px solid #3b4cca;
}
h3 {
  color: #ee1515;
}

select, input[type="text"] {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  width: 200px;
  margin: 5px 0;
  transition: border-color 0.3s ease;
}

select:focus, input[type="text"]:focus {
  border-color: #ee1515;
  outline: none;
  box-shadow: 0 0 5px rgba(238, 21, 21, 0.3);
}

.slider {
  -webkit-appearance: none;
  width: 1150px;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  margin: 20px 0;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ee1515;
  cursor: pointer;
  transition: background 0.3s ease;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ee1515;
  cursor: pointer;
  transition: background 0.3s ease;
}

input[type="radio"] {
  margin-right: 5px;
}

label {
  margin-right: 15px;
}

div {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

img {
  display: inline-block;
  margin: 5px;
}

ol {
  background: #f8fafc;
  border-radius: 10px;
  padding: 18px 28px;
  box-shadow: 0 2px 8px #3b4cca11;
}
li {
  font-size: 1.1em;
  padding: 10px 0;
  border-bottom: 1px dashed #ee1515;
}
li:last-child {
  border-bottom: none;
}

sub {
    display: block;
    text-align: center;
    font-size: 1.4em;   /* Increase this value as desired */
    color: #666;
    margin-bottom: 30px;
    margin-top: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.time-of-day img {
  display: block;
  width: 96%;
  max-width: 100%;
  margin: 0 auto 16px auto;
  border-radius: 12px;
  box-shadow: 0 2px 8px #3b4cca22;
}

.time-radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px; /* Large gap between pairs */
    margin: 18px 0;
}

.radio-pair {
    display: flex;
    align-items: center;
    gap: 16px; /* Small gap between radio and label */
}

.time-radio-group input[type="radio"] {
    accent-color: #ee1515;
    width: 22px;
    height: 22px;
    margin-right: 6px;
}

.time-radio-group label {
    font-size: 1.2em;
    font-weight: 500;
    margin-right: 12px;
    cursor: pointer;
}

input[type="radio"] {
  accent-color: #ee1515;
  transform: scale(1.8);
}
label[for*="radio"] {
  font-weight: 500;
  color: #3b4cca;
  font-size: 16px;
}

.route-number input {
  padding: 8px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  width: 200px;
  margin: 5px 0;
  transition: border-color 0.3s ease;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 20px;
}

.danger-ratio {
    display: inline-block;
    min-width: 48px;
    padding: 10px 22px;
    background: linear-gradient(90deg, #ee1515 0%, #f7d51d 100%);
    color: #fff;
    border-radius: 12px;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 8px #ee151544;
    text-align: center;
    border: 2px solid #3b4cca;
    margin: 0;
}

#ratio-slider {
    width: 600px; /* Double the previous size */
    height: 18px;
    accent-color: #ee1515;
    margin: 0;
}

#ratio-slider::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7d51d;
    border: 3px solid #ee1515;
    box-shadow: 0 2px 8px #ee151544;
}

#ratio-slider::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7d51d;
    border: 3px solid #ee1515;
    box-shadow: 0 2px 8px #ee151544;
}

#ratio-slider::-ms-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f7d51d;
    border: 3px solid #ee1515;
    box-shadow: 0 2px 8px #ee151544;
}

/* Show tick marks for supported browsers */
#ratio-slider {
    background: linear-gradient(90deg, #3b4cca 0%, #ee1515 100%);
}
#ratio-slider::-webkit-slider-runnable-track {
    height: 18px;
}
#ratio-slider::-webkit-slider-thumb {
    margin-top: 0;
}
#ratio-slider:focus {
    outline: none;
}
#ratio-slider::-moz-range-thumb {
    border: 3px solid #ee1515;
}
#ratio-slider::-moz-range-tick {
    background: #3b4cca;
    width: 2px;
    height: 18px;
}
#ratio-slider::-moz-range-progress {
    background-color: #ee1515;
}
#ratio-slider::-moz-range-track {
    background: linear-gradient(90deg, #3b4cca 0%, #ee1515 100%);
    height: 18px;
}
#ratio-slider::-ms-fill-lower {
    background: #3b4cca;
}
#ratio-slider::-ms-fill-upper {
    background: #ee1515;
}

.move-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.move-row label {
    min-width: 80px;
}

.move-row img {
    width: 160px;
    height: 45px;
}
.move-info {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.move-attr-box {
    flex: 1 1 120px; /* All boxes grow/shrink equally, min width 120px */
    max-width: 180px;
    min-width: 120px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 1em;
    font-weight: 500;
    box-shadow: 0 2px 8px #3b4cca22;
    /* Individual background gradients for each box, as before */
}
.move-acc-box { background: linear-gradient(90deg, #3b4cca 0%, #a0c4ff 100%); }
.move-pow-box { background: linear-gradient(90deg, #ee1515 0%, #f7d51d 100%); }
.move-pp-box  { background: linear-gradient(90deg, #00c853 0%, #b2ff59 100%); }

.move-attr-box label {
    color: #fff;
    font-weight: 600;
    margin: 0;
    padding: 0;
}
.move-attr-box .move-acc,
.move-attr-box .move-pow,
.move-attr-box .move-pp {
    color: #000000;
    font-weight: bold;
    margin-left: 4px;
}

/* Responsive: stack vertically if not enough space */
@media (max-width: 600px) {
    .move-info {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .move-attr-box {
        max-width: 100%;
        min-width: 0;
    }
}

.big-button {
  display: block;
  margin: 40px auto;
  width: 100vw;
  max-width: 900px;
  min-width: 240px;
  padding: 24px 0;
  font-size: 2em;
  font-weight: bold;
  background: linear-gradient(90deg, #ee1515 0%, #f7d51d 100%);
  color: #fff;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(59, 76, 202, 0.10), 0 2px 8px #ee151544;
  text-align: center;
  letter-spacing: 2px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  animation: pulse 2s infinite;
}

.big-button:hover {
  background: linear-gradient(90deg, #00ff9d 0%, #0400ff 100%);
  transform: scale(1.03) translateY(-2px);
  box-shadow: 0 12px 32px rgba(59, 76, 202, 0.18), 0 4px 12px #ee151544;
}

.big-button:active {
  transform: scale(0.98);
  box-shadow: 0 2px 4px rgba(59, 76, 202, 0.08);
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #ee151544; }
  70% { box-shadow: 0 0 0 10px #ee151500; }
  100% { box-shadow: 0 0 0 0 #ee151500; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.5em; }
  div { padding: 10px; }
  img { width: 60px !important; }
  .big-button { width: 100%; }
}

.warning-select-pokemon-first {
  display: block;
  text-align: center;
  font-size: 1.5em;
  color: #000000;
  margin: 24px auto 0 auto;
  max-width: 700px;
  padding: 18px 0;
  font-weight: bold;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px #ee151544;
}