h1,h2,h3,h4,h5,header {
	font-family: 'Baloo 2',Helvetica;
	font-weight: 800;
}
.h2, .h4 {
    margin-top: 1rem;
}
.shadow-custom {
    box-shadow: 0 0 50px -12px rgba(0, 0, 0, 0.26); /* Customize the shadow color and opacity */
}
.shadow-custom-inner {
    --tw-shadow:inset 0 25px 50px -12px rgba(0, 0, 0, 0.06);
    box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),
    var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)
}
.bd-navbar {
    padding: .75rem 0;
    background-color: transparent;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15),inset 0 -1px 0 rgba(255,255,255,0.15)
}

.bd-navbar::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: block;
    content: "";
    background-image: linear-gradient(rgba(var(--bd-violet-rgb), 1), rgba(var(--bd-violet-rgb), 0.95))
}
.card, table {
	font-family: 'Baloo 2',Helvetica;
	font-weight: normal; 
}
.basis-0 {
    flex-basis: 0px;
}
.intro p {
    margin-top: 1rem;
    margin-bottom: 2rem;
}
.intro table {
    border-collapse: collapse;
    background-color: #f8f9fa; /* Light grey background */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Light shadow */
}

.intro td {
    border: 1px solid #e9ecef; /* Very light border */
    padding: 8px 12px;
}

.intro tbody tr:nth-child(odd) {
    background-color: #ffffff; /* Alternating row colors */
}
.nice-box {
    box-shadow: 0px 10px 20px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    outline: none;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    -webkit-backface-visibility: hidden;
    text-decoration: none;
    background: white;
}
.nice-box.text-white {
    background: rgba(250,250,250,0.10);
}
.nice-box.text-black {
    background: rgba(0,0,0,0.10);
}
a.nice-box {
    display: block;
}
.match-box {
    color: #262626;
    background: linear-gradient(to bottom right, rgb(230, 230, 230), rgb(245, 245, 245));
    box-shadow: 0px 5px 5px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    display: block;
    outline: none;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: left;
    -webkit-backface-visibility: hidden;
    position: relative;
    text-decoration: none;
}
.match-box.three {
    width: calc(33.333% - 1rem); /* Adjust the width as needed for spacing */
    /*margin: 0.5rem 0.5rem 4rem;*/
}
.match-box.two {
    width: calc(50% - 1rem); /* Adjust the width as needed for spacing */
    /*margin: 0.5rem 0.5rem 4rem;*/
}
.blur {
    filter: blur(10px);
}
.nice-box.nice-rotated {
	width: auto; 
	margin: 10px auto auto 20px;
	font-weight: bold; 
	font-size: 1.3em;
	padding: 6px;
	background: white;
	font-family: 'Baloo 2',Helvetica;
 	transform: rotate(-8deg);
}
.player-item {
    position: relative;
    transition: transform 1s cubic-bezier(0.82, -0.11, 0.36, 1);
}
.player-item > div {
    transition: background-color 1s ease-in-out
}
.player-item.animated {
    /* This class will be toggled to trigger the animation */
}
.bi-eye-slash, .bi-eye {
    position: absolute;  /* Ensure icons are stacked */
    transition: opacity 0.2s ease, visibility 0.2s;
    width: 12px; /* Ensure both SVGs have the same size */
    height: 12px;
    opacity: 0;
    visibility: hidden;
}
.bi-eye-slash {
    opacity: 1;
    visibility: visible;
}
.toggle-group {
    text-decoration: line-through;
}
.toggle-group.visible {
    text-decoration: none;
}
.toggle-group.visible .bi-eye {
    opacity: 1;
    visibility: visible;
}
.toggle-group.visible .bi-eye-slash {
    opacity: 0;
    visibility: hidden;
}
.numbers {

}
.numbers div {
    background: #000;
    box-shadow: 0px 10px 20px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    text-align: center;
    display: inline-block;
    position: relative;
    transition: transform 0.3s;
    line-height: 130%;
    letter-spacing: 0.11em;
    border-radius: 4px;
    color: white;
    font-family: Graduate, Helvetica;
}
.text-secondary {
	font-size: 1.2em;
}
.text-muted {
	font-variant: small-caps;
}

