.d_none{
    display: none !important; 
}

body {
    margin: 0;
    position: relative;
    font-family: Pokemon Font;
    display: flex;
    justify-content: center;
}

#page-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url(../png/pokemon-background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* bleibt beim Scrollen sichtbar */
}

h2 {
    margin-block-end: 0;
    margin-block-start: 0;
    text-transform: capitalize;
    margin-top: 8px;
    margin-bottom: 12px;
}

header {
    height: 100px;
    width: 100%;
    background-color: #2b2b2a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    z-index: 10;
    box-shadow: 0 0 10px 0 black;
}

#header-content-width {
    max-width: 1920px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#header-logo{
    width: 200px;
}

#search-input{
    padding-right: 24px;
    width: 280px;
    height: 40px;
    font-size: 24px;
    background-color: #2b2b2a;
    border: none;
    box-sizing: border-box;
    color: whitesmoke;
}

#search-input.clearable {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14"><line x1="0" y1="0" x2="14" y2="14" stroke="black" stroke-width="2"/><line x1="14" y1="0" x2="0" y2="14" stroke="black" stroke-width="2"/></svg>') no-repeat right 6px center;
    cursor: pointer;
}

#search-input:focus{
    outline: none;
}

footer {
    height: 100px;
    width: 100%;
    background-color: #2b2b2a;
    color: whitesmoke;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

/*Pokemon-Cards stylings*/

#pokemon-box {
    max-width: 1920px;
    padding-top: 120px;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
}

.pokemon-card-container{
    height: 400px;
    width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokemon-card{
    width: 250px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
}

.pokemon-card:hover {
    width: 280px;
    height: 380px;
    transition: ease 0.2s;
    box-shadow: 0 0 20px 0 black;
    cursor: pointer;
}

.pokemon-sprite{
    width: 150px;
    height: 150px;
    border: 2px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.pokemon-type {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
}

/*Styling of Pokemon Overlay*/

#pokemon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;   
    background-color: rgba(96, 96, 96, 0.57);
    z-index: 1000;      
    display: flex;
    justify-content: center;
    align-items: center; 
    backdrop-filter: blur(6px);
}

.overlay-card-top{
    width: 100%;
    height: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 16px 16px 0 0;
}

#overlay-card-bottom{
    padding-top: 12px;
    width: 100%;
    height: 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: rgb(235, 235, 235);
    border-radius: 16px;
    box-shadow: 0px -2px 12px -2px gray;
}

#pokemon-overlay-card{
    width: 400px;
    height: 700px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#overlay-pokemon-sprite{
    width: 250px;
}

#overlay-pokemon-sprite-container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pokemon-title-container{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: whitesmoke;
    border-radius: 16px 16px 0 0;
    box-shadow: 0px 2px 8px 2px gray;
}

.pokemon-title-container > h2 {
    padding-left: 12px;
}

#pokemon-info-container{
    display: flex;
    flex-direction: column;
    width: 90%;
    gap: 8px;
    margin-top: 12px;
    height: 300px;
    overflow-y: auto;
    font-size: 16px;
}

#stat-title{
    width: 70%;
    text-transform: capitalize;
}

#progress-bar-container{
    width: 70%;
    height: 32px;
}

.stat-container {
    display: flex;
    align-items: center;
    height: 32px;
}

.progress-bar-background {
  position: relative;
  background-color: lightgray;
  border-radius: 8px;
  overflow: hidden;
  height: 32px;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #ce0202;
}

.progress-bar-text {
  position: absolute;
  width: 100%;
  text-align: center;
  line-height: 32px;
  color: white;
  text-shadow: 0 0 6px black;
  font-weight: bold;
}

.ability-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ability-title-container{
    margin-bottom: 12px;
}

.ability-name {
    text-transform: capitalize;
    font-size: 24px;
    font-weight: bold;
}

#attributes-table-container {
    width: 90%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#attributes-table {
    font-size: 24px;
    border-collapse: separate;
    border-spacing: 0;
    border: none;
    box-shadow: 0 0 12px 0 gray;
    border-radius: 12px;
    ;
}

tr {
    height: 48px;
}

tr:first-child td:first-child {
  border-top-left-radius: 12px;
}

tr:first-child td:last-child {
  border-top-right-radius: 12px;
}

tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}

tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}

#exp-row{
    background-color: rgb(255, 204, 110);
    
}

#weight-row{
    background-color: rgb(97, 204, 249);
}

#height-row{
    background-color: rgb(190, 255, 93);
}

#switch-pokemon-container{
    width: 90%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}

#next-pokemon, #previous-pokemon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 500;
}

#next-pokemon:hover, #previous-pokemon:hover {
    cursor: pointer;
    text-shadow: 0 0 6px gray;
    transform: 0.3s;
}

#more-pokemon-container{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 32px;
}