
#sequence-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 30vh;
    margin: 5px auto;
    padding: 0px;
    text-align: center;
    background-color: white;
    border-radius: 5px;
    overflow-x: auto;
    white-space: nowrap; /* Prevent line breaks */
}


.sequence-line {
    display: grid;
    grid-template-columns: repeat(55, 1fr); /* Exactly 50 amino acids per row */
    justify-content: center;
    align-items: center;
    width: 95%;
    height: 20px;
    margin: 3px 0;
    white-space: nowrap;
    font-size: 18px;
}

/* Real amino acids */
.amino-acid {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: monospace;
    line-height: 22px;
    border: 1px solid rgb(207, 248, 248);
    background-color: transparent;
    cursor: pointer;
    position: relative;  
}

.amino-acid:hover::after {
    content: attr(data-base-number);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);      
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.2s;
    pointer-events: none;
}

/* Mutation highlight */
.amino-acid.mutation {
  background-color: lightblue; /* muted red */
}

/* Impact-specific subset (overlay) */
.amino-acid.mutation-impact {
    background-color: rgba(140, 90, 40, 0.45); /* coffee */
}

/* Highlighted clicked amino acids */
.amino-acid.highlight {
    background-color: navy !important;
    color: white !important;
    border-color: navy !important;
    position: relative;
    z-index: 2;
}

.domain-highlight {
    border: 2px solid #bd0505;
}




/* Invisible spacers for alignment */
.empty-block {
    visibility: hidden;
    width: 100%;
    height: 100%;
}




.spacer {
    display: inline-block;
    width: 10px; /* Space between groups */
    text-align: center;
    font-weight: bold;
}

.line-number {
    display: inline-block;
    width: 30px; /* Slightly larger for better visibility */
    margin-right: 10px; 
    font-weight: bold;
}

.viewed {
    margin: 0;
    padding: 0;
    border: 1px solid navy; /* navy border to indicate viewed */
}



#mutation-list {
    margin-top: 20px;
}



