:root {
    --art-ratio: 100%;
    --poke-gap: -7px;
    --man-art-height: calc(100%  - 20px);

    --vanilla: rgb(255, 254, 238);
    --deep-grey: rgb(97, 97, 97);
    --btn-grey: rgb(47, 47, 47);
    --light-grey: grey;
    --magenta: #DC0A2D;
}

@font-face {
    font-family: roboto;
    src: url(./fonts/Roboto-BoldItalic.ttf);
}

@font-face {
    font-family: roboto-reg;
    src: url('./fonts/Roboto-Medium.ttf');
}

@font-face {
    font-family: game-boy;
    src: url(./fonts/Early\ GameBoy.ttf);
}

body {
    margin: 0;
    font-family: roboto;
}

button {
    font-family: roboto;
    cursor: pointer;
}

#main {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;

    background-color: var(--btn-grey);
    overflow: hidden;
}

#header {
    box-sizing: border-box;
    padding: 15px 20px;
    color: var(--vanilla);
    background-color: var(--btn-grey);
    width: 100vw;

    font-size: 20px;

    display: flex;
    justify-content: space-between;
    position: relative;
}

#header>h1 {
    margin: 0;
}

#header>.triforce {
    height: 22px;;
}

#header>.triforce-1 {
    top: 5px;
    left: 5px;
}

#header>.triforce-2 {
    top: 5px;
    right: 5px;
    transform: rotate(90deg);
}

#header>.triforce-3 {
    bottom: 5px;
    right: 5px;
    transform: rotate(180deg);
}

#header>.triforce-4 {
    bottom: 5px;
    left: 5px;
    transform: rotate(270deg);
}

#header-btns {
    display: flex;
}

#help-btn {
    font-size: 22px;
    padding: 0px 20px;
}

#help-btn::after {
    background-color: var(--magenta);
}

#help-btn>.help {
    font-size: 12px;
    padding: 5px;
    display: flex;
    justify-content: center;
}

#help-btn>.help>div {
    text-align: center;
}

#wobble-btn {
    font-size: 14px;
    padding: 0px 20px;
}

#wobble-btn::after {
    background-color: var(--deep-grey);
}

#options-btn {
    font-size: 14px;
    padding: 0px 20px;
    display: none;
}

#options-btn::after {
    background-color: var(--deep-grey);
}

#content {
    display: flex;
    flex-grow: 1;

    /* overflow: hidden; */
    
    background-color: var(--deep-grey);
    filter: drop-shadow(0px -10px 10px rgba(0, 0, 0, 0.404));

    max-width: 1500px;
    position: relative;
}

#options {
    padding: 15px;
    color: var(--vanilla);
    border-radius: 10px;
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 10px;

    position: relative;
}

#options h2 {
    margin: 0;
}

#options-form-wrapper {
    display: flex;

    gap: 10px;

    position: relative;
}

#options-form {
    flex: 2;
    display: flex;
    flex-direction: column;

    gap: 10px;
    width: 70%;
}

.form-box {
    display: flex;
    flex-direction: column;
    position: relative;

    gap: 2px;
}

.form-box label {
    color: rgb(235, 234, 221);
}

.form-box>.input-box {
    border-radius: 3px;

    background-color: var(--light-grey);
    outline: none;

    transition: all 0.2s ease-in-out;
    position: relative;
}

.form-box>.input-box:focus, .form-box>.input-box:hover {
    background-color: var(--magenta);
}

.form-box input {
    outline: none;
    border: none;

    font-family: roboto-reg;
    font-size: 20px;
    padding: 5px;
    color: var(--vanilla);
    width: 100%;
    box-sizing: border-box;

    background-color: transparent;
}

.unit-box {
    position: absolute;
    top: 50%;
    left: 5ch;
    transform: translate(0%, -50%);

    font-size: 20px;
    font-family: roboto-reg;
    filter: brightness(0.8);
}

.zelda-btn {
    background-color: var(--btn-grey);
    color: var(--vanilla);

    font-size: 17px;
    border: none;
    border-radius: 5px;

    position: relative;
    transition: all 0.1s ease-in-out;
}

.zelda-btn.flicker::after{
    animation: flicker 0.1s ease-in-out alternate;
}

@keyframes flicker {
    0% {filter: brightness(1);}
    100%{filter: brightness(5);}
}

