@import './sanitize.css';
@font-face {
    font-family: 'Pokemon Classic';
    src: url('./Pokemon Classic.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Lady Radical 2';
    src: url('./LadyRadical2Regular-0yAz.ttf');
    font-weight: normal;
    font-style: normal;
}

body { 
    background: grey; 
    font-size: 8vmax;
    display: flex;
    justify-content: center;
    font-family: 'Pokemon Classic';
    background: url('./darktile.png');
}
main {
    display: grid;
    grid-auto-flow: column; 
}
main > div:first-of-type {
    margin-top: 0.1em;
    padding: 0.05em;
    padding-bottom: 0.25em;
    width: 50vw;
    background-color: #333333;
    border: 0.01em solid black;
}
#tbox { 
    background: rgba(0,15,0,0.5);
    font-size: clamp(35%,5vw + 5vh + 5vmin, 16px);
    display: flex;
    justify-content: space-between;
    height: 12vh;
}
#tbox > span:not(:nth-child(2)) {
    display: inline-flex;
    justify-content: center; 
    align-items: center;
    font-family: 'Lady Radical 2';
    width: 15%;
    font-size: 120%;
    border: 0.1em solid white;
    background: black;
    color: white;
}
#tbox > span:nth-child(2) {
    display: inline-flex;
    background: url('./namebg.png');
    align-items: center;
    justify-content: right;
    width: 68%;
    font-size: 0.8em;
    color: white;
    text-shadow: -0.1em 0.1em 0.01em black;
    position: relative;
    z-index: 1;
}
#tbox span > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; 
    text-align: right;
    width: 98%;
}
#tbox > span:nth-child(2)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://sharkberry.pizza/p/pe/takahiro.png');
    background-size: contain;
    filter: grayscale(50%);
    z-index: -1;
}
#tbox > span > span > a {
    text-decoration: unset;
    color: white;
}
#tbox > span > span > a:hover {
    color: palegreen;
}
#monbox {
    width: 25em;
    height: 46em;
    background: #333333;
    margin-top: 10em;
    font-size: 0.095em;
    color: white;
    border: 0.1em solid black;
}
#mstages {
    font-size: 2em;
    display: inline-flex;
    width: 100%;
    justify-content: space-between;
    padding: 0.1em 1em 0.3em 1em;
    margin: 0.25em 0 0.45em 0;
    border-bottom: 0.1em solid rgba(255,255,255,0.5);
    position: relative;
}
#mstages span:not(:nth-child(2)) {
    cursor: pointer;
}
#mimg {
    height: 20em;
    width: 24em;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}
#monbox > div {
    display: flex;
    flex-flow: column;
    width: 24em;
    margin-left: 0.35em;
}
#mname {
    font-size: 1.5em;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#mspecies {
    text-align: center;
    font-size: 0.7em;
    padding-bottom: 0.5em;
    border-bottom: 0.25em solid transparent;
    margin-bottom: 0.25em;
    border-image: linear-gradient(to right,transparent,#4b4b4b,transparent);
    border-image-slice: 1;
}
#mstats {
    display: inline-flex;
    flex-flow: column;
    width: 100%;
}
#mmnst, #msdst {
    width: 23em;
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    text-align: center;
}
#mmnst > span > span, #msdst > span > span {
    display: block;
    margin-bottom: 1em;
    font-size: 0.8em;
}
#msdst {
    padding-top: 0.25em;
    border-top: 0.25em solid transparent;
    border-bottom: 0.25em solid transparent;
    border-image: linear-gradient(to right,transparent,#4b4b4b,transparent);
    border-image-slice: 1;
}
#mball {
    display: grid;
    grid-auto-flow: column;
    align-items: center;
}
#mball img {
    height: 1.5em;
}
#mexnfo {
    display: inline-flex;
    align-items: center;
    justify-items: center;
}
#mexnfo img {
    height: 1.6em;
}
#type_one, #type_two {
    position: absolute;
    width: 1.5em;
    top: 2.5em;
    left: 0.5em;
    border: 0.1em solid white;
    border-radius: 2.5em;
    background: black;
}
#type_two {
    left: 2.5em;
}
#pid {
    position: absolute;
    top: 3.2em;
    right: 0.5em;
    font-size: 0.7em;
}
#pid::before {
    content: "#";
}
#monbox > span:last-of-type {
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.7em;
}
#tbb,#tbf {
    user-select: none;
}
.tinfo {
    padding: 0 0.1em 1.1em 0.1em;
    min-height: 4em;
    background: url('./tile.png');
    display: inline-grid;
    grid-template-columns: repeat(auto-fill, 1.1em);
    justify-content: space-between;
    width: 100%;  
}
.mon {
    position: relative;
    top: -0.35em;
    z-index: 1; 
    display: inline-flex;
    justify-content: center;
    margin-top: 0.2em;
    filter: grayscale(25%);
    height: fit-content;
}
.mon img {
    height: 1em;
    width: 1em;
    display: inline-block;
    object-fit: contain;
}
.mon::before { 
    content: "";
    position: absolute;
    bottom: -0.45em;
    left: 0;
    width: 1em;
    height: 1em;
    z-index: -1;
    background: rgba(0,0,0,0.5);
    border-radius: 6em;
    transform: scale(1,0.2);
}
.mon:hover {
    cursor: pointer;
    filter: grayscale(0);
}
.dim { opacity: 0.1; }
.dimb { opacity: 0.5; }
.hide { display: none !important; }
@media only screen and (max-width: 499px) {
    main { 
        display: flex;
        flex-flow: column-reverse;
    }
    main > div:first-of-type {
        width: 100vw;
    }
    #monbox {
        width: 100vw;
        text-align: center;
        margin-top: 1em;
        margin-bottom: 2em;
    }
    #monbox > div {
        width: 100%;
        margin-left: 0;
    }
    #mstats {
        display: flex;
        justify-items: center;
    }
    #mmnst, #msdst {
        width: 50em;
        margin: 0 auto;
    }
}