﻿/* ========================================
    LAYOUT & GLOBAL STYLES
======================================== */

.svg-white {
    /* Invert 0 to 100% (black to white) and set brightness to max */
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}

body {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    flex: 1;
}

.margin-top {
    margin-top: 20px;
}

/* ========================================
    TYPOGRAPHY & FONTS
======================================== */

@font-face {
    font-family: roboto-font;
    src: url(../fonts/Roboto-Regular.ttf);
    font-size: 14px;
}

.navbar-font {
    font-family: roboto-font;
    font-size: 16px;
}

.stats-header-font {
    font-size: 24px;
}

.stats-body-font {
    font-size: 20px;
}

/* ========================================
    ADMIN VIEWS
======================================== */

.adjust-names-body {
    margin-top: 25px;
}

/* ========================================
    HOME VIEWS - USER HISTORY
======================================== */

.bg-gold {
    background-color: gold;
    color: black;
}

.bg-silver {
    background-color: silver;
    color: black;
}

.bg-bronze {
    background-color: sandybrown;
    color: black;
}

.team-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LIVE page style */
.ms-n2 {
    margin-left: -10px !important;
    border: 2px solid white;
}

.live-username {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live pulse animation */
.pulse-red {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 5px rgba(220, 53, 69, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Remove default accordion button focus blue shadow */
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

/* ========================================
    RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem;
    }

    .table td {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .mobile-squish {
        font-size: 0.7rem !important;
    }

    .team-label {
        max-width: 120px;
    }

    .score-mobile-squish {
        font-size: 0.7rem;
    }

    .mobile-row-to-column {
        flex-direction: column;
        align-items: center;
    }

    .scoreboard-username-squish {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .live-username {
        max-width: 140px;
    }

    .mobile-squish table {
        width: 100%;

    }

    .mobile-squish th, .mobile-squish td {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
