* {
  	-webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

html {
	font-family: sans-serif;
	-webkit-text-size-adjust: 100%;
	-ms-text-size-adjust: 100%;
	scroll-behavior: smooth;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
	font-size: 10px;
}

body {
	font-family: "Poppins", Helvetica, Arial, sans-serif;
	background-color: #fff;
	color: #333;
	font-size: 1.4rem;
	width: 100vw;
	margin: 0;
	overflow-x: hidden;
}

a {
	text-decoration: none;
}

main {
    position: relative;
    padding-block: 20px;
}

.container {
	background-color: #fff;
    width: 100%;
    margin-inline: auto;
    border-radius: 40px;
    overflow: hidden;
}

#background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#background.neutral {
    background-color: #ada79c;
}

#background.nature {
    background-color: #3ca33f;
}

#background.fire {
    background-color: #ff551e;
}

#background.water {
    background-color: #2e9bf7;
}

#background.electric {
    background-color: #ffca35;
}

#background.wind {
    background-color: #2ed5af;
}

#background.earth {
    background-color: #cf7735;
}

#background.metal {
    background-color: #6d7e8d;
}

#background.ice {
    background-color: #47f0fd;
}

#background.dark {
    background-color: #6e6257;
}

#background.light {
    background-color: #fff386;
}

#background.toxic {
    background-color: #9f41c1;
}

.background-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: .4;
    overflow: hidden;
}

.background-wave img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.header {
    position: relative;
    display: flex;
    align-items: flex-start;
    padding: 20px 20px 0;
}

.header .back {
    color: #fff;
    margin-right: 20px;
}

.header .back .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    color: #aaa;
    font-size: 2.4rem;
    margin-top: 2px;
    border: 1px solid #aaa;
    border-radius: 50%;
}

.header .back .text {
    display: none;
}

.header .heading {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
}

.header .number {
    color: #aaa;
    font-size: 18px;
    font-weight: 500;
    margin-left: 10px;
    white-space: nowrap;
}

.header .name {
    color: #333;
    font-size: 24px;
    margin: 0 0 5px;
    white-space: nowrap;
}

.header .types {
    display: flex;
    align-items: center;
    column-gap: 5px;
    width: 100%;
}

.type {
    color: #fff;
    font-size: 1.4rem;
    padding: 5px 10px;
    border: 2px solid;
    border-radius: 30px;
}

.type.beast {
    background-color: #e1793f;
    border-color: #b34000;
}
.type.avian {
    background-color: #66e1d3;
    border-color: #18b5a3;
}
.type.aquatic {
    background-color: #5e92f5;
    border-color: #0e4fcc;
}
.type.plant {
    background-color: #55b65a;
    border-color: #0C8310;
}
.type.construct {
    background-color: #767676;
    border-color: #333333;
}
.type.insect {
    background-color: #cacf30;
    border-color: #8f9400;
}
.type.mythic {
    background-color: #584bd3;
    border-color: #0b0074;
}

.attribute {
    color: #fff;
    font-size: 1.4rem;
    padding: 5px 10px;
    border-radius: 30px;
}

.attribute.neutral {
    background-color: #ada79c;
}
.attribute.nature {
    background-color: #3ca33f;
}
.attribute.fire {
    background-color: #ff551e;
}
.attribute.water {
    background-color: #2e9bf7;
}
.attribute.electric {
    background-color: #ffca35;
    color: #606060;
}
.attribute.wind {
    background-color: #2ed5af;
}
.attribute.earth {
    background-color: #cf7735;
}
.attribute.metal {
    background-color: #6d7e8d;
}
.attribute.ice {
    background-color: #47f0fd;
    color: #555;
}
.attribute.dark {
    background-color: #6e6257;
}
.attribute.light {
    background-color: #fff386;
    color: #666;
}
.attribute.toxic {
    background-color: #9f41c1;
}

.header .background {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    opacity: .3;
}

.main-container {
    position: relative;
    padding: 20px 20px 0;
}

