/* Constrain molecule SVGs to fit within guess containers */
.moldrawing,
.moldrawingnozoom {
    max-width: 100%;
    max-height: 100%;
    overflow: hidden;
}

.moldrawing svg,
.moldrawingnozoom svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.moldrawing:hover {
    transform: scale(1.5);
}

#submit-and-hints-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    gap: 1rem;
}

#hints-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    width: 8rem;
    height: 4rem;
}

.dark #hints-wrapper {
    border-color: #4b5563;
    background-color: rgba(51, 65, 85, 0.5);
}

#hints-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

#hints-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.dark #hints-label {
    color: #9ca3af;
}

#no-hints-message {
    display: none;
    font-size: 0.625rem;
    color: #9ca3af;
    text-align: center;
    padding: 0.25rem 0;
}

.dark #no-hints-message {
    color: #6b7280;
}

#hints-wrapper.no-hints #hints-container,
#hints-wrapper.no-hints #hints-label {
    display: none;
}

/* Action buttons (reset/submit) */
#submit-button {
    padding: 0.875rem 1.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    transition: background-color 0.15s, border-color 0.15s;
    width: 8rem;
    height: 4rem;
}

#submit-button:hover {
    background-color: #2b7fff;
    border-color: #155dfc;
    color: white;
}

.dark #submit-button {
    border-color: #4b5563;
    background-color: rgba(51, 65, 85, 0.5);
    color: #e5e7eb;
}

.dark #submit-button:hover {
    background-color: rgba(51, 65, 85, 0.8);
    border-color: #6b7280;
}

#hints-wrapper.no-hints #no-hints-message {
    display: block;
}

.hint-viewed {
    color: var(--hint-viewed-light);
    cursor:pointer;
}

.hint-viewed:hover {
    color: var(--hint-viewed-dark);
}
.hint {

    color: #9ca3af;
    cursor:pointer;
}

.hint:hover {

    color: var(--hint-viewed-light);
}

.hint-disabled {
    /* color: white; */
    display: None;
}

.hint.hint-static,
.hint-viewed.hint-static {
    cursor: default;
}

.hint.hint-static:hover {
    color: #9ca3af;
}

.hint-viewed.hint-static:hover {
    color: var(--hint-viewed-dark);
}

.hint-locked {
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Molecule delete button */
.molecule-wrapper {
    position: relative;
}

.molecule-wrapper .delete-btn {
    display: none;
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.molecule-wrapper:hover .delete-btn {
    display: flex;
}

.molecule-wrapper .delete-btn:hover {
    background-color: #dc2626;
}
