body {
    margin: 25px;
    background-color: #111;
    color: white;
}

div.card:hover {
    transform: scale(1.2);
    animation-name: scaleup;
    animation-duration: 0.65s;
    animation-iteration-count: 1;
    z-index: 665 !important;
}

@keyframes scaleup {
    from {
        transform: scale(1);
    } to {
        transform: scale(1.2);
    }
}

div.card {
    border: solid 3px white;
    border-radius: 10px;
    box-shadow: 0px 0px 5px black;
    width: 300px;
    height: 420px;
    float: left;
    margin: 20px;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

div.card div.bg {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    background-size: 300px 300px;
    background-repeat: no-repeat;
    background-position: top;
}

div.card div.name {
    position: absolute;
    bottom: 90px;
    height: 40px;
    width: 100%;
    text-align: center;
    color: white;
    text-shadow: 1.5px 1.5px black;
    font-size: 22px;
    font-family: "Aref Ruqaa Ink", "Roboto";
    box-shadow: 0px 0px 5px black;
    opacity: 1
}

div.card div.innershadow {
    position: absolute;
    left: 0px;
    top: 0px;
    height: 100%;
    width: 100%;
    box-shadow: 0px 0px 5px inset black;
    opacity: 1;
}

div.name div.namep {
    position: absolute;
    height: 80px;
    width: 100%;
    text-align: left;
    color: white;
    text-shadow: 1.5px 1.5px 2px black;
    font-size: 22px;
    font-family: "Cinzel Decorative", "Roboto";
    opacity: 1;
    font-weight: bold;
    font-size: 16px;
    top: 1px;
}

div.name div.title {
    position: absolute;
    height: 80px;
    width: 100%;
    text-align: left;
    color: white;
    text-shadow: 1.5px 1.5px 2px black;
    font-size: 14px;
    font-family: "Aref Ruqaa Ink", "Roboto";
    opacity: 1;
    top: 16.5px;
}

div.card div.grade {
    position: absolute;
    top: -1px;
    left: 165px;
    height: 32px;
    width: 140px;
    line-height: 32px;
    box-shadow: 0px 0px 5px black;
    border-radius: 0px 0px 0px 15px;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px black;
    font-size: 28px;
    font-family: "Cinzel Decorative", "Roboto";
}

div.lowercard {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 90px;
    opacity: 0.75;
}

div.lowercard-nbg {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 90px;
}

div.lowercard-nbg table {
    position: absolute;
    left: 2.5px;
    top: 2.5px;
    width: calc(100% - 5px);
    font-size: 10px;
    text-align: center;
}

div.lowercard-nbg table tr td {
    background-color: rgb(25,25,25,0.65);
    border-radius: 10px;
    box-shadow: inset 0px 0px 3px black;
}

div.lowercard-nbg table tr td table {
    position: relative;
    border-collapse: collapse;
}

table * table tr th, table * table tr td {
    font-family: "Roboto Mono";
    margin-left: 1.5px;
    margin-right: 1.5px;
}

table * table tr th {
    border-radius: 10px 10px 0px 0px;
    font-size: 10px;
    padding: 2px;
    padding-bottom: 1px;
}

table * table tr td {
    border-radius: 0px 0px 10px 10px;
    padding-top: 1px;
    padding-bottom: 6px;
    font-size: 12px;
    background-color: transparent !important;
    box-shadow: none !important;
    line-height: 16px;
}

div.hp {
    position: absolute;
    left: 0px;
    bottom: 0px;
    height: 30px;
    width: 70px;
    font-family: "Roboto Mono";
    box-shadow: 0px 0px 3px black;
    border-radius: 0px 10px 0px 0px;
    font-size: 6px;
    text-align: center;
}

div.inhp {
    position: absolute;
    width: calc(100% - 8px);
    left: 2.5px;
    right: 2.5px;
    top: 5px;
    text-align: center;
    font-family: "Roboto Mono";
    background-color: rgb(25,25,25,0.45);
    border-radius: 0px 5px 0px 5px;
    font-size: 16px;
    box-shadow: 0px 0px 5px inset black;
}

div.inac {
    position: absolute;
    width: calc(100% - 8px);
    left: 5.5px;
    right: 2.5px;
    top: 5px;
    text-align: center;
    font-family: "Roboto Mono";
    background-color: rgb(25,25,25,0.45);
    border-radius: 5px 0px 5px 0px;
    font-size: 16px;
    box-shadow: 0px 0px 5px inset black;
}

div.ac {
    position: absolute;
    right: 0px;
    bottom: 0px;
    height: 30px;
    font-size: 6px;
    text-align: center;
    width: 70px;
    font-family: "Roboto Mono";
    box-shadow: 0px 0px 3px black;
    border-radius: 10px 0px 0px 0px;
}

div.collection {
    position: absolute;
    left: 100px;
    right: 100px;
    width: calc(100% - 200px);
    height: 32px;
    font-family: "Cinzel Decorative";
    bottom: 0px;
    font-size: 12px;
    text-align: center;
}

.overlay {
    display: none;
    position: absolute;
    left: 0px;
    top: 0px;
    background-color: rgb(0,0,0,0.85);
    height: 100%;
    width: 100%;
    z-index: 666;
    background: radial-gradient(circle, rgba(0,0,0,1) 0%, rgba(25,25,25,0.85) 100%);
}

.displayed {
    display: block !important;
}

.overlay table {
    position: absolute;
    left: 17%;
    right: 17%;
    width: 66%;
    top: 150px;
    height: 66%;
    border-spacing: 10px;
    box-shadow: 0px 0px 50px black;
    background-color: black;
    table-layout: fixed;
}

.overlay table tr td {
    background-color: #111318;
    border: solid 1px #31271e;
    position: relative;
    font-family: "Cinzel Decorative";
    text-align: center;
}

.big {
    font-size: 24px;
}

.overlay table tr td div.roleicon {
    margin: 0px;
    padding: 0px;
    background-image: url('../images/role_melee.png');
    background-size: 90px;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    border-right: solid 1px #31271e;
    height: 75px;
    width: 75px;
    position: absolute;
    left: 0px;
    top: 0px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -ms-transform: translateZ(0);
    /* IE 9 */
    -webkit-transform: translateZ(0);
    /* Chrome, Safari, Opera */
    transform: translateZ(0);
}

.avatarouter {
    background: black;
    border-radius: 50%;
    height: 150px;
    width: 150px;
    position: absolute;
    left: calc(50% - 75px);
    top: -76px;
    border: solid 1px #31271e;
}

.avatarinner {
    background: rgb(64,53,18);
    background: linear-gradient(180deg, rgba(64,53,18,1) 0%, rgba(182,169,124,1) 33%, rgba(186,173,128,1) 66%, rgba(64,53,18,1) 100%);
    border-radius: 50%;
    position: absolute;
    left: 5px;
    top: 5px;
    height: 140px;
    width: 140px;
}

.avatarinnerinner {
    background: black;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 3px;
    height: 134px;
    width: 134px;
}

.avatar {
    position: absolute;
    left: 2px;
    top: 2px;
    height: 130px;
    width: 130px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 50%;
    overflow: hidden;
}

.leftquote {
    height: 20px;
    width: 20px;
    line-height: 20px;
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 36px;
    color: silver;
}

.rightquote {
    height: 20px;
    width: 20px;
    line-height: 20px;
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 36px;
    color: silver;
}

p.lore {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    height: calc(100% - 20px);
    top: 15px;
    bottom: 5px;
    overflow-y: scroll;
    overflow-x: hide;
    -ms-overflow-style: none;
    scrollbar-width: none;
    text-align: left;
    font-family: 'Lora', "Roboto", "Aref Ruqaa Ink";
}

p.lore::-webkit-scrollbar {
    display: none;
}

p.lore::first-letter {
    color: #baad80;
    initial-letter: 2;
    padding-right: 3px;
}

.quote {
    position: relative;
    top: 30px;
    font-size: 20px;
}

.nation-name {
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 50px;
    border-top: solid 1px #31271e;
    background-color: #111318;
    font-weight: bold;
    font-size: 24px;
    line-height: 50px;
    width: 100%;
    text-align: center;
}

.nation-image {
    position: absolute;
    top: 0px;
    left: 0px;
    height: calc(100% - 51px);
    width: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nation {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.no-overflow {
    overflow: hidden;
}

div.planets {
    height: 150px;
    width: 150px;
    background-image: url("../images/world.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    left: 0px;
    top: 0px;
}

div.world_cover {
    height: 300px;
    width: 300px;
    transform: rotate(22.5deg);
    background-color: #111318;
    left: 100px;
    position: absolute;
    top: -50px;
}

div.world_name {
    height: 150px;
    width: calc(100% - 151px);
    line-height: 150px;
    padding-left: 50px;
    position: absolute;
    left: 75px;
    top: 0px;
    font-size: 36px;
    font-weight: bold;
}