.zelda-btn::before, .zelda-btn::after {
    content: '';
    position: absolute;
    pointer-events: none;
    
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    height: calc(100% - 3px);
    width: calc(100% - 3px);

    background-color: rgb(82, 82, 82);
    border-radius: 2px;

    transition: all 0.2s ease-in-out;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0));
}

.zelda-btn:hover::before {
    background-color: rgb(200, 200, 200);
    height: calc(100% - 0px);
    width: calc(100% - 0px);
    filter: drop-shadow(0px 0px 10px rgba(251, 251, 251, 0.63));
}

.zelda-btn::after {    
    height: calc(100% - 6px);
    width: calc(100% - 6px);

    background-color: var(--btn-grey);
    filter: none;
}

.corner {
    position: absolute;
    z-index: 1;
    background-color: white;
    filter: drop-shadow(0px 0px 20px white);
    height: 15px;
    aspect-ratio: 1;

    filter: opacity(0);
}

.zelda-btn:hover>.corner {
    filter: opacity(1);
}

.corner-1 {
    top: -2px;
    left: -2px;

    clip-path: polygon(100% 0, 0 0, 0 100%);
    animation: corner-1 0.25s infinite alternate;
}

@keyframes corner-1 {
    0% {transform: translate(0%, 0%);}
    100% {transform: translate(-20%, -20%);}
}

.corner-2 {
    top: -2px;
    right: -2px;

    clip-path: polygon(100% 100%, 100% 0, 0 0);
    animation: corner-2 0.25s infinite alternate;
}

@keyframes corner-2 {
    0% {transform: translate(0%, 0%);}
    100% {transform: translate(20%, -20%);}
}

.corner-3 {
    bottom: -2px;
    right: -2px;

    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    animation: corner-3 0.25s infinite alternate;
}

@keyframes corner-3 {
    0% {transform: translate(0%, 0%);}
    100% {transform: translate(20%, 20%);}
}

.corner-4 {
    bottom: -2px;
    left: -2px;

    clip-path: polygon(0 0, 0 100%, 100% 100%);
    animation: corner-4 0.25s infinite alternate;
}

@keyframes corner-4 {
    0% {transform: translate(0%, 0%);}
    100% {transform: translate(-20%, 20%);}
}

#unit-btn-box {
    flex: 1;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

#unit-btn {
    flex: 1;
    padding: 0;
    font-size: 14px;
}

.btn-text {
    position: relative;
    z-index: 3;
}

#btn-padding {
    filter: opacity(0);
    pointer-events: none;
}

#options-box {
    display: flex;
    gap: 5px;

    flex: 1;
    position: relative;
}

#convert-btn {
    flex: 0.5;
}

#convert-btn::after {
    background-color: var(--magenta);
}

#closest-btn {
    flex: 1;
}

#result-info {
    background-color: var(--vanilla);
    color: var(--deep-grey);
    padding: 10px;

    height: 60px;

    overflow-y: scroll;
}

#result-info::-webkit-scrollbar {
    width: 10px;
    
}

#result-info::-webkit-scrollbar-track {
    background-color: transparent;
    margin: 10px;
}

#result-info::-webkit-scrollbar-thumb {
    background: var(--deep-grey); 
    border-radius: 7px;
}

#result-info::-webkit-scrollbar-thumb:hover {
    background-color: var(--magenta); 
}

#result-info-wrapper {
    position: relative;
    overflow: hidden;

    border-radius: 5px;
}

#result-info-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;

    height: 100%;
    width: 100%;

    background-color: transparent;
    box-shadow: inset 0px 15px 18px rgba(0, 0, 0, 0.349);

    pointer-events: none;
}

#console-box {
    width: 100%;
}

#def-pokemon-btns, #random-gen-btns {
    flex: 2;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    position: relative;
}

#def-pokemon-btns>button, #random-gen-btns>button {
    flex: 1;
    padding: 10px;
}

#random-gen-btns>button {
    min-width: 18%;
}

#random-pokemon-btn {
    flex: 1.3;
}

#random-pokemon-btn::after {
    background-color: var(--magenta);
}

#pokedex {
    background-color: var(--magenta);
    margin: 10px 10px 10px 0px;
    border-radius: 15px;
    border: 10px solid var(--btn-grey);

    display: flex;
    flex-direction: column;

    transition: transform 0.25s cubic-bezier(.04,.96,.58,1.18);
    width: calc(55vh + 35px);
}

#pokedex.wobbling {
    transform: translate(-5%);
}

#pokedex.wobbling-left {
    transform: translate(5%);
}

