@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

html {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

body {
    background: #F6F8FC;
    padding: 0 10vw;
    font-family: 'Outfit', sans-serif;
    display: flex;
    justify-content: center;
    background-image: url(src/blue-gradient.jpg);
    background-repeat: no-repeat;
    background-size: 150vw 100vh;
    background-attachment: fixed;
    width: 100%
}

h1, h2, h3, h4 {
    color: #011030;
    margin: 5px;
    text-align: center;
}

h4 {
    margin-top: 15px;
}

span {
    color: #000c1a;
}

.font-size-12 {
    font-size: 12px;
}

.font-size-18 {
    font-size: 18px !important;
}

.column {
    display: flex;
    flex-direction: column;
}

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

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

.width-100 {
    width: 100%;
}

.container {
    border-radius: 20px;
    box-shadow: #bababa32 0 10px 10px;
    padding: 15px;
    margin: 20px;
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.548);
    border: 1px solid rgba(255, 255, 255, 0.434);
}

input {
    border: none;
    outline: none;
    font-size: 18px;
    background-color: #ffffff00;
    flex: 1;
}

.margin-5 {
    margin: 5px;
}

.hide {
    display: none !important;
}

.bold {
    font-weight: bold;
}

.type-container {
    border-radius: 5px;
    padding: 3px 7px;
    color: black;
    margin: 5px;
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.8;
    text-transform:uppercase;
}

.loading-ball {
    height: 60px;
    filter: brightness(80%);
    animation: rotatePokeBall ease-in-out 3s infinite;
}

@keyframes rotatePokeBall {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*List Container*/
#pokedex-list {
    margin-right: 350px;
    width: 100%;
}

/*Search*/
#search-bar-container {
    margin: 30px 10px;
}

#start-search-button {
    background-color: #FF5350;
    height: 40px;
    width: 40px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: #ff535088 5px 5px 15px;
    color: white;
    font-size: 18px;
}

#start-search-button:hover {
    opacity: 0.8;
    box-shadow: #ff53509c 3px 3px 13px;
}

.search-ball {
    height: 25px;
    width: 25px;
    justify-content: center;
}

.search-ball:hover {
    animation: rotatePokeBall ease-in-out 3s infinite;
}

/*Render search results*/
#pokedex-list-render-container {
    display: flex;
    flex-flow: wrap row;
    justify-content: center;
}

.pokemon-render-result-container {
    flex: 0.5;
    min-width: 20%;
    margin: 10px;
    margin-top: 60px;
    padding-top: 40px;
    position: relative;
    cursor: pointer;
    transition-duration: 100ms;
}

.pokemon-render-result-container:hover {
    border: 2px solid #ffffff85;
}

.pokemon-render-result-container:hover .search-pokemon-image {
    transform: scale(1.15);
}

.search-pokemon-image {
    position: absolute;
    top: -55px;
    image-rendering: pixelated;
    transition-duration: 100ms;
}

#loading-div {
    height: 100%;
    position: absolute;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    background-color: white; 
} 

.hideLoading {
    animation: hideLoading ease-in-out 0.5s;
    animation-fill-mode: forwards; 
}

@keyframes hideLoading {
    0% {top: 0}
    100% {top: -100vh;}
}

/*Current Pokemon*/
#current-pokemon-container {
    width: 400px;
    margin: 10px;
    height: 80vh;
    position: fixed;
    right: 30px;
    padding: 0 15px;
    text-align: center;
    bottom: 0;
    margin-bottom: 17px;
}

#current-pokemon-indexes-container {
    backdrop-filter: blur(15px) saturate(200%);
    -webkit-backdrop-filter: blur(15px) saturate(200%);
    border: 1px solid white;
    border-radius: 20px;
    margin: 10px;
    width: 100%;
}

.arrow {
    height: 12px;
    width: 10px;
    cursor: pointer;
    border-radius: 30%;
    padding: 2px;
}

.arrow-button:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.arrow-button {
    border: none;
    background-color:rgba(255, 255, 255, 0);
}

.current-pokemon-next { 
    height: 60px;
    width: 60px;
    cursor: pointer;
    float: right;
}

.current-pokemon-prev {
    height: 60px;
    width: 60px;
    cursor: pointer;
    float: left;
}

.right-side-indexes {
    float: right;
    align-items: center;
}

.left-side-indexes {
    float: left;
    align-items: center;
}

