/* Base */
* {
    box-sizing: border-box;
}

body {
    background-color: #2c2c2c;
    overflow-x: hidden;
}

img {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout */
.top-bar {
    display: flex;
    min-height: 100px;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid #444;
}

.section {
    min-height: 120px;
    padding: 30px 20px;
    border-bottom: 2px solid #444;
    overflow: hidden;
}

.section-compact {
    padding: 20px 20px 0;
    border-bottom: 2px solid #444;
    overflow: hidden;
}

.section-nav {
    display: flex;
    min-height: 120px;
    padding: 30px 20px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-row {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
}

.content-block {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 30px;
}

.content-block .description {
    width: 100%;
}

.content-block .preview-img-sm {
    width: 120px;
    max-width: 25vw;
    margin: 0;
}

.img-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.two-columns {
    display: flex;
    flex-wrap: wrap;
}

.column {
    width: 50%;
}

/* Typography */
.title {
    padding-right: 20px;
    color: #8f8f8f;
}

.chapter {
    color: #d8d1d1;
}

.section-title {
    color: #d6d6d6;
    font-size: 18px;
    font-weight: 500;
    margin-left: 3px;
    margin-bottom: 15px;
}

.content-row .section-title {
    margin-bottom: 0;
}

.content-row:has(.ref-badge) {
    margin-bottom: 15px;
}

.description {
    padding: 10px 0 10px 1px;
    color: #999797;
    font-size: 15px;
    text-align: justify;
}

.description a {
    color: #999797;
    text-decoration: underline;
}

.description a:hover {
    color: #bbb;
}

.description-lg {
    color: #999797;
    font-size: 15px;
    text-align: justify;
}

.details {
    padding: 10px 0;
    color: #999797;
    font-size: 15px;
}

/* Images */
.screenshot {
    max-height: 60vh;
    max-width: 90vw;
    min-height: 300px;
    border: 4px solid #000;
    border-radius: 20px;
}

.preview-img {
    width: min(150px, 30vw);
    margin: 5px 10px 5px 0;
}

.preview-img-lg {
    max-width: min(550, 90%);
    padding: 4px 0 2px;
}

.preview-img-sm {
    width: 120px;
    max-width: 25vw;
    margin: 5px 10px 5px 0;
    flex-shrink: 0;
}

/* UI Elements */
.ref-badge {
    display: flex;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    justify-content: center;
    align-items: center;
    border: 1.5px solid #dfd590;
    border-radius: 6px;
    color: #dfd590;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Navigation & Buttons */
.menu-btn {
    display: flex;
    max-width: 500px;
    min-height: 58px;
    width: 85%;
    margin: 0 auto 17px;
    justify-content: center;
    align-items: center;
    border: none;
    border-radius: 15px;
    background-color: #383838;
    color: #bbb;
    font-size: 17px;
    text-decoration: none;
}

.back-link {
    padding-right: 20px;
    color: #8f8e8e;
    text-decoration: none;
}

.back-btn {
    display: flex;
    max-width: 500px;
    width: 85%;
    margin: 0 auto;
    padding: 15px;
    justify-content: center;
    align-items: center;
    border: 2px solid #494949;
    border-radius: 15px;
    background-color: transparent;
    color: #585858;
    text-decoration: none;
}

/* Table */
.possibilities-table-wrapper {
    overflow-x: auto;
    margin: 10px 0 20px;
}

.possibilities-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 2px solid #666;
    border-radius: 10px;
    font-style: italic;
    font-size: 13px;
    color: #999;
}

.possibilities-table th,
.possibilities-table td {
    padding: 10px 6px;
    text-align: center;
    border-right: 1px dashed #555;
    border-bottom: 1px dashed #555;
    vertical-align: middle;
}

.possibilities-table th:last-child,
.possibilities-table td:last-child {
    border-right: none;
}

.possibilities-table tbody tr:last-child td {
    border-bottom: none;
}

.possibilities-table thead th {
    font-weight: normal;
    color: #bbb;
}

.possibilities-table thead th:first-child {
    border-top-left-radius: 10px;
    text-align: right;
    padding-right: 15px;
}

.possibilities-table thead th:last-child {
    border-top-right-radius: 10px;
}

.possibilities-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.possibilities-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.possibilities-table .row-label {
    text-align: right;
    padding-right: 15px;
    color: #888;
    white-space: nowrap;
}
