.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    border-radius: 1rem;
    width: 90%;
    max-width: 400px;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.modal-header {
    padding: 2rem;
    color: white;
    position: relative;
    text-transform: capitalize;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-header .close-button {
    position: absolute;
    top: 8px;
    left: 8px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.modal-header .header-main-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.modal-header .name {
    font-size: 2rem;
    margin: 0;
    font-weight: bold;
}

.modal-header .number {
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-header .types {
    display: flex;
    gap: 0.5rem;
}

.modal-header .types .type {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-header .pokemon-image {
    width: 150px;
    height: 150px;
    margin-top: 1rem;
}

.modal-body {
    padding: 2rem;
    background-color: #fff;
    border-radius: 1rem;
    margin-top: -2rem;
    position: relative;
}

.details-content {
    margin-top: 1rem;
}

.about-section {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-section span {
    color: #888;
    font-weight: bold;
}

.about-section strong {
    color: #504f4f;
    text-transform: capitalize;
}

.about-section .abilities {
    display: flex;
    flex-direction: column;
}

.about-section .abilities span {
    color: #504f4f;
}

.stats-title {
    color: #333;
    text-align: left;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}
.stats-list {
    list-style: none;
    padding: 0;
}

.stats-list li {
    display: grid;
    grid-template-columns: 120px 1fr 35px;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #504f4f;
}

.stats-list .stat-name {
    color: #888;
    font-weight: bold;
    text-transform: capitalize;
}

.stat-bar {
    width: 100%;
    background-color: #f1f1f1;
    height: 6px;
    border-radius: 3px;
}

.stat-fill {
    height: 100%;
    border-radius: 3px;
}
