@import url(imports/general.css);

main {
    display: flex;
    justify-content: center;
}

main article {
    margin: 0 auto 0 auto;
    width: 80%;
    min-width: 16cm;
    display: flex;
}

main article section {
    padding: 0 20pt 20pt 20pt;
    display: flex;
    flex-direction: column;
    border: 1px solid black;
    border-radius: 25pt;
    box-shadow: inset -4pt -4pt 8pt var(--shadow-color), inset 4pt 4pt 8pt var(--shadow-color);
    background-color: var(--base-color);
}

main article section .characters-den {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: var(--base-color);
}

.prominent-container {
    margin: 0 5vw 0 5vw;
}

@media (max-width: 800px) {
    main article {
        margin: 0 0 0 0;
        width: 100vw;
        min-width: 100vw;
        display: flex;
    }

    .prominent-container {
        width: 100vw;
        margin: 0 0 0 0;
    }

    main article section {
        border-radius: 10px;
        box-shadow: inset -4px -4px 8px var(--shadow-color), inset 4px 4px 8px var(--shadow-color);
    }
    
}

h2 {
    margin-top: 40pt;
}

details {
    width: 100%;
    max-width: 20cm;
    margin-top: 10pt;
    padding: 2pt;
    align-self: center;
    border: 1px solid var(--shadow-color);
    border-radius: 5pt;
    box-shadow: inset 0pt -16pt 8pt -8pt var(--shadow-color), 0 1pt 2pt 0 rgba(0,0,0,0.9);
    
}

details:hover {
    background-color: var(--selected-color);
}

details summary {
    font-size: clamp(1rem, 2vw , 1.33rem);
}

.print-table {
    display: none;
}

figure figcaption {
    font-size: clamp(1rem, 2vw , 1.33rem);
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 10pt;
}

thead {
    background-color: #333333;
    color: white;
}

tbody tr:nth-child(odd) {
    background-color: #f0f0f0; /* light gray */
}

tbody tr:nth-child(even) {
    background-color: #a9a9a9; /* dark gray */
}

table, th, td {
    border: 2pt solid black;
}

table th {
    text-align: center;
}

table td:first-child {
    text-align: center;
}

th, td {
    padding: 8px 12px;
    text-align: left;
}

main .tetris-piece {
    height: auto;
    width: 10vw;
    min-width: 2cm;
    margin: -2vw;
    image-rendering: crisp-edges;
}

main img:not(.tetris-piece) {
    height: auto;
    width: 20vw;
    border: 4pt solid var(--block-outline-color);
    border-radius: 5pt;
    display: block;
    transition: transform 0.2s, box-shadow 0.2s;
    transition-timing-function: ease-in-out;
}

.thumbnail {
    margin: 2vh auto 0 auto;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5pt;
}

.thumbnail:hover img, .thumbnail:focus-within img {
    box-shadow: 0pt 2pt 4pt rgba(0,0,0,0.9);
    transform: scale(1.05);
    transition: transform 0.2s, box-shadow 0.2s;
    transition-timing-function: ease-in-out;
}

.image-floater {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1200px) {

    .image-floater {
        flex-direction: row;
    }

    .image-floater p {
        margin-right: 15pt;
    }

    .image-floater img {
        margin-top: 0;
        margin-bottom: auto;
    }
}