:root,
[data-bs-theme=light],
[data-bs-theme=dark] {
    --bs-border-radius: .375rem;
    --bs-border-radius-sm: .25rem;
    --bs-border-radius-lg: .5rem;
    --bs-border-radius-xl: .75rem;
    --bs-border-radius-xxl: 1rem;
    --liferp-radius: .375rem;
    --liferp-radius-lg: .5rem;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

#app {
    flex-shrink: 0;
    padding-bottom: 15px;
}

a {
    text-decoration: none;
}

h1,
.h1 {
    text-align: center;
    text-transform: uppercase;
}

.content {
    margin-top: 5rem;
    margin-bottom: 5rem;
}


/*
 * Navbar
 */
.navbar,
.footer {
    background: #1a1d20;
}

.navbar {
    font-size: 1.05rem;
    text-transform: uppercase;
}

.navbar .navbar-nav .nav-link {
    color: #eee;
}

.navbar-brand img {
    height: 70px;
}

.prism-nav-right .nav-item {
    margin-right: 1rem;
    display: inline-block;
    list-style: none;
}

.copy-address {
    border-radius: 5px;
    border: none;
    padding: 2px 5px;
    margin-bottom: 0;
    cursor: pointer;
}

@media (min-width: 991px) {
    .navbar-brand {
        margin-right: 0;
        position: absolute;
        top: 5px;
        left: 50%;
        width: 165px;
        transform: translateX(-50%);
        z-index: 50;
        transition: all 0.3s ease-in-out;
    }

    .navbar-collapse .navbar-nav {
        width: calc((100% - 165px) / 2);
    }

    .navbar-brand img {
        max-width: 100%;
        height: auto;
    }
}

.sub-navbar .btn-rounded {
    padding: 0.5em 1em;
    border-radius: 30px;
}

/*
 * Home
 */
.home-background {
    position: relative;
    height: 600px;
}

.background-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(50, 50, 50, 0.5);
}

.home-container .card,
.post-preview {
    position: relative;
    height: 100%;
}

.post-preview .title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(25, 25, 25, 0.7);
    font-size: 1.5rem;
    font-weight: 500;
}

.post-preview:hover .title {
    background: rgba(25, 25, 25, 0.9);
}

/*
 * LifeRPv2 rounded UI
 * Restores the softer default Azuriom/Bootstrap look while keeping the LifeRP colors.
 */
.card,
.modal-content,
.dropdown-menu,
.toast,
.alert,
.list-group,
.accordion,
.offcanvas,
.popover,
.tooltip-inner,
.nav-pills .nav-link,
.pagination .page-link,
.breadcrumb,
.progress,
.img-thumbnail,
.form-control,
.form-select,
.input-group-text,
.btn,
.badge {
    border-radius: var(--bs-border-radius) !important;
}

.card {
    overflow: hidden;
}

.card-header:first-child,
.list-group-item:first-child,
.accordion-item:first-of-type,
.accordion-button:first-of-type,
.dropdown-menu .dropdown-item:first-child,
.pagination .page-item:first-child .page-link {
    border-top-left-radius: var(--bs-border-radius) !important;
    border-top-right-radius: var(--bs-border-radius) !important;
}

.card-footer:last-child,
.list-group-item:last-child,
.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button.collapsed,
.dropdown-menu .dropdown-item:last-child,
.pagination .page-item:last-child .page-link {
    border-bottom-left-radius: var(--bs-border-radius) !important;
    border-bottom-right-radius: var(--bs-border-radius) !important;
}

.list-group-item,
.dropdown-item {
    overflow: hidden;
}

.btn,
.form-control,
.form-select,
.input-group-text,
.page-link {
    min-height: calc(1.5em + .75rem + 2px);
}

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

/* Shop/sidebar blocks and plugin widgets often use Bootstrap list groups/cards. */
.shop-sidebar,
.sidebar,
.widget,
.forum-card,
.forum-post,
.user-card,
.user-hover-card,
.steam-activity,
.steam-activity-card {
    border-radius: var(--bs-border-radius) !important;
    overflow: hidden;
}

.home-container .card,
.post-preview,
.post-preview img,
.preview-content {
    border-radius: var(--bs-border-radius-lg) !important;
    overflow: hidden;
}

.post-preview .title {
    border-bottom-left-radius: var(--bs-border-radius-lg);
    border-bottom-right-radius: var(--bs-border-radius-lg);
}

/*
 * Countdown plugin banner
 * Component inserted globally in views/layouts/base.blade.php.
 */
.liferpv2-countdown-banner {
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.liferpv2-countdown-banner .countdown-display {
    white-space: nowrap;
}

.liferpv2-countdown-banner .countdown-display .fw-bold {
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575.98px) {
    .liferpv2-countdown-banner .container {
        gap: .5rem !important;
    }

    .liferpv2-countdown-banner .countdown-display {
        gap: .25rem !important;
    }
}

