
body {
    background-color: #121212;
    color: #e0e0e0;
}


.white-1e1d7 {
    background-color: #f0d9b5;
}

.black-3c85d {
    background-color: #b58863;
}

.highlight-best {
    background-color: rgba(255, 0, 0, 0.8) !important;
    /* bright green with transparency */
    box-shadow: inset 0 0 25px #ff0000 !important;
    /* glow effect */
}


#myBoard {
    touch-action: none;
}

.move-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    font-size: 1rem;
    background-color: #1e1e1e;
    border: 1px solid #2c2c2c;
    margin-bottom: 6px;
    border-radius: 6px;
    transition: all 0.3s ease-in-out;
    color: #e0e0e0;
}

.move-item:hover {
    background-color: #2c3e50;
    cursor: pointer;
    transform: translateX(3px);
}

.move-item.active {
    background-color: #0d6efd33;
    font-weight: 600;
    border-left: 4px solid #0d6efd;
}

.highlight-square {
    border: 3px solid blue;
}

.move-number {
    font-weight: bold;
    margin-right: 12px;
    color: #ffffff;
}

.move-text {
    display: flex;
    gap: 20px;
    flex-grow: 1;
}

.board-section {
    max-width: 100%;
}

.sidebar {
    max-height: 500px;
    overflow-y: auto;
    background: #1e1e1e;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #2c2c2c;
}

textarea.form-control {
    background-color: #2c2c2c;
    color: #ffffff;
    border: 1px solid #444;
}

.btn-outline-secondary {
    color: #ffffff;
    border-color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

#engineOutput {
    background: linear-gradient(135deg, #1e1e2f, #282c3a);
    color: #c8d0f7;
    font-family: 'Fira Mono', Consolas, Monaco, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 16px;
    border-radius: 12px;
    box-shadow:
        0 4px 12px rgba(0, 0, 50, 0.5),
        inset 0 0 10px #3a3f5a;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    user-select: text;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden !important;
}


.card:hover {
    transform: scale(1.02);
}

.card-text {
    color: #ccc;
}

.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-primary:hover {
    background-color: #0d6efd;
    color: white;
}

.opening-card {
    border-radius: 10px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background: linear-gradient(to right, #1e1e1e, #252525);
    border: 1px solid #444;
}

.opening-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
}

.opening-card .card-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.opening-card .card-text {
    color: #bbb;
}

.opening-card .btn-outline-primary {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}


@media (max-width: 992px) {
    .mobile-board-controls {
        position: sticky;
        bottom: 0;
        background: #121212;
        padding: 0.5rem;
        z-index: 10;
    }

    .attr-buttons{
        display: block !important;
    }

    .sidebar {
        max-height: none;
        overflow: visible;
    }
}