/* CSS Document v1.6 */
/* ============================================================
   YLEISET ASETUKSET
   ============================================================ */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fa;
}

/* ============================================================
   HEADER (yläpalkki + logo)
   ============================================================ */
header {
    background: #003366;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header img {
    max-width: 180px;
}

/* ============================================================
   MOBIILIN HEADER
   ============================================================ */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   LAJISIVUN HEADER (vasen teksti + oikea lajikuva)
   ============================================================ */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}

/* Lajikuva oikealla */
.header-right img.fish-thumb {
    width: 150px;
    height: auto;
    display: block;
    margin-left: auto;
    cursor: pointer;
}
table.dataTable thead th {
    position: sticky;
    top: 0;
    background-color: #2a4f7a;   /* vaaleampi sininen */
    color: white;
    font-weight: bold;
    z-index: 10;
}




/* ============================================================
   POPUP-KUVA (lajikuvan suurennus)
   ============================================================ */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
}


/* ============================================================
   SIVUN SISÄLTÖALUE
   ============================================================ */
main {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/*  footer */
.footer {
   position: relative;   /* EI stickyä */
   width: 100%;
   background-color: #003366;
   color: white;
   text-align: center;
   padding: 10px 0;
   margin-top: 40px;     /* pieni hengitys yläpuolelle */
}


/* ============================================================
   YLÖS-NAPPI
   ============================================================ */
#ylos {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #e6eef9;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 22px;
    box-shadow: 0 0 6px rgba(0,0,0,0.25);
    z-index: 99999;
    color: #003366;
    display: none;
}
@media (max-width: 1400px) {
    #topBtn {
        right: 10px;
    }
}


/* ============================
   RESPONSIVE KORTTINÄKYMÄ
   ============================ */
@media (max-width: 600px) {

    table.dataTable {
        border: 0;
    }

    table.dataTable thead {
        display: none;
    }

    table.dataTable tbody,
    table.dataTable tr,
    table.dataTable td {
        display: block;
        width: 100%;
    }

    table.dataTable tr {
        margin-bottom: 15px;
        background: #fff;
        border: 1px solid #ccc;
        padding: 10px;
        border-radius: 6px;
    }

    table.dataTable td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border-bottom: 1px solid #eee;
    }

    table.dataTable td:last-child {
        border-bottom: none;
    }

    table.dataTable td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        text-align: left;
        font-weight: bold;
        color: #003366;
    }
}