/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

/* Timeline styles */
.timeline {
    position: relative;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 8px;
    width: 2px;
    background-color: #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #000;
    transform: translateY(4px);
}

.timeline-content {
    padding-left: 10px;
}

/* Tab styles */
.tab-btn {
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.tab-btn.active {
    opacity: 1;
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Equipment card styles */
.equipment-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
    background-color: #f9fafb;
    transition: transform 0.3s, box-shadow 0.3s;
}

.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.equipment-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

/* Baseball field styles */
.baseball-field-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.baseball-field {
    width: 100%;
    height: auto;
}

.position-dot {
    cursor: pointer;
    transition: r 0.3s;
}

.position-dot:hover {
    r: 8;
}

.position-info {
    transition: all 0.3s ease;
}

/* Pitcher animation styles */
.pitch-animation-container {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.pitch-svg {
    width: 100%;
    height: auto;
}

.pitch-type {
    transition: background-color 0.3s;
}

.pitch-type.selected {
    background-color: #f3f4f6;
    border-color: #000;
}

/* Vocabulary styles */
.vocab-tab {
    background-color: #f3f4f6;
    transition: background-color 0.3s;
}

.vocab-tab.active {
    background-color: #000;
    color: #fff;
}

.vocab-content {
    display: none;
}

.vocab-content.active {
    display: block;
}

.vocab-card {
    padding: 1rem;
    border-radius: 0.25rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s;
}

.vocab-card:hover {
    transform: translateY(-2px);
}

/* Quiz styles */
.quiz-container {
    transition: all 0.3s ease;
}

.option-item {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.option-item:hover {
    background-color: #f3f4f6;
}

.option-item.selected {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

/* Rule demo styles */
.rule-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #d1d5db;
    margin: 0 4px;
    transition: background-color 0.3s;
    cursor: pointer;
}

.rule-dot.active {
    background-color: #000;
    transform: scale(1.2);
}

.rule-demo-step {
    display: none;
}

.rule-demo-step.active {
    display: block;
}

/* Fix for tab navigation */
.tab-header {
    cursor: pointer;
}

/* Fix for modals */
#rule-demo-modal, #history-modal {
    display: none;
}

#rule-demo-modal.show, #history-modal.show {
    display: flex;
}

/* Fix for buttons */
button {
    cursor: pointer;
}

/* Fix for quiz option items */
#options-container {
    cursor: pointer;
}
