
@font-face {
    font-family: "PxPlus_IBM_VGA";
    src: url('/static/PxPlus_IBM_VGA8.ttf');
}

@keyframes rattle {
	0% {
        background:#000;
        outline: 4px solid gold;
        outline-offset: -14px;
	}

	50% {
        outline: 4px solid gold;
        outline-offset: 0px;
	}

    100%{
        background-color: #223;
        color: gold;
        outline: 2px solid gold;
        outline-offset: -2px;
    }
}
@keyframes pulse {
	0% {
        background:#000;
	}

	40% {
        background:#777;
        padding-left:16px;
	}

	100% {
        background:#444;
        padding-left:14px;
        border-color: #9b8f70;
	}
}

@keyframes triggers_toggle {
	0% {
        background:#000;
	}
	100% {
        border-color: #9b8f70;
        color: chartreuse;
        border-right-width: 2px;
        border-left-width: 200px;
	}
}

a{
    color: #8fb985;
    text-decoration: none;
}
.setting_value{
    text-align: center;
}
.setting_value a{
    width:80px;
    display: inline-block;
    background:#1115;
    border: 1px solid #111A;
}
.search_container *, .comment-cell *{
    margin: 0;
}
html{
    overflow-y: scroll;
    scrollbar-color: black #252525;
}
body {
    display:grid;
    grid-template-rows: auto;
    margin-left:0;
    margin-top:0;
    background-color: #222;
    font-family: PxPlus_IBM_VGA;
}
pre {
    white-space: pre-wrap;
}

.content_row {
    display: inline-grid;
    margin-bottom: 8px;
    grid-template-areas: "nav settings abils" "nav settings abils" "nav footer footer";
    grid-template-rows: auto auto;
    grid-template-columns: 200px 280px 1400px;
}

td {
    vertical-align: top;
    border: 2px solid black;
}
pre{
    margin:0;
}

.list_container {
    margin-left:-1px;
    display:contents;
}

.maincard{
    position:sticky;
    z-index:90;
    left:0;
    text-align: center;
    grid-area: nav;
    border: #112 5px double;
}
.maincard_center{
    display:block;
    z-index:90;
    text-align: center;
    grid-area: abils;
    width:200px;
    border: #112 5px double;
}
.screenshot_container{
    height:210px;
    text-align: left;
    background-size: 100% 100%;
}
.main_icon{
    width:48px;
}
.main_image_area{
    background:#151515;
    margin: auto;
    height: 100%;
    margin:auto;
    text-align: left;
}


.section.itemcard{
    position:sticky;
    z-index:90;
    left:0;
    text-align: center;
    grid-area: nav;
    border: #112 5px double;
    background:#151515;
}
.item_icon{
    width:48px;
    padding-top:24px;
}
.item_image_area{
    margin: auto;
    height: 100%;
    margin:auto;
    text-align: center;
}

.name{
    text-align: center;
    width:95%;
    margin: 4px;
    display: table;
}
.middler{
    display: table-cell;
    vertical-align: middle
}
button,.fakebutton {
    display: inline-flex;
    width: 128px;
    border: 2px inset #5b5b5b;
    margin: 2px;
    margin-bottom: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
    margin-top:5px;
    text-decoration: none;
    letter-spacing: 1px;
    align-items: center;
    justify-content: center;
    color: #000;
    background-color: #CCC;
    font-size: 13px;
    font-family: Verdana;
    text-align: center;
}

button:hover,.fakebutton:hover{
    background-color: #e5f1fb;
    border-color: #0078d7;
    color: black;
    cursor: pointer;
}
button:active,.fakebutton:active {
    background-color: gray;
    color: black;
    border-color: #5b5b5b;
}







.download-btn {
}


/* Description and Latest Upload Comment Display*/
.comment-cell {
    min-width: 340px;
    margin: -2px;
    width: 340px;
    padding: 4px;
    border: 1px solid black;
    border-radius: 4px;
    background: #3e332A;
    padding:1px;
    padding-right:6px;
}