#current-pokemon-info {
    margin-top: 6vh;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    -ms-overflow-style: none; /* for Internet Explorer, Edge */
    scrollbar-width: none; /* for Firefox */
    overflow-y: scroll; 
}

#current-pokemon-info::-webkit-scrollbar {
    display: none; 
}

#current-pokemon-image {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 75vh;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
    image-rendering: pixelated;
    max-width: 330px;
    max-height: 20vh;
}

#current-pokemon-loading {
    position: fixed;
    right: calc(10vw - 10px);
    object-fit: contain;
    width: 350px;
    top: 175px;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
    z-index: -1
}

.pokemon-info-variable-container{
    width: 100%;
    background-color: #ffffff;
    padding: 7px 0;
    border-radius: 30px;
    margin: 5px;
}

.current-pokemon-stats-container {
    background: #F6F8FC;
    display: flex;
    padding: 5px;
    border-radius: 30px;
    margin: 5px;
}

#hp-stats-container {
    background:#ffaaa9;
}

#atk-stats-container {
    background:#ffbf83;
}

#def-stats-container {
    background:#ffe987;
}

#spa-stats-container {
    background:#7ad9ff;
}

#spd-stats-container {
    background:#aeea9e;
}

#SPD-stats-container {
    background:#ffbecb;
}

.current-pokemon-stats-container h5 {
    margin: 6px 0;
}

.current-pokemon-stats-name {
    border-radius: 50%;
    height: 25px;
    width: 25px;
    color: rgb(255, 255, 255);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
}

.current-pokemon-evolution-image {
    height: 74px;
    width: 74px;
    cursor: pointer;
    border-radius: 30%;
}

.current-pokemon-evolution-image:hover{
    background-color: rgba(0, 0, 0, 0.03);
}



.current-pokemon-evolution-level-container {
    width: 50px;
    backdrop-filter: blur(15px) saturate(300%);
    -webkit-backdrop-filter: blur(15px) saturate(300%);
    border: 1px solid white;
    padding: 8px 0;
    border-radius: 30px;
    margin: 5px;
    color:#5f5f5f;
}


/*Animations*/

.slide-out {
    animation: slideOut ease-in-out 0.35s;
    animation-fill-mode: forwards; 
}

@keyframes slideOut {
    0% {right: 30px}
    100% {right: -400px}
}

.slide-in {
    animation: slideIn ease-in-out 0.35s;
    animation-fill-mode: forwards; 
}

@keyframes slideIn {
    0% {right: -400px}
    100% {right: 30px}
}


/*Back to top*/
#back-to-top-button {
    background-color: white;
    box-shadow: #EDEDED 0 10px 10px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    z-index: 1;
}

#back-to-top-button:hover {
    opacity: 0.5;
}

#back-to-top-button img {
    height: 16px;
}




/*Responsive*/

#current-pokemon-responsive-background {
    height: 100%;
    position: fixed;
    width: 100%;
    z-index: 1;
    display: none;
    transition: 0.35s;
}

#current-pokemon-responsive-close {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #F6F8FC;
    cursor: pointer;
    z-index: 2;
    padding: 10px;
    border-radius: 10px;
    display: none ;
    height: 22px;
    transition: 0.35s;
}

#current-pokemon-responsive-close:hover {
    opacity: 0.5;
}

@media(max-width: 1200px) {
    #pokedex-list {
        margin: 0;
    }

    .pokemon-render-result-container {
        min-width: 25%;
        margin-right: 8px;
        margin-left: 8px;
    }

    body {
        padding: 0 5vw;
    }

    #current-pokemon-container {
        z-index: 2;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: calc(100% - 30px);
        display: none;
        background-color:#ffffffd8;
        backdrop-filter: blur(20px) saturate(80%);
        -webkit-backdrop-filter:blur(20px) saturate(80%);
    }

    #current-pokemon-responsive-close {
        display: unset;
    }

    #current-pokemon-responsive-background {
        display: unset;
    }
    
    #current-pokemon-loading {
        display: none;
    }

    @keyframes slideOut {
        0% {bottom: 0}
        100% {bottom: -100vh}
    }
    
    @keyframes slideIn {
        0% {bottom: -100vh}
        100% {bottom: 0}
    }
}

@media(min-width: 1100px){
    #current-pokemon-container {
        display: flex !important;
    }
}

@media(max-width: 380px) {
    .pokemon-render-result-container {
        flex: unset;
        width: 100%;
    }

    body {
        width: 90%;
    }
    
    #search-bar-container {
        margin: 40px 0;
    }
}