.header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    text-align: center;
}

.header-right {
    margin-right: 25px;
}

.ul-header {
    list-style-type: none;
}

.ul-header li {
    float: left;
    padding: 16px;
    cursor: pointer;
}

.main {
    width: 100%;
    display: flex;
}

.type-button ul {
    list-style-type: none;
}

.type-button li {
    padding: 5px;
    cursor: pointer;
    border-radius: 20px;
    text-align: center;
    align-items: center;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

.type-button img {
    width: 20px;
    height: 20px;
}

.main-content {
    width: 100%;
    margin-left: 10px;
    max-height: 5000px;
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    flex-grow: 1;
}

thead {
    position: sticky;
    top: 0;
    font-size: x-large;
    background: blueviolet;
}

tr,
th,
td {
    border: 1px solid black;
    text-align: center;
    padding: 8px;
}

.pokemon-container {
    display: flex;
}

.pokemon-image-container {
    position: relative;
    width: 66px;
    height: 66px;
    border: 1px solid #ccc;
}

.pokemon-image {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pokemon-level {
    position: absolute;
    top: 0px;
    /* Điều chỉnh giá trị âm này để di chuyển lên trên */
    left: 0;
    padding-bottom: 3px;
    padding-left: 2px;
    font-size: 10px;
}

.pokeball {
    position: absolute;
    top: 0px;
    /* Điều chỉnh giá trị âm này để di chuyển lên trên */
    right: 0;
    padding-bottom: 3px;
    padding-right: 2px;
    width: 10px;
}

.pokemon-quantity {
    position: absolute;
    bottom: 0px;
    /* Điều chỉnh giá trị âm này để di chuyển lên trên */
    left: 0;
    padding-top: 3px;
    padding-left: 2px;
    font-size: 10px;
}

/* CSS cho form */
#pokemon-form {
    position: fixed; /* Để form nằm cố định trên màn hình */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa form */
    background-color: white;
    border: 1px solid #ccc;
    padding: 20px;
    z-index: 100; /* Đảm bảo form nằm trên các element khác */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}


#pokemon-form label {
    display: block; /* Để label và input nằm trên các dòng riêng biệt */
    margin-bottom: 5px;
}

#pokemon-form input[type="text"],
#pokemon-form input[type="number"],
#pokemon-form select {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Để padding và border không ảnh hưởng đến width */
}

#pokemon-form input[type="radio"]{
    margin-right: 10px;
    margin-bottom: 10px;
}

#pokemon-form button {
    background-color: #4CAF50; /* Green */
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 0;
    cursor: pointer;
}

/* ... (CSS cũ) */

#pokemon-form label {
    display: inline-block; /* Hiển thị label trên cùng một dòng */
    width: 100px; /* Điều chỉnh width tùy ý */
    margin-right: 10px;
}

#pokemon-form input[type="radio"] {
    display: inline-block; /* Hiển thị radio button trên cùng một dòng với label */
    width: auto; /* Để radio button có kích thước mặc định */
    margin-right: 5px; /* Khoảng cách giữa radio button và label */
    vertical-align: middle;

}
#pokemon-form input[type="text"],
#pokemon-form input[type="number"],
#pokemon-form select {
  /* ... (CSS cũ) */
  display: inline-block;
  width: calc(100% - 110px);  /* Điều chỉnh width cho phù hợp với label */
  vertical-align: middle;
}


#pokemon-form button {
    /* ... (CSS cũ) */
    display: inline-block; /* Để các button nằm trên cùng một dòng */
    margin: 10px 5px; /* Khoảng cách giữa các button */

}

#pokemon-form label[for="male-radio"],
label[for="female-radio"] {
  width: auto; /* Hoặc một giá trị cụ thể */
  margin-right: 0;
}

#overlay {
    display: none; /* Ẩn overlay ban đầu */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Màu đen mờ */
    z-index: 99; /* Nằm dưới form */
}