.comment-cell p {
    display: inline-block;
    border: 1px solid #00000038;
    background: #00000038;
    padding: 2px;
    margin-bottom: 2px;
    color: chartreuse;
}

.comment-cell pre {
    margin-left:4px;
}

/* Sections' shared stuff */
.section {
    border: #112 5px double;
    display: inline-block;
    color: white;
    background: #0a0a11;
    text-shadow: -1px 1px 1px black, 1px 1px 1px black;
    overflow:hidden;
    font-family: PxPlus_IBM_VGA;
}
.settings {
    display: grid;
    grid-template-columns: 120px auto;
    grid-row-gap: 1px;
    font-size: 16px;
    grid-area: settings;
    padding: 4px;
    grid-template-rows: repeat(16, max-content);
    text-shadow: -1px 0 1px black, 0 2px 1px black, 0 -1px 1px black, 2px 0 1px black;
    background: #001;
}

.settings > div{
    border: 1px solid black;
    border-radius: 4px;
    background: #3e332A;
    padding:1px;
}
.settings .field_name, .name_highlight{
    color: #fff3b1
}
.field_name{
    font-family: PxPlus_IBM_VGA;
    font-weight: normal;
    color: chartreuse;
    margin:0;
    padding-left:4px;
}
.section pre {
    font-family: PxPlus_IBM_VGA;
}
.code_field {
    display: block;
    font-family: PxPlus_IBM_VGA;
    padding: 4px;
    white-space:pre;
    padding-bottom: 12px;
}

/* Ability Display*/
.ability{
    display: inline-block;
    width:460px;
    max-width:460px;
    
    margin-bottom:8px;
    border-radius: 4px;
    padding:4px;
    padding-right:26px;
    background: #3e332A;
}
.abil_name{
    color: gold;
    position: relative;
    bottom: 12px;
}
.abil_icon {
    height: 32px;
    width: 32px;
    display: inline-block;
}
.mana_icon{
    height:16px;
    width:16px;
    display: inline-block;
}
.ability_head {
    display: inline-block;
    height:32px;
    background: #1116;
    padding-right: 16px;
    padding-bottom:0px;
    margin-bottom: 4px;
    border: 1px solid black;
    border-top-right-radius:8px;
    border-bottom-right-radius:8px;
}

/* Trigger Display*/
.trigger {
    position: relative;
}
.trigger_type {
    font-family: Arial;
    font-weight: bold;
    background: black;
    color:gold;
    padding:6px;
    width:300px;
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 0 -1px 1px black;
    border: 2px solid #604010;
    user-select: none;
    margin-top: 0;
    margin-bottom:2px;
}
input:hover + .trigger_type {
    transition: background-color all 0.5s;
    background-color: #333;
}
.trigger_values{
    display: grid;
    grid-template-columns: 420px auto;
    margin-left: 8px;
}
.triggers input[type='checkbox']{
    width:316px;
    height:36px;
    opacity:0;
    top:0;
    display:inline-block;
    position: absolute;
    cursor: pointer;
}

.triggers input[type="checkbox"]:checked {
    width:324px;
}

