:root {
    --ts-blue: #0069d9;
    --ts-blue-dark: #003a77;
    --ts-blue-light: #007bff;

    --bs-blue: var(--ts-blue);
    --bs-primary: var(--ts-blue);
    --bs-primary-rgb: 0, 105, 217;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.bg-blue {
    background-color: var(--ts-blue);
}

.nav-dark {
    --bs-nav-link-color: var(--bs-gray-100);
    --bs-nav-link-hover-color: var(--bs-gray-400);
}

footer p {
    font-size: 14px;
}

.vertical-separate {
    width: 1px;
    height: 80%;
    background-color: var(--bs-gray-500);
}

.clickable {
    cursor: pointer;
}

.vote .invalid-feedback {
    text-align: center;
}

.navbar-brand img {
    max-width: 1.5vw;
}

[data-signin-visible="true"] {
    display: none;
}

.loading-button {
    width: 20px;
    height: 20px;
    display: inline-block;
    filter: brightness(0) invert(1);
    vertical-align: middle;
    margin: 0 5px 0 0;
    background-image: url("/assets/images/loading.gif");
    background-size: cover;
}
.btn-outline-primary .loading-button {
    filter: none;
    /*filter: brightness(0) invert(0);*/
}

.comment-header {
    font-size: 14px;
    margin-bottom: 10px;
}

.comment-footer {
    font-size: 12px;
    margin-top: 10px;
}

.comment-footer a {
    text-decoration: none;
}

.ts-spacer {
    /*font-family: monospace;*/
    white-space: nowrap;   /* bez zalamování */
    overflow: hidden;      /* skrýt přetečení */
}

.ts-spacer-left   { text-align: left; }
.ts-spacer-center { text-align: center; }
.ts-spacer-right  { text-align: right; }
.ts-spacer-fill   { text-align: left; }

.ts-channel {
  /* běžný kanál */
  display: inline-block;
}

.channel-name {
    font-weight: bold;
    display: inline;
}

.channel-client {
    color: var(--ts-blue);
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 15px;
        padding-left: 15px;
    }
}

.ad-left, .ad-right {
  position: fixed;
  top: 50%;  /* Vertikálně uprostřed, upravte podle potřeby */
  transform: translateY(-50%);
  width: 160px;  /* Šířka typická pro Google Ads, např. 160x600 */
  height: 600px;
  z-index: 1000;  /* Nad obsahem */
}

.ad-left {
  left: 25px;  /* Vzdálenost od levého okraje */
}

.ad-right {
  right: 25px;  /* Vzdálenost od pravého okraje */
}


.google-ad-slot {
  width: 160px;
  height: 600px;
  min-height: 600px;  /* Zajistí rezervovaný prostor */
}

.ad-fallback {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 160px;
    height: 600px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-family: Arial, sans-serif;
    font-size: 12px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    
    /* Centrování textu doprostřed */
    /*display: flex !important;  /* Flexbox pro centrování */
    align-items: center;       /* Vertikálně uprostřed */
    justify-content: center;   /* Horizontálně uprostřed */
    text-align: center;
    line-height: 1.4;
}

@media (max-width: 768px) {
  .ad-left, .ad-right {
    display: none !important;
  }
}