#pokedex-header {
    background-color: var(--btn-grey);
    height: 13%;
    clip-path: polygon(0 100%, 0 0, 100% 0, 100% 50%, 66% 50%, 50% 100%);
    position: relative;

    border-radius: 10px 10px 0px 0px;
    overflow: hidden;

    flex-grow: 1;
}

#pokedex-header::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    height: 100%;
    width: 100%;

    background-color: var(--magenta);
    clip-path: polygon(0 100%, 0 0, 100% 0, 100% 50%, 66% 50%, 50% 100%);
    border-radius: 10px 10px 0px 0px;
}

#pokedex-light-box {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 1;
    transform: translate(0%, calc(-50% - 5px));

    border-radius: 100%;
    height: 70%;
    aspect-ratio: 1;
    background-color: white;
}

#pokedex-light {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    transform: translate(-50%, -50%);

    border-radius: 100%;
    height: 80%;
    aspect-ratio: 1;
    background-color: #196A9E;
}
#pokedex-light::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;

    height: 20%;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 100%;
}

#ryg-box {
    position: absolute;
    top: 0;
    right: -10px;
    z-index: 1;

    transform: translate(100%, 0%);
    height: 25%;

    display: flex;
    gap: 10px;
}

.mini-light {
    height: 100%;
    aspect-ratio: 1;
    border-radius: 100%;
    border: 3px solid var(--btn-grey);

    background-color: white;
}

#red-light {
    background-color: red;
}

#yellow-light {
    background-color: yellow;
}

#green-light {
    background-color: rgb(36, 155, 66);
}

#art-box-wrapper {
    display: flex;
    flex-direction: column;

    margin: 20px 20px 0px 20px;

    height: 50vh;

    border: 10px solid rgb(207, 207, 207);
    border-radius: 10px 10px 10px 60px;
    background-color: var(--vanilla);

    overflow: hidden;
    position: relative;
}

#art-box-wrapper>.help {
    color: var(--vanilla);
    pointer-events: initial;
}

#credits {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#credits>p {
    margin: 0;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-start;
}

.links a {
    text-decoration: none;
    color: var(--vanilla);
    position: relative;
    z-index: 1;
    padding: 5px 5px 0px 15px;
}

.links a::before {
    content: attr(name);
    position: absolute;
    top: 0;
    right: 0;

    height: 100%;
    background-color: var(--magenta);
    z-index: 0;
    text-align: center;
    transform: translate(0%, 100%);
    filter: opacity(0);

    white-space: nowrap;
    padding: 5px 5px 0px 15px;
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.links a:hover::before {
    transform: translate(0%, 0%);
    filter: opacity(1);
}

.links .diff-link::before {
    width: calc(100%  + 2.5ch);
    right: initial;
    left: -2.5ch;
    text-align: left;
}

#coloured-box {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 50%;
    width: 50%;

    transform: translate(-50%, -50%) rotate(287.5deg);
    background-color: red;
    /* border-radius: 100%; */
    filter: opacity(0.2);
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.art-padding {
    flex: 1;
    position: relative;
}

#art-padding-bottom::after, #art-padding-top::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 3%;
    width: 90%;

    border-radius: 100%;
    transform: translate(-50%, 0%);
    background-color: var(--btn-grey);
}

#art-padding-top::after {
    top: initial;
    bottom: 0;
}

#poke-art-box {
    display: flex;
    flex-direction: column-reverse;

    height: 50vh;
    width: 50vh;
    position: relative;
    align-items: center;

    padding: 10px;
    transition: transform 0.25s cubic-bezier(.04,.96,.58,1.18);
}

@keyframes shake {
    0% {transform: translate(0%, 0);}
    50% {transform: translate(5%, 0);}
    100% {transform: translate(0%, 0);}
}

.art-wrapper {
    height: var(--art-ratio);
    max-height: 100%;

    margin-top: var(--poke-gap);
}

.poke-art {
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    
    position: relative;
    z-index: 2;
}

.summon {
    transform-origin: bottom;
    animation: summonBounce 0.3s cubic-bezier(.13,.71,.47,1.27);
}

@keyframes summonBounce {
    0% {filter: opacity(0); transform: translate(0, 100%) scale(1, 0.8);}
    33% {transform: translate(0, -20%) scale(1, 1.2);}
    66% {transform: translate(0, 10%) scale(1.3, 0.8);}
    100% {filter: opacity(1); transform: translate(0, 0%) scale(1, 1);}
}

.art-wrapper:first-child {
    position: relative;
}

