@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    display: block;
    margin: 0;
    height: 100%;
    max-height: 100%;
    background: #13000A;
}

.page {
    height: 100%;
    max-height: 100%;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
    border-radius: 5px;
    margin-top: 20px;
    width: 120px;
    align-self: center;
}

.login-label {
    margin-top: 22px;
    align-self: center;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 24px;
}

/*.code-input {
    width: 150px;
    align-self: center;
    text-align: left;
    margin-top: 30px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    height: 40px;
}*/

.name-input {
    width: 100%;
    align-self: center;
    height: 60px;
    margin-top: 40px;
    margin-bottom: 16px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    border: 2px;
    background: none;
    border-color: gray;
    border-radius: 10px;
    text-align: center;
    color: white;
    outline: solid;
    font-size: 30px;
    z-index: 4;
}
    .name-input:focus {
        border: 2px;
        background: none;
    }
    .name-input:active {
        border: 2px;
        background: none;
    }

::placeholder {
    color: darkgray;
}

.team-select {
    margin-top: 22px;
    align-self: center;
    
}

.team-option {
    margin-bottom: 6px;
}

.team-name {
    margin-left: 6px;

}

.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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }


.logo-image {
    margin-top: 30px;
    max-height: 300px;
    width: 95%;
    display: inline-block;
    justify-self: center;
    align-self: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin: 16px;
}


.main-display {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    /*justify-content: center;*/
}

.room-search-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.select-team-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.team-selection-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 60%;
    align-self: center;
}

.team-selection-label {
    color: white;
    font-size: large;
    opacity:0.8;
}

.chatbox {
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 1200px;
    background: #270215;
}

/*.message-input-block {
    display: grid;
}*/

.tabs {
    display: flex;
    vertical-align: bottom;
    margin-left: 10px;
}

.tab {
    border: none;
    color: white;
    font-weight: bold;
    background-color: #13000A;
    cursor: pointer;
    transition: 0.3s;
    height: 50px;
    width: 80px;
    overflow-wrap: normal;
}
    .tab:disabled {
        border-bottom-left-radius: 8px;
        background: #270215;
        border-bottom: 2px solid #34C6DD;
        border-left: 2px solid #34C6DD;
        border-right: 2px solid #34C6DD;
        border-top: 2px solid #270215;
        color: white;
        margin-top: -3px;
        height: 42px;
    }

.tab-link {
    padding: 10px;
    cursor: pointer;
    background-color: inherit;
    border: none;
    outline: none;
    transition: 0.3s;
}

    .tab-link:hover {
        background-color: #ddd;
    }

/*.tab-content {
    display: none;
    padding: 10px;
    border-top: none;
    min-height: 600px;
}*/

/*#all {
    display:flex;
}*/

/*.chat-messages {
    height: 200px;
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    overflow-y: auto;
}*/

.chat-window {
    border-bottom: 0px;
    padding-left: 3%;
    padding-bottom: 1%;
    display: flex;
    flex-direction: column-reverse;
    overflow-y: auto;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
}

.chat-message {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.chat-message-header {
    display: flex;
    align-items: center;
    align-content: center;
}

.message-user {
    margin-right: 6px;
    font-weight: bold;
    color: white;
}

.message-user-team1 {
    color: dodgerblue;
}

.message-user-team2 {
    color: orangered;
}

.message-user-no-team {
    color: gold;
}

.message-team {
    margin-right: 6px;
    font-size: 14px;
}

.message-text {
    word-wrap: break-word;
    color: white;
    opacity: 0.85;
}

.message-timestamp {
    color: white;
    opacity: 0.8;
    font-size: 11px;
    margin-right: 6px;
}

.message-input-block {
    width: 96%;
    position: relative;
    display: flex;
    justify-content: center;
    align-self: center;
    margin-bottom: 15px;
}


.message-input {
    width: 100%;
    padding-left: 3%;
    padding-right: 11%;
    padding-top: 24px;
    border: none;
    justify-self: center;
    background: #13000A;
    color: white;
    outline: none;
    align-self: center;
    max-height: 70px;
    position: relative;
    z-index: 1;
    word-wrap: normal;
    resize: none;
}
    .message-input:focus {
        border: none;
    }

    .message-input:active {
        border: none;
    }

.send-button {
    border: none;
    border-radius: 3px;
    color: black;
    font-weight: bold;
    background-color: transparent;
    cursor: pointer;
    transition: 0.3s;
    height: 40px;
    background-image: url("../images/send-message.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    position: absolute;
    right: 5%;
    z-index: 2;
    align-self: center;
    width: 22px;
}

    .send-button:hover {
        /*background-color: #45a049;*/
    }

.chat-buttons {
    padding-bottom: 10px;
    display: grid;
    grid-template-columns: 1fr 60px;
    width: 100%;
    align-self: center;
    border-top: 2px solid #34C6DD;
    background-color: #13000A;
}

.error-message {
    color: red;
    word-wrap: normal;
}

.dot {
    height: 7px;
    width: 7px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    vertical-align: top;
    animation: horizontal-shaking 1.5s infinite;
}

@keyframes horizontal-shaking {
    0% {
        transform: translateX(0)
    }

    12.5% {
        transform: translateX(3px)
    }

    25% {
        transform: translateX(-3px)
    }

    37.5% {
        transform: translateX(3px)
    }

    50% {
        transform: translateX(0)
    }
}

.buzzer-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.buzzer-btn {
    background: hsl(340deg 100% 32%);
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    outline-offset: 6px;
    align-self: center;
    margin-top: 20px;
}

    .buzzer-btn:active .buzzer-front {
        transform: translateY(-2px);
    }

    .buzzer-btn:disabled .buzzer-front {
        transform: translateY(-2px);
    }

.buzzer-front {
    display: block;
    padding: 100px 100px;
    border-radius: 50%;
    font-size: 1.8rem;
    background: hsl(345deg 100% 47%);
    color: white;
    transform: translateY(-10px);
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.show-end-label {
    display: block;
    text-align: center;
    word-wrap: normal;
    color: gold;
    font-size: 1.5rem;
    margin-top: 20px;
}

.info-block {
    align-self: flex-end;
    align-items: end;
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 10px;
    right: 12px;
}

.info-label {
    color: white;
    opacity:0.5;
    font-size:0.9rem;
}

.team-select-info-label {
    margin-top: 12px;
    margin-bottom: 12px;
    color:white;
    font-size:1.4rem;
}