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

@font-face {
    font-family: 'BettterCS';
    src: url('../fonts/font.ttf');
}

html, body {
    font-family: BettterCS,'Helvetica Neue', Helvetica, Arial, sans-serif;
    user-select: none;
}

a, .btn-link {
    color: #0366d6;
}

.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: #2a3037;
    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;
    }

.clickable {
    cursor: pointer;
}

.player-image {
    width: 100%;
    max-height: 20rem;
    min-width: 7rem;
}

.enemy-image {
    max-height: 20rem;
}

.btn-attack {
    position: relative;
}

@media (max-width: 991px) {
    .position-bottomright, .position-bottomcenter {
        bottom: 5rem !important;
    }

    .btn-attack {
        position: fixed;
        right: calc(9% - 1.5rem);
        bottom: 6rem;
        min-width: 47px;
        z-index: 10;
    }

    .enemy-health {
        position: fixed;
        right: 1.5rem;
        bottom: 16.5rem;
        width: calc(20% + 1rem);
        z-index: 10;
    }

    .player-health {
        position: fixed;
        right: 1.5rem;
        bottom: 12.5rem;
        width: calc(20% + 1rem);
        z-index: 10;
    }

    .panel-background {
        background-color: rgba(var(--bs-dark-rgb),0.7) !important;
        position: fixed;
        right: 0.5rem;
        bottom: 5.5rem;
        width: calc(20% + 3rem);
        height: 15rem;
        z-index: 9;
        display: block !important;
        border-radius: var(--bs-border-radius-lg);
        filter: blur(2px);
    }

    .map-height {
        height: calc(100vh - 210px) !important;
    }

    .dungeon-height {
        height: calc(100vh - 210px) !important;
    }

    .content {
        margin-bottom: 6rem !important;
    }
}

.max-h-100px {
    max-height: 100px;
    height: 100px;
}

.blazored-toast {
    background-color: rgba(var(--bs-dark-rgb),var(--bs-bg-opacity)) !important;
    --bs-bg-opacity: 1;
}

.blazored-modal {
    background-color: rgba(var(--bs-dark-rgb),var(--bs-bg-opacity)) !important;
    --bs-bg-opacity: 1;
    margin-top: 0.5rem !important;
}

.blazored-toast-message, .blazored-toast-close-icon {
    color: white;
}

.bg-gray {
    background-color: #2a3037 !important;
    --bs-bg-opacity: 1;
}

@keyframes loading-animation {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.loading-animation > div > div {
    position: absolute;
    border-radius: 50%;
}

    .loading-animation > div > div:nth-child(1) {
        top: 30px;
        left: 30px;
        width: 140px;
        height: 140px;
        background: #2a3037;
    }

    .loading-animation > div > div:nth-child(2) {
        top: 39.8px;
        left: 79px;
        width: 42px;
        height: 42px;
        background: #0dcaf0;
        animation: loading-animation 3.03s linear infinite;
        transform-origin: 21px 60.2px;
    }

.loadingio-spinner-disk {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
}

.loading-animation {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

    .loading-animation div {
        box-sizing: content-box;
    }

.player-view {
    margin-left: -5rem;
    margin-bottom: 2.3rem;
}

.map-height {
    height: calc(100vh - 5.5rem);
}

.dungeon-height {
    height: calc(100vh - 9.5rem);
}

.map-width {
    width: 90rem;
}

.bm-container {
    z-index: 1100 !important;
}

.blazored-toast-container {
    z-index: 1500 !important;
}