* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 5px 0.5px;
    background-color: #1a1a1a;
    height: 100vh;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

h1 {
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

.table-wrapper {
    display: grid;
    grid-template-columns: 0.75fr 1fr 1.25fr;
    gap: 10px;
    position: relative;
}

.table-title {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: -10px;
}

.table-title h1 {
    margin-bottom: 0;
    padding-bottom: 15px;
}

.column {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.column h2 {
    color: #5dade2;
    margin-top: 0;
    margin-bottom: 5px;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 2px solid #404040;
    padding-bottom: 10px;
}

.column .cell-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cell {
    background-color: #1a1a1a;
    border: 2px solid #404040;
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 80ms ease-in-out;
    position: relative;
}

.cell:hover {
    border-color: #5dade2;
    background-color: #2a2a2a;
    transform: translateX(5px);
}

.cell.highlighted {
    border-color: #5dade2;
    background-color: #2a2a2a;
    box-shadow: 0 0 10px rgba(93, 173, 226, 0.3);
}

.cell.expanded {
    background-color: #2a2a2a;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(1400px, 100vw);
    height: calc(90vh - 100px);
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 0 30px rgba(93, 173, 226, 0.5);
    border-color: #5dade2;
    padding-left: 30px;
}

.cell.expanded .cell-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    margin-top: 24px;
}

.cell-title {
    font-weight: bold;
    color: #e0e0e0;
    font-size: 1.0rem;
    margin-bottom: 14px;
}

.cell-content {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.0;
}

.cell-content ul {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 0;
    margin-bottom: 10px;
    padding-left: 10px;
    list-style-position: outside;
}

.cell-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 300ms ease-in-out;
    margin-top: 0;
    clear: both;
    position: absolute;
    visibility: hidden;
}

.cell-details.show {
    max-height: 1000px;
    margin-top: 15px;
    position: relative;
    visibility: visible;
}

.cell-details p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.cell-details ul {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-left: 0;
    margin-bottom: 10px;
    padding-left: 40px;
    list-style-position: outside;
}

.cell-details li {
    margin-bottom: 8px;
    padding-left: 0;
}

.expand-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #5dade2;
    font-size: 1.2rem;
    transition: transform 80ms ease-in-out;
    z-index: 10;
    cursor: pointer;
}

.cell.expanded .expand-indicator {
    transform: rotate(180deg);
}

a {
    color: #5dade2;
    text-decoration: none;
}

a:hover {
    color: #7ec8f0;
    text-decoration: underline;
}

.highlight {
    font-weight: bold;
    color: #ffffff;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.arrow {
    stroke: #404040;
    stroke-width: 2;
    fill: none;
    transition: all 80ms ease-in-out;
    marker-end: url(#arrowhead);
}

.arrow.active {
    stroke: #5dade2;
    stroke-width: 3;
    filter: drop-shadow(0 0 5px rgba(93, 173, 226, 0.5));
}

@media (max-width: 1024px) {
    .table-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    svg {
        display: none;
    }
}
