/* ============================
   Styl dla ciała strony i tła
   ============================ */

/* Domyślne tło dla całej strony */
body {
    background-color: #ffffff; /* Domyślny kolor tła */
}

/* Tło dla urządzeń mobilnych */
@media (max-width: 768px) {
    body {
        background-color: #ffffff; /* Białe tło na urządzeniach mobilnych */
    }
}

/* ============================
   Styl dla tabel
   ============================ */

table {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    border-collapse: collapse;
}

table td, table th {
    height: 120px;
    padding: 1px;
    border: 1px solid #ddd;
    text-align: center;
    font-size: 1.5rem;
    font-family: Verdana;
    color: #ffffff;
}

/* Naprzemienne kolory wierszy */
table tr:nth-child(even) {
    background-color: #e0f7fa; /* Jasnoniebieski dla parzystych wierszy */
}

table tr:nth-child(odd) {
    background-color: #ffffff; /* Biały dla nieparzystych wierszy */
}

/* ============================
   Styl dla nagłówków w tabeli
   ============================ */

/* Blue header */
center tr .blue-header {
    background-color: #34495e;
}

.blue-header th {
    background-color: #95a5a6;
    color: white;
    font-weight: bold;
    font-size: 25px;
    padding: 10px;
    text-align: center;
}

/* ============================
   Styl dla obszaru "Poczekalnia"
   ============================ */

.poczekalnia {
    background-color: #34495e;
    color: #3474eb;
    font-size: 25px;
    line-height: 0px;
    height: 55px;
}

/* ============================
   Styl dla komórek w tabeli
   ============================ */

.zmiana-icon {
    display: inline-block;
    width: 48px;
    height: 48px;
    background-size: cover;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    color: black;
    text-align: center;
}

.zmiana-icon:hover {
    opacity: 0.8; /* Dodaj lekki efekt przezroczystości przy najechaniu */
}

/* Ikony w tle dla wzrostu, spadku i postoju */
.up-icon {
    background-image: url('icons/up.png');
}

.down-icon {
    background-image: url('icons/down.png');
}

.stay-icon {
    background-image: url('icons/stay.png');
}

/* Styl dla danych w kolumnie "Zmiana" */
.zmiana-text {
    color: white;
    font-size: 1.2rem;
    padding: 0px 1;
    line-height: 44.7px;
}

/* ============================
   Styl dla tekstów i przycisków
   ============================ */

.bold {
    font-weight: bold;
    color: grey;
    font-size: 5rem;
}

/* Styl dla komunikatu pop-up */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #f44336;
    border: 2px solid #b71c1c;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    color: white;
}

.popup.active {
    display: block;
}

/* Styl dla przycisków głosowania */
.vote-button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 2px;
    cursor: pointer;
    border-radius: 5px;
}

.vote-button:hover {
    background-color: #45a049;
}

/* Ukryty checkbox */
.hidden-checkbox {
    display: none;
}

/* ============================
   Styl dla elementów w centralnym układzie
   ============================ */
html > body:nth-child(2) > center:nth-child(6) > h1:nth-child(6) {
    width: 100%;
    max-width: 1198px;
}

center h1 {
    width: 100% !important;
    background-color: #34495e;
    color: #ecf0f1;
    font-family: Verdana, Geneva, sans-serif;
    line-height: 55px;
}

center table tbody tr th {
    height: 55px !important;
}

center tr th {
    background-color: #95a5a6;
    color: #ecf0f1 !important;
}

center tr td {
    color: #000000 !important;
}

/* ============================
   Styl dla tekstu "Wyskok"
   ============================ */

center tr .wyskoki {
    color: #e74c3c !important;
    font-weight: bold;
}

/* Styl dla nagłówków w centralnym układzie */
center tr .blue-header {
    color: #ecf0f1 !important;
}

/* Styl dla pogrubionych elementów w "Poczekalni" */
center .poczekalnia b {
    color: #ecf0f1;
}

/* ============================
   Styl dla obszaru textarea
   ============================ */

textarea {
    width: 100%;
    max-width: 800px;
    height: 100px;
    resize: vertical;
}

/* Styl dla tabeli propki */
table.propki {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #34495e;
}

table.propki td, table.propki th {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
    background-color: #e0f7fa;
}

table.propki th {
    background-color: #34495e;
    font-weight: bold;
}

table.propki input {
    margin: 5px 0;
    padding: 5px;
    width: calc(100% - 10px);
}

table.propki button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

table.propki button:hover {
    background-color: #45a049;
}

/* Styl dla tabeli propki2 */
table.propki2 {
    background-color: #34495e;
    height: 55px;
    width: 100%;
    border-collapse: collapse;
    color: white;
}

/* Styl dla pogrubionych elementów w tabeli propki2 */
.propki2 tr b {
    color: #ecf0f1;
    font-size: 35px;
    background-color: #34495e;
}

/* Styl dla danych w komórkach tabeli propki2 */
.propki2 tr td {
    height: 55px;
    padding: 0;
    text-align: center;
}

table.propki2 td[colspan="2"] {
    color: white;
    text-align: center;
    font-weight: bold;
    background-color: #34495e;
}