.table {
    border-collapse: separate;
    border-spacing:0 10px;
}
.border-light {
    border-color: #f3f3f3!important;
}
@media (max-width: 875.98px) {
    .display-1 {
        font-size: 3rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-2 {
        font-size: 2.75rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-3 {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-4 {
        font-size: 1.45rem;
        font-weight: 800;
        line-height: 1.2;
    }
}
@media (max-width: 400px) {
    .display-1 {
        font-size: 1.85rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-2 {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-3 {
        font-size: 1.75rem;
        font-weight: 800;
        line-height: 2.0;
    }

    .display-4 {
        font-size: 1.45rem;
        font-weight: 800;
        line-height: 1.2;
    }
}
    .display-3 {
        font-weight: 800;
    }
@media (min-width: 876px) {
	
    .display-4 {
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1.2;
    }

    .display-3 {
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 2.0;
    }
}
@media (min-width: 768px) {
	
    .col-scroll-overflow {
		height: 100vh; overflow-y: auto;
    }
}
    .col-scroll-overflow .container {
    	padding-bottom: 50px;
    	padding-top: 20px;
    }
	
	
/*Remove the scrollbar from Chrome, Safari, Edge and IE*/
::-webkit-scrollbar {
	width: 10px;
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c0c0c0; 
  border-radius: 5px;
}
* {
  -ms-overflow-style: none !important;
}
@media (min-width: 768px) {
    #roundsContainer {
        padding-bottom: 50vh;
    }
}
/*Bracket*/
#bracket {
    color: #262626;

    outline: none;
    border-radius: 8px;
    margin-bottom: 4rem;

  background-repeat: no-repeat;
  background-attachment: fixed;
}
#bracket.rr {

}
#bracket::-webkit-scrollbar {
    width: 6px;
    background: rgba(255,255,255, 0.01);
}
#bracket::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255, 0.2);
    border-radius: 100px;
}
#bracket::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255, 0.3);
}
#bracket::-webkit-scrollbar-track {
    background-color: rgba(255,255,255, 0.0);
}
.g-min-w {
    min-width: 20rem;
}
.game {
  margin-left: 5px;
  padding-top: 1px;
  padding: 4px;
  background: rgb(255 255 255 / 5%);
  margin-right: 5px;
    box-shadow: 0px 10px 20px rgb(10 33 65 / 5%), 0px 0px 2px rgb(0 0 0 / 13%);
    display: block;
    outline: none;
    border-radius: 8px;
    -webkit-backface-visibility: hidden;
    position: relative;
    text-decoration: none;
}
.game .card:nth-of-type(1) {
  margin-bottom: 4px;
}
.team {
  margin: 5px;
}
.game.hd {
    opacity: 0;
}
/*
.game-1 {
  margin-top: 20px;
}
.game-2:nth-of-type(1) {
  margin-bottom: 120px;
}
.game-3 {
  
}
.game.hd {
  opacity: 0;
}
.round-1 {
  margin-bottom: 20px;
}
.round-2 {
  margin-top: 70px;
}
.round-3 {
  margin-top: 170px;
}*/
.mobile-only {
    display: none;
}
@media (min-width: 1400px) {
    .container-max {
        max-width: 1520px;
    }
}
@media only screen and (max-width: 768px) {
    .mobile-only {
        display: block;
    }
}

.setResults {
    position: absolute;
    right: 0;
    top: 37%;
    width: auto;
    font-weight: bold;
}

@media print {
    /* Hide non-printable elements */
    header, footer, nav, .bd-navbar,
    [data-print-hide], button, a.inline-flex,
    .bi-eye-slash, .bi-eye, .toggle-group,
    .live-result::before, .live-result::after {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        margin: 0;
        padding: 8mm;
        font-size: 12px;
    }

    /* Remove decorative backgrounds and shadows */
    .match-box {
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #aaa !important;
        border-radius: 4px !important;
        margin-bottom: 12px;
        page-break-inside: avoid;
    }

    /* Make score boxes print-friendly */
    .numbers div {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        border: 1px solid #666 !important;
        font-size: 18px !important;
    }

    .live-result {
        background: #fff !important;
        border: 1px solid #aaa !important;
    }

    /* Increase player name size */
    .match-box .text-xs {
        font-size: 13px !important;
    }

    /* Page break management */
    .groupContainer, .round-section {
        page-break-inside: avoid;
    }

    /* Remove large bottom padding */
    #roundsContainer {
        padding-bottom: 0 !important;
    }
}

/* Klass som triggas när scoren uppdateras */
.numbers:not(.setNumbers) .score-updated {
    animation: numbersScorePulse 600ms ease-out;
}

.setNumbers .score-updated {
    animation: scorePulse 600ms ease-out;
}

/* Själva animationen */
@keyframes scorePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        background-color: #ffe58f;
    }
    100% {
        transform: scale(1);
        background-color: #ffffff;
    }
}

/* Själva animationen */
@keyframes numbersScorePulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        background-color: rgb(209, 166, 37);
    }
    100% {
        transform: scale(1);
        background-color: #000;
    }
}

.live-result {
    background: rgba(252,211,77) !important; /* gul */
    color: #000;
    border: 4px solid white;
}

/* ikonen + gul cirkel */
.live-result::before {
    content: "";
    position: absolute;
    top: -9px;    /* justera efter smak */
    right: -9px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;

    /* din SVG, samma mapp som main.css */
    background-image: url("broadcast.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px; /* justera storlek på själva ikonen */

    z-index: 5;
}

/* pulserande ring runt ikonen */
.live-result::after {
    content: "";
    position: absolute;
    top: -9px;   /* lite större än cirkeln ovan */
    right: -9px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: rgba(249, 191, 36, 0.7);
    animation: live-pulse 1.1s ease-out infinite;
    opacity: 0.9;
    z-index: 4;
}

@keyframes live-pulse {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}
