body {
    font-family: Arial, sans-serif;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border: 1px solid black;
}

th, td {
    border: 1px solid black;
    padding: 8px;
    text-align: center;
}

th {
    background-color: #f2f2f2;
    font-weight: bold;
}

td img {
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    thead tr {
        display: none;
    }
    tr {
        margin-bottom: 15px;
    }
    td {
        border: 1px solid black;
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
        text-align: center;
    }
    td:before {
        position: absolute;
        top: 50%;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        transform: translateY(-50%);
        font-weight: bold;
        text-align: left;
    }
    td:nth-of-type(1):before { content: "Title"; }
    td:nth-of-type(2):before { content: "Img"; }
    td:nth-of-type(3):before { content: "Genre"; }
    td:nth-of-type(4):before { content: "Task"; }
    td:nth-of-type(5):before { content: "Position"; }
    td:nth-of-type(6):before { content: "Company"; }
    td:nth-of-type(7):before { content: "Period"; }
}


.bubble {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f0f0f0;
    color: black;
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    font-size: 14px;
}

.bubble::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #f0f0f0 transparent transparent transparent;
}

.overlay-infos {
    position: relative;
}

