﻿html {
  font-size: 14px;
}




.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.highlight-box {
    background: rgba(255, 255, 255, 0.75); /* halbtransparenter Weißton */
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px); /* Glass-Effekt */
    -webkit-backdrop-filter: blur(6px); /* für Safari */
    margin: 2rem auto;
    width: 95%;
}

.chart-container {
    background: rgba(255, 255, 255, 0.75);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 100% !important;
    height: 100% !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.layout-grid {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-bottom: 60px;
}

.main-page {
    flex: 1;
    position: absolute;
    overflow-y: auto;
    top: 57px;
    left: 0;
    right: 0;
    bottom: 60px;
    background-image: url('/images/Background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.main-page:not(.with-background) {
    background-image: none !important;
}

header {
    flex-shrink: 0;
    z-index: 10;
}

footer {
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

nav.navbar {
    margin-bottom: 0 !important;
    width: 100%;
}

input.readonly-checkbox {
    pointer-events: none;
}

.stats-table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: sans-serif;
    font-size: 0.9rem;
}

.stats-table th,
.stats-table td {
    border: 1px solid #ccc;
    text-align: center;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
}

.stats-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

#chatList {
    list-style-type: none;
    float: left;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.85); /* halbtransparenter Weißton */
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(6px); /* Glass-Effekt */
    -webkit-backdrop-filter: blur(6px); /* für Safari */
    margin: 2rem auto;
}

#chatCenter
{
    flex: 1 1 auto;
    left: 0px;
    right: 0px;
    top: 0px;
    bottom: 0px;
}

#chatList ul, #chatList li{
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

#newChatPopup, #groupChatSettingsPopup, #singleChatSettingsPopup {
    position: fixed;
    left: 33%;
    right: 33%;
    width: 30%;
    height: auto;
    padding: 1%;
    display: none;
}

.chatOverlay {
    position: absolute; /* Stay in place */
    z-index: 1; /* Sit on top */
    margin: 0;
    padding: 0;
    top: 57px;
    left: 0;
    width: 100%;
    bottom: 57px;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.9); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
    overflow-y: auto;

    transition: 0.5s; /* 0.5 second transition effect to slide in or slide down the overlay (height or width, depending on reveal) */
}

body.overlay-open {
    overflow-y: hidden;
}

#messageInput
{
    position: fixed;
    bottom: 10%;
    width: 100%;
    top: 50%;
}

#messageList
{
    position: fixed;
    bottom: 50%;
    width: 100%;
    top: 0px;
}

#sendButton
{
    position: fixed;
    bottom: 0%;
    width: 100%;
    top: 90%;
}



@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .main-page {
        top: 45px;
        overflow-y: scroll;
    }

    .stats-table {
        font-size: 0.8rem;
        min-width: 100%;
    }
}