.triggers input[type="checkbox"]:checked ~ .trigger_type {
    animation: pulse 0.25s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.triggers input[type="checkbox"]:not(:checked) ~ pre,
.triggers input[type="checkbox"]:not(:checked) ~ div {
    display: none;

}

.commentstart{
    color: #008000;
}
.stringstart{
    color: #FF00FF;
}
.fourcstart, .Unapproved, .Rejected{
    color: #FF0000;
}
.code_field > .syntax_number{
    color: #60DF60;
}
.tooltip_AOE{
    color: #CCFF00;
}
.tooltip_number{
    color: #FFFF80;
}
.long_explain{
    width:480px;
}
.abilities{
    display:grid;
    grid-template-columns: 340px auto;
    grid-area: abils;
}
.abilities-cell{
    padding:0;
    margin-left: 10px;
    margin-right:10px;
    column-width: 460px;
    column-gap:0;
    column-count: 2;
}
.triggers_section{
    grid-area:footer;
    background: #151515;
    color: white;
}
.details_sizer{
    width:410px;
    display:inline-block;
    margin-bottom:4px;
    vertical-align: middle;
}
.show_details{
    display:inline-block;
    height:24px;
    width: 200px;
    font-family: Arial;
    font-size:18px;
    text-align: center;
    margin-bottom: 4px;
    border: 2px solid #5b5b5b;
    border-right-width: 200px;
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 0 -1px 1px black;
    border-radius: 8px;
    margin:0;
}
.triggers_section > input:checked ~ .details_sizer > .show_details{
    animation: triggers_toggle 0.0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.triggers_section > input{
    width: 410px;
    height: 32px;
    position: absolute;
    opacity:0;
    cursor: pointer;
}
.triggers_section > input:not(:checked) ~ .triggers{
    display:none;
}
.triggers {
    margin-top: 4px;
}
.triggers_section > input:checked ~ .triggers{
    display:block;
}
.main_goldcost{
    color: gold;
    width:62px;
    margin:auto;
    padding-left: 16px;
    }
.rem_main_goldcost{    
    border-bottom-left-radius:4px;
    border-bottom-right-radius:4px;
}
.tableValue{color:#FFFF00;}
.fullAOE, .Approved{color:#00FF00;}
.mediumAOE{color:#FFFF00;}
.smallAOE{color:#FF8000;}

.capitalizer{text-transform: capitalize;}
.unique{color:#FF00BF;}
.rare{color:#FFFF00;}
.uncommon{color:#0080FF;}
.common{color:#FFFFFF;}

.astral{color:#FFFF80;}
.darkness{color:#8A5300;}
.nature{color:#80FF00;}
.fire{color:#FF5300;}
.ice{color:#00FFFF;}
.storm{color:#8080FF;}
.iron{color:#C0C0C0;}


.pagination{
    position:fixed;
    display:flex;
    background-color:#151515;
    color: white;
    text-align:center;
    bottom: 0;
    right:0;
    border-top: #112 5px double;
    padding-left:8px;
    padding-right:8px;
    padding-bottom:12px;
    font-size:18px;
}
.prev_next{
    padding-right: 8px;
    padding-left: 4px;
}
.pagination a, .pagination a:visited{
    color: #dfd391;
}
.pagination a:hover {
    color: #fff3b1;
    padding-top:0px;
}
.pagination a {
    padding-top:4px;
    padding-bottom: 4px;
}
.pagination span {
    color: #aaa;
}
.individual_pages {
    display:inline-flex;
    margin-right: 8px;
}

.individual_pages span{
    background-color: #333;
}
.individual_pages * {
    display: inline-block;
    width: 36px;
    font-size:18px;
    border-right: 1px solid #666;
    padding-left: 1px;
}

.individual_pages :last-child {
    border-right: unset;
}

.search_container{
    margin:auto;
    display:grid;
    width:600px;
    background: #4D3F33;
    color:white;
    border: #112 5px double;
    overflow: hidden;
    
    grid-template-areas: 
        "h h h h h h h h h h h" 
        "l l l l l r r r r r r" 
        "l l l l l r r r r r r" 
        "l l l l l r r r r r r" 
        "l l l l l r r r r r r" 
        "l l l l l r r r r r r" 
        "l l l l l f f f f f f" 
        "l l l l l f f f f f f";
}

.search_container input:checked + .approved{
    background-color:black;
    border-color: green;
}
.search_container input:checked + .unapproved{
    background-color:black;
    border-color: red;
}


.search_container input:checked + *{
    background-color:black;
    border-color: currentColor !important;
}
.search_topic{
    border: 1px solid black;
    grid-column: 1 / -1;
}
.search_header{
    padding-top:4px;
    border-bottom: #112 5px double;
    padding-bottom: 4px;
    grid-area: h;
}
.search_submit_container{
    grid-area: f;
    height:100%;
}
.search_header, .search_submit_container{
    width:100%;
    margin:auto;
    text-align: center;
    background:#151515;
}
.search_sub{
    display:grid;
    border: #112 5px double;
    text-align:center;
    background: #151515;
    text-shadow: -1px 0 1px black, 0 2px 1px black, 0 -1px 1px black, 2px 0 1px black;
}
.rarity.search_sub{
    grid-template-columns: 80px 80px 80px;
    height: 60px;
    width: 240px;
}
.element.search_sub{
    grid-template-columns: 80px 80px 80px;
    height: 90px;
    width: 240px;
}
.search_sub p{
    width:70px;
    height:20px;
    user-select: none;
    border: 1px solid black;
    padding: 4px;
    background: #4D3F33;
    font-size: 16px;
    font-family: PxPlus_IBM_VGA;
}

.search_sub input{
    position:absolute;
    width:80px;
    height:20px;
    opacity:0;
    pointer-events:none;
}
#name{
    padding: 1px;
    padding-left: 2px;
    width: 190px;
}
.inline{
    display: inline-block;
    padding: 0;
    margin: 0;
}
.search_controls{
    background:#151515;
    text-shadow: -1px 0 1px black, 0 2px 1px black, 0 -1px 1px black, 2px 0 1px black;
    position: relative;
}
.search_controls p:hover, .chk:hover + p {
    margin-top:-2px;
    margin-left:-2px;
    border-right-color: #2B221B;
    border-bottom-color: #2B221B;
    border-right-width: 2px;
    border-bottom-width: 2px;
}
.search_controls.left{
    width: 250px;
    grid-area:l;
    
}
.search_controls.right{
    width: 340px;
    border: #112 5px double;
    grid-area:r;
}
.family_only{
    height: 30px;
    z-index:0;
}
.family_only *{
    display:inline-block;
}
.family_only p{
    width:240px;
    height:20px;
    user-select: none;
    border: 1px solid black;
    padding: 4px;
    background: #4D3F33;
    margin-bottom: 1px;
}
input.rad{
    position:absolute;
    z-index:-1;
    opacity: 0;
}
.family_only input.chk{
    position: absolute;
    height: 30px;
    width:260px;
    opacity: 0;
    z-index:9;
}
#full_header{
    margin: auto;
    width:100%;
    min-height:180px;
    background-image: url("/static/Burled_mappa_pxr128bc.jpg");
    background-position-y: 400px;
    border-bottom: 1px solid #aaa;
    margin-bottom:8px;
}
#search_form{
    margin:auto;
    vertical-align: top;
    min-width:610px;
}
#main_navigation_box{
    display:table-caption;
    position: absolute;
    top:0;
    left:0;
    
    padding: 10px;
    background: #0a0a11;
    border: #555 5px double;
    vertical-align: top;
    text-align:center;
    
    border-top: unset;
    border-left: unset;
}
.navbutton {
    display: block;
    width: 128px;
    border:2px solid #5b5b5b;
    padding-left:4px;
    padding-top: 3px;
    padding-bottom: 3px;
    text-decoration: none;
    letter-spacing: 1px;
    color: #000;
    background-color: #CCC;
    font-size: 15px;
    font-family: Verdana;
    text-align: center;
}

.navbutton:hover{
    cursor: pointer;
    animation: rattle .105s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
.navbutton:active {
    background-color: gray;
    color: black;
}

#login_box{
    position: absolute;
    top:0;
    right:0;
    
    display: inline-block;
    font-size: 16px;
    text-align:center;
    color: white;
    background: #0a0a11;
    padding:6px;
    border: #555 5px double;
    
    animation-duration: 6s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
    animation-timing-function: ease-in;
    transform-origin:0 100%;
}
#login_box input{
    width:200px;
    display:block;
    font-size: 16px;
}
@keyframes fall {
	0% {
        
	}
    10% {
        animation-timing-function: ease;
        transform: rotateZ(100deg);
    }
    15% {
        transform: rotateZ(81deg);
    }
    20% {
        animation-timing-function: ease;
        transform: rotateZ(93deg);
    }
    25% {
        transform: rotateZ(87deg);
    }
    30% {
        animation-timing-function: ease;
        transform: rotateZ(91deg);
    }
    35% {
        transform: rotateZ(89deg);
    }
    40% {
        animation-timing-function: ease;
        transform: rotateZ(91deg);
    }
    50%{
        transform: rotateZ(90deg);
    }
    55%{
        transform: rotateZ(90deg);
    }
    75%{
        transform: rotateZ(90deg) translateX(2000px);
    }
    76%{
        transform: scale(0);
    }
    100%{
        transform: scale(0);
    }
    
}


#one_form{
    display: grid;
}
#pee{
    text-align:center;
    padding-bottom:12px;
    padding-top: 12px;
    border: 4px double black;
}
.uploader_container textarea, .uploader_container input{
    background: #315077;
    color: gold;
    font-weight: bold;
    padding: 2px;
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 0px -1px 1px black;
    border: 1px solid black;
    resize: none;
}

.uploader_container{
    padding:16px;
    padding-top:0;
    width:400px;
    margin-top:16px;
    margin-left: auto;
    margin-right: auto;
    background: #372F28;
    border: 1px solid black;
    color: white;
    text-shadow: 1px 1px 1px black, -1px 1px 1px black, 0px -1px 1px black;
}

.discuss_container{
    margin-top:8px;
    width:100%;
    background-color: #222;
}
.discuss_comment{
    display:inline-block;
    width:1000px;
    margin-left: 200px;
    margin-bottom:4px;
    background-color: #0a0a11;
    color: white;
    padding:4px;
}
.com_obj_name{
    display:inline-block;
    height: 40px;
    width: 160px;
    vertical-align: top;
    margin-left: 4px;
}
.com_head{
    display:inline-block;
}
.com_date{
    display:inline-block;
    margin:0;
    padding:0;
    margin-left:12px;
    color: #888;
}
.com_name{
    display:inline-block;
    margin-top:0;
    margin-bottom:0;
    margin-left:8px;
    font-family: arial,verdana,sans-serif;
    font-weight:700;
    font-size:15px;
    color: #e8ad1b;
}
.com_text{
    display:inline-block;
    font: normal 14px arial,sans-serif;
    padding-bottom:4px;
}
.delete_button{
    display:inline-block;
    height: 24px;
}
.discuss_comment .com_text{
    width: 800px;
}
.discuss_comment pre{
    display:block;
    margin-left: 8px;
}
.discuss_form{
    
    display:inline-block;
    width:1000px;
    margin-left: 10vw;
    border: 2px solid black;
    background-color: #0a0a11;
    color: white;
    padding:4px;
    margin-bottom:64px;
}
.discuss_form textarea{
    padding: 8px;
    background-color: #0a0a11;
    color: white;
    font: normal 14px arial,sans-serif;
}
.discuss_form #id_submit{
    position:relative;
    height:30px;
    width:200px;
    background-color: #0a0a11;
    color: white;
    border: 1px solid white;
}
#id_submit:hover{
    cursor: pointer;
    animation: rattle .105s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}
#id_submit:active {
    background-color: gray;
    color: black;
}

.editable_name{
    display:inline-block;
    vertical-align:top;
    width: 100px;
    margin-left:4px;
}
.editable{
    display:inline-block;
    background:grey;
    border:1px solid black;
    vertical-align:top;
}