* {
    margin: 0;
    padding: 0;
    --darkblue: #79caf9;
    --lightblue: #bbe4fd;
    --yellow: #fdcb00;
    --green: #7cad71;
    --lightgreen: #b4e667;
    --white: #effbf9;
    --offwhite: #e5e7f6;
}

body {
    font-family: 'Lato', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-image: linear-gradient(to bottom right, #8b9699, #8693a7);
    color: black;
}

#background {
    background-image: url('img/background.png');
    background-position: center;
    background-size: contain cover;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.9;
}

.container {
    position: relative;
    display: grid;
    grid-template-columns: auto auto auto;
    height: 100vh;
    z-index: 900;
}

/* * * CARD STYLEs * * */

.img-drop-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: flex-start;
    top: 15%;
    height: fit-content;
}

.img-drop {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20vw;
    height: 25vw;
    max-width: 380px;
    max-height: 235px;
    margin-bottom: 20px;
    outline: 5px dotted var(--white);
    border-radius: 15px;
    box-shadow: 0 0 50px var(--offwhite) inset;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: white;
    text-shadow: 1px 0 1px #177edf, 0 1px 1px #177edf;
    transition: 0.3s;
}

.img-drop-small {
    display: flex;
    align-items: center;
    text-align: center;
    outline: 5px dotted var(--white);
    border-radius: 40px 12px 55px 12px;
    box-shadow: 0 0 50px var(--offwhite) inset;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    width: 10vw;
    height: 10vw;
    max-width: 160px;
    max-height: 160px;
    margin-bottom: 10px;
    color: white;
    text-shadow: 1px 0 1px #177edf, 0 1px 1px #177edf;
    transition: 0.3s;
}

.active {
    outline: 8px dotted var(--yellow);
    color: var(--yellow);
    box-shadow: 0 0 50px var(--darkblue) inset;
    text-shadow: 1px 0 1px #ad900f, 0 1px 1px #ad900f;
}

.img-container {
    position: relative;
    width: 32vw;
    height: 44.4vw;
    max-width: 511.5px;
    max-height: 711.15px;
    align-self: center;
    justify-self: center;
}

#card {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4.5%;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: 3px 3px 15px black;
}

.card-container {
    width: 93%;
    height: 94%;
    margin: 3%;
    display: none;
}

/* * * CARD TOP * * */

.card-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 50.5%;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 14%;
    margin-left: 16.5%;
    margin-right: 9.8%;
}

.card-name {
    position: relative;
    font-size: min(33.6px, 2.1vw);
    transform: scaleX(0.9) translateX(-7%);
}

.hp-container {
    position: relative;
    top: 0.1vw;
}

.card-hp {
    position: relative;
    font-size: min(4.8px, 0.3vw);
    font-size: 0.6vw;
    font-family: 'Lato', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    display: inline-block;
    left: 0.35vw;
}

.hp {
    font-size: min(28.8px, 1.8vw);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: scaleX(0.9) translateX(5%);
    font-weight: bold;
    display: inline-block;
}

/* picture */
.card-picture {
    position: relative;
    align-self: center;
    height: 80%;
    width: 91%;
    padding-left: 5px;
}

.small-img {
    display: none;
    position: absolute;
    top: -4.1%;
    left: -3.1%;
    width: 13%;
    height: 20.5%;
    border-radius: 22% 8% 40% 8%;
    overflow: hidden;
}

.card-picture > p {
    position: absolute;
    top: 0.2%;
    left: 11.5%;
    font-style: italic;
    font-size: min(12px, 0.75vw);
    color: #333;
    transform: scaleX(0.95);
}

.card-img {
    position: absolute;
    top: 28.7%; 
    right: 49.8%;
    transform: translate(50%,-50%);
    width: 84%;
    height: 38%;
}

.card-img > img,
.small-img > img {
    width: 100%;
    height: 100%;
}

.stats-text {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 6.5%;
}

.stats-text > p {
    font-size: min(10.4px, 0.65vw);
    color: #333;
    padding: 1%;
    padding-bottom: 0.5%;
    font-family: 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: bold;
}

/* * * CARD BOTTOM * * */

.card-bottom {
    display: flex;
    height: 49.5%;
    flex-direction: column;
    justify-content: space-between;
}

/* attacks & ability */

.ability-container img {
    position: relative;
    height: min(32px, 2vw);
    width: min(136px, 8.5vw);
    right: 1%;
}

.ability-header {
    display: flex;
    flex-direction: row;
}

