:root {
    --bs-primary: #6f42c1;
    --bs-primary-rgb: 111, 66, 193;
}

.hero-section {
    background: linear-gradient(135deg, #6f42c1 0%, #0d6efd 100%);
    color: white;
    padding: 10px 0;
    margin-bottom: 40px;
}

.flex-demo {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin: 15px 0;
    min-height: 200px;
}

.flex-item {
    background-color: var(--bs-primary);
    color: white;
    padding: 15px;
    margin: 5px;
    border-radius: 5px;
    text-align: center;
    min-width: 80px;
}

.flex-item:nth-child(2) {
    background-color: #0d6efd;
}

.flex-item:nth-child(3) {
    background-color: #198754;
}

.flex-item:nth-child(4) {
    background-color: #fd7e14;
}

.flex-item:nth-child(5) {
    background-color: #dc3545;
}

.code-block {
    background-color: #282c34;
    border-radius: 5px;
    padding: 15px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 15px 0;
    color: #abb2bf;
    overflow-x: auto;
}

.section-title {
    border-left: 5px solid var(--bs-primary);
    padding-left: 15px;
    margin-bottom: 30px;
    margin-top: 40px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(111, 66, 193, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.interactive-controls {
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

.control-group {
    margin-bottom: 15px;
}

.flex-visualization {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 20px;
    margin: 15px 0;
    transition: all 0.3s;
}

.axis-line {
    position: absolute;
    background-color: rgba(220, 53, 69, 0.3);
    z-index: 1;
}

.main-axis {
    width: 100%;
    height: 2px;
    top: 50%;
    left: 0;
}

.cross-axis {
    width: 2px;
    height: 100%;
    left: 50%;
    top: 0;
}

.axis-label {
    position: absolute;
    background-color: #dc3545;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    z-index: 2;
}

.main-axis-label {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.cross-axis-label {
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
}

.flex-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
    height: 100%;
}

.flex-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-nav {
    position: sticky;
    top: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quick-nav .nav-link {
    color: #495057;
    padding: 8px 15px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.2s;
}

.quick-nav .nav-link:hover,
.quick-nav .nav-link.active {
    background-color: rgba(111, 66, 193, 0.1);
    color: var(--bs-primary);
}

.responsive-demo {
    background-color: #e9ecef;
    border-radius: 5px;
    padding: 15px;
    margin: 10px 0;
}

.responsive-item {
    background-color: var(--bs-primary);
    color: white;
    padding: 10px;
    margin: 5px;
    border-radius: 3px;
    text-align: center;
}
