.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;
}
