* {
    margin: 0;
}

body {
    font-family: "Roboto", sans-serif;
    display: flex;
    justify-content: center;
    background-color: white;
}

.deactivate-scrolling {
    height: 100%;
    overflow-y: hidden;
}

.header-pokedex {
    position: absolute;
    height: 64px;
    left: 0;
    right: 0;
    top: 0;
    background-color: red;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid lightgray;
    filter: drop-shadow(0px 2px 3px rgba(0,0,0,0.1));
}

.header-pokedex img {
    height: 40px;
    object-fit: cover;
}

#show-all-pokemon {
    display: flex; 
    justify-content: center;
    margin-top: 80px;
}

#pokedex {
    display: flex;
    background-color: #46D1B1;
    color: white;
    padding: 24px;
    flex-direction: column;
    justify-content: space-between;
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

#poke-details {
    width: 500px;
}

#poke-details-background {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
}

.general-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-direction: column;
}

#type {
    display: flex;
}

#type div {
    padding: 8px 20px;
    margin: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
}

h2 {
    font-size: 16px;
}

h3 {
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

#pokedex img {
    margin: -32px 0 0 0;
    width: 300px;
    object-fit: cover;
    object-position: bottom;
}

.poke-img-cnt {
    display: flex;
    justify-content: center;
}

#stats-container {
    background-color: white;
    margin: -56px 0 0 0;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
    padding: 0 24px;
    box-sizing: border-box;
    height: 360px;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
}

.flex-box {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.header-card {
    padding: 32px 0 16px 0;
    display: flex;
    justify-content: space-between;
}

#stats-overview {
    margin: 16px 0;
}

.move-table{
    width: 100%;
    border-collapse: collapse;
}

.move-table tr {
    border: none;
}

.move-table tr:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.move-table th {
    text-align: left;
    padding: 0 0 12px 0;
}

.move-table th:first-child{
    font-weight: bold;
}

.move-table td {
    padding: 8px 0 8px 0;
}

.move-table td:first-child {
    /* text-align: right; */
    color: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    padding: 0 32px 0 0;
}

.move-table td:nth-child(2), .move-table td:nth-child(3) {
    text-transform: capitalize;
}

.move-table td:nth-child(3), .move-table th:nth-child(3) {
    padding-left: 48px;
}

.stats-table td {
    padding: 8px 32px 8px 0;
}

.stats-table td:first-child {
    padding-left: 0;
    color: rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

.stats-table td:nth-child(2) {
    text-transform: capitalize;
    font-weight: bold;
}

.about-table td:first-child {
    padding-right: 72px;
}

.normal-stats {
    font-size: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.highlight-stats {
    color: black;
    font-weight: 700;
    text-decoration-thickness: 3px;
    border-bottom: 2px solid blue;
    padding: 0 0 16px;
}

.scroll-container {
    max-height: 246px;
    overflow: auto;
}

#names-table {
    border-collapse: collapse;
}

#names-table tr:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

#names-table td:first-child {
    padding-right: 72px;
    color: rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

#names-table th {
    text-align: left;
    padding: 0 0 12px 0;
}

#names-table th:first-child {
    font-weight: bold;
}

#names-table td {
    padding: 8px 32px 8px 0;
}

#pokemon-index-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 32px 0;
}

#user-input {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    width: 300px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid lightgray;
    outline: none;
}

#pokemon-cards-container {
    width: 1180px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.pokemon-card {
    color: white;
    background-color: blue;
    width: 370px;
    height: 225px;
    margin: 8px;
    border-radius: 16px;
    padding: 32px 16px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: capitalize;
    cursor: pointer;
}

.pokemon-card img {
    width: 120px;
    object-fit: cover;
    transition: 125ms;
}

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

.quick-info {
    align-self: flex-start;
}

.quick-info h1 {
    font-size: 40px;
}

h4 {
    font-size: 24px;
}

h1 {
    padding: 8px 0;
    text-transform: capitalize;
    font-size: 48px;
}

.allTypes {
    display: table;
    padding: 8px 24px;
    margin: 8px 8px 0 0;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50px;
}

.allTypes-cards {
    padding: 4px 16px;
}

.width {
    width: 1200px
}

.bg-black {
    background-color: rgba(0, 0, 0, 0.3);
}

.title {
    display: block;
    text-align: center;
    font-size: 72px;
    font-weight: bold;
    margin: 72px 0 0 0;
}

h5 {
    font-size: 24px;
    color: #FFCC03;
}

.more-pokemon-btn {
    font-size: 20px;
    background-color: blue;
    border: none;
    color: white;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 999px;
    margin: 16px 0;
    cursor: pointer;
}

.d-none {
    display: none !important;
}

.more-pokemon-btn:hover {
    background-color: rgb(70, 70, 219)
}

.next-btn {
    position: fixed;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.5);
    right: 32px;
    font-size: 32px;
    border: none;
    cursor: pointer;
}

.next-btn:hover, .previous-btn:hover {
    background-color: rgba(255,255,255,0.8);;
}

.previous-btn {
    position: fixed;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.5);
    left: 32px;
    font-size: 32px;
    border: none;
    cursor: pointer;
}


@media (max-width: 1200px) {
    #stats-container {
         width: 100%;
    }

    #pokemon-cards-container {
        width: 800px;
    }
}

@media (max-width: 820px) {
    #pokemon-cards-container {
        width: 100%;
    }

    .pokemon-card {
        width: calc(50% - 8px);
        margin: 4px;
    }
}

@media (max-width: 768px) {
    #pokemon-cards-container {
        width: 100%;
    }

    .pokemon-card img {
        width: 100px;
        object-fit: cover;
    }

    .pokemon-card {
        width: calc(50% - 16px);
        height: 200px;
        margin: 4px;
    }

    .header-pokedex h5 {
        display: none;
    }

    .quick-info h1 {
        font-size: 32px;
    }
}

@media (max-width: 680px) {
    .pokemon-card {
        height: 180px;
        padding: 16px 16px;
    }

    .quick-info h1 {
        font-size: 24px;
    }

    #user-input {
        width: 250px;
    }

}

@media (max-width: 510px) {
    .pokemon-card img {
        width: 100px;
        object-fit: cover;
    }

    .pokemon-card {
        width: calc(100% - 16px);
        height: 200px;
        margin: 4px;
    }


    #user-input {
        width: 260px;
    }

    .quick-info h1 {
        font-size: 32px;
    }

    #user-input {
        width: 200px;
    }
}

@media (max-width: 460px) {
    #pokedex img {
        width: 270px;
        margin: 0 0 0 0;
    }

    #type div {
        padding: 4px 16px;
    }

    h4 {
        font-size: 20px;
    }

    .header-pokedex a {
        display: none;
    }

    .header-pokedex {
        justify-content: center;
    }
}




