/* Shared styles for the Pokemon tool pages. The site look comes from /style.css. */
.pk-container { max-width: 1000px; }

.pk-controls { display: flex; flex-direction: column; gap: 8px; }
.pk-controls .control-group { margin-bottom: 0; flex-wrap: wrap; gap: 6px 10px; }
.pk-controls .control-group label { width: 130px; margin-right: 0; }
.pk-controls textarea {
    width: 100%;
    max-width: 520px;
    min-height: 3.2em;
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 14px;
}
.pk-controls input[type="text"] { width: 220px; }
.pk-inline { display: inline-flex; align-items: center; gap: 6px; }
.pk-controls .control-group label.pk-inline { width: auto; }

.pk-symbols { display: flex; flex-wrap: wrap; gap: 4px; }
.pk-symbols button {
    min-width: 30px;
    padding: 3px 6px;
    background-color: #555;
    color: #fff;
    border: 1px solid #666;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}
.pk-symbols button:hover { background-color: #666; }

.save-button.pk-secondary { background-color: #3d6f8f; margin-left: 6px; }
.save-button.pk-secondary:hover { background-color: #4a83a8; }
.save-button:disabled { opacity: 0.6; cursor: default; }
.save-controls .pk-hint { min-height: 1.4em; margin: 8px 0 0; }

.pk-party-row { flex-wrap: wrap; }
.pk-controls .pk-party-row input[type="text"] { width: 110px; }
.pk-controls .pk-party-row input[type="number"] { width: 52px; }

.pk-heading { margin: 8px 0 0; font-size: 18px; color: #ffcc00; text-align: left; }

.pk-rows { display: flex; flex-direction: column; gap: 4px; }
.pk-row { display: flex; gap: 6px; }
.pk-controls .pk-row input[type="text"] { width: 140px; }

.pk-hint {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #bbb;
}

.pk-note {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    color: #ffb36b;
    min-height: 1.4em;
}

/* The preview is the export canvas itself, shown at its real size, so what you see is the
   file you get. Wide pictures scroll rather than being squeezed, which would blur them. */
.pk-preview {
    margin-top: 16px;
    padding: 16px;
    overflow: auto;
    text-align: center;
    border-radius: 5px;
    background-color: #2b2b2b;
    background-image:
        linear-gradient(45deg, #353535 25%, transparent 25%),
        linear-gradient(-45deg, #353535 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #353535 75%),
        linear-gradient(-45deg, transparent 75%, #353535 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}
.pk-preview canvas { display: inline-block; vertical-align: top; }

.pk-list { list-style: none; padding: 0; text-align: center; }
.pk-list li { margin: 10px 0; }
.pk-disclaimer {
    margin-top: 30px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #999;
}

/* The tool cards on /pokemon/. They reuse the home page's card styles; the picture area is
   tall enough for a whole 240x160 screen at its real size, and the columns never get so
   narrow that a picture would have to be squeezed. */
.pk-cards.tools-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
/* Room for a whole screen at its real size: 160px for the Game Boy Advance, 192px for the
   DS, plus 16px of padding above and below and the 2px rule under it. */
.pk-cards .tool-card-image-wrap { height: 226px; }

/* A slot this game has no panel for: an empty box with a short dash in the middle, so
   every generation's cards sit in the same places. */
.pk-cards .pk-card-empty,
.pk-cards .pk-card-empty:hover {
    border: 2px dashed #555;
    background: linear-gradient(#666, #666) center / 36px 2px no-repeat;
    transform: none;
    cursor: default;
}

/* The generation switch on /pokemon/. */
.pk-gen-switch { display: inline-flex; margin-top: 22px; border: 2px solid #555; border-radius: 8px; overflow: hidden; }
.pk-gen-button {
    padding: 9px 20px;
    border: 0;
    border-right: 2px solid #555;
    background: #3a3a3a;
    color: #ccc;
    font-family: 'RuneScape UF', sans-serif;
    font-size: 17px;
    cursor: pointer;
}
.pk-gen-button:last-child { border-right: 0; }
.pk-gen-button:hover { background: #474747; color: #fff; }
.pk-gen-button-on, .pk-gen-button-on:hover { background: #ffcc00; color: #333; font-weight: bold; }
