﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

@font-face {
    font-family: "Bookinsanity";
    /*src: local("Bookinsanity Remake"), local("Bookinsanity"), url("../fonts/Bookinsanity.otf"), format('opentype');*/
    src: local("Bookinsanity Remake"), local("Bookinsanity"), url("../fonts/Bookinsanity.otf")/* url("https://raw.githubusercontent.com/jonathonf/solbera-dnd-fonts/master/Bookinsanity/Bookinsanity.otf")*/ format("opentype");
}

@font-face {
    font-family: "Nodesto Caps Condensed";
    /*src: local("Nodesto Caps Condensed"), url("../fonts/Nodesto Caps Condensed.otf"), format('opentype');*/
    src: local("Nodesto Caps Condensed"), url("../fonts/Nodesto Caps Condensed.otf") /*url("https://raw.githubusercontent.com/jonathonf/solbera-dnd-fonts/master/Nodesto%20Caps%20Condensed/Nodesto%20Caps%20Condensed.otf")*/ format("opentype");
}

@font-face {
    font-family: "Scaly Sans";
    /*src: url("Scaly Sans.woff"), format('woff');*/
    src: local("Scaly Sans Remake"), local("Scaly Sans"), url('../fonts/Scaly Sans.otf') /*url("https://raw.githubusercontent.com/jonathonf/solbera-dnd-fonts/master/Scaly%20Sans/Scaly%20Sans.otf")*/ format("opentype");
}

body {
    background-color: white;
    animation: whiteOut 6s;
    /*    background-image:url(grunge-banner.png);
    background-repeat:no-repeat;
    background-position-x:left;
    background-position-y: top;*/
}

