
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 3rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.flex-spacer {
    flex: 1;
}

.title {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    flex: 2;
}

.language-selector {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
}

.language-icon {
    font-size: 1.25rem;
    color: #6b7280;
}

.language-buttons {
    display: flex;
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    color: #6b7280;
}

.lang-btn:hover {
    color: #1f2937;
    background-color: #e5e7eb;
}

.lang-btn.active {
    background-color: #42B266;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 32rem;
    margin: 0 auto;
    display: none !important;
}

/* Instructions */
.instructions {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    max-width: 64rem;
    margin-left: auto;
    margin-right: auto;
    /* display: none !important; */
}

.instructions h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1rem;
}

.instructions-content p {
    color: #374151;
    margin-bottom: 0.5rem;
}

/* School Selector */
.school-selector {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.school-selector h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.school-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.school-dropdown {
    padding: 12px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
}

.school-dropdown:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.school-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.school-info {
    text-align: center;
}

.school-info span {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.result-card {
    border-color: #42B266;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    text-align: center;
    margin-bottom: 1rem;
}

/* Binary Grid */
.binary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.grid-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.grid-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.line-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-align: center;
    display: none !important;
}

.binary-cell {
    width: 100%;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.binary-cell:hover {
    background-color: #f3f4f6;
    border-color: #42B266;
}

.binary-symbol {
    font-size: 1.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 700;
    color: #1f2937;
}

.reset-btn {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: #e5e7eb;
    color: #1f2937;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.reset-btn:hover {
    background-color: #d1d5db;
}

/* Result */
.result-content {
    text-align: center;
}

.no-result {
    color: #9ca3af;
    font-size: 1.125rem;
    padding: 2rem 0;
}

.result-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-position {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-position-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.result-position-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #42B266;
}

.result-position-total {
    font-size: 0.875rem;
    color: #9ca3af;
}

.result-name {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.result-name-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.result-name-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    background-color: #f9fafb;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
}

.result-pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    display: none !important;
}

.odu-link {color: #42B266}

.result-pattern-label {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.result-pattern-value {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 1.125rem;
    font-weight: 700;
    color: #374151;
    background-color: #f9fafb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    margin-top: 5rem;
}

.footer-content {
    border-top: 1px solid #e5e7eb;
    max-width: 64rem;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-line {
    width: 4rem;
    height: 1px;
    background-color: #42B266;
}

.footer-info {
    text-align: center;
}

.footer-developed {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.footer-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    color: #42B266;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #358a54;
}

.instagram-icon {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .school-options {
        align-items: stretch;
    }
    
    .school-dropdown {
        min-width: 100%;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .binary-grid {
        gap: 1rem;
    }
    
    .grid-column {
        gap: 0.5rem;
    }
    
    .binary-cell {
        height: 3rem;
    }
    
    .binary-symbol {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: 1rem;
    }
}
