
.card {
 /*Card image size is 488px X 680px*/
  /*For 400px height, it's 287px width*/

    display:inline-block;
    height:400px;
    width:287px;
    position:relative;
    font-size:0.9em;
}

.card * {
    text-overflow:ellipsis;
    overflow:hidden;
    white-space: nowrap;
}

.card img {
    /*z-index:1;*/
}
.card img, .card .data {
    position:absolute;
    width:100%;
    height:100%;
}

.card .data {
    border: 14px solid black;
    border-radius: 12px;
    padding: 6px;
    background:darkgrey;
}

.card .data p {
    padding:2px 4px;
    margin:0;
    display:inline-block;
}

.card .top_line {
    position:relative;
    display:flex;
    justify-content: space-between;
    border-radius:8px;
    background:white;
}

.card .mana {
    position:absolute;
    right: 0;
    background: white;
    padding-left: 4px;
}

.card .art {
    height: 174px;
    margin: 4px 2px;
    align-content:center;
    text-align:center;
    vertical-align:center;
    background:white;
    border: 1px solid black;
}

.card .type_line {
    margin: 0 2px;
    padding:1px 6px;
    border-radius:8px;
    background:white;
    font-size:0.85em;
}

.card .text_box {
    background: white;
    padding: 2px 4px;
    white-space: normal;
    margin: 4px 2px;
    height:125px;
    border-radius:8px;
}

.card .combat {

    position:absolute;
    bottom:0;
    right:0;
    background: white;
    font-size: 1.1em;
    margin: 2px 4px;
    min-width: 55px;
    text-align: center;
    border: 1px solid black;
    border-radius: 12px;
    font-weight: bold;
}

.mtg_paper .Popup {
    position:fixed;
    top:0;
    bottom:0;
    right:0;
    left:0;
    background: hsla(320,20%,20%,0.7);

    flex-direction:column;
    justify-content: space-around;
    align-items: center;

}

.mtg_paper .Dialog {
    display:flex;
    flex-direction:column; 
    align-items:center;
    width: 80%;
    /*width: 375px;*/
    /*min-width:325px;*/
    /*min-height:400px;*/
    /*max-width:100%;*/
    /*max-height:100%;*/
    overflow:auto;
    background: white;
    border: 2px solid black;

    box-shadow: inset 0px 1px 12px black;

    padding: 8px;
}
.mtg_paper .DialogX {
    margin: 8px 8px 8px auto;
    cursor:pointer;
    padding: 8px;
}

.mtg_paper .Dialog h6 {
    margin: 0 0 8px 0;
}

.mtg_paper .Dialog .info {
    line-height: 1.2em;
}


.mtg_paper .Dialog nav {
    display:inline-block;
    flex: 1;
    overflow:auto;
    margin-bottom: 24px;
    width:100%;
}
.mtg_paper .Dialog nav > div {
    max-width:70%;
    padding: 8px;
    margin: 0 auto;
}
.mtg_paper .Dialog nav a {
    --topcolor: purple;
    --bottomcolor: green;
    --sidesColor: hsla(0, 0%, 80%, 0.5);
    --btncolor: hsl(0, 0%, 97%);
    display:block;
    /* max-width: 70%; */
    margin: 8px auto 0 auto;

    background: var(--btncolor);
    border-right: 1px solid var(--sidesColor);
    border-left: 1px solid var(--sidesColor);

    border-radius: 25% 32px;
    border-top:2px solid var(--topcolor);
    border-bottom: 2px solid var(--bottomcolor);

    overflow-x: hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    text-align: center;

    padding: 3px 15px;
}
.mtg_paper .Dialog nav a:hover, .mtg_paper .Dialog nav a:focus {
    --topcolor: green;
    --bottomcolor: purple;
    --btncolor: hsl(0, 0%, 86%);
}

.mtg_paper .Dialog nav a.selected {
    --sidesColor: black;
}

:root {
    --cFoot: lightgrey;
    --cHead: #4b039c;
}

* {
    box-sizing:border-box;
}

html {
    padding:0;
    margin:0;
}
body {
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
	background: #454545;
}

header {
    background: var(--cHead);
    padding:8px;
}

header a {
    /*font-size: 2em;*/
	color: #ffd500;
    text-decoration: none;
	margin-top: 0; 
	font-weight:bold;
	font-size: 2.75em;
	padding: 16px;
	border-radius: 16px;
}
main {
    flex: 1;
    background: var(--cMain);
    padding:8px;
}
footer {
    background: var(--cFoot);
    text-align: center;

}

details {
	padding:16px; 
	border:1px solid black;
}
details summary {
	cursor:pointer;
}

main {
    background:white;
	width:100%;
	max-width:960px;
	margin-left:auto;
	margin-right:auto;
	padding-top:16px;
}

h1 {
    padding: 8px;
}

p {
    padding-left: 16px;
}
