/* import fonts */
@import url('https://fonts.googleapis.com/css2?family=Bitcount:wght@100..900&display=swap');

/* styles for full body */
body {
    background-color: #e5e5f7;
    font-family: 'Bitcount', monospace, sans-serif;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* style for page header */
.page-header {
    background: #1e3b6b;
    width: 100%;
    color: #ffffff;
    font-weight: bold;
    padding: 6px 0;
    text-align: center;
}

/* styles for logo container */
.logo-container {
    align-items: center;
}

/* styles for logo image */
.logo-image {
    width: 300px;
    height: auto;
}

/* styles for title container */
.title-container {
    align-items: center;
}

/* styles for title main */
.title-main {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

/* styles for title description */
.title-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin: 8px 0;
}

/* styles for main navigator */
.main-navigator {
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 0 0 12px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* styles for filter container */
.filter-container {
    display: flex;
    background-color: #1e3c6bf4;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* styles for search container */
.search-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* styles for search input */
.search-input {
    width: 300px;
    font-size: 1.2rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
}

.search-input::placeholder {
    color: #a9a9a9;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
}

/* styles for search button */
.search-button {
    background: #000000;
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.search-button:hover {
    background: #0000009b;
    transform: scale(1.05);
}

.search-button:active {
    background: #000000c7;
}

.clear-button {
    background: #c71919;
    color: #ffffff;
    font-size: 1.2rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.clear-button:hover {
    background: #c719199b;
    transform: scale(1.05);
}

/* styles for type container */
.type-container {
    padding: 0 20px;
}

/* styles for type list label */
.type-list-label {
    font-size: 1.2rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    color: #060606;
}

/* styles for type list */
.type-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 10px 0;
    margin: 0;
}

/* styles for type item */
.type-list .type-item {
    font-size: 1rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.type-list .type-item:hover {
    transform: scale(1.05);
}

/* styles for sort container */
.sort-container {
    display: flex;
    align-items: center;
}

/* styles for sort label */
.sort-label {
    font-size: 1.2rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    margin-right: 10px;
    color: #ffffffb7;
}

/* styles for sort select */
.sort-select {
    font-size: 1.2rem;
    font-family: 'Bitcount', monospace, sans-serif;
    font-weight: bold;
    padding: 8px 12px;
    border: none;
    border-radius: 10px;
    margin-left: 10px;
    cursor: pointer;
}

.main-container {
    padding: 20px 0;
    min-height: 50vh;
}

/* styles for card list area */
.card-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* style for card */
.card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 250px;
    overflow: hidden;
    transition: transform 0.3s;
    border: #1e3b6b 8px solid;
    cursor: pointer;
}

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

.card-link {
    text-decoration: none;
    color: inherit;
}

/* style for card header */
.card-header {
    position: relative;
    background: #d5dbd6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

/* style for card ID */
.card-header .id {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #05224e;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    padding: 8px 8px;
    border-radius: 50%;
}

/* style for pokemon image */
.pokemon-img {
    width: 300px;
    height: fit-content;
}

/* style for card body */
.card-body {
    padding: 20px 30px;
    text-align: center;
}

/* style for card name */
.name {
    margin: 5px 0;
    font-size: 1.3rem;
    color: #1b1a1a;
    font-weight: bold;
}

/* style for pokemon type */
.type {
    background: #05224e;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 10px;
}

/* style for pokemon species */
.species {
    color: #818080;
    font-size: 0.8rem;
    font-weight: bold;
    margin: 8px 0;
}

/* styles for page footer */
.page-footer {
    background: #1e3b6b;
    width: 100%;
    color: #ffffff;
    font-weight: bold;
    padding: 10px 0;
    text-align: center;
    bottom: 0;
}

/* styles for footer top */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: bold;
    padding: 0 20px;
    margin: 0;
}

/* styles for footer logo */
.footer-logo {
    margin: 0;
}

.footer-logo-image {
    width: 150px;
    height: auto;
}

/* styles for footer bottom */
.footer-bottom {
    font-family: monospace, sans-serif;
    font-size: 0.8rem;
    margin: 0;
}

.footer-text {
    margin: 8px 0 0 0;
}

.type-grass {
    background-color: #78c850;
    color: #ffffff;
}

.type-fire {
    background-color: #f08030;
    color: #ffffff;
}

.type-water {
    background-color: #6890f0;
    color: #ffffff;
}

.type-normal {
    background-color: #a8a878;
    color: #ffffff;
}

.type-fighting {
    background-color: #c03028;
    color: #ffffff;
}

.type-flying {
    background-color: #a890f0;
    color: #ffffff;
}

.type-poison {
    background-color: #a040a0;
    color: #ffffff;
}

.type-ground {
    background-color: #e0c068;
    color: #ffffff;
}

.type-rock {
    background-color: #b8a038;
    color: #ffffff;
}

.type-bug {
    background-color: #a8b820;
    color: #ffffff;
}

.type-ghost {
    background-color: #705898;
    color: #ffffff;
}

.type-steel {
    background-color: #b8b8d0;
    color: #ffffff;
}

.type-electric {
    background-color: #f8d030;
    color: #ffffff;
}

.type-psychic {
    background-color: #f85888;
    color: #ffffff;
}

.type-ice {
    background-color: #98d8d8;
    color: #ffffff;
}

.type-dragon {
    background-color: #7038f8;
    color: #ffffff;
}

.type-dark {
    background-color: #705848;
    color: #ffffff;
}

.type-fairy {
    background-color: #ee99ac;
    color: #ffffff;
}

.type-stellar {
    background-color: #f0f0f0;
    color: #000000;
}

.type-unknown {
    background-color: #68a090;
    color: #ffffff;
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.load-more-button {
    background-color: #3d5af1;
    font-family: 'Bitcount', monospace, sans-serif;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
}

.load-more-button:hover {
    background-color: #2c4bbf;
}

.load-more-button:active {
    background-color: #1a2c7f;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

.back-to-top-button {
    background-color: #3d5af1;
    font-family: 'Bitcount', monospace, sans-serif;
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 2.5rem;
}

.back-to-top-button:hover {
    background-color: #2c4bbf;
}

.back-to-top-button:active {
    background-color: #1a2c7f;
}

.single-pokemon-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border: #1e3b6b 8px solid;
    border-radius: 15px;
    box-shadow: #00000072 0px 4px 10px;
}

.pokemon-details-card {
    background: #ffffff65;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 400px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: default;
}

.pokemon-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.pokemon-name {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1b1a1a;
    margin: 0;
}

.pokemon-id {
    background: #05224e;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50%;
}

.pokemon-types {
    margin: 10px 0;
}

.pokemon-type {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 10px;
    margin-right: 10px;
}

.pokemon-type:hover {
    cursor: pointer;
}

.pokemon-stats {
    margin: 20px 0;
}

.stat {
    font-size: 1rem;
    margin: 8px 0;
}

.stat-name {
    font-weight: bold;
    color: #1b1a1a;
    margin-right: 10px;
}

.stat-value {
    color: #060606;
}

.pokemon-abilities {
    margin: 20px 0;
}

.abilities-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b1a1a;
    margin-bottom: 10px;
}

.abilities-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.ability {
    background-color: #05224e;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 10px;
}

.ability:hover {
    background-color: #143e6b;
    transform: scale(1.05);
    cursor: pointer;
}

.pokemon-weight {
    margin: 8px 0;
}

.weight-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b1a1a;
    margin-right: 10px;
}

.weight-value {
    color: #060606;
    font-size: 1rem;
}

.pokemon-height {
    margin: 8px 0;
}

.height-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b1a1a;
    margin-right: 10px;
}

.height-value {
    color: #060606;
    font-size: 1rem;
}

.pokemon-experience {
    margin: 8px 0;
}

.experience-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b1a1a;
    margin-right: 10px;
}

.experience-value {
    color: #060606;
    font-size: 1rem;
}

.pokemon-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #d5dbd6;
    padding: 10px;
    border-radius: 15px;
}

