html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
    background: url('../images/tlo.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.jezyki-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.jezyki {
    display: flex;
}
.jezyki img {
    width: 32px;
    height: 24px;
    margin-left: 8px;
    cursor: pointer;
    border: 1px solid white;
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}
#zegar-sesji {
    color: white;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
    margin-top: 8px;
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    margin-top: 10vh;
    flex-wrap: wrap;
}
.logo {
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px #000);
}
.naglowek {
    font-size: 4em;
    font-style: italic;
    font-weight: bold;
    color: white;
    text-shadow: 3px 3px 5px #000;
    margin: 0;
}

.panel-lewy-naglowek {
    position: absolute; top: 20px; left: 20px; color: #444;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.3); font-size: 0.9em;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}

.panel-przyciski {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
}

.panel-btn {
    padding: 6px 10px;
    background-color: #eeeeee;
    border: 1px solid #cccccc;
    color: #333333;
    text-decoration: none;
    text-align: center;
    /*font-weight: bold;*/
    border-radius: 6px;
    transition: background-color 0.2s;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.panel-btn:hover {
    background-color: #dddddd;
}

.stopka {
    font-size: 0.9em;
    color: whitesmoke;
    text-shadow: 1px 1px 3px #000;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

.komunikat-sukces {
    position: fixed;
    top: 20px;
    left: 20px;
    background-color: #e0ffe0;
    color: #2d662d;
    border: 2px solid #2d662d;
    padding: 14px 24px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    font-size: 1.1em;
    font-weight: bold;
    max-width: 90vw;
}

.komunikat-niesukces {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffe0e0;
    color: #8b0000;
    border: 2px solid #8b0000;
    padding: 20px 30px;
    border-radius: 10px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
    font-weight: bold;
    max-width: 90vw;
    text-align: center;
}

.komunikat-niesukces button {
    margin-top: 16px;
    padding: 8px 18px;
    font-size: 1em;
    font-weight: bold;
    background-color: #8b0000;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.komunikat-niesukces button:hover {
    background-color: #a30000;
}

/* informacje o pacjencie */
.box {
    background-color: rgba(255,255,255,0.75);
    padding: 30px;
    border-radius: 10px;
    width: 500px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    margin: 120px auto 20px auto;
}

h2 {
    text-align: center;
    margin-top: 0;
}