@font-face {
    font-family: myFont1;
    src: url("Pokemon\ Solid.ttf");
}

@font-face {
    font-family: myFont2;
    src: url("mai10.ttf");
}

@font-face {
    font-family: myFont3;
    src: url("pxl.ttf");
}


html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle, rgba(2,0,36,1) 0%, rgba(233,198,65,1) 0%, rgba(255,19,250,1) 0%, rgba(108,108,163,1) 0%, rgb(35, 28, 72) 62%, rgb(5, 3, 12) 100%);
}

.returnbutton {
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    right: 30px;
    top: 30px;
    width: 80px;
    height: 60px;
    border-radius: 38px;
    border: 3px solid rgb(240, 240, 240, 0.3);
    color: rgb(240, 240, 240, 0.3);
    font-size: 30px;
    font-family: myFont2;
    padding-left: 5px;
    padding-top: 20px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.returnbutton:hover {
    color: rgba(240, 240, 240, 0.692);
    box-shadow: 0 0 2px 2px rgb(236, 236, 236);
}

.wholeoverlay {
    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100vw;
    height: 100vh;
    background-color: rgb(35, 23, 61, 0.75);
    z-index: 99999999999999999;
    color: white;
    font-family: myFont2;
    font-size: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow:hover {
    cursor: pointer;
    color: rgb(213, 166, 161);
}

.closeOverlay {
    margin-bottom: 715px;
}

.closeOverlay:hover {
    cursor: pointer;
    color: rgb(213, 166, 161);
}

.loadingoverlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    font-family: myFont2;
    color: rgb(255, 255, 255, 0.85);
    background-color: rgb(35, 23, 61);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 8;
}

.loadingscreenpokeball {
    width: 450px;
    animation: rotateScale 1.35s linear infinite; 
}

.header {
    display: flex;
    justify-content: space-between;
    height: 180px;
    background-color: rgb(14, 8, 36);
    padding: 25px;
    box-shadow: 0 0 25px 25px rgb(14, 8, 36);
    background-image: url(https://bartosz-kuczek.developerakademie.net/pokedexbk/img/headertest5.png);
}

.nodiv {
    width: 380px;
}

.singleCard {
    text-align: center;
    margin: 30px;
    padding: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 390px;
    height: 650px;
    border: 3px solid rgba(240, 240, 240, 0.586);
    border-radius: 8px;
    backdrop-filter: blur(2px);
    background: radial-gradient(circle, rgba(0,0,0,0.8576680672268908) 0%, rgba(14,11,25,0.7148109243697479) 27%, rgba(23,17,48,0.6811974789915967) 60%, rgba(35,25,74,0.5327380952380952) 100%);
}

.singleCardPokemons {
    width: 200px;
    image-rendering: pixelated;
}

.singleCardText {
    font-family: myFont2;
    font-size: 10.7px;
    word-wrap: break-word;
    color: rgb(233, 233, 233);
}

input {
    margin-top: 140px;
    height: 20px;
    width: 220px;
    background-color: rgb(224, 227, 235);
    border-radius: 10px;
    font-family: myFont2;
    font-size: 12px;
    padding-left: 5px;
}

.restofbody {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.listdisplay {
    padding-top: 50px;
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 200px;
    padding-right: 200px;
    gap: 50px;
}

.pokemon-id-name {
    font-family: myFont2;
    font-size: 10px;
    color: rgb(233, 233, 233);
    display: flex;
    justify-content: center;
    align-items: center;
}

.cardimg {
    width: 110px;
    image-rendering: pixelated;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    padding-top: 5px;
    width: 224px;
    height: 300px;
    border: 3px solid rgb(240, 240, 240, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle, rgba(0,0,0,0.25262605042016806) 0%, rgba(19,19,29,0.02853641456582634) 52%, rgba(108,108,163,0) 100%);
    transition: all 50ms ease-in-out 0ms;
}

.card:hover {
    cursor: pointer;
    box-shadow: 0 0 3px 3px rgb(236, 236, 236);
}

.loadingbutton {
    padding: 35px;
    width: 105px;
    transition: transform 0.5s ease-in-out;
}

.loadingbutton:hover {
    cursor: pointer;
    transform: rotate(360deg);
}

.grass {
    color: rgb(131, 218, 134);
}

.fire {
    color: rgb(237, 147, 131);
}

.singleCard:has(.fire) {
    animation: fireanimation 2s infinite;
}

.card:hover:has(.fire) {
    box-shadow: 0 0 3px 3px rgb(255, 114, 114);
}

.water {
    color: rgb(156, 196, 251);
}

.bug {
    color: rgb(210, 190, 116);
}

.electric {
    color: rgb(229, 208, 50);
}

.card:hover:has(.electric) {
    box-shadow: 0 0 3px 3px rgb(255, 227, 114);
}

.singleCard:has(.electric) {
    animation: electricanimation 2s infinite;
}

.rock {
    color: rgb(189, 188, 188);
}

.ground {
    color: rgb(193, 133, 108);
}

.fairy {
    color: rgb(254, 170, 202);
}

.psychic {
    background: linear-gradient(to right, #e46efc, #e6de3a, #82fa8a);
    -webkit-background-clip: text;
        background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card:hover:has(.psychic) {
    animation: rainbowShadow 3s infinite ease-in-out;
}

.singleCard:has(.psychic) {
    animation: rainbowsinglecard 2s infinite;
}

.poison {
    color: rgb(249, 80, 80)
}

.ice {
    color: rgb(160, 211, 250);
    background: linear-gradient(to right, #85def9, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fighting {
    color: rgb(241, 227, 224);
}

.d-none {
    display: none;
}

@media (max-width: 1765px) {
    .listdisplay {
        padding-left: 35px;
        padding-right: 35px;
        gap: 20px;
    }
    .loadingscreenpokeball {
        width: 330px;
    }
    .returnbutton {
        right: 15px;
        width: 40px;
        height: 30px;
        border-radius: 20px;
     }
}

@media (max-width: 1640px) {
    .returnbutton {
        right: 15px;
        width: 40px;
        height: 30px;
        border-radius: 20px;
    }
    .card {
        width: 210px;
        height: 320px;
    }
}

@media (max-width: 1545px) {
    .listdisplay {
        padding-left: 75px;
        padding-right: 75px;
    }
    .returnbutton {
        top: 10px;
    }
}

@media (max-width: 1035px) {
    .header {
        flex-direction: column;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 225px;
    }
    .logo {
        width: 800px;
    }
    input {
        margin-top: 35px;
        padding-left: 5px;
    }
}

@media (max-width: 860px) {
    .logo {
        width: 615px;
    }
}

@media (max-width: 635px) {
    .logo {
        content: url('img/pokedexsmaller.png');
        width: 445px;
    }
    .listdisplay {
        padding-left: 20px;
        padding-right: 20px;
        gap: 10px;
    }
    .singleCard {
        width: 300px;
        height: 600px;
    }
    .singleCardPokemons {
        width: 150px;
    }
    .singleCardText {
        font-size: 9.8px;
    }
}

@media (max-width: 595px) {
    .logo {
        width: 420px;
    }
    .card {
        width: 160px;
        height: 250px;
    }
    .cardimg {
        width: 80px;
    }
    .singleCard {
        width: 235px;
        height: 470px;
        padding: 35px;
    }
    .singleCardPokemons {
        width: 130px;
    }
    .singleCardText {
        font-size: 9px;
    }
    .overlay {
        font-size: 18px;
    }
    .closeOverlay {
        margin-bottom: 535px;
    }
    .listdisplay {
        padding-left: 60px;
        padding-right: 60px;
    }
}

@media (max-width: 495px) {
    .returnbutton {
        width: 35px;
        height: 25px;
        right: 8px;
    }
    .listdisplay {
        padding-left: 51px;
        padding-right: 51px;
    }
    .card {
        width: 155px;
        height: 245px;
    }
}

@media (max-width: 460px) {
    .singleCardText {
        font-size: 8.5px;
    }
    .singleCard {
        width: 180px;
        height: 450px;
        padding: 35px;
    }
    .singleCardPokemons {
        width: 100px;
    }
    .pokemon-id-name{
        font-size: 6.8px;
    }
    .logo {
        content: url('img/pokedexsmaller.png');
        width: 370px;
    }
    .listdisplay {
        padding-left: 25px;
        padding-right: 25px;
    }
    .card {
        width: 130px;
    }
    .returnbutton {
        font-size: 25px;
        padding-left: 4px;
        height: 22px;
        border-radius: 18px;
        right: 10px;
    }
}

@media (max-width: 400px) {
    input {
        height: 18px;
        width: 180px;
        font-size: 10px;
        border-radius: 8px;
    }
    .card {
        width: 110px;
        height: 220px;
    }
    .cardimg {
        width: 60px;
    }
    .singleCardPokemons {
        width: 73px;
    }
    .singleCardText {
        font-size: 6.9px;
    }
    .singleCard {
        width: 175px;
        height: 340px;
        padding: 20px;
    }
    .overlay {
        font-size: 13px;
    }
    .closeOverlay {
        margin-bottom: 380px;
    }
    .logo {
        width: 300px;
    }
    .loadingscreenpokeball {
        width: 280px;
    }
}

@media (max-width: 355px) {
    .card {
        width: 120px;
        height: 220px;
    }
    .cardimg {
        width: 60px;
    }
    .listdisplay {
        gap: 5px;
        padding-left: 0%;
        padding-right: 0%;
        font-size: 1px;
    }
    .pokemon-id-name{
        font-size: 7.4px;
    }
    .singleCard {
        width: 150px;
        height: 360px;
        padding: 16px;
    }
    .singleCardPokemons {
        width: 65px;
    }
    .returnbutton {
        display: none;
    }
}