@keyframes whiteOut{
    0%{
        background-color: black;
    }
    50%{
        background-color: black;
    }
    100%{
        background-color: white;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.page {
    background-color: white;
    animation: fadeIn 3s;
    width: stretch;
}

article {
    background-image: url(grunge-footer.png);
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: bottom;
    padding-bottom: 60px;
    min-height: calc(100vh - 160px);
}

.titlebar {
    position: sticky;
    top: 0;
    z-index: 1;
    /*    background-color: #000000;
    border-bottom: 1px solid #d6d5d5;*/
    display: flex;
    align-items: center;
    padding-left: 1.5rem;
    background-image: url(grunge-banner.png);
    background-repeat: no-repeat;
    background-position-x: left;
    background-position-y: top;
}


.title {
    color: red;
    font-family: 'Nodesto Caps Condensed';
    font-size: 54px;
    float: left;
    width: 100%;
    margin-left: 8px;
    white-space: nowrap;
    background: linear-gradient(135deg, red, red 48%, white 49%, white 51%, red 52%, red 100%);
    background-size: 1200px, 1200px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 12s linear infinite;
}

@keyframes shine {
    0% {
        background-position-x: -600px;
    }

    100% {
        background-position-x: 600px;
    }
}


html, body {
    font-family: Bookinsanity;
}

footer {
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: black;
    color: white;
    font-family: 'Scaly Sans';
    text-align: center;
    border: solid;
    border-color: black;
    border-width: 2px;
    margin-top: -1px;
    position: relative;
    left: 0;
    bottom: 0;
    width: 100%;
}

h1{
    font-family: Nodesto Caps Condensed;
    text-align: left;
    color:red;
}

h1:focus {
    outline: none;
}

label{
    font-weight: bold;
}

.rollResult{
    display: inline-block;
}

.diceRoll {
    border: 1px;
    border-style: solid;
    border-radius: 6px;
    margin-left: 1px;
    display: inline-block;
    text-align: center;
    min-width: 27px;
    animation: rollDice 300ms ease-out forwards;
}

@keyframes rollDice{
    to{
        transform: rotate(360deg);
    }
}

.diceRoll:hover{
    border-width: 2px;
    font-weight: bold;
}

.discardedDiceRoll{
    color: lightgray;
    border-color: lightgray;
}

.rollTotal{
    text-decoration: underline 2px;
    font-weight:bold;
}

.criticalHit {
    color: red;
    font-weight: bold;
    display: inline-block;
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

.pinnedValue{
    color: darkgray;
}

.pinnedUp{
    color: green;
}

.pinnedDown{
    color: red;
}

input {
    width: 3rem;
    outline: 0;
    border-width: 0 0 1px 0;
    border-color: lightgray;
    position: relative;
    background-color: transparent;
    text-align: center;
}

.nameInput{
    width: 16rem;
    text-align: left;
}

@media (pointer: fine) {

    .diceNumberInput {
        text-align: right;
    }
}

select {
    outline-width: 0;
    border-width: 0;
    outline-color: lightgray;
    border-color: lightgray;
    position: relative;
    background-color: transparent;
}

select.tableSelect{
    text-align:center;
    font-weight: bold;
    position:center;
}

.tableTitleContainer{
    text-align:center;
}

label{
    position:relative;
}

button {
    background-color: #c2c2c2;
    color: white;
    border-width: 2px;
    border-color: #a2a2a2;
    border-style: solid;
    border-radius: 3px;
    margin: 0;
    position: relative;
    outline: 0;
    font-family:'Scaly Sans';
}

button:hover{
    background-color:red;
    border-color: black;
}

.lockedButton{
    background-color: #f2f2f2;
    border-color: #e2e2e2;
}

.lockedButton:hover {
    background-color: #f2f2f2;
    border-color: #e2e2e2;
}

[tooltip] {
    position: relative;
}

    [tooltip]::before {
        border-left: 5px solid transparent;
        border-top: 5px solid #000000;
        border-right: 5px solid transparent;
        height: 0px;
        width: 0px;
        content: '';
        top: -7px;
        left: 40%;
        z-index: 1001;
        animation: tooltips-vert 300ms ease-out forwards;
        opacity: 0;
        animation-delay: 0.5s;
        pointer-events: none;
    }

    [tooltip]::after {
        content: attr(tooltip);
        top: -43px;
        left: -5px;
        background: #000000;
        border-radius: 6px;
        padding: 6px 12px;
        white-space: nowrap;
        color: white;
        font-weight: normal;
        font-family: 'Scaly Sans';
        z-index: 1000;
        box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
        animation: tooltips-vert 300ms ease-out forwards;
        opacity: 0;
        animation-delay: 0.5s;
        pointer-events: none;
    }

    [tooltip]::after, [tooltip]::before {
        position: absolute;
        display: none;
    }

    [tooltip]:hover::after, [tooltip]:hover::before {
        display: block;
    }

@keyframes tooltips-vert {
    from{
        opacity: 0;
        transform: translate(0, .5em);
    }
    to {
        opacity: .8;
        transform: translate(0, 0);
    }
}

.columnLayout {
    column-count: 2;
}

.ability40k{
    border-width: 2px;
    border-color: lightgray;
    border-style: dotted;
    border-radius: 5px;
    font-variant: small-caps;
    font-weight: bold;
    color: #333333;
    padding:2px;
    display: inline-block;
}

.vs{
    text-align: center;
    justify-self: center;
    align-self: center;
}

table {
    font-family: 'Scaly Sans';
    table-layout: fixed;
    text-align: center;
    display: inline-block;
    margin: auto;
}

.table40k {
    border-spacing: 5px 0px;
    border-collapse: separate;
    justify-self: center;
}

.inputSet40k{
    justify-self:center;
}

.cell40k{
    padding-left: 17px;
    padding-right: 2px;
}

.diceCell{
    padding-left: 2px;
    padding-right: 5px;
}

.table40k td{
    border:1px solid;
}

.table40k thead{
    background-color: #333333;
    color: white;
}

tbody tr:nth-child(odd) {
    background-color: #e0e0e0e0;
}

.statsBox tr:nth-child(odd) {
    background-color: transparent;
}

.statsBox td:nth-child(1){
    text-align: left;
    font-weight: bold;
}

.statsBox td:nth-child(2) {
    text-align: right;
}

.rollInput {
    display: inline-block;
    position: relative;
}

.rollInput::after {
    content: '+';
    position: absolute;
    top: 2px;
}

@media(min-device-width:481px){
    .rollInput::after {
        right: 1em;
    }

    .cell40k{

    }
}

tr.highlightable:hover {
    color: white;
    background-color: #444444;
}

tr.startSection{
    border-top: 1px solid grey;
}

th, td{
    padding: 5px 15px 5px 15px;
}

.inputHeader{
    min-width:50%
}

.barChart{
    display:table;
    width: 100%;
    max-width: 900px;
}

    .barChart tbody tr {
        border-left: 2px solid;
        border-bottom: 2px solid;
        border-color: black;
        padding: 0;
        margin: 0;
    }

.barRow td {
    padding: 0;
    margin: 0;
    height: 300px;
    vertical-align: bottom;
    max-width: 50px;
}

.bar {
    margin: auto;
    background-color: red;
    width: 100%;
    height: 0px;
    max-width: 50px;
    display: block;
    transition: height 0.5s;
    animation: barGrow 0.5s;
    transform-origin: bottom;
    grid-column-start: 1;
    grid-row-start: 1;
}

.barFaded {
    margin: auto;
    background-color: grey;
    width: 100%;
    height: 0px;
    max-width: 50px;
    display: block;
    transition: height 0.5s;
    animation: barGrow 0.5s;
    transform-origin: bottom;
    grid-column-start: 1;
    grid-row-start: 1;
}

.overlapGrid {
    width: 100%;
    height: 100%;
    display: grid;
    align-items: end;
    align-content:end;
}

@keyframes barGrow{
    0%{
        transform: scaleY(0);
    }
    100%{
        transform: scaleY(1);
    }
}

.bar:hover{
    outline-width: 2px;
    outline-color:black;
    outline-style:solid;
    z-index: 1;
}

.barChart tfoot{
    vertical-align: top;
}

/*.animateRow {
    animation: tablerow-appear 300ms ease-out forwards;
}

.animateRow2 {
    animation: tablerow-appear2 300ms ease-out forwards;
}

@keyframes tablerow-appear {
    from {
        opacity: 0;
        transform: translate(0, .5em);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}

@keyframes tablerow-appear2 {
    from {
        opacity: 0;
        transform: translate(0, .5em);
    }

    to {
        opacity: 1;
        transform: translate(0, 0);
    }
}*/

a {
    text-decoration: none;
}

a, .btn-link {
    color: red;
    font-weight: bold;
    background: linear-gradient(135deg, red, red 47%, white 49%, white 50%, red 52%, red 100%);
    background-size: 400px, 400px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /*animation: linkshine 12s linear infinite;*/
}

    a:hover {
        color: white;
        text-shadow: 0 0 5px #ff9999aa;
    }

@keyframes linkshine {
    0% {
        background-position-x: -200px;
    }

    100% {
        background-position-x: 200px;
    }
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.topMenu {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    color: white;
    float: right;
    display:inline-block;
    text-align: right;
    width:50%;
}

.topMenu a{
    color: white;
    font-family: 'Scaly Sans';
}

/*Grid Layout*/

.gridContainer {
    display: grid;
    gap: 50px;
    align-items: center;
    max-width: 1400px;
    margin: auto;
    ''background-color: black;/p'[]'
}

.inputGrid{
    align-items: start !important;
    align-content: start;
}

td.matchedCell{
    border: 2px solid red;
}

@media (min-width:900px) {

    .gridContainer {
        grid-template-columns: auto auto auto;
    }

    .grid-damageLimits {
        grid-area: 1 / 1 / span 1 / span 1;
    }

    .grid-distributionChart {
        grid-area: 2 / 1 / span 1 / span 2;
    }

    .grid-vsACTable {
        grid-area: 1 / 3 / span 2 / span 1
    }

    .grid-TvsSvTable{
        grid-area: 1 / 1 / span 2 / span 1
    }

    .grid-distributionChart40k {
        grid-area: 1 / 1 / span 2 / span 1;
    }
}

@media (max-width:900px)  {

    .gridContainer {
        grid-template-columns: auto;
    }

    .grid-damageLimits {
        grid-area: 1 / 1 / span 1 / span 1;
    }

    .grid-distributionChart {
        grid-area: 3 / 1 / span 1 / span 2;
    }

    .grid-vsACTable {
        grid-area: 1 / 2 / span 2 / span 1
    }

    .grid-distributionChart40k {
        grid-area: 1 / 1 / span 2 / span 1;
    }
}

@media (max-width:500px) {

    .gridContainer {
        grid-template-columns: auto
    }

    .grid-damageLimits {
        grid-area: 1 / 1 / span 1 / span 1;
    }

    .grid-distributionChart {
        grid-area: 3 / 1 / span 1 / span 1;
    }

    .grid-vsACTable {
        grid-area: 2 / 1 / span 1 / span 1
    }
}

.grid-monsters{
    margin: auto;
}
/*Checkboxes*/
/* Customize the label (the container) */
.checkContainer {
    display: inline-block position: relative;
    padding-left: 30px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-weight: normal;
}

    /* Hide the browser's default checkbox */
    .checkContainer input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background-color: #f2f2f2;
    border-width: 2px;
    border-color: #a2a2a2;
    border-style: solid;
    border-radius: 3px;
}

.checkContainer input:checked ~ .checkContainer{
    font-weight: bold;
}

/* On mouse-over, add a grey background color */
.checkContainer:hover input ~ .checkmark {
    background-color: #c2c2c2;
    border-color: black;
}

/* When the checkbox is checked, add a red background */
.checkContainer input:checked ~ .checkmark {
    background-color: red;
    border-color: black;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkContainer input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.checkContainer .checkmark:after {
    left: 6px;
    top: 1px;
    width: 7px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.loadingFrame {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
}

.loadingText {
    margin: auto;
    color: white;
    font-size: 40px;
    font-family: 'Nodesto Caps Condensed';
    -webkit-box-reflect: below -30px linear-gradient(transparent, rgba(0,0,0,.2));
}

    .loadingText span {
        position: relative;
        display: inline-block;
    }

        .loadingText span:nth-child(1) {
            animation: waviy 1s infinite;
            animation-delay: 0.1s;
        }

        .loadingText span:nth-child(2) {
            animation: waviy 1s infinite;
            animation-delay: 0.2s;
        }

        .loadingText span:nth-child(3) {
            animation: waviy 1s infinite;
            animation-delay: 0.3s;
        }

        .loadingText span:nth-child(4) {
            animation: waviy 1s infinite;
            animation-delay: 0.4s;
        }

        .loadingText span:nth-child(5) {
            animation: waviy 1s infinite;
            animation-delay: 0.5s;
        }

        .loadingText span:nth-child(6) {
            animation: waviy 1s infinite;
            animation-delay: 0.6s;
        }

        .loadingText span:nth-child(7) {
            animation: waviy 1s infinite;
            animation-delay: 0.7s;
        }

        .loadingText span:nth-child(8) {
            animation: waviy 1s infinite;
            animation-delay: 0.8s;
        }

        .loadingText span:nth-child(9) {
            animation: waviy 1s infinite;
            animation-delay: 0.9s;
        }

        .loadingText span:nth-child(10) {
            animation: waviy 1s infinite;
            animation-delay: 1s;
        }

        .loadingText span:nth-child(11) {
            animation: waviy 1s infinite;
            animation-delay: 1.1s;
        }

        .loadingText span:nth-child(12) {
            animation: waviy 1s infinite;
            animation-delay: 1.2s;
        }

@keyframes waviy {
    0%,40%,100% {
        transform: translateY(0)
    }

    20% {
        transform: translateY(-5px)
    }
}