.ability-header > p {
    position: relative;
    color: #9b020a;
    font-size: min(27.2px, 1.7vw);
    font-weight: bold;
    font-family: 'Lato', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    transform: scaleX(0.85) translateX(-8%);
}

.ability-container > p {
    position: relative;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: min(19.2px, 1.2vw);
    line-height: min(19.2px, 1.2vw);
    padding: 0 0.25vw 0 0.25vw;
    top: -0.15vw;
}

.attack-container {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin: 0 3% 0 3%;
    height: 75%;
}

.attack {
    height: fit-content;
}

.attack-main {
    position: relative;
    display: flex;
    align-items: center;
}

.attack-main p {
    font-size: min(27.2px, 1.7vw);
    font-weight: bold;
    font-family: 'Lato', 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    transform: scaleX(0.85) translateX(-5%);
}

.attack-cost {
    position: relative;
    padding-left: 0.4vw;
}

.attack-cost img {
    width: min(28.8px, 1.8vw);
    height: min(28.8px, 1.8vw);
}

.attack-name {
    position: absolute;
    left: 29.6%;
}

p.attack-damage {
    font-size: min(27.2px, 1.7vw);
    font-family: 'Plus Jakarta Sans', sans-serif;
    transform: scaleX(0.9);
    font-weight: bold;
    position: absolute;
    right: -0.2vw;
}

.attack-text {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: min(19.2px, 1.2vw);
    line-height: min(19.2px, 1.2vw);
    padding: 0.2vw 0.25vw 0 0.25vw;
}

.attack-cost {
    display: flex;
    flex-direction: row;
}


/* footer */
.card-footer {
    height: 25%;
}

.card-footer p {
    color: #111;
}

.footer-bar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 38%;
}

.footer-bar p {
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #111;
    padding-top: 0%;
    font-size: min(17.6px, 1.1vw);
    padding-left: 10%;
}

#retreat-img img,
#weakness-img img,
#resistance-img img {
    position: relative;
    top: -1px;
    height: min(18.4px,1.15vw); 
    width: min(18.4px,1.15vw);
}

.weakness {
    position: relative;
    display: flex;
    flex-direction: row;
    left: 14%;
}

#weakness-img {
    display: flex;
    align-items: center;
}

.resistance {
    position: absolute;
    display: flex;
    flex-direction: row;
    left: 41.5%;
}

#resistance-img {
    display: flex;
    align-items: center;
}

#retreat-img {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-content: center;
    left: 74%;
}

/* * * INPUT STYLES * * */

#logo {
    position: relative;
    width: 300px;
    filter: invert(1);
    left: 50%;
    transform: translate(-50%, 0);
    margin: 10px auto 15px auto;
}

.input-container::-webkit-scrollbar {
    background: rgba(255, 255, 255, 0.527);
    width: 4px;
    opacity: 0.5;
}

.input-container::-webkit-scrollbar-thumb {
    background: #177edf69;
    opacity: 0.5;
}

.input-container {
    position: relative;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    background-image: linear-gradient(to right, #1882c098, #51baf77a, #79caf98c);
    border-left: 4px solid rgba(167, 201, 233, 0.527);
    font-size: 16pt;
    height: 100%;
    width: 70%;
    min-width: 382px;
    overflow: scroll;
    overflow-x: hidden;
    justify-self: center;
    color: black;
    transition: 0.3s;
}

.input-container label,
.input-container p,
.input-container h2 {
    color: white;
    text-shadow: 1px 0 1px #1365b3, 0 1px 1px #1365b3;
}

.input-container h2 {
    text-shadow: 1px 0 1px #5999d4, 0 1px 1px #5999d4;
}

.input-container h2 {
    text-align: center;
}

.input-container li:hover {
    cursor: pointer;
}

.input-container ul {
    position: relative;
    z-index: 900;
}

/* * * FORM * * */

.arrow {
    position: relative;
    border: solid white;
    border-width: 0 3px 3px 0;
    display: block;
    padding: 3px;
    height: 5px;
    width: 5px;
}

.arrowbox {
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, var(--darkblue),var(--lightblue));
    border-top: 3px solid var(--darkblue);
    border-bottom: 3px solid var(--offwhite);
    outline: 1px solid var(--white);
    border-radius: 10px 10px 10px 10px;
    height: 30px;
    width: 30px;
    border-radius: 5px;
}

.arrowbox:hover {
    cursor: pointer;
}

.right {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
    top: 8px;
    right: 3px;
}

.left {
  transform: rotate(135deg);
  -webkit-transform: rotate(135deg);
    top: 8px;
    left: 3px;
}

.up {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
    top: 10px;
}

.down {
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    top: 4px;
}

