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

@font-face {
    font-family: 'TF2Secondary';
    src: local('../fonts/TF2secondary.ttf'), url('../fonts/TF2secondary.ttf');
}

@font-face {
    font-family: 'TF2Build';
    src: local('../fonts/tf2build.ttf'), url('../fonts/tf2build.ttf');
}

@-webkit-keyframes rotation {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes doublerotation {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(720deg);
    }
}

:root {
    --background: #393939;
    --menucolortop: #36312a;
    --menucolor: #332d27;
    --bordercolor: #786a63;
    --fontcolorlight: #ECEACC;
    --fontcolorlightSecondary: #BBB89B;
    --fontcolordark: #291e17;
    --highlightcolor: #b05112;
    --activecolor: #e06818;
    --lightbackgroundcolor: #d1c5b0;
    --secondarybuttonbackgroundcolor: #776B5F;
    --secondarybuttoncolor: #EDE2CC;
    --joinbuttonBackground: #34851C;
    --invitafriendColor: #34851C;
    --cancelbuttonBackground: #808080;
    --discordUser: #338ECC;
    --devAlpha: #FF4D16;
    --error: red;
}

.bountyColor {
    --highlightcolor: #FF6E1E;
    --activecolor: #FF5900;
}

::-webkit-scrollbar {
    width: 1em;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    background-color: var(--secondarybuttonbackgroundcolor);
}

::-webkit-scrollbar-thumb {
    background-color: var(--secondarybuttoncolor);
    outline: 1px solid var(--secondarybuttonbackgroundcolor);
    border: 1px solid var(--secondarybuttonbackgroundcolor);
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: var(--lightbackgroundcolor);
    }

::-webkit-scrollbar-button {
    background-color: var(--secondarybuttonbackgroundcolor);
    color: var(--secondarybuttoncolor);
    border-style: solid;
    height: 16px;
    width: 16px;
}
    ::-webkit-scrollbar-button:vertical:decrement {
        border-width: 0 7px 14px 7px;
        border-color: transparent transparent var(--secondarybuttoncolor) transparent;
    }
        ::-webkit-scrollbar-button:vertical:decrement:hover {
            border-color: transparent transparent var(--lightbackgroundcolor) transparent;
        }

    ::-webkit-scrollbar-button:vertical:increment {
        border-width: 14px 7px 0 7px;
        border-color: var(--secondarybuttoncolor) transparent transparent transparent;
    }

        ::-webkit-scrollbar-button:vertical:increment:hover {
            border-color: var(--lightbackgroundcolor) transparent transparent transparent;
        }

    ::-webkit-scrollbar-button:horizontal:decrement {
        border-width: 7px 14px 7px 0;
        border-color: transparent var(--secondarybuttoncolor) transparent transparent;
    }
        ::-webkit-scrollbar-button:horizontal:decrement:hover {
            border-color: transparent var(--lightbackgroundcolor) transparent transparent;
        }

    ::-webkit-scrollbar-button:horizontal:increment {
        border-width: 7px 0 7px 14px;
        border-color: transparent transparent transparent var(--secondarybuttoncolor);
    }
        ::-webkit-scrollbar-button:horizontal:increment:hover {
            border-color: transparent transparent transparent var(--lightbackgroundcolor);
        }

html, body {
    font-family: 'TF2Secondary';
    background-color: var(--background);
    color: var(--fontcolorlight);
    scrollbar-color: var(--lightbackgroundcolor) var(--secondarybuttonbackgroundcolor);
}

a, .btn-link {
    color: var(--highlightcolor);
}

    a:hover {
        color: var(--activecolor);
    }

a:not([href]) {
    color: var(--highlightcolor);
}

    a:not([href]):hover {
        color: var(--activecolor);
    }

.round {
    border-radius: 50%;
}

p.br {
    margin-bottom: 0px;
}

span.error {
    color: var(--error);
}
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    text-align: center;
}

.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: lightyellow;
    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;
}

.m-t-10 {
    margin-top: 10px;
}

