* {
    box-sizing: border-box
}

html {
    min-height: 100%;
    color: #404040;
    font-family: "Fira Sans", "Trebuchet MS", Ubuntu, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-text-size-adjust: none;
    text-size-adjust: none
}

main {
    margin: 1.25rem auto 2rem;
    padding: .75rem 1rem;
    background-color: #fff
}

@media (min-width:620px) {
    main {
        margin-top: 2rem;
        padding: 1.5rem 2rem
    }
}

@media (min-width:900px) {
    main {
        min-height: 600px
    }
}

@media (min-width:1220px) {
    main {
        border-radius: 4px
    }
}

.grid-container {
    margin: 0 auto;
}

h1,
h2,
p {
    margin: 0 0 1rem;
    padding: 0
}

h1,
h2 {
    color: black;
    font-weight: 700;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word
}

@media (max-width:619px) {
    h1 {
        font-size: 2rem
    }

    h2 {
        font-size: 1.5rem
    }
}

.text-center {
    text-align: center
}

.explainations {
    --panel-text: #404040;
    display: block;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    color: #404040;
    background-color: #f0f0f0
}

.search {
    display: flex;
    justify-content: right;
    margin-bottom: 15px;
    flex-direction: column;
    gap: 10px;
}

.options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.hide {
    display: none;
}

.type-select {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.type-select>select {
    width: 100px;
}

#search-result {
    gap: 5px;
    display: flex;
    flex-wrap: wrap;
    margin-top: 10px;
    background-color: #f0f0f0;
    padding: 5px;
    border-radius: 4px;
    max-height: 500px;
    overflow-y: scroll;
}

.pkmn-result-card {
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px black solid;
    border-radius: 6px;
    padding: 5px;
    background-color: white;
    flex: 1 1 650px;
}

.pkmn-result-card>.name {
    width: 170px;
}

.btn-add {
    margin-left: auto;
}

.team {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pokemon-card {
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 5px;
    border: 1px #404040 solid;
    min-height: 56px;
    flex: 1 1 calc(50% - 10px);
    padding-right: 10px;
    min-width: 618px
}

.sprite {
    width: 54px;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ability {
    width: 131px;
}

select {
    width: 100%;
}

.types {
    min-width: 136px;
}

.type-icon {
    display: inline-block;
    width: 66px;
    margin-bottom: 4px;
    background: #dbdbdb;
    background-color: black;
    border: 1px solid #a3a3a3;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, .2);
    color: #fff;
    font-size: .75rem;
    font-weight: 400;
    line-height: 1.5rem;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .7);
    text-transform: uppercase;
    transition: opacity .4s
}

.type-normal {
    background-color: #aa9
}

.type-fire {
    background-color: #f42
}

.type-water {
    background-color: #39f
}

.type-electric {
    background-color: #fc3
}

.type-grass {
    background-color: #7c5
}

.type-ice {
    background-color: #6cf
}

.type-fighting {
    background-color: #b54
}

.type-poison {
    background-color: #a59
}

.type-ground {
    background-color: #db5
}

.type-flying {
    background-color: #89f
}

.type-psychic {
    background-color: #f59
}

.type-bug {
    background-color: #ab2
}

.type-rock {
    background-color: #ba6
}

.type-ghost {
    background-color: #66b
}

.type-dragon {
    background-color: #76e
}

.type-dark {
    background-color: #754
}

.type-steel {
    background-color: #aab
}

.type-fairy {
    background-color: #e9e
}

.type-aether {
    background-color: #e0dcc9
}

.table-container {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.table-title {
    font-size: 20px;
    font-weight: bold;
    text-align: center;
}

table {
    background: #b0b0b0;
    border-radius: 5px;
    width: fit-content;
}

th {
    width: 80px;
    text-align: center;
}

td {
    width: 50px;
    text-align: center;
}

tr:nth-child(even)>td {
    background: #f0f0f0;
}

tr:nth-child(odd)>td {
    background: #e0e0e0;
}

.very-weak {
    background-color: red;
    font-weight: bold;
    border-radius: 7px;
    padding: 2px;
    color: white;
}

.weak {
    color: red
}

.very-resist {
    background-color: green;
    font-weight: bold;
    border-radius: 7px;
    padding: 2px;
    color: white
}

.resist {
    color: green
}

.total-resist-weak {
    color: white;
}

.paste {
    margin: 30px;
}

button {
    padding: 0.25rem .75rem;
    font: inherit;
    cursor: pointer;
    border: 1px solid #c2c2c2;
    border-radius: 4px;
    color: #404040;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, .6);
    margin: 0px 10px;
}

button:active {
    outline: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .2)
}

button:focus {
    outline: 0;
    border-color: #a3a3a3;
    background-color: #dbdbdb;
}

#log {
    color: red;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#paste-field {
    width: 100%;
    min-height: 270px
}

.tooltip {
    position: relative;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

footer {
    text-align: center;
    font-size: 0.8rem;
}