input,
select {
    font-size: 12pt;
    height: 25px;
}

label,
textarea,
input {
    margin: 4px 0;
    padding-left: 5px;
}

textarea {
    padding-top: 2px;
}

input,
textarea,
option,
select {
    background-color: white;
    box-shadow: 0 0 15px var(--darkblue) inset;
    border: 1px solid white;
    border-radius: 4px;
}

input:focus,
input:hover,
textarea:focus,
textarea:hover,
option:hover,
select:hover {
    outline: 1px solid var(--yellow);
    border: 1px solid var(--yellow);
    box-shadow: none;
    background-color: white;
}

textarea,
option,
input,
select {
    font-family: monospace;
}

label.focused {
    color: var(--yellow);
    text-shadow: 1px 0 1px #ad900f, 0 1px 1px #ad900f;
}

p.focused {
    color: var(--yellow);
    text-shadow: 1px 0 1px #ad900f, 0 1px 1px #ad900f;
}

/* * * NAME INPUTS * * */

#name-container {
    margin: 15px auto;
    width: fit-content;
}

#name {
    width: 45%;
    margin-right: 15px;
}

#evolves-from {
    width: 180px;
}

.type-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

#type-selector {
    margin: auto;
    display: flex;
    flex-direction: row;
    width: 378px;
    height: 45px;
}

#type-list {
    display: flex;
    list-style-type: none;
}

.select-type {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    outline: 2px solid var(--offwhite);
    border-radius: 6px;
    background-color: var(--offwhite);
    box-shadow: 0 0 15px var(--darkblue) inset;
    transition: 0.3s;
    margin: 0 3px 0 3px;
}

.select-type.highlight {
    outline: 2px solid white;
    box-shadow: none;
    background-color: transparent;
}

.select-type:hover {
    outline: 2px solid var(--yellow);
    box-shadow: none;
    background-color: white;
}

.select-type > img {
    width: 30px;
    height: 30px;
}

.current-type {
    display: block;
    position: relative;
    width: 36px;
    height: 36px;
    border: 1px solid var(--offwhite);
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 0 15px var(--darkblue) inset;
    outline: 1px solid white;
    margin: 5px 0 5px 0;
}

.current-type.focus {
    outline: 1px solid white;
    box-shadow: none;
    background-color: transparent;
}

.dropdown-container {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.type-selector p {
    margin-right: 8px;
}

.type-selector ul {
    display: flex;
    list-style-type: none;
    border-radius: 6px;
    outline: 2px solid var(--yellow);
    background-color: white;
}

.type-selector li {
    position: relative;
    width: 36px;
    height: 36px;
}

.type-selector li:hover {
    outline: 2px solid var(--yellow);
    box-shadow: none;
    background-color: white;
    border-radius: 6px;
}

.current-type img {
    width: 30px;
    height: 30px;
    padding: 3px;
    position: absolute;
}

/* * * STATS INPUT * * */

.stage-input,
.stats-input,
.attack-input,
.ability-input {
    padding: 0;
    margin: 0 auto;
    max-width: 390px;
}

.input-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    height: 50px;
    background: linear-gradient(to bottom, var(--lightblue), var(--darkblue), var(--lightblue));
    outline: 1px solid var(--white);
    margin: 5px;
}

.input-header:hover {
    cursor: pointer;
}

.closed {
    border-top: 3px solid var(--offwhite);
    border-bottom: 3px solid var(--offwhite);
    border-radius: 10px 10px 10px 10px;
}

.opened {
    border-top: 3px solid var(--offwhite);
    border-bottom: 1px solid var(--offwhite);
    border-radius: 10px 10px 2px 2px;
    background: linear-gradient(to bottom, var(--lightblue),  var(--darkblue), transparent);
}

.border-bottom {
    border-bottom: 3px solid var(--offwhite);
    border-radius: 10px;
}

.input-body {
    margin: 5px;
    margin-bottom: 10px;
}

#stage-body {
    height: 0;
    transition: height 0.3s;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: flex-start;
    padding-left: 20px;
}

#stats-body {
    height: 0;
    transition: height 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
}

#stats-body > div {
    display: flex;
    flex-direction: row;
    align-self: flex-start;
}

#stats-body div:nth-child(1),
#stats-body div:nth-child(2) {
    padding-left: 5%;
}

#stats-body input {
    margin-left: 6px;
    margin-right: 2px;
}

.input-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    gap: 5%;
    padding-left: 8%;
}

#pokedex-number {
    width: 55px;
}

.height-div,
.weight-div {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.height-div > input {
    width: 35px;
}

.weight-div > input {
    width: 70px;
}

#category {
    width: 130px;
}

