Template:CardBox/styles.css

/* Image CSS specifications to control the behavior of the card image in the template*/ img { width: auto; max-height: 100%; vertical-align: baseline; }

/* The culprit for the image problems was the element! */ pre { /* Remove all of the special formatting for this element */ padding: 0; margin: 0; white-space: normal; overflow: auto; word-wrap: normal; background-color: transparent; color: transparent; border: 0; line-height: 0; /* Include new specifications that make the image behave as intended */ display: flex; justify-content: center; align-items: center; }

/* The next section is CSS that will apply regardless of viewport dimensions */

/* Make the color of the links more accessibility friendly */ a { color: #0000B4; }

a.external { color: #0000B4; }

/* Red links */ .new { color: #AF0000; }

/* Specify CSS for generic classes here */

/* Class: Flex-Center */ /* (Flexbox display with alignment towards the center-middle) */ .flex-center { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; }

/* Class: Flex-Default */ /* Flex display with the default settings */ .flex-default { display: flex; }

/* Class: Shorter Text */ /* Takes only 30% of the shared width space */ .short-text { width: 30%; margin: 0.5rem 0; }

/* Class: Longer Text */ /* Takes 70% of the shared width space */ .long-text { width: 65%; margin: 0.5rem 0 0.5rem 5%; }

/* Class: Text Labels */ /* padding-left for [REQUIREMENT] and [EFFECT] */ .text-label { padding-left: calc(0.37619553666312433vw + 0.18809776833156217vh); }

/* Class: Card Text */ /* The actual text in the card's lore box */ .card-text { padding-left: calc(0.8119022316684379vw + 0.40595111583421906vh); font-size: 1rem; }

/* Class: Text by Image */ /* Text that appears next to an image (to the right of the image) */ .text-by-img { margin: auto 0; padding-left: calc(0.40595111583421895vw + 0.20297555791710953vh); }

/* Class: Text Between Images */ /* Text that appears between two images */ .text-btwn-imgs { padding: 0 calc(0.16238044633368756vw + 0.0811902231668438vh); margin: 0; font-size: 1.4rem; font-weight: bold; align-self: center; }

/* The next section is CSS for classes that are specific to certain containers */

/* Specify CSS for the main div container */ .mainBox { width: 100%; padding-bottom: calc(0.37619553666312433vw + 0.18809776833156217vh); border-style: solid; border-width: 0.3em; border-radius: 0.7em; border-color: #42465e; font-family: Arial, Helvetica, sans-serif; color: black; font-size: 1rem; }

/* Primary name box */ .nameBox { height: 100%; padding-bottom: 0.6rem; padding-top: 0.3rem; /* 0.3rem is added by the border above the div */ background-color: #42465e; }

/* The title of the card located in nameBox */ .cardTitle { color: white; font-size: 1.6rem; font-family: Arial, Helvetica, sans-serif; font-weight: bold; line-height: 1; text-align: center; border: 0; margin: 0; overflow: visible; }

/* Div containing Japanese-related name information */ .jpnBox { margin-bottom: calc(0.037619553666312436vw + 0.018809776833156214vh); display: flex; justify-content: space-around; flex-wrap: wrap; }

/* Div containing the card image */ .imgBox { margin-left: calc(0.40595111583421895vw + 0.20297555791710953vh); }

/* Div containing card data */ .dataBox { width: 65%; margin-top: calc(0.5642933049946864vw + 0.2821466524973432vh); margin-left: calc(0.5683315621679065vw + 0.2841657810839533vh); font-size: 1.15rem; }

/* Div containing non-lore data about card */ /*.metaBox { }*/

/* Div for Monster Attribute image */ .attrDiv { height: calc(2.0297555791710944vw + 1.0148777895855476vh); }

/* Div for Monster LV image */ .lvDiv { height: calc(2.232731137088204vw + 1.116365568544102vh); }

/* Div for Monster ATK and DEF images */ .statDiv { height: 1.4rem; margin: 0; }

/* Div for custom ATK and DEF boxes */ .statBox { height: 1.4rem; width: calc(132*1.4rem/54); flex-wrap: nowrap; color: white; font-size: 1.2rem; }

/* Color for custom ATK box */ .atkBox { background-color: #B3000C; }

/* Color for custom DEF box */ .defBox { background-color: #005C8A; }

/* CSS for "ATK" and "DEF" inside the custom boxes */ .statText { margin: 0; }

/* Div for card lore / effect text */ .loreBox { margin-right: calc(0.5683315621679065vw + 0.2841657810839533vh); padding-bottom: calc(0.18809776833156217vw + 0.09404888416578108vh); border-style: solid; border-width: 0.2em; border-radius: 0.2em; border-color: #363636; }

/* [REQUIREMENT] */ .reqText { padding-top: calc(0.18809776833156217vw + 0.09404888416578108vh); }

/* [EFFECT] */ .effText { padding-top: calc(0.37619553666312433vw + 0.18809776833156217vh); }

/* Next is CSS specific to tablet devices */ @media only screen and (max-width: 1024px) { }

/* Finally, the next CSS is specific to mobile devices */ @media only screen and (max-width: 630px) { /* The title of the card located in nameBox */ .cardTitle { font-size: 1.4rem; }	/* Short and long text for card data */ .long-text { width: 55%; }	.short-text { width: 40%; }	/* Div containing attribute image */ .attrDiv { height: calc(3.3610755441741365vw + 1.680537772087068vh); }

/* Div containing custom ATK/DEF icons*/ .statBox { font-size: 1.17rem; }	/* Div for text between two images */ .text-btwn-imgs { font-size: 1.17rem; } }