* {  
    font-family: monospace;  
    margin: 0;  
    padding: 0;  
    transition: background-color 0.3s, color 0.3s;  
    box-sizing: border-box;  
    list-style: none;  
}  

/* Header and Footer */  
.fixed-header {  
    display: flex;  
    align-items: center;  
    justify-content: space-between;  
    background-color: rgb(240, 76, 76);  
    color: rgb(240, 240, 240);  
    padding: 10px;  
    position: fixed;  
    width: 100%;  
    z-index: 10;  
}  

.header-title {  
    font-size: 1.5rem;  
    font-weight: bold;  
    padding: 4px;  
    border-radius: 3px;  
    cursor: pointer;  
}  

.header-right {  
    display: flex;  
    align-items: center;  
    gap: 10px;  
}  

.search-input {  
    padding: 5px 10px;  
    border: none;  
    border-radius: 3px;  
    font-size: 12px;  
    outline: none;  
}  

#search-btn, #view-favorites, #toggle-theme, #filter-type {  
    background-color: rgb(240, 76, 76);  
    color: rgb(240, 240, 240);  
    border: none;  
    padding: 4px;  
    border-radius: 3px;  
    cursor: pointer;  
    font-size: 14px;  
}  

#refresh-heading:hover, #search-btn:hover, #view-favorites:hover, #toggle-theme:hover, #filter-type:hover {  
    background-color: rgb(240, 240, 240);  
    color: rgb(240, 76, 76);  
}  

#view-favorites, #toggle-theme {  
    font-size: 22px;  
    padding: 0.1px 10px;  
}  

.suggestions-box {  
    color: black;  
    position: absolute;  
    top: 100%;  
    right: 1%;  
    width: 250px;  
    opacity: 70%;  
    background-color: rgb(240, 240, 240);  
    border: 1px solid rgb(204, 204, 204);  
    border-top: none;  
    z-index: 10;  
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  
    max-height: 200px;  
    overflow-y: auto;  
}  

.suggestion-item {  
    padding: 8px;  
    cursor: pointer;  
    font-size: 15px;  
}  

.suggestion-item:hover {  
    background-color: rgb(255, 203, 5);  
}  

.fixed-footer {  
    background-color: rgb(240, 76, 76);  
    color: rgb(240, 240, 240);  
    padding: 10px;  
    width: 100%;  
    text-align: center;  
    font-size: 17px;  
    margin-bottom: 0;  
}  

html, body {  
    height: 100%;  
}  

body > footer {  
    position: sticky;  
    top: 100vh;  
}  

.creator {  
    text-decoration: none;  
    color: inherit;  
}  

.creator:hover {  
    color: rgb(0, 0, 0);  
}  

/* Cards grid */  
.pokemon-list {  
    width: 96%;  
    margin-left: 3%;  
    display: grid;  
    grid-template-columns: repeat(6, 1fr);  
    gap: 20px;  
    padding-top: 75px;  
    padding-bottom: 30px;  
}  

.pokemon-card {  
    display: flex;  
    flex-direction: column;  
    justify-content: space-between;  
    align-items: center;  
    border: 2.5px solid rgb(255, 203, 5);  
    color: rgb(41, 38, 38);  
    border-radius: 8px;  
    padding: 10px;  
    position: relative;  
    text-align: center;  
    cursor: pointer;  
    transition: 0.2s;  
    width: 200px;  
    height: 340px;  
}  

.pokemon-card img {  
    max-width: 100%;  
    max-height: 150px;  
    margin-top: 20px;  
}  

.pokemon-card .pokemon-name {  
    font-size: 18px;  
    font-weight: bold;  
}  

.pokemon-card h3 {  
    font-style: italic;  
    font-size: 18px;  
    margin: 10px;  
    text-transform: capitalize;  
    text-shadow: 1px 1px rgb(255, 230, 131);  
}  

.star-btn {  
    font-size: 25px;  
    cursor: pointer;  
    background: none;  
    border: none;  
    color: rgb(240, 240, 240);  
    text-shadow: 0 0 5px rgb(255, 203, 5);  
    transition: transform 0.3s, color 0.3s, box-shadow 0.3s;  
    margin-top: 5px;  
}  

.star-btn.favorited {  
    color: rgb(255, 0, 0);  
}  

.pokemon-card .card-footer {  
    display: flex;  
    justify-content: space-between;  
    width: 100%;  
    margin-top: 20px;  
    align-items: center;  
    padding-top: 7px;  
    border-top: 1.5px solid rgb(240, 240, 240);  
    font-size: 15px;  
}  