.image {
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.image img {
    display: none;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.image img.active {
    display: block;
}

/* .shiny-trigger {
    position: absolute;
    right: 20px;
    top: 280px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f5f5fb;
    color: #727272;
    font-size: 2rem;
    line-height: 1;
    border: 1px solid #fff;
    border-radius: 10px;
    z-index: 1;
    transition: .2s ease-in-out;
}

.shiny-trigger:hover {
    background-color: #eee;
}

.shiny-trigger.active {
    background-color: #eee;
    color: #ff5a5a;
} */

.arrows {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.arrows .arrow {
    display: flex;
    background-color: #f5f5fb;
    color: #333;
    padding: 5px 15px;
    border-radius: 5px;
}

.arrows .arrow-icon {
    width: 20px;
    height: 20px;
}

.arrows .arrow-icon * {
    stroke: #333;
}

.arrows .arrow-number {
    color: #aaa;
}

.arrows .left .arrow-number {
    margin-left: 10px;
}

.arrows .right .arrow-number {
    margin-right: 10px;
}

.info {
    background-color: #fff;
    border-radius: 30px 30px 0 0;
}

.info .tabs {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 0 0;
    margin: 0;
    border-bottom: 1px solid #ddd;
}

.info .tabs .tab {
    color: #aaa;
    font-weight: 500;
    text-align: center;
    padding-bottom: 10px;
    margin-bottom: -1px;
    border-bottom: 1px solid transparent;
}

.info .tabs .tab.active {
    border-color: #3f78ff;
    color: #3f78ff;
}

.info .tab-content {
    display: none;
    padding-block: 20px;
}

.info .tab-content.active {
    display: block;
}

.info .tab-content .tab-heading {
    font-size: 1.6rem;
    margin: 0 0 20px;
}

.info .tab-content .ability {
    margin-bottom: 30px;
}

.info .tab-content .trait-name {
    color: #727272;
    font-size: 1.4rem;
    margin: 0 0 10px;
}

.info .tab-content .trait-desc {
    margin: 0;
}

.info .separator {
	margin: 30px 0;
	border-top: 1px solid #ddd;
}

.additional,
.additional-gender .additional-value {
	display: flex;
	align-items: center;
}

.additional {
	margin-bottom: 20px;
}

.additional .additional-label {
	color: #727272;
	width: 100px;
}

.additional .additional-male {
	margin-right: 20px;
}

.additional-gender .icon {
	width: 15px;
	height: 15px;
	margin-right: 5px;
}

.stats .stat {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.stats .stat-label {
	color: #727272;
	width: 70px;
}

.stats .stat-value {
	width: 60px;
	font-weight: 500;
}

.stats .stat-bar {
	flex: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 30px;
    overflow: hidden;
}

.stats .stat-bar .stat-bar-fill {
	display: block;
    height: 100%;
    border-radius: 100px;
}

.stats .stat-hp .stat-bar-fill {
	background-color: #4aa94a;
}
.stats .stat-atk .stat-bar-fill {
	background-color: #f75e36;
}
.stats .stat-def .stat-bar-fill {
	background-color: #b77a3f;
}
.stats .stat-spa .stat-bar-fill {
	background-color: #9f3ed5;
}
.stats .stat-spd .stat-bar-fill {
	background-color: #e9cf32;
}
.stats .stat-spe .stat-bar-fill {
	background-color: #486feb;
}

.condition .condition-label {
	color: #727272;
	font-size: 1.4rem;
}

.condition .condition-types,
.condition .condition-attrs {
	display: flex;
	flex-wrap: wrap;
    gap: 10px 5px;
}

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

.moves .move {
	padding-bottom: 5px;
	border-top: 1px solid #ddd;
}

.moves .move-label {
	display: flex;
	align-items: center;
}

.moves .move-name {
	font-size: 16px;
	font-weight: 500;
	margin-right: 15px;
}

.moves .move-level {
	flex: 1;
	color: #727272;
	text-align: right;
}

.moves .move-details {
	color: #727272;
}

.moves .move-details span {
	padding-right: 10px;
	margin-right: 10px;
	border-right: 1px solid #ddd;
}

.moves .move-details span:last-child {
	padding-right: 0;
	margin-right: 0;
	border: none;
}

.tab-moves .separator {
	margin-block: 20px;
}

.evo-block {
	display: flex;
	align-items: center;
	margin-bottom: 30px;
}

.evo-block:last-child {
	margin-bottom: 0;
}

.evo-block .evo-thumb {
	object-fit: cover;
	width: 120px;
	height: 120px;
	margin-right: 20px;
	border: 1px solid #ddd;
	border-radius: 50%;
}

.evo-block .evo-req {
	color: #727272;
}

.fade {
	-webkit-animation: fadein .2s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein .2s; /* Firefox < 16 */
        -ms-animation: fadein .2s; /* Internet Explorer */
         -o-animation: fadein .2s; /* Opera < 12.1 */
            animation: fadein .2s;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Internet Explorer */
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media only screen and (min-width: 768px) {

	.evolution {
		display: flex;
		align-items: center;
        flex-wrap: wrap;
        gap: 30px 40px;
	}

	.evo-block {
		flex-direction: column;
        margin: 0;
	}

	.evo-block .evo-thumb {
		margin-right: 0;
	}
}


@media only screen and (min-width: 1024px) {

    main {
        height: 100vh;
    }

    .container {
        width: 980px;
    }

    .header {
        align-items: center;
    }

    .header .container {
        display: flex;
        align-items: center;
    }

    .header .heading {
        align-items: center;
        flex-wrap: nowrap;
        column-gap: 15px;
    }

    .header .name {
        margin: 0;
    }

    .header .number {
        order: 1;
        margin: 0;
    }

    .main-container {
        display: flex;
        justify-content: space-between;
        padding-inline: 40px;
        margin: 0 auto;
    }

    .image {
        width: 460px;
        height: 460px;
        margin: 50px 40px 0 0;
    }

    /* .shiny-trigger {
        top: 490px;
        left: 460px;
        right: initial;
        bottom: initial;
        cursor: pointer;
    } */

    .arrows .arrow {
        position: absolute;
        bottom: 20px;
        padding: 10px 20px;
        border-radius: 60px;
    }

    .arrows .arrow.left {
        left: 20px;
    }

    .arrows .arrow.right {
        left: 405px;
    }

    .info {
        flex: 1;
        height: calc(100vh - 140px);
        padding-bottom: 30px;
        border-radius: 30px;
    }

    .info .tabs .tab {
        cursor: pointer;
    }

    .info .tabs .tab:hover {
		color: #3f78ff;
	}

    .info .tab-content {
        height: calc(100% - 50px);
        overflow-y: scroll;
    }

    .info .tab-content::-webkit-scrollbar {
        width: 30px;
    }
     
    .info .tab-content::-webkit-scrollbar-track {
        background-color: #fff;
    }

    .info .tab-content::-webkit-scrollbar-thumb {
        border: 10px solid #fff;
        background-clip: padding-box;
        background-color: #ccc;
        border-radius: 30px;
    }

    .info .tab-content::-webkit-scrollbar-thumb:hover {
        background-color: #aaa;
    }
}

@media only screen and (min-width: 1366px) {

    .container {
        width: 1200px;
    }

    .header {
        padding-inline: 40px;
    }

    .main-container {
        padding-inline: 40px;
    }

    .image {
        width: 500px;
        height: 500px;
        margin-right: 80px;
    }

    /* .shiny-trigger {
        top: 530px;
        left: 500px;
    } */

    .arrows .arrow.left {
        left: 40px;
    }

    .arrows .arrow.right {
        left: 435px;
    }

    .info .tab-content {
		padding-top: 30px;
	}

	.info .tab-content .tab-heading {
		margin-bottom: 30px;
	}

	.tab-moves .separator {
		margin-block: 30px;
	}

	.tab-moves .tab-content .tab-heading {
		margin-bottom: 30px;
	}
}

@media only screen and (min-width: 1600px) {

    main {
        padding-block: 30px;
    }

    .container {
        width: 1400px;
        border-radius: 60px;
    }

    .main-container {
        padding-inline: 60px;
    }

    .image {
        width: 600px;
        height: 600px;
    }

    /* .shiny-trigger {
        top: 630px;
        left: 600px;
    } */

    .arrows .arrow {
        position: fixed;
        top: calc(50% - 30px);
        display: flex;
        flex-direction: column;
        background-color: transparent;
        color: #fff;
        font-size: 2rem;
        padding: 0;
        transition: .2s ease-in-out;
    }

    .arrows .arrow-icon * {
        stroke: #fff;
    }

    .arrows .arrow-number {
        color: #fff;
        font-weight: 500;
    }

    .arrows .arrow.left {
        left: 30px;
    }

    .arrows .arrow.right {
        left: unset;
        right: 30px;
        align-items: flex-end;
    }

    .arrows .left .arrow-number {
        margin: 0;
    }

    .arrows .right .arrow-number {
        order: 1;
        margin: 0;
    }

    .arrows .arrow:hover,
    .arrows .arrow:hover .arrow-number {
        color: #eee;
    }

    .info {
        height: calc(100vh - 140px);
    }
}