/**
    Main Bootstrap Overrides
    Exit Reality Brand Colors (from exitreality.ro):
    - Dark Navy/Teal Background: #0a3d4d
    - Pink/Coral Accent: #e94e77 to #ea5455 (gradient)
    - Cyan Highlights: #2ea3f2
 */
:root {
    --primary: #e94e77;
    --primary-hover: #d43d66;
    --primary-dark: #c02c55;
    --accent-cyan: #2ea3f2;
    --dark-bg: #0a3d4d;
    --dark: #222;
    --light-gray: #f3f3f3;
    --sideBySiteMultiSelectColor: #e94e77;
    --sideBySiteMultiSelectHeight: 200px;
    --sideBySiteMultiSelectSearchFocusColor: white;
    --sideBySiteMultiSelectSearchFocusBgColor: #d43d66;
    --sideBySiteMultiSelectBorderWidth: 2px;
}
form {
    margin: 0;
}
.table {
    color: white;
}
.card {
    color: black;
}
.card .table {
    color: black;
}
.btn-primary, .bg-primary {
    background: linear-gradient(135deg, #e94e77 0%, #ea5455 100%) !important;
    border-color: #e94e77 !important;
    color: white !important;
}
.bg-primary-gradient-toright {
    background: linear-gradient(270deg, #e94e77 0%, #0a3d4d 100%);
}
.bg-primary-gradient-toleft {
    background: linear-gradient(90deg, #e94e77 0%, #0a3d4d 100%);
}
@keyframes animateoverlay {
    0%,25% {
        transform: translateY(-150%);
        width: 50%;
    }
    50% {
        transform: translateY(0);
        width: 50%;
    }
    100% {
        width: 100%;
    }
}
@keyframes animateoverlay__playerside-content {
    0%,75% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}
.animated-overlay {
    margin: auto;
    animation: 1.5s ease-in-out 0s 1 animateoverlay;
}
.playerside-content {
    max-height: 68px;
}
.animated-overlay .playerside-content {
    animation: 2s ease-in-out 0s 1 animateoverlay__playerside-content;
}
.cursor-pointer {
    cursor: pointer;
}
.text-primary {
    color: #e94e77 !important;
}
.border-primary {
    border-color: #2ea3f2 !important;
}
.border-lightgrey {
    border-color: #2ea3f2 !important;
}
.bg-lightdark {
    background-color: #5a5a5a;
}
.btn {
    padding: 1rem;
}
.btn:hover {
    text-decoration: none;
}
.btn-primary:hover,
.btn-info:hover {
    background: linear-gradient(135deg, #d43d66 0%, #d94344 100%) !important;
    color: white !important;
}
.btn-info, .bg-info {
    background-color: #cdcdcd;
    border-color: #cdcdcd;
    color: black;
}
.btn--wide {
    min-width: 22rem;
}
.btn--mobilewide {
    width: 100%;
}

a {
    color: #2ea3f2 !important;
    text-decoration: none;
}
a:hover {
    color: #e94e77;
    text-decoration: underline;
}

table .btn {
    padding: 0.2rem;
}

.nomargin {
    margin: 0;
}
.nopadding {
    padding: 0;
}
.showviewtabmenu li {
    width: 100%;
}

/**
    Custom styling
 */
@font-face {
    font-family: "Arual";
    src: url("../webfonts/Arual.woff") format("woff"), /* Modern Browsers */
    url("../webfonts/Arual.woff2") format("woff2"); /* Modern Browsers */
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: "C800";
    src: url("../webfonts/C800.woff") format("woff"), /* Modern Browsers */
    url("../webfonts/C800.woff2") format("woff2"); /* Modern Browsers */
    font-weight: normal;
    font-style: normal;
}

html {
    font-size: 16px;
    color: black;
}
.align-right {
    text-align: right;
}
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    background: url('../images/logos/exitreality_logo.png') no-repeat -300px -120px;
    z-index: -1;
    width: 100vw;
    height: 100vh;
    opacity: 0.03;
    background-size: cover;
}
.btn--min-width {
    min-width: 160px;
}

.btn--small {
    padding: 0.3rem;
}

.tournamenttextareabutton[aria-expanded='true'],
.form-switch .form-check-input:checked {
    background-color: #e94e77;
}

.container {
    margin-top: 2rem;
}

.userstatus {
    position: fixed;
    top: 0;
    right: 2rem;
    border-radius: 0 0 0.3rem 0.3rem;
    z-index: 1;
}

.userstatus a {
    display: inline-block;
    color: white;
    padding: 1rem;
}
.userstatus button {
    width: 100%;
}
.userstatus__popup {
    display: none;
}
.userstatus__trigger--open +.userstatus__popup {
    display: block;
}
.userstatus span {
    display: none;
}
.actions {
    text-align: right;
    min-width: 5rem;
}
.header a:hover {
    text-decoration: none;
}

.sitetitle {
    font-weight: bold;
    font-size: 1.2rem;
}

h2 {
    background: linear-gradient(312deg, rgba(10,61,77,0.5) 0%, rgba(233,78,119,0.3) 20%, rgba(233,78,119,1) 100%);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 0.3rem;
    font-size: 2rem;
}

h3 {
    margin-top: 2rem;
}

.cifont {
    font-family: 'Arual', sans-serif;
}
.boldfont {
    font-family: 'C800', sans-serif;
}

main {
    min-height: calc(100vh - 6.5rem);
}

footer {
    background: #eaeaea;
    font-size: 0.9rem;
    margin: 5rem 0 0;
    padding: 1rem 0;
}
footer > .container {
    position: relative;
    top: 0;
    left: 0;
    margin-top: 0;
    margin-bottom: 0;
    width: 95%;
}

.servicenav {
    display: inline-block;
    position: absolute;
    top: 0;
    right: 0;
}

.tournament-bracket {
    hyphens: auto;
}
.tournament-bracket__number {
    text-align: center;
    min-width: 3rem;
}
.tournament-bracket__content:after {
    margin: auto 0.5rem;
}
.tournament-bracket__list {
    padding: 0;
    margin: 0 1rem;
    border-right: 1px inset rgba(0, 0, 0, 0);
}
.tournament-bracket__match {
    background-color: #dcdcdc;
    -webkit-transition: background-color 100ms linear;
    -ms-transition: background-color 100ms linear;
    transition: background-color 100ms linear;
}
.tournament-bracket__match:hover {
    background-color: #b1b1b1;
    -webkit-transition: background-color 100ms linear;
    -ms-transition: background-color 100ms linear;
    transition: background-color 100ms linear;
    text-decoration: none;
}
.overlayfont {
    font-family: 'Work Sans', 'Helvetica Neue', Arial, sans-serif !important;
}
.contentoverlay {
    font-family: 'C800', sans-serif;
    color: #fff;
    text-shadow: 1px 1px 4px #000;
    font-size: 1rem;
    line-height: 1;
}
.contentoverlay .row {
    margin: 0;
}
.contentoverlay--margintop {
    margin-top: 130px;
}
.contentoverlay--caster {
    margin-top: 450px;
}
.contentoverlay h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-top: 3rem;
}
.contentoverlay h4 {
    font-size: 1.5rem;
    font-weight: bold;
}

.contentoverlay .points {
    margin: 0;
    padding: 0;
    min-width: 80px;
    padding-top: 20px;
}
.round {
    width: 35px;
    height: 13px;
    background: #0a3d4d;
    display: inline-block;
    box-shadow: 1px 1px 3px #292929;
    border: 1px solid #2ea3f2;
    border-radius: 2px;
}
.round--won {
    background: linear-gradient(135deg, #e94e77 0%, #ea5455 100%);
    box-shadow: inset 1px 1px 3px #292929;
    border: 1px solid #ea5455;
}
.rectangleend {
    position: absolute;
    top: 0;
    width: 0;
    height: 0;
}
.rectangleend--right {
    right: -30px;
    border-top: 68px solid #e94e77;
    border-right: 30px solid transparent;
}
.rectangleend--left {
    left: -30px;
    border-top: 68px solid #e94e77;
    border-left: 30px solid transparent;
}
.tournament-bracket__round-title {
    color: #fff;
    font-size: 1.5rem;
    text-shadow: 1px 1px 3px #000;
}
#overlay__loadouts img {
    max-width: 250px;
}
.overlay__characterimage {
    max-width: 600px;
}
.overlay__brbitem {
    display: none;
}
label,
legend {
    margin-top: 1rem;
    font-weight: bold;
    display: block;
}

.btn-arrow {
    text-decoration: none;
}
.btn--arrow:before {
    font-family: 'Font Awesome 5 Free';
    content: "\f078";
    padding-right: 3px;
    font-weight: 900;
}
.btn--arrow[aria-expanded='true']:before {
    content: "\f077";
}
.btn--arrow:hover {
    text-decoration: none;
}

.c-winner a {
    text-decoration: underline;
}
.c-winner i {
    font-size: 2rem;
}
.c-winner__card {
    margin: 2rem 0.5rem;
    border-radius: 1rem;
}
.c-winner__card--place1 {
    background-color: #FFA500;
}
.c-winner__card--place2 {
    background-color: #D7D7D7;
}
.c-winner__card--place3 {
    background-color: #AD8A56;
}
i.fa-twitch:hover {
    color: #772ce8;
}
.c-cup svg {
    width: 50px;
    height: 50px;
}
.hover-primary,
.hover-lightgrey {
    -webkit-transition: background-color 100ms linear;
    -ms-transition: background-color 100ms linear;
    transition: background-color 100ms linear;
}
.hover-primary:hover {
    background: linear-gradient(135deg, #e94e77 0%, #ea5455 100%) !important;
}
.hover-lightgrey:hover {
    background-color: #d2d2d2 !important;
}
.challengeicons {
    font-size: 4rem;
}
.c-rules {
    width: 200px;
    height: 200px;
}

@media (min-width: 768px) {
    footer {
        padding: 1rem;
    }
    footer > .container {
        width: inherit;
    }
    .sitetitle {
        font-size: 3.5rem;
    }
    .bg-overlay {
        background-size: auto;
    }
    .text-right-sm {
        text-align: right;
    }
    .flex-row-reverse-sm {
        flex-direction: row-reverse!important;
    }
    .btn--mobilewide {
        width: 30%;
    }
    .wr-25 {
        width: 50%;
    }

    .c-winner {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }
    .c-winner__card {
        width: calc(29vw - 2rem);
    }
    .c-winner__card--place1 {
        order: 1;
    }
    .c-winner__card--place2 {
        order: 0;
    }
    .c-winner__card--place3 {
        order: 2;
    }
    .c-cup svg {
        width: 100px;
        height: 100px;
    }
    .c-winner__card--place2,
    .c-winner__card--place3 {
        margin-top: 4rem;
    }
    .row--datetime select {
        flex: 1 0 0;
        margin: 0 1rem;
    }
    .showviewtabmenu li {
        width: inherit;
    }
    .tournament-bracket {
        hyphens: none;
    }
}
@media (min-width: 1024px) {
    .userstatus {
        min-width: 180px;
    }
    .userstatus span {
        display: inline-block;
    }
    .wr-25 {
        width: 25%;
    }
    .c-winner__card {
        width: calc(24vw - 2rem);
    }
    .standingscontainer {
        width: 68%;
        left: 12.5%;
    }
    .playerside {
        flex-basis: 45%;
    }
    .standingscontainer__metainfos {
        font-size: 0.8rem;
    }
    .roundstimer {
        flex-basis: 15%;
    }
    .fontsize__1-5 {
        font-size: 1.5rem;
    }
}
/* Tournament Bracket Overrides - Force horizontal layout */
.tournament-bracket {
    display: flex !important;
    flex-direction: row !important;
}

/* Hide scrollbar for bracket tree container */
.card-body:has(.tournament-bracket) {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Hide scrollbar but allow scrolling */
.card-body:has(.tournament-bracket)::-webkit-scrollbar {
    display: none;
}

.card-body:has(.tournament-bracket) {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.tournament-bracket__round {
    flex: 1;
    min-width: 250px;
}

.tournament-bracket__list {
    border-bottom: 0 !important;
    border-right: 1px dashed #212529 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.tournament-bracket__round:last-child .tournament-bracket__list {
    border-right: 0 !important;
}

.tournament-bracket__item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.5em 1em !important;
}

.tournament-bracket__match {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 0.75rem;
}

/* Connecting lines between rounds */
.tournament-bracket__item::after {
    position: absolute;
    right: -1em;
    content: '';
    display: block;
    width: 1em;
    height: 45%;
    border-right: 2px solid #9e9e9e;
}

.tournament-bracket__item:nth-child(odd)::after {
    top: 50%;
    border-top: 2px solid #9e9e9e;
    transform: translateY(-1px);
    border-top-right-radius: 0.6em;
}

.tournament-bracket__item:nth-child(even)::after {
    bottom: 50%;
    border-bottom: 2px solid #9e9e9e;
    transform: translateY(1px);
    border-bottom-right-radius: 0.6em;
}

.tournament-bracket__round:last-child .tournament-bracket__item::after {
    display: none;
}
