html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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;
}


body {
    margin-bottom: 60px;
    background-color: rgb(0, 111, 173);
    color: rgb(200, 211, 255)
}


.bg-title {
    background-color: hsl(201, 100%, 54%)
}

footer {
    color: rgb(200, 211, 255)
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}



@keyframes flash-border-red {
    0% {
        border-color: transparent;
    }

    50% {
        border-color:  red;
    }

    100% {
        border-color: transparent;
    }
}

@keyframes flash-border-green {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: lawngreen;
    }

    100% {
        border-color: transparent;
    }
}


.flash-red {
    animation: flash-border-red 0.5s ease-in-out;
}

.flash-green {
    animation: flash-border-green 0.5s ease-in-out;
}



.t-content {
    display: block;
    width: 100%;
    height: auto;
}

#reader {
    border-color: transparent;
    border-style: solid;
    border-width: 5px;
    border-radius: 1px;
    width: 100%;
}
.t-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom:0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.t-overlay-text {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* poloprůhledné pozadí */
    color: greenyellow;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}

.square {
    width: 100vw; /* celá šířka okna */
    height: 100vw; /* stejná jako šířka = čtverec */
    background-color: transparent;
    display: flex; /* pro centrování obsahu */
    justify-content: center; /* horizontální centrování */
    align-items: center; /* vertikální centrování */
}

#btnStart {
        font-size: 2rem;
        padding: 1rem 2rem;
        cursor: pointer;
}

#success {
    background-color: hsl(120, 100%, 31%); /* kontrastní modrá */
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px; /* mírně zaoblené rohy */
    text-align: center;
    margin: 1rem auto;
    width: fit-content;
    font-size: 1.4rem;
    font-weight: bolder;
   
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* jemný stín */
}

#display {
    background-color: hsl(0, 100%, 31%); /* kontrastní modrá */
    border-radius: 8px; /* mírně zaoblené rohy */
    padding: 0.8rem 1rem;
    color: white;
}

@keyframes fade {
    0% {
        opacity:1.0;
    }

    100% {
        opacity:0.0;
    }
}

.fade {
    animation: fade 0.5s forwards ease-out;
}
.t-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 /3;
    overflow: hidden;
    border: 1px solid #ccc;
}


.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}



/* Společné styly pro rohové prvky */
.corner-info, .corner-button {
    position: absolute;
    padding: 8px 12px;
    
    z-index:10;
}

/* Pravý dolní roh */
.right-bottom {
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.6); /* poloprůhledné pozadí */
    color: greenyellow;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}

/* Levý dolní roh */
.left-bottom {
    bottom: 10px;
    left: 10px;
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.6); /* poloprůhledné pozadí */
    color: greenyellow;
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
}

#presentation-name::before {
    content: ": ";
}
#presentation-total::before {
    content: "/";
}