.d_none {
    display: none! important;
}

#overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-overlay {
    width: 700px;
    max-width: 100%;
    background-color: #293548;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    color: white;
    position: relative;
}

.header-first-line {
    display: flex;
    justify-content: space-between;
    font-size: 24px;
    color: white;
    padding: 10px 20px;
}

#overlayPokemonName {
    font-size: 30px;
}

.header-second-line {
    background-color: white;
}

.overlay-pokemon-image {
    height: 240px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.overlay-pokemon-types {
    display: flex;
    font-size: 24px;
    justify-content: space-around;
    align-items: center;
    padding: 10px 5px;
    background-color: #2a2a2a;
}

.overlay-pokemon-type {
    padding: 5px 5px;
    font-weight: 600;
    padding: 10px 70px;
    font-size: 20px;
}

.overlay-link {
    text-align: center;
    color: white !important;
    font-size: 32px !important;
}

.nav {
    display: flex;
    justify-content: space-evenly;
}

.btn {
    font-weight: 900;
    font-size: 20px;
    color: white!important;
}

.overlay-footer {
    display: flex;
    justify-content: space-evenly;
}

#main {
    gap: 12px;
    padding: 50px 10px;
    font-size: 30px;
    font-weight: 600;
    background-color: #e07171;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    align-items: center;
}

.overlay-content {
    padding: 30px 0px;
    color: white;
    background-color: #2a2a2a;
    display: flex;
    flex-direction: column;
    gap: 30px;
    font-size: x-large;
}

.button {
    margin-top: 10px;
    padding: 3px 28px;
    font-size: 24px;
    border-radius: 10%;
    background-color: #8b8b8b;
    color: white;
}

.button:hover {
    cursor: pointer;
    background-color: #ff00006d;
}

.overlay-close-button:hover {
    background-color: white;
}

.padding-bottom {
    padding-bottom: 5px;
}

.overlay-content table td:first-child {
    width: 150px;
    font-weight: bold;
    padding-right: 10px;
}

.overlay-content table td:last-child {
    text-align: left;
    padding-left: 10px;
}

body.no-scroll {
  overflow: hidden;
}

.main-first-line {
    display: flex;
    justify-content: space-around;
    padding: 5px 0;
}