/* * * ATTACKS INPUT * * */

.attack-body {
    height: 0;
    transition: height 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#attack1,
#attack2 {
    overflow: hidden;
}

#attack1-name,
#attack2-name {
    width: 190px;
    margin: 10px;
}

.damage-container {
    position: relative;
    margin-top: 4px;
}

#attack-damage-1,
#attack-damage-2 {
    width: 60px;
}

.attack-cost-container {
    display: flex;
    flex-direction: row;
    margin: 10px;
    padding-top: 2px;
    gap: 5px;
}


#attack-cost-list-1-1,
#attack-cost-list-1-2,
#attack-cost-list-1-3,
#attack-cost-list-1-4,
#attack-cost-list-2-1,
#attack-cost-list-2-2,
#attack-cost-list-2-3,
#attack-cost-list-2-4,
#resistance-list,
#weakness-list {
    display: none;
}

/* * * ABILITY INPUT * * */

#ability-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 0;
    overflow: hidden;
    transition: height 0.3s;
}

/*** FOOTER FORM ***/

.footer-input {
    margin: 15px 25px;
    margin-bottom: 30%;
    max-width: 390px;
    display: grid;
    grid-template-columns: auto auto;
}

.footer-flex {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-around;
}

.weakness-selector {
    margin-bottom: 10px;
}

#weakness-dropdown {
    margin-left: 10px;
}

.resistance-selector {
    margin-bottom: 15px;
}

#resistance-dropdown {
    margin-left: 2px;
}

#reload:hover {
    cursor: pointer;
    background: transparent;
    border-top: 10px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    outline: 5px dotted var(--yellow);
}

#reload:hover > p {
    color: var(--yellow);
    text-shadow: 1px 0 1px #ad900f, 0 1px 1px #ad900f;
}

#reload {
    align-self: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 70px;
    background: linear-gradient(to bottom, var(--darkblue),var(--lightblue));
    border-top: 10px solid var(--darkblue);
    border-bottom: 7px solid var(--offwhite);
    border-left: 1px solid var(--offwhite);
    border-right: 1px solid var(--offwhite);
    outline: 1px solid var(--white);
    border-radius: 10px 10px 10px 10px;
    font-weight: bold;
    transition: 0.3s;
}

#reload > p {
    font-size: 30pt;
    text-shadow: 1px 0 1px #6187d8, 0 1px 1px #6187d8;
    color: var(--offwhite);
}

#pokeball {
    position: absolute;
    right: 5%;
    bottom: 5%;
    filter: invert(1);
    height: 5vw;
    transition: 1s;
}

#pokeball:hover {
    transform: rotateX(360deg) rotateZ(90deg) rotateY(15deg);
}

/* * * TYPES * * */

.card-dark-basic {
    background-image: url('img/Basic/SS_Basic_Dark.png')
}
.card-dark-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Dark.png')
}
.card-dark-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Dark.png')
}

.card-electric-basic {
    background-image: url('img/Basic/SS_Basic_Lightning.png')
}
.card-electric-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Lightning.png')
}
.card-electric-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Lightning.png')
}

.card-fighting-basic {
    background-image: url('img/Basic/SS_Basic_Fighting.png')
}
.card-fighting-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Fighting.png')
}
.card-fighting-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Fighting.png')
}

.card-fire-basic {
    background-image: url('img/Basic/SS_Basic_Fire.png');
}
.card-fire-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Fire.png')
}
.card-fire-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Fire.png')
}

.card-grass-basic {
    background-image: url('img/Basic/SS_Basic_Grass.png')
}
.card-grass-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Grass.png')
}
.card-grass-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Grass.png')
}

.card-metal-basic {
    background-image: url('img/Basic/SS_Basic_Metal.png')
}
.card-metal-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Metal.png')
}
.card-metal-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Metal.png')
}

.card-normal-basic {
    background-image: url('img/Basic/SS_Basic_Colorless.png')
}
.card-normal-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Colorless.png')
}
.card-normal-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Colorless.png')
}

.card-psychic-basic {
    background-image: url('img/Basic/SS_Basic_Psychic.png')
}
.card-psychic-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Psychic.png')
}
.card-psychic-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Psychic.png')
}

.card-water-basic {
    background-image: url('img/Basic/SS_Basic_Water.png')
}
.card-water-stage-1 {
    background-image: url('img/Stage 1/SS_Stage1_Water.png')
}
.card-water-stage-2 {
    background-image: url('img/Stage 2/SS_Stage2_Water.png')
}
