:root {
    --default-bg: rgb(171, 168, 164);
    --Water: rgb(47, 151, 255);
    --Fire: rgb(255, 75, 75);
    --Grass: rgb(23, 202, 125);
    --Electric: rgb(255, 191, 0);
    --Poison: rgb(153, 0, 255);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'consolas', sans-serif;
}

.dis-none {
    display: none;
}

body {
    position: relative;
    min-height: 100vh;
}


#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    background: rgb(220, 220, 220);
    width: 100%;
    height: 80px;
    padding: 15px 80px;
    z-index: 10000;
}

#header a {
    margin: auto;
    width: 50px;
    height: 60px;
}

.search-bar {
    position: relative;
    width: 100px;
    height: 50px;
    transition: 0.5s;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.search-bar #input-field {
    width: 100%;
    height: 100%;
    border-radius: 25px;
    outline: none;
    padding-left: 120px;
    font-size: 20px;
    color: grey;
    border: none;
    letter-spacing: 2px;
    cursor: pointer;
}


#magnifying-glass {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    font-size: 22px;
    color: lightgrey;
}


.search-bar img {
    position: absolute;
    top: 0;
    left: 50px;
    width: 50px;
    height: 50px;
    transform: rotate(300deg);
    opacity: 0.4;
    cursor: pointer;
    transition: 0.5s;  
}

.search-bar:hover {
    box-shadow: -2px 5px 12px rgba(0, 0, 0, 0.3);
}


.active-search {
    width: 400px;
    transition: 0.5s;
}


#card-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    min-height: 50vh;
    background-color: #fff;
    color: #fff;
    padding: 20px 40px;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    width: 250px;
    height: 180px;
    background: var(--default-bg);
    border-radius: 15px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    padding: 25px 30px;
    cursor: pointer;
    transition: 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
}

.poke-type {
    padding: 6px 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 15px;
}

.poke-id {
    position: absolute;
    top: 15px;
    right: 25px;
}

.img-small {
    position: absolute;
    bottom: 20px;
    right: 10px;
    width: 100px;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
}

/******** POKEMON ENTRY **********/

.layer {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 10000;
}


.poke-entry-container {
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 550px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}


.entry-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 50px;
    padding: 10px 30px;
    background: transparent;
    color: #fff;
    font-size: 22px;
}


#close-entry {
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.entry-imgbox {
    position: relative;
    padding: 25px 30px;
    width: 100%;
    height: 230px;
    color: #fff;
    line-height: 40px;
}

.entry-imgbox h3 {
    font-size: 24px;
    padding-bottom: 20px;
}

.entry-imgbox img {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 180px;
    object-fit: contain;
}

.entry-content {
    width: 100%;
    height: 100%;
    background: #fff;
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0px 30px;
}

.entry-nav a {
    color: rgb(157, 157, 157);
    font-size: 14px;
    line-height: 50px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    letter-spacing: 1px;
}

.entry-nav a:hover {
    color: rgb(42, 42, 42);
    border-bottom: 2px solid rgb(42, 42, 42);
}

.entry-nav a.active-link {
    color: rgb(42, 42, 42);
    border-bottom: 2px solid rgb(42, 42, 42);
}