.pokemon-card:hover {  
    transform: scale(1.05);  
}  

.star-btn span {  
    display: inline-block;  
    transition: transform 0.3s, box-shadow 0.3s;  
}  

.star-btn:hover span {  
    transform: scale(1.2);  
    text-shadow: 0 0 3px rgb(255, 0, 0), 0 0 10px rgba(0, 0, 0, 0.3);  
}  

/* Modal styles */  
#modal-body {  
    position: relative;  
}  

.modal {  
    display: none;  
    position: fixed;  
    top: 0;  
    left: 0;  
    width: 100%;  
    height: 100%;  
    overflow-y: auto;  
    backdrop-filter: blur(4px);  
    justify-content: center;  
    align-items: center;  
    
}  

#modal-title {
    font-style: italic;
    text-transform: capitalize;  
    text-shadow: 1px 1px rgb(255, 230, 131);  
}

.modal-content, h6 {  
    border: 3px solid rgb(255, 203, 5);  
    padding: 15px;  
    border-radius: 8px;  
    width: 70%;  
    max-width: 800px;
    max-height: 500px;
    text-align: center;  
    font-size: 18px;  
    scroll-behavior: auto;
    overflow-y: auto;
    overflow-x: auto;
}  

.modal-content img {  
    max-width: 100%;  
    max-height: 250px;  
    object-fit: contain;  
}  

.back-button {  
    font-size: 35px;  
    position: absolute;  
    top: -50px;  
    right: -3px;  
    color: rgb(0, 0, 0);  
    padding: 0;  
    border: none;  
    border-radius: 2px;  
    cursor: pointer;  
    background: none;  
    transition: transform 0.3s, color 0.3s, box-shadow 0.3s;  
}  

.back-button:hover {  
    transform: scale(1.2);  
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.3);  
}  

.evolution-chain {
   margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evolution-stage {
    text-align: center;
  
}

.evolution-stage img {
    margin-top: -10px;
    width: 130px;
    height: auto;
    object-fit: contain;
    /* margin-bottom: 5px; */
}

h6 {
    border: 2px solid rgb(78, 63, 12); 
    background-color: rgb(255, 230, 131); 
    padding: 0.5px; 
    border-radius: 3px; 
    width: 120px;
    justify-self: center; 
}

/* Dark mode */  
body.dark-mode {  
    background-color: rgb(51, 51, 51);  
}  

body.dark-mode .fixed-footer,  
body.dark-mode .fixed-header,  
body.dark-mode .fixed-footer {  
    background-color: rgb(205, 57, 57);  
}  

body.dark-mode .fixed-footer,  
body.dark-mode #refresh-heading,  
body.dark-mode #search-btn,  
body.dark-mode #view-favorites,  
body.dark-mode #toggle-theme,  
body.dark-mode #filter-type {  
    background-color: rgb(205, 57, 57);  
    color: rgb(34, 34, 36);  
    border-color: rgb(34, 34, 36);  
}  

body.dark-mode #refresh-heading:hover,  
body.dark-mode #search-btn:hover,  
body.dark-mode #view-favorites:hover,  
body.dark-mode #toggle-theme:hover,  
body.dark-mode #filter-type:hover {  
    background-color: rgb(34, 34, 36);  
    color: rgb(205, 57, 57);  
}  

body.dark-mode .creator:hover {  
    color: rgb(240, 240, 240);  
}  

body.dark-mode .header-title {  
    color: rgb(34, 34, 36);  
}  

body.dark-mode .suggestions-box {  
    color: rgb(255, 255, 255);  
    background-color: rgb(0, 0, 0);  
    border: 1px solid rgb(51, 51, 51);  
    border-top: none;  
}  

body.dark-mode .suggestion-item:hover {  
    color: rgb(78, 63, 12);  
}  
body.dark-mode .pokemon-card,  
body.dark-mode .modal {  
    filter: brightness(87%);  
}  

body.dark-mode .back-button {  
    color: rgb(255, 255, 255);  
}  

/* Responsive Design */  
@media (max-width: 1300px) {  
    .pokemon-list {  
        grid-template-columns: repeat(4, 1fr);  
    }  
}  

@media (max-width: 878px) {  
    .pokemon-list {  
        grid-template-columns: repeat(3, 1fr);  
    }  
}  

@media (max-width: 680px) {  
    .pokemon-list {  
        grid-template-columns: repeat(2, 1fr);  
    }  
}  

