.cardContainer {
    background-color: #3a6076;
    color: white;
    display: flex;
    flex-direction: column;
    width: 500px;
    height: 700px;
    overflow: hidden;

    border: 1px solid black;
    border-radius: 25px;
    box-sizing: border-box;

    user-select: none;

    transform-origin: top left;

    position: absolute;

    z-index: 5;
}

.cardBackContainer {
    background-color: #3a6076;
    color: white;
    display: flex;
    flex-direction: column;
    width: 500px;
    height: 700px;
    overflow: hidden;

    border: 1px solid black;
    border-radius: 25px;
    box-sizing: border-box;

    user-select: none;

    transform-origin: top left;

    position: absolute;

    z-index: 5;
}

.cardContainerPhysical {
    box-shadow: 4px 4px 8px black;
}

.cardContainerRest {
    display: flex;
    flex-direction: row;
    flex: 16 0 0;
}

.cardContainerArtAndDesc {
    display: flex;
    flex-direction: column;
    flex: 9 0 0;
}

.cardContainerOutline {
    background-color: #ffffff00;
    border: 10px dashed white;
}

.selectedCard {
    border: 1px solid red;
    box-shadow: 0px 0px 20px 20px red;
}

.highlightedCard {
    border: 1px solid rgb(0, 183, 255);
    box-shadow: 0px 0px 20px 20px rgb(0, 183, 255);
}

.cardContainerTop {
    flex: 2 0 0;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.cardLifetime {
    flex: 1 0 0;
    font-size: 4em;
    border: 0px;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "TitleText";
}

.cardLifetimeUsed {
    color: rgb(128, 214, 243);
}

.cardLifetimeExpired {
    color: red;
}

.cardTitle {
    flex: 8 0 0;
    display: flex;
    align-items: center;
    font-size: 2.2em;
    padding-left: 3%;
    border: 1px solid black;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: hidden;
    color: black;
    font-family: "CardTitleText";
}
.cardTitleBasic {
    background-color: #999899;
}

.cardTitleCommon {
    background-color: #5fd35f;
}

.cardTitleUncommon {
    background-color: #8d5fd3;
}

.cardTitleRare {
    background-color: #ff7f2a;
}

.cardTitleStatus {
    background-color: #55ddff;
}

.cardContainerArt {
    flex: 8 0 0;
    border: 1px solid black;
    border-radius: 40px 40px 0px 0px;
    box-sizing: border-box;
    margin: 3% 3%;

    overflow: hidden;

    background-color: black;
}

.cardArt {
    width: 100%;
    overflow: hidden;
}

.cardArt > img {
    position: relative;
    width: 104%;
    top: -2%;
    left: -2%;

    user-select: none;
    -webkit-user-drag: none;
}

.cardContainerDesc {
    flex: 8 0 0;

    border: 1px solid black;
    border-radius: 40px;
    box-sizing: border-box;
    margin: 1% 1%;

    overflow: hidden;
    display: flex;
    flex-direction: column;

    transform: translateY(-8%);
    color: black;

    background-color: #c7d2d1;
}

.cardDesc {
    flex: 1 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 4em;
    padding: 2% 2%;
    font-family: "MainText";
    font-weight: bold;
}

.cardDescTextM {
    font-size: 3em;
}

.cardDescTextS {
    font-size: 2.5em;
}

.cardDescTrashedAfterUse {
    color: rgb(224, 0, 0);
}

.cardContainerLinks {
    flex: 1 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

cardlinkspace {
    flex: 1 0 0;
}

cardlink {
    flex: 1 0 0;
    width: 100%;
    background-color: black;
    border: 10px solid black;
    border-radius: 10px 0px 0px 10px;
    transform: translateX(10px);
    box-sizing: border-box;
}

cardlink.consumes {
    background-color: orange;
}


/* For rendering the card back */
.cardBackSpacer {
    flex: 2 0 0;
}

.cardBackArt {
    flex: 8 0 0;
    transform: translateX(-10px) rotate(330deg);
}

.frozenCard {
    box-shadow: 0px 0px 0px 16px rgb(0, 174, 255);
}

cardem {
    display: inline;
    font-weight: bolder;
    font-size: 1.5em;
    padding-left: 12px;
}