:root {
    --titlefont: Rubik Mono One;
    --bodyfont: Bebas Neue;

    --fontsizeXXL: 40px;
    --fontsizeXL: 36px;
    --fontsizeL: 32px;
    --fontsizeM: 28px;
    --fontsizeS: 24px;
    --fontsizeXS: 20px;
    --fontsizeXXS: 16px;

    --cdbiconsize: 56px;

    --primCol: #7E47D1;
    --secCol: #63E9BA;
    --dmbgCol: #121212;
    --dmsurColOne: #232323;
    --dmsurColTwo: #343434;
    --dmsurColThr: #454545;
    --dmsurColFou: #565656;
    --dmerrorCol: #CF6679;

    --dmtextColHE: #ffffffe6;
    --dmtextColHME: #ffffffcc;
    --dmtextColME: #ffffff99;
    --dmtextColDIS: #ffffff55;


    --lmerrorCol: #B00020;
}

body {
    margin: 0;
    padding: 0;
}

.page {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--dmbgCol);
}

.cdatabasemaincontainer {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}



.cdatabasecontainer {
    display: flex;
    flex-direction: row;
    width: 80%;
    background-color: var(--dmbgCol);
    align-items: start;
}





/* -- Filter Section -- */
#filter-toggle {
    display: none;
    cursor: pointer;
}

#filter-arrow {
	cursor: pointer;
}

.filter-container {
	display: flex;
	flex-direction: column;
	align-items: end;
	width: 20%;
}

.filter-subcontainer {
	display: flex;
	flex-direction: column;
	align-items: start;
}

.filtertitle {
	font-family: var(--bodyfont);
	font-size: 24px;
	letter-spacing: 0.05rem;
	color: var(--dmtextColHE);
}

.suggestion-item {
	font-family: var(--bodyfont);
	font-size: 1rem;
	color: var(--dmtextColHME);
	cursor: pointer;
}

.price-section {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin: 1rem 0 .5rem;

	font-family: var(--bodyfont);
	font-size: 16px;
}

.price-box-container {
	width: 100%;
	display: flex;
	align-items: center;
	gap: .3rem;

	box-sizing: border-box;

	font-family: var(--bodyfont);
	font-size: 16px;
}

.price-filter-label {
	font-family: var(--bodyfont);
	font-size: 16px;
	color: var(--dmtextColME);
}

.price-box {
	font-size: 16px;
	font-family: var(--bodyfont);
	letter-spacing: 0.05rem;

	border: 1px solid var(--dmsurColThr);
	border-radius: 8px;

	width: 100%;
	max-width: 120px;
	display: flex;
	align-items: center;
	padding: 0 .3rem;
	height: 32px;

	background-color: var(--dmsurColFou);
}

.filter-section-title {
	margin-top: 16px;
	font-family: var(--bodyfont);
	font-size: 20px;
	letter-spacing: 0.05rem;
	color: var(--dmtextColHME);
}

.filter-label {
	font-family: var(--bodyfont);
	font-size: 16px;
	letter-spacing: 0.05rem;
	color: var(--dmtextColME);
}

.buttonroundgrey {
	margin-top: 16px;
}

.pagedividervertical {
	margin-left: 8px;
	width: 3px;
	border-radius: 3px;
}





.cdatabasecardcontainer {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
}

.cdatabasetitle {
    margin-top: 28px;
    margin-bottom: 24px;
    font-family: var(--titlefont);
    font-size: var(--fontsizeXXL);
    color: var(--dmtextColHE);
}

.cdatabasefiltersection {
    display: flex;
}

.cdatabasetilecontainer {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 85%;
}

.cdatabasetile {
    display: flex;
    flex-direction: row;
    margin: 0px 4px 16px 4px;
    width: 266px;
    height: 266px;
    background-color: var(--dmsurColOne);
    border-radius: 20px;
    position: relative;
    transition-duration: 0.5s;
	cursor: pointer;
}

.cdatabasetileimagecontainer {
    max-width: 266px;
    height: 266px;
    overflow: hidden;
    border-radius: 20px 20px 20px 20px;
    position: relative;
    z-index: 1;
    transition-duration: 0.5s;
}

.cdatabaseimage {
	width: 100%;
    aspect-ratio: 5/7.5;
    scale: 100%;
	object-fit: cover;
    filter: brightness(50%) blur(1px) saturate(0.2);
    transition-duration: 0.5s;
}