#art-wrapper-0::before {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 50%;

    height: 10%;
    width: 30%;
    border-radius: 100%;
    z-index: 1;

    border: 5px solid rgba(0, 0, 0, 0);
    animation: splash 0.5s linear forwards 0.2s;

    transform: translate(-50%, 0%);
}

@keyframes splash {
    0% {border: 0px solid rgba(0, 0, 0, 0.541); width: 30%;}
    25% {border: 5px solid rgba(0, 0, 0, 0.5); width: 40%;}
    100% {border: 2px solid rgba(0, 0, 0, 0); width: 70%;}
}

#art-wrapper-0::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;

    height: 7%;
    width: 40%;
    border-radius: 100%;
    z-index: 0;

    animation: shadow 0.3s cubic-bezier(0,.75,.33,1.26);
    background-color: black;

    transform: translate(-50%, 0%);
    filter: opacity(0.3);
    transition: all 0.3s cubic-bezier(0,.75,.33,1.26);
}

@keyframes shadow {
    0% {transform: translate(-50%, 0%) scale(0.01, 1); filter: opacity(0);}
    100% {transform: translate(-50%, 0%) scale(1, 1); filter: opacity(0.3);}
}

#art-wrapper-0.unsummon-wrapper::after {
    transform: translate(-50%, 100%) scale(1, 1); filter: opacity(0);
}

#art-wrapper-0.wobbling::after {
    transform-origin: bottom right;
    transform: translate(-50%, -20%) rotate(-5deg) scale(1.1, 1) ;
    filter: opacity(0.25);
}

#art-wrapper-0.wobbling-left::after {
    transform-origin: top right;
    transform: translate(-50%, 30%) rotate(5deg) scale(0.9, 1);
    filter: opacity(0.35);
}

/* Select for all poke art that are not the first in stack. */
.art-wrapper:not(:first-child):nth-child(odd)>.unsummon {
    transform-origin: center;
    animation: unsummon 0.3s cubic-bezier(.62,.17,.87,.4) forwards;
}

@keyframes unsummon {
    0% {filter: opacity(1); transform: translate(0%, 0%) rotate(0deg);}
    100% {filter: opacity(0); transform: translate(0%, 300%) rotate(-135deg);}
}

.art-wrapper:not(:first-child):nth-child(even)>.unsummon {
    transform-origin: center;
    animation: unsummonLeft 0.3s cubic-bezier(.62,.17,.87,.4) forwards;
}

@keyframes unsummonLeft {
    0% {filter: opacity(1); transform: translate(0%, 0%) rotate(0deg);}
    100% {filter: opacity(0); transform: translate(-0%, 300%) rotate(135deg);}
}

/* Select for poke art that is the first in stack. */
.art-wrapper:first-child>.unsummon {
    animation: unsummonFirst 0.4s cubic-bezier(.62,.17,.87,.4) forwards;
}

@keyframes unsummonFirst {
    0% {filter: opacity(1); transform: translate(0, 0) scale(100%, 100%);}
    100% {filter: opacity(0); transform: translate(0, 200%) scale(50%, 100%);}
}

#art-wrapper-0 {
    position: relative;
}

.art-wrapper:not(#art-wrapper-0) {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0%, calc(-100% + 12px));

    height: 100%;  
}

#poke-art-box .transitioned .art-wrapper, #pokedex .transitioned{
    transition: all 0.3s cubic-bezier(.12,.81,.28,1);
}

#poke-art-box .wobbling .art-wrapper {
    transform: translate(10%, calc(-100% + 12px)) rotate(5deg);
}

#poke-art-box .wobbling-left .art-wrapper {
    transform: translate(-10%, calc(-100% + 12px)) rotate(-5deg);
}

#poke-art-box .wobbling {
    transform: rotate(5deg);
}

#poke-art-box .wobbling-left {
    transform: rotate(-5deg);
}

#man-art {
    position: absolute;
    bottom: 10px;
    right: 10px;

    height: var(--man-art-height);
    opacity: 0.7;
    transition: all 0.25s cubic-bezier(.04,.96,.58,1.18);
    z-index: 3;
}

#man-art.wobbling {
    transform: rotate(8deg);
}

#man-art.wobbling-left {
    transform: rotate(-8deg);
}

.man-snap {
    transform-origin: bottom;
    animation: man-snap 0.5s cubic-bezier(.08,.66,.15,1.0) 0.1s;
}

