body {
    /*background-color: #463C54;*/
    background: rgb(82,76,101);
    background: linear-gradient(162deg, rgba(82,76,101,1) 0%, rgba(36,27,55,1) 100%);
    font-family: 'Open Sans', sans-serif;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-variant: small-caps;
    font-weight: 900;
}

#monster-content h1, #monster-content h2, #monster-content h3, #tech-content h1, #tech-content h2, #tech-content h3 {
    color: #9cd3e3;
}

#monster-content hr, #tech-content hr {
    opacity: 1;
    color: #4d4660;
    border-top-width: 4px;
}

#monster-content .table > :not(caption) > * > *, #tech-content .table > :not(caption) > * > * {
    border-color: #4d4660;
    border-bottom-width: 4px;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

main > *:not(:last-child) {
    margin-bottom: 1rem;
}

.centered-main {
    position: relative;
    min-height: 6.5rem;
}

table th {
    background-color: #463C54;
    color: #8fd19e;
    text-align: center;
}

table td {
    color: white;
    text-align: center;
    font-size: 130%;
    font-weight: 700;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.stat-positive, .stat-positive a {
    color: #96da79;
}
.stat-positive:before {
    content: '↑';
}
.stat-negative, .stat-negative a {
    color: #e67777;
}
.stat-negative:before {
    content: '↓';
}

.lg-icon, .med-icon, .sm-icon, .xs-icon {
    display: inline-block;
    object-fit: cover;
    position: relative;
}

.lg-icon {
    height: 120px;
    width: 120px;
}
.med-icon {
    height: 80px;
    width: 80px;
}
.sm-icon {
    height: 50px;
    width: 50px;
}
.xs-icon {
    height: 30px;
    width: 30px;
}

.breed-icon {
    color: orange;
}
.tech-icon {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(164,164,164,1) 100%);
    border-radius: 3px;
    border-width: 2px;
    border-style: solid;
    border-top-color: rgb(246, 246, 246);
    border-left-color: rgb(215, 216, 216);
    border-right-color: #989090;
    border-bottom-color: #827676;
    color: cyan;
}
.method-icon {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(164,164,164,1) 100%);
    border-radius: 3px;
    border: 3px solid black;
    color: cyan;
}
.monster-icon, .monster-portrait {
    background: rgb(255,255,255);
    background: linear-gradient(180deg, rgb(15, 20, 46) 0%, rgb(51, 72, 109) 100%);
    border-radius: 3px;
    border: 3px solid black;
    color: yellow;
}
.monster-portrait {
    border: 8px solid black;
    border-radius: 10px;
}

.med-icon ~ .label-text {
    min-width: 75px;
}
.lg-icon ~ .label-text {
    max-width: 120px;
}

.empty-icon {
    background: rgb(46,33,55);
    background: linear-gradient(180deg, rgba(46,33,55,1) 0%, rgba(106,78,126,1) 100%);
    border-radius: 3px;
}

.label-text {
    text-align: center;
    font-size: 0.8rem;
    font-family: 'Anybody', sans-serif;
    font-weight: 500;
    /*background-color: #f1da85;*/
    /*color: #523708;*/
    width: 100%;
    /*border-bottom-right-radius: 10px;*/
    /*border-bottom-left-radius: 10px;*/
    padding: 3px;
    /*border-top: 1px solid black;*/
    word-break: keep-all;
}

.quote-text {
    position: relative;
    text-align: center;
    font-size: 0.8rem;
    font-family: 'Anybody', sans-serif;
    font-weight: 600;
    background-color: #f1da85;
    color: #523708;
    width: 100%;
    border-radius: 10px;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-top: 1px solid black;
}
.quote-text.en-text:after {
    position: absolute;
    content: 'EN';
    background-color: #523708;
    color: #f1da85;
    border-bottom-right-radius: 5px;
    width: 1.5rem;
    top: 0;
    left: 0;
}
.quote-text.jp-text:after {
    position: absolute;
    content: 'JP';
    background-color: #523708;
    color: #f1da85;
    border-bottom-right-radius: 5px;
    width: 1.5rem;
    top: 0;
    left: 0;
}

a:hover .breed-text, a:hover .monster-text {
    /*background-color: #523708;*/
    /*color: #f1da85;*/
}

.back-link {
    color: white;
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.back-link + * {
    margin-top: 3.5rem;
}

.icon-link {
    text-decoration: none;
}

.rank-G { color: #8a8fb2; }
.rank-F { color: #bcd2ff; }
.rank-E { color: #68bdf7; }
.rank-D { color: #abedff; }
.rank-C { color: #c7ff6f; }
.rank-B { color: #ff69cc; }
.rank-A { color: #ea4335; }
.rank-S { color: #fbbc04; }

.range-far { color: #c9daf8; }
.range-middle { color: #d9ead3; }
.range-close { color: #fff2cc; }
.range-zero { color: #f4cccc; }

#gallery-images img {
    height: 90px;
    width: 100%;
    object-fit: cover;
}

#gallery-images a:hover img {
    border: 3px solid #9cd3e3;
}

.btn-black {
    background-color: black;
    border-color: black;
    color: white;
}
.btn-black.active, .btn-black:hover, .btn-black:focus {
    background-color: #824199;
    border-color: #824199;
    color: white;
}

#quick-search .ui-autocomplete {
    max-height: 250px;
    overflow-y: scroll;
    overflow-x: hidden;

    font-family: 'Anybody', sans-serif;
    font-weight: 500;

    background-color: #f1da85;
    color: #523708;
    font-size: 0.8rem;
}
#quick-search .ui-autocomplete .ui-state-active {
    color: #f1da85;
    background-color: #523708;
    border-color: #523708;
}
#quick-search .result-category {
    font-size: 0.6rem;
}

#top-menu {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    width: 20rem;
}

.twitter-credit .btn {
    border-color: rgba(255, 255, 255, 0.5);
    font-family: 'Anybody', sans-serif;
}
.twitter-credit .btn:not(:hover) {
    background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 776px) {
    .back-link {
        position: relative;
        top: 0;
        left: 0;
        text-align: center;
    }

    table td, table th {
        font-size: 0.9rem;
    }

    .lg-icon {
        height: 75px;
        width: 75px;
    }
    .lg-icon ~ .label-text {
        max-width: 75px;
    }
}