.front-image, .back-image {
    border: #000000 2px solid;
    background-color: #ffffff55;
    border-radius: 15px;
    margin: 20px 20px;
    text-align: center;
}

.front-image:hover, .back-image:hover {
    background-color: #ffffffa1;
    transform: scale(1.05);
    cursor: pointer;
}

.image-label {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1b1a1a;
    margin: 20px 0 10px 0;
    text-align: center;
}

.pokemon-image {
    width: 200px;
    height: fit-content;
}

.also-like {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1b1a1a;
    margin: 20px 0 10px 0;
    text-align: center;
}

.also-like-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1b1a1a;
    margin: 20px 0 10px 0;
    text-align: center;
}

.also-like-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.also-like-card {
    background: #ffffff72;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    width: 150px;
    overflow: hidden;
    transition: transform 0.3s;
    border: #1e3b6b 3px solid;
    cursor: pointer;
}

.also-like-card a {
    text-decoration: none;
    color: inherit;
}

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

.also-like-image {
    width: 150px;
    height: fit-content;
}

.also-like-name {
    margin: 10px 0 0 0;
    font-size: 1.2rem;
    color: #1b1a1a;
    font-weight: bold;
    text-align: center;
}

.divider {
    margin: 30px 0;
}

.divider-line {
    width: 90%;
    height: 1px;
    background-color: #1e3b6b;
}