@keyframes man-snap {
    0% {transform: skewX(0deg);}
    25% {transform: skewX(-4deg) scaleY(90%); animation-timing-function: linear;}
    40% {transform: skewX(0deg) scaleY(100%); animation-timing-function: cubic-bezier(.08,.66,.15,1.0)}
    75% {transform: skewX(2deg) scaleY(95%);}
    100% {transform: skewX(0deg);}
}

#ref-img {
    display: none;
}

#pokedex-controls {
    flex: 1;
    display: flex;
    gap: 10px;
    max-height: 190px;

    padding: 20px;
    background-color: rgba(245, 245, 245, 0);
    font-family: game-boy;

    perspective: 400px;
    perspective-origin: 80% 70%;

}

#pokedex-controls>.help {
    font-family: roboto;
    font-size: 16px;
    color: var(--vanilla);
}

#pokedex-details {
    flex-grow: 1;
    background-color: #7ebe88;
    border: 5px solid var(--btn-grey);
    border-radius: 10px;
    padding: 5px 10px 3px 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

#other-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#poke-name-wrapper {
    display: flex;
}

#poke-name {
    font-size: 24px;
    white-space: collapse;
}

#poke-number {
    font-size: 20px;
}

#type-box {
    display: flex;
    gap: 20px;
    flex: 1;
}

#poke-height-weight {
    display: flex;
    font-size: 20px;
    gap: 20px;
}

#dpad-box {
    /* height: 100%; */
    width: 150px;
    height: 150px;

    position: relative;
    transition: all 0.1s ease-in-out;
}

#dpad-shadow {
    position: absolute;
    top: 0;
    left: 0;

    height: 100%;
    width: 100%;
    background-color: black;
    clip-path: polygon(40% 0, 60% 0, 65% 5%, 65% 35%, 94% 35%, 100% 40%, 100% 60%, 95% 65%, 65% 65%, 65% 95%, 60% 100%, 40% 100%, 35% 95%, 35% 65%, 5% 65%, 0 60%, 0 40%, 5% 35%, 35% 35%, 35% 5%);
    transform: translate(0px, 5px);
}


#dpad-box.clicked-up {
    animation: clicked-up 0.2s ease-in-out;
}

@keyframes clicked-up {
    0%{transform: rotateX(15deg)}
    100% {}
}

#dpad-box.clicked-right {
    animation: clicked-right 0.2s ease-in-out;
}

@keyframes clicked-right {
    0%{transform: rotateY(15deg)}
    100% {}
}

#dpad-box.clicked-down {
    animation: clicked-down 0.2s ease-in-out;
}

@keyframes clicked-down {
    0%{transform: rotateX(-15deg)}
    100% {}
}


#dpad-box.clicked-left {
    animation: clicked-left 0.2s ease-in-out;
}

@keyframes clicked-left {
    0%{transform: rotateY(-15deg)}
    100% {}
}

#dpad-box.clicked-up #dpad-shadow {
    animation: clicked-up-shadow 0.2s ease-in-out;
}

@keyframes clicked-up-shadow {
    0%{transform: translate(0px, 7px)}
    100% {transform: translate(0px, 5px)}
}

#dpad-box.clicked-right #dpad-shadow {
    animation: clicked-right-shadow 0.2s ease-in-out;
}

@keyframes clicked-right-shadow {
    0%{transform: translate(-2px, 5px)}
    100% {transform: translate(0px, 5px)}
}


#dpad-box.clicked-down #dpad-shadow{
    animation: clicked-down-shadow 0.2s ease-in-out;
}

@keyframes clicked-down-shadow {
    0%{transform: translate(0px, 3px)}
    100% {transform: translate(0px, 5px)}
}


#dpad-box.clicked-left #dpad-shadow{
    animation: clicked-left-shadow 0.2s ease-in-out;
}

@keyframes clicked-left-shadow {
    0%{transform: translate(2px, 5px)}
    100% {transform: translate(0px, 5px)}
}

#dpad {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    background-color: var(--btn-grey);
    clip-path: polygon(40% 0, 60% 0, 65% 5%, 65% 35%, 94% 35%, 100% 40%, 100% 60%, 95% 65%, 65% 65%, 65% 95%, 60% 100%, 40% 100%, 35% 95%, 35% 65%, 5% 65%, 0 60%, 0 40%, 5% 35%, 35% 35%, 35% 5%);
    cursor: pointer;
}

