:root {
    --img-size: 32px;
    --primary-color: #4CAF50;
    --primary-color-hover: #45a049;
    --dark-color: #333;
    --light-color: #f0f0f0;
    --frame-white: #f8f8f8;

    --tb-border: #606878;
    --tb-primary: #68e0e0;
    --tb-primary-dark: #58d0d0;
    --tb-light: #f0f0f0;
    --tb-light-hover: #f0e7b4;
    --tb-checked: #b4f0ee;
    --tb-checked-hover: #b4e3f0;

    --btn: #77b7f8;
    --btn-d: #0077f8;
    --btn-dd: #27579f;
    --btn-border: #3f4f57;
}

@font-face {
    font-family: 'Pokemon';
    src: url('../fonts/Pokemon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


* {
    font-family: 'Pokemon', sans-serif;
    font-size: 8px;
    image-rendering: pixelated;
    -webkit-font-smoothing: none;
    font-smooth: never;
}

body {
    padding: 0;
    margin: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: transparent;
    background-image: url('../img/bg_blue.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: top left;
    color: var(--dark-color);
}

h1 {
    text-align: center;
    font-size: 18px;
}

#pokemonTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;

    table-layout: auto;
    background-color: var(--tb-primary);
    border: 2px solid var(--tb-border);
}

#pokemonTable a {
    text-decoration: none;
    /* color: #555; */
}

.cell {
    width: 60px;
    padding: 0px;
    text-align: center;
}

.name-cell {
    text-align: left;
}

thead:hover {
    background-color: var(--tb-primary) !important;
}

tbody {
    background-color: var(--tb-light);
}


thead th {
    font-weight: bold;
    height: 10px;
    text-transform: uppercase;
}

td {
    padding: 12px;
}

tbody tr:first-child td {
    border-top: 1px solid var(--tb-primary-dark);
}

tbody tr:last-child td {
    border-bottom: 2px solid var(--tb-primary);
    /* box-shadow: inset 0 0 1px 0 var(--tb-primary-dark); */
}

tbody td:first-child {
    border-left: 2px solid var(--tb-primary);
    /* box-shadow: inset 1px 0 0 0 var(--tb-primary-dark); */
}

tbody td:last-child {
    border-right: 2px solid var(--tb-primary);
    /* box-shadow: outset 0px 0px 1px 0px var(--tb-primary-dark); */
}




tbody tr:hover {
    background-color: var(--tb-light-hover);
}

.checked-row {
    background-color: var(--tb-checked) !important;
}

.checked-row:hover {
    background-color: var(--tb-checked-hover) !important;
}

td img {
    vertical-align: middle;
}

th img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

table input[type="checkbox"] {
    display: none;
}


.poke-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../icon/pokeball_.png');
    background-size: cover;
    cursor: pointer;
    transition: background-image 0.2s ease;
    image-rendering: pixelated;
}

input[type="checkbox"]:checked+.poke-checkbox {
    background-image: url('../icon/pokeball.png');
    image-rendering: pixelated;
}

.shiny-checkbox {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('../icon/shiny_.png');
    background-size: cover;
    cursor: pointer;
    transition: background-image 0.2s ease;
    image-rendering: pixelated;
}

input[type="checkbox"]:checked+.shiny-checkbox {
    background-image: url('../icon/shiny.png');
    image-rendering: pixelated;
}

#searchInput {
    padding: 2px 6px;
    border: 1px solid var(--btn-border);
    border-radius: 2px;
    width: 250px;
    outline: none;
}

#searchInput:focus {
    border: 1px solid var(--btn);
}

.displayinline {
    display: inline;
}

.type-icon {
    width: 32px;
    height: 16px;
}

.purple {
    color: #81009e;
    font-weight: bold;
}

.orange {
    color: #ea6600;
}

.classic {
    font-family: 'Pokemon';
}

a {
    text-decoration: none;
    color: inherit;
}

.logo {
    max-height: 32px;
}

.sticky-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.menu-header h1 {
    margin: 0;
    font-size: 14px;
}


.menu-options {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.menu-options button {
    padding: 1px 5px;
    font-size: 6px;
    cursor: pointer;
    background-color: var(--btn-d);
    color: var(--tb-light);
    border: 1px solid var(--btn-border);

    box-shadow:
        inset 0 1px 0 var(--btn),
        inset 0 -1px 0 var(--btn-d),
        inset -1px 0 0 var(--btn-d),
        inset 1px 0 0 var(--btn);

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-options button:hover {
    background-color: var(--btn);
}

.menu-options button:active {
    background-color: var(--btn-d);
    box-shadow:
        inset 0 1px 0 var(--btn-dd),
        inset 0 -1px 0 var(--btn),
        inset -1px 0 0 var(--btn),
        inset 1px 0 0 var(--btn-d);
}

.menu-options button img {
    margin-right: 5px;
    width: 16px;
    height: 16px;
}

.content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.frame {
    border-width: 8px;
    border-style: solid;
    border-image: url('../img/frame.png');
    border-image-slice: 8;
    border-image-repeat: round;
    border-color: transparent;
    background-color: var(--frame-white);
    background-clip: padding-box;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    max-height: 8px;
}


/* Trilha */
::-webkit-scrollbar-track-piece {
    background: linear-gradient(to right, transparent 40%, #757575 40%, #757575 60%, transparent 60%);
}

::-webkit-scrollbar-thumb {
    background: url('../img/thumb.png');
    background-size: 100% 100%;
    border-radius: 2px;
}

::-webkit-scrollbar-button:single-button:vertical:decrement {
    background: url('../img/sup.png') no-repeat center;
    background-size: contain;
    height: 8px;
}

::-webkit-scrollbar-button:single-button:vertical:increment {
    background: url('../img/sdown.png') no-repeat center;
    background-size: contain;
    height: 8px;
}

::-webkit-scrollbar-horizontal {
    height: 12px;
}

::-webkit-scrollbar-vertical {
    width: 12px;
}