.communitiesContainer {
    margin-top: 5px;
}
.community {
    background-color: var(--menucolor);
    color: var(--fontcolorlight);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}
    .community .name {
        height: 100%;
        font-size: 1.3rem;
        white-space: nowrap;
        overflow: hidden;
    }

    .community .players {
        white-space: nowrap;
        overflow: hidden;
    }

    .community .servername {
        margin-left: 5px;
        white-space: nowrap;
        overflow: hidden;
    }

    .community .btn-joinleave {
        height: 100%;
    }

    .community .servers {
        margin-top: 5px;
    }
        .community .servers ul {
            background-color: var(--lightbackgroundcolor);
            color: var(--fontcolordark);
            padding-inline-start: 20px;
            margin-left: 0px;
            margin-bottom: 0px;
            border-radius: 5px;
            max-height: 80px;
            overflow-x: auto;
        }

    .community .chatsection {
        display: flex;
        flex: 1 0 auto;
        padding-right: 15px;
        padding-left: 15px;
    }
    .community .chatMembers {
        white-space: nowrap;
        overflow-x: hidden;
        max-height: 303px;
    }
        .community .chatMembers li {
            list-style-type: none;
        }
        .community .chatMembers ul {
            padding-left: 10px;
        }
    .community .chat {
        display: flex;
        flex: 1 0 auto;
        flex-direction: column;
        background-color: var(--lightbackgroundcolor);
        color: var(--fontcolordark);
        border-radius: 5px;
        padding: 10px;
    }
        .community .chat .messages {
            flex: 1 1 auto;
            border-bottom: 3px solid var(--bordercolor);
            margin-bottom: 10px;
            padding-bottom: 10px;
        }
            .community .chat .messages ul {
                max-height: 200px;
                overflow-x: auto;
                margin-bottom: 0px;
                list-style: none;
                padding-left: 0px;
            }
                .community .chat .messages ul .timestamp {
                    min-width: 135px;
                    display: inline-block;
                }
        .community .chat .controls {
            background-color: var(--menucolor);
            color: var(--fontcolorlight);
            display: flex;
        }
            .community .chat .controls input {
                flex: 1 0 100px;
                min-width: 100px;
                margin: 5px;
            }
            .community .chat .controls button {
                flex: 0 0 auto;
                margin: 5px;
            }

.btn-themed {
    border: 2px solid var(--bordercolor);
    background-color: var(--lightbackgroundcolor);
    color: var(--fontcolordark)
}
    .btn-themed:hover {
        background-color: var(--highlightcolor);
        color: black
    }

    .btn-themed.secondary {
        background-color: var(--secondarybuttonbackgroundcolor);
        color: var(--secondarybuttoncolor)
    }
        .btn-themed.secondary:hover {
            background-color: var(--highlightcolor);
            color: black
        }

.modal-dialog {
    margin: 5rem auto;
}
.modal-content-themed {
    background-color: var(--lightbackgroundcolor);
    color: var(--fontcolordark);
    border: 2px solid var(--bordercolor);
}

    .modal-content-themed .modal-header {
        background-color: var(--menucolor);
        color: var(--fontcolorlight);
        border-bottom: 1px solid var(--bordercolor);
    }

        .modal-content-themed .modal-header .close {
            color: var(--fontcolorlight);
        }
      

    .modal-content-themed .modal-body .buttons {
        margin-top: 10px;
    }
        .modal-content-themed .modal-body .buttons .primary {
            float: right;
        }

.devAlphaText {
    color: var(--devAlpha);
    font-style: italic;
    font-weight: bold;
}

code.discordUser {
    color: var(--discordUser)
}

input.shortInline {
    margin: 0px 5px;
    width: 40px;
}

.queuedIcon {
    flex: 0 0 auto;
    height: 1rem;
    width: 1rem;
    display: inline-block;
    margin: 5px 5px 0px 0px;
    background: url("../assets/img/tf2_simple_light.png");
    background-size: 100%;
    -webkit-animation: doublerotation 2s infinite ease-in-out;
}
    .queuedIcon.dark {
        background: url("../assets/img/tf2_simple.png");
        background-size: 100%;
    }
    .queuedIcon.stopped {
        -webkit-animation: none;
    }