.dpad-btn {
    position: absolute;
    background-color: rgba(255, 255, 255, 0);
    height: 30%;
    width: 30%;

    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.dpad-btn:hover {
    filter: brightness(20);
}

.dpad-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    height: 30%;
    width: 30%;

    transform: translate(-50%, -50%);
    background-color: var(--deep-grey);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

#dpad-up {
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
}

#dpad-right {
    top: 50%;
    right: 0;
    transform: translate(0, -50%) rotate(90deg);
}

#dpad-down {
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 0) rotate(180deg);
}

#dpad-left {
    top: 50%;
    left: 0;
    transform: translate(0, -50%) rotate(270deg);
}

.help {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;

    background-color: rgba(27, 27, 27, 0.822);
    /* backdrop-filter: blur(0px); */
    z-index: 3;
    box-sizing: border-box;

    padding: 0px 30px;
    border-radius: 5px;

    transition: all 0.4s cubic-bezier(.15,.7,.48,1.20);
    pointer-events: none;
    filter: opacity(0);
    transform: translate(0%, 100%);
    display: flex;
    align-items: center;
}

.help.shown {
    filter: opacity(1);
    /* backdrop-filter: blur(2px); */
    transform: translate(0%, 0%);
}

.help>img {
    filter: opacity(0.5);
}

.triforce {
    height: 30px;
    position: absolute;
}

.triforce-1 {
    top: 10px;
    left: 10px;
}

.triforce-2 {
    top: 10px;
    right: 10px;
    transform: rotate(90deg);
}

.triforce-3 {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}

.triforce-4 {
    bottom: 10px;
    left: 10px;
    transform: rotate(270deg);
}

#back-btn {
    position: absolute;
    top: 10px;
    right: 15px;

    padding: 10px;
    display: none;
}

#back-btn::after {
    background-color: var(--magenta);
}

@media only screen and (max-width: 800px) {

    /* #main {
        flex-direction: column;
    } */

    #content {
        overflow: hidden;
    }

    #options {
        box-sizing: border-box;
        width: 100vw;
        height: 100%;

        position: absolute;
        z-index: 4;
        background-color: var(--btn-grey);

        transition: all 0.3s cubic-bezier(0.075, 0.82, 0.165, 1);
        transform: translate(0%, 100%);
    }

    #options.shown {
        transform: translate(0%, 0%);
    }

    #help-btn {
        font-size: 18px;
        padding: 0px 10px;
    }

    #wobble-btn {
        font-size: 14px;
        padding: 0px 10px;
    }

    #options-btn {
        padding: 0px 10px;
        display: initial;
    }

    #header {
        font-size: 15px;   
    }

    #pokedex-header {
        max-height: 15vh;
    }

    #pokedex {
        box-sizing: border-box;
        width: 100vw;
        margin: 0px;
    }

    #pokedex-details {
        height: 17vh;
    }

    #art-box-wrapper {
        box-sizing: border-box;
        margin: 20px 10px 10px 10px;
        height: initial;
        aspect-ratio: 1;
    }

    #poke-art-box {
        box-sizing: border-box;
        height: 100%;
        width: initial;
        aspect-ratio: 1;
    }


    #dpad-box {
        width: 100px;
        height: 100px;
        align-self: center;
    }

    #poke-name {
        font-size: 14px;
    }

    #poke-number {
        font-size: 14px;
    }
    
    #type-box {
        display: flex;
        gap: 20px;
        flex: 1;
        font-size: 14px;
    }
    
    #poke-height-weight {
        display: flex;
        font-size: 14px;
        gap: 20px;
    }

    #pokedex-controls {
        /* display: none; */
        flex: 1;
        padding: 10px;
        margin-bottom: 10px;
        max-height: initial;
        align-items: center;
    }

    .corner {
        display: none;
    }

    .zelda-btn:hover::before {
        background-color: initial;
        height: initial;
        width: initial;
        filter: initial;
    }

    .dpad-btn:hover {
        filter: initial;
    }

    #options>.triforce {
        display: none;
    }

    #back-btn {
        display: initial;
    }

    #credits {
        font-size: 12px;
    }
    
    .links {
        display: grid;
        grid-template-columns: auto auto;
    }
}

@media only screen and (max-width: 360px) {
    #poke-name {
        font-size: 12px;
    }

    #poke-number {
        font-size: 10px;
    }
    
    #type-box {
        gap: 5px;
        font-size: 10px;
    }

    #poke-height-weight {
        font-size: 10px;
        gap: 5px;
    }

    #pokedex-details {
        height: 14vh;
    }
}