.cdatabasecardinfo {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.cdatabasecardname {
    text-align: center;
    max-width: 85%;
    margin-top: 100px;
    font-family: var(--titlefont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHE);
    text-shadow: 0px 5px 5px var(--dmbgCol);
    user-select: none;
    transition-duration: 0.5s;
}

.bottomofcardstats {
    margin-top: auto;
    margin-bottom: 48px;
    display: flex;
    flex-direction: row;
    align-items: end;
    user-select: none;

    font-family: var(--bodyfont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHME);
    text-shadow: 0px 4px 4px var(--dmbgCol);
    opacity: 0;
    transition-duration: 0.5s;
}

.cdatabaseattackcontainter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cdatabaseattackpower {
    margin-bottom: -8px;
    font-size: var(--fontsizeL);
}

.cdatabasestarpower {
    text-align: center;
    width: 140px;
    font-size: var(--fontsizeS);
    white-space: nowrap;
    line-height: 20px;
	text-wrap: balance;
}

.cdatabasecardclass {
    text-align: center;
    font-family: var(--bodyfont);
    font-size: var(--fontsizeS);
    color: var(--dmtextColHME);
    text-shadow: 0px 4px 4px var(--dmbgCol);
}

.cdatabasedefencecontainter {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cdatabasedefencepower {
    margin-bottom: -8px;
    font-size: var(--fontsizeL);
}

.cdatabaseabilitypopout {
    display: flex;
    flex-direction: row;
    width: 266px;
    height: 266px;
    background-color: var(--dmsurColOne);
    border-radius: 20px;
    position: absolute;
    transition-duration: 0.5s;
}

.popoutinfo {
    margin-left: 26px;
    display: flex;
    flex-direction: column;
    text-align: center;
    user-select: none;
}

.cdatabaseabilitytitle {
    margin-top: 8px;
    font-family: var(--titlefont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHE);
}

.cdatabaseabilitybody {
    margin-top: 4px;
    font-family: var(--bodyfont);
    font-size: var(--fontsizeXXS);
    color: var(--dmtextColHME);
}

.cdatabasetile:hover {
    display: flex;
    flex-direction: row;
    margin: 0px 4px 16px 4px;
    width: 266px;
    height: 384px;
    background-color: var(--dmsurColOne);
    border-radius: 20px;
    position: relative;
}

.cdatabasetile:hover .cdatabasetileimagecontainer {
    max-width: 266px;
    height: 384px;
    overflow: hidden;
    border-radius: 20px 20px 20px 20px;
    position: relative;
    z-index: 1;
    transition-duration: 0s;
}

.cdatabasetile:hover .cdatabaseimage {
    width: 100%;
    scale: 100%;
    filter: brightness(100%) blur(0px) saturate(1);
}

.cdatabasetile:hover .cdatabasecardname {
    text-align: center;
    max-width: 85%;
    margin-top: 12px;
    font-family: var(--titlefont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHE);
    text-shadow: 0px 5px 5px var(--dmbgCol);
}

.cdatabasetile:hover .bottomofcardstats {
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: row;
    align-items: end;

    font-family: var(--bodyfont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHME);
    text-shadow: 0px 4px 4px var(--dmbgCol);
    opacity: 1;
}

.cdatabasetile:hover .cdatabaseabilitypopout {
    display: flex;
    flex-direction: column;
    width: 266px;
    height: 384px;
    border-radius: 20px;
    position: absolute;
}


.cdatabasetile:active .cdatabasecardinfo {
    z-index: 12;
}

.cdatabasetile:active .cdatabasetileimagecontainer {
    z-index: 11;
}

.cdatabasetile:active .cdatabaseabilitypopout {
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    width: 266px;
    height: 384px;
    border-radius: 20px;
    position: absolute;
    z-index: 10;
}




/* New Active Stuff Test */
.cdatabasetile.active {
    display: flex;
    flex-direction: row;
    margin: 0px 4px 16px 4px;
    width: 266px;
    height: 384px;
    background-color: var(--dmsurColOne);
    border-radius: 20px;
    position: relative;
}





.cdatabasetile.active .cdatabasetileimagecontainer {
    max-width: 266px;
    height: 384px;
    overflow: hidden;
    border-radius: 20px 20px 20px 20px;
    position: relative;
    z-index: 1;
    transition-duration: 0s;
}

.cdatabasetile.active .cdatabaseimage {
    width: 100%;
    scale: 100%;
    filter: brightness(100%) blur(0px) saturate(1);
}

.cdatabasetile.active .cdatabasecardname {
    text-align: center;
    max-width: 85%;
    margin-top: 12px;
    font-family: var(--titlefont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHE);
    text-shadow: 0px 5px 5px var(--dmbgCol);
}

.cdatabasetile.active .bottomofcardstats {
    margin-top: auto;
    margin-bottom: 12px;
    display: flex;
    flex-direction: row;
    align-items: end;

    font-family: var(--bodyfont);
    font-size: var(--fontsizeXS);
    color: var(--dmtextColHME);
    text-shadow: 0px 4px 4px var(--dmbgCol);
    opacity: 1;
}





.cdatabasetile.active .cdatabasecardinfo {
    z-index: 12;
}

.cdatabasetile.active .cdatabasetileimagecontainer {
    z-index: 11;
}

.cdatabasetile.active .cdatabaseabilitypopout {
    margin-left: 240px;
    display: flex;
    flex-direction: column;
    width: 266px;
    height: 384px;
    border-radius: 20px;
    position: absolute;
    z-index: 10;
}
