/* RESET & BASIC STYLES
–––––––––––––––––––––––––––––––––––––––––––––––––– */

:root {
    --white: #fff;
    --black: #333;
    --darkblue: #1b4965;
    --lightblue: #FFFFFF;
    --lightgray: #dedede;
    --table-border: #dde7ea;
}


/* * {
    padding: 0;
    margin: 0;
  } */

body {
    margin: 50px 0 150px;
    font-family: "Noto Sans Mono", monospace;
}

.container {
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}


/* TABLE STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */

#tableDiv table {
    margin: 0px 0px 0px 10px;
    text-align: left;
    border-collapse: collapse;
    border: 1px solid var(--table-border);
}

#tableDiv table th {
    color: var(--white);
    background: var(--darkblue);
    padding: 20px;
}

#tableDiv table td {
    width: 100%;
    padding: 10px;
}

#tableDiv table td:first-child {
    position: relative;
    padding-right: 60px;
}

#tableDiv table td:first-child::before {
    display: none;
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--black);
}

#tableDiv table td:nth-child(2) {
    position: relative;
}

#tableDiv table tbody tr {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    counter-increment: counter;
}


/* #tableDiv table tbody tr::before {
    content: counter(counter);
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    color: var(--white);
    background: var(--black);
    z-index: 1;
} */

#tableDiv table tbody tr:nth-of-type(odd)>* {
    background: var(--lightblue);
}

#tableDiv table tbody tr:nth-of-type(even)>* {
    background: var(--lightgray);
}

#tableDiv table img {
    display: none;
    position: absolute;
    top: 20px;
    left: 45%;
    max-width: 150px;
    z-index: 1;
}

.table-credits {
    font-size: 12px;
}


/* MQ STYLES
  –––––––––––––––––––––––––––––––––––––––––––––––––– */

@media (max-width: 999px) {
    .visible\@l {
        display: none;
    }
}

@media (min-width: 700px) {
    #tableDiv table td {
        padding: 20px;
    }
}

@media (min-width: 700px) and (max-width: 999px) {
    #tableDiv table tbody {
        display: flex;
        flex-wrap: wrap;
    }
    #tableDiv table tbody tr {
        width: 50%;
    }
    #tableDiv table tbody tr:nth-of-type(even)>* {
        background: var(--lightgray);
    }
    #tableDiv table tbody tr:nth-of-type(4n)>*,
    #tableDiv table tbody tr:nth-of-type(4n + 1)>* {
        background: var(--lightblue);
    }
}

@media (min-width: 1000px) {
    .hidden\@l {
        display: none;
    }
    .container {
        padding: 0 30px;
    }
    #tableDiv table {
        border: none;
        width: 100%;
    }
    #tableDiv table th,
    #tableDiv table td {
        width: 25%;
    }
    #tableDiv table td:first-child {
        padding-right: 0;
    }
    #tableDiv table tbody tr {
        display: table-row;
    }
    /* #tableDiv table tbody tr::before {
        display: none;
    } */
}

@media (hover: hover) and (min-width: 1000px) {
    #tableDiv table tbody tr:hover {
        cursor: pointer;
    }
    #tableDiv table tbody tr:hover img {
        display: block;
    }
    #tableDiv table tbody tr:hover td:first-child::before {
        display: block;
    }
}

@media (min-width: 1250px) {
    #tableDiv table td:first-child::before {
        right: calc(100% + 20px);
    }
}