@import 'https://fonts.googleapis.com/css?family=VT323';

:root{
    --main: #dfc4ff;
    --accent: #cca1ff;
    --bg1: #190038;
    --bg2: #1e0042;
    --link: #9f4fff;

    --buttonWidth: 11vw;
}

body {
    height: 100vh;
    margin: 0 10px;
    box-sizing: border-box;
    font-family: "VT323", "Helvetica", "Arial", sans-serif;
    font-size: 1.3em;
    font-weight: normal;
    line-height: 1.5;
    padding: 2em 1em;
    color: var(--main);
    background-color: var(--bg1);
    background-image: linear-gradient(180deg, var(--bg1), var(--bg2));
}


h1,
h2 {
    font-size: 1.5em;
    color: var(--accent);
    font-weight: normal;
}
strong {
    color: var(--accent);
}
a {
    color: var(--link);
}

.content{
    width: 60%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pokemon img{
    width: 50vmin;
    height: 50vmin;
    filter: drop-shadow(0 0 15px white);
}
img { 
    image-rendering: optimizeSpeed;             /* STOP SMOOTHING, GIVE ME SPEED  */
    image-rendering: -moz-crisp-edges;          /* Firefox                        */
    image-rendering: -o-crisp-edges;            /* Opera                          */
    image-rendering: -webkit-optimize-contrast; /* Chrome (and eventually Safari) */
    image-rendering: pixelated; /* Chrome */
    image-rendering: optimize-contrast;         /* CSS3 Proposed                  */
    -ms-interpolation-mode: nearest-neighbor;   /* IE8+                           */
}


.madeby{
    position: absolute;
    bottom: 0; 
    right: 0;
    margin: 40px;
}
svg{
    padding: 0;
    margin: 0;
}
.controls button{
    position: relative;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,0);
    outline: none;
    transition: 0.3s ease;

    transform: rotate(0deg);
    left: 0;
    right: 0;
}
.controls div{
    display: inline;
    position: relative;
    top: 0;
    width: 0;
}
.controls button.random{
    transition: 1s ease;
}
.controls button.first:active{
    left: -15px;
}
.controls button.prev:active{
    left: -5px;
}
.controls button.random:active{
    transform: rotate(180deg);
}
.controls button.next:active{
    left: 5px;
}
.controls button.last:active{
    left: 15px;
}

.stats{
    margin-bottom: 3em;
}

.stats table{
    border-collapse: collapse;
    display: none;
}
.stats td{
    padding: 2px 5px;
    text-align: center;
    border: 1px var(--accent) solid;
}

.footer{
    text-align: center;
}

.endoraFix{
    display: none;
}

@media screen and (max-width: 700px){
    body {
        padding: 0;
    }
    .content{
        width: 100%;
        margin: 0;
    }
    .controls button{
        width: var(--buttonWidth);
        height: var(--buttonWidth);
    }
    svg{
        width: var(--buttonWidth);
        height: var(--buttonWidth);
    }
}