:root {
    --box-bg-color: lightgoldenrodyellow;
    --selected-box-bg-color: gold;

}

/*lightgoldenrodyellow*/


container {
    display: flex;
    height: 100%;
    width: fit-content;
}

panel {
    width: 300px;
    display: flex;
    flex-direction: column;
    padding: 8px;
    padding-left: 32px;
    overflow-y: auto;
    overflow-x: hidden;
}

panel:not(:first-child) {
    border-left: 6px solid var(--selected-box-bg-color);
}

.superposition {
    position: relative;
    perspective: 1000px;
}

.superposition div {
    width: 300px;
    display: flex;
    flex-direction: column;
    background: rgba(128, 128, 128, 0.05);

}


td {
    border: 1px solid black;
}

/* On décale chaque carte manuellement ou via un sélecteur */
.card-1 {
    position: absolute;
    z-index: 3;
    transform: translate(0, 0);
}

.card-2 {
    position: absolute;
    z-index: 2;
    transform: translate(5px, 5px);
    /* Décalage vers la droite et le haut */
}

.card-3 {
    z-index: 1;
    transform: translate(10px, 10px);
    /* Décalage vers la droite et le haut */
}

panel[hidden] {
    display: none !important;
}

row {
    flex-direction: row;
    display: flex;
    align-content: space-between;
}

token {
    text-align: center;
    font-weight: bold;
    display: inline-block;
    color: blue;
    margin: 2px;
    font-size: 0.75em;
    background-color: rgba(0, 0, 255, 0.1);
}


box {
    text-align: center;
    background-color: var(--box-bg-color);
    padding: 8px;
    margin: 3px;
    border: 2px solid black;
}

box[data-goto] {
    cursor: pointer;
}

box.selected {
    margin-right: -25px;
    border-right: 2px solid var(--selected-box-bg-color);
    background-color: var(--selected-box-bg-color);
}


nothing {
    width: 64px;
}

example {
    background-color: rgb(215, 255, 156);
    border-radius: 8px;
    padding:8px;
}

example::before {
    content: "Example.";
    font-weight: bold;
}

embedding-vector {
    background: radial-gradient(rgba(0, 128, 255, 0.2), rgba(0, 128, 255, 0));
    margin: 2px;
    width: 64px;
}

attention-vector {
    background: radial-gradient(rgba(64, 255, 64, 0.2), rgba(0, 128, 255, 0));
    margin: 2px;
    scale: 0.6;
    display: inline-block;
}

.Q {
    background: radial-gradient(rgba(255, 0, 0, 0.2), rgba(0, 128, 255, 0));
}

.K {
    background: radial-gradient(rgba(128, 0, 255, 0.2), rgba(0, 128, 255, 0));
}

.V {
    background: radial-gradient(rgba(0, 255, 0, 0.2), rgba(0, 128, 255, 0));
}