@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('fonts/JetBrainsMono-2.304/fonts/webfonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 100;
}



body {
    font-family: 'JetBrains Mono', 'VT323', monospace, 'Courier New', Courier, monospace;
    margin: 0;
    background-color: #FFFFFF;
    color: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}



#ascii-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
}


/* Animated Menu Styles */
.menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.menu-button {
    width: 105px;
    height: 42px;
    transition: width 0.3s cubic-bezier(.77,0,.18,1), background-color 0.2s, color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.7), rgba(255, 253, 253, 0.7), rgba(255, 252, 252, 0.7));
    color: #000;
    justify-content: center;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    box-shadow: -5px 5px 0px rgba(0, 0, 0, 0.75);
    padding: 0;
    backdrop-filter: blur(10px);
}

.menu-button .close-icon {
    opacity: 0;
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: opacity 0.2s;
    line-height: 1;
    text-align: center;
}

.menu-button .menu-symbol,
.menu-button .menu-text {
    opacity: 1;
    transition: opacity 0s;
    margin-left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: none;
    border-radius: 4px;
    margin: 0;
    flex: 1;
    color: rgb(23, 23, 23);
}

.menu-button .menu-symbol {
    background: #8e0202;
    color: white;
    margin-right: 0;
    border-radius: 5px;
    width: 40px;
    flex: none;
    padding: 0;
}

.menu-button.active {
    width: 42px;
    justify-content: center;
    padding: 0;
}

.menu-button.active .menu-text {
    opacity: 0;
    transition: opacity 0s;
}

.menu-button.active .menu-symbol {
    opacity: 0;
    transition: opacity 0s;
}

.menu-button.active .close-icon {
    opacity: 1;
    transition: opacity 0.2s 0.3s;
    color: rgb(23, 23, 23);
}

.menu-button:not(.active) .menu-text {
    transition: opacity 0.2s 0.3s;
}

@media (hover: hover) {
    .menu-button:hover {
        background: rgba(0, 0, 0, 0.75);
        color: #f0f0f0;
        box-shadow: 0px 0px 0px transparent;
    }

    .menu-button:hover .menu-symbol {
        background: rgba(0, 0, 0, 0.75);
    }

    .menu-button:hover .menu-text {
        color: #f0f0f0;
    }
}

@media (hover: hover) {
    .menu-button.active .close-icon:hover {
        color: #f0f0f0;
    }
}

.menu-bubbles {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.2s ease;
    align-items: flex-start;
}

.menu-bubbles.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.menu-bubble {
    padding: 0;
    width: 100px;
    height: 42px;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.7), rgba(255, 253, 253, 0.7), rgba(255, 252, 252, 0.7));
    color: #000;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: normal;
    box-shadow: -5px 5px 0px rgba(0, 0, 0, 0.75);
    transition: transform 0.2s, opacity 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
    transform: translateX(-100%);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
}

.menu-bubble .menu-bubble-symbol,
.menu-bubble .menu-bubble-text {
    opacity: 1;
    transition: opacity 0s;
    margin-left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: none;
    border-radius: 4px;
    margin: 0;
    color: rgb(23, 23, 23);
}

.menu-bubble .menu-bubble-symbol {
    background: #8e0202;
    color: white;
    margin-right: 0;
    border-radius: 5px;
    width: 40px;
    flex: none;
    padding: 0;
}

.menu-bubble .menu-bubble-text {
    flex: 1;
}

/* Individual menu bubble widths */
.menu-bubble:nth-child(1) {
    width: 115px; /* Search */
}

.menu-bubble:nth-child(2) {
    width: 115px; /* Browse */
}

.menu-bubble:nth-child(3) {
    width: 130px; /* Top Labs */
}

.menu-bubble-selected {
    color: #8B0000;
}

.menu-bubble-selected .menu-bubble-text {
    color: #8B0000;
}

.menu-bubble-selected .menu-bubble-symbol {
    background: #8B0000;
    color: #f0f0f0;
}
    
.menu-bubbles.active .menu-bubble {
    transform: translateX(0);
    opacity: 1;
}

.menu-bubble:nth-child(1) {
    transition-delay: 0.1s, 0.1s, 0s, 0s, 0s;
}

.menu-bubble:nth-child(2) {
    transition-delay: 0.2s, 0.2s, 0s, 0s, 0s;
}

.menu-bubble:nth-child(3) {
    transition-delay: 0.3s, 0.3s, 0s, 0s, 0s;
}

@media (hover: hover) {
    .menu-bubble:hover {
        background: rgba(0, 0, 0, 0.75);
        color: #f0f0f0;
        transform: translateX(5px);
        box-shadow: 0px 0px 0px transparent;
    }

    .menu-bubble:hover .menu-bubble-symbol {
        background: rgba(0, 0, 0, 0.75);
    }

    .menu-bubble:hover .menu-bubble-text {
        color: #f0f0f0;
    }

    .menu-bubble-selected:hover {
        background: rgba(0, 0, 0, 0.75);
        color: #f0f0f0;
        transform: translateX(5px);
        box-shadow: 0px 0px 0px transparent;
    }

    .menu-bubble-selected:hover .menu-bubble-symbol {
        background: rgba(0, 0, 0, 0.75);
    }

    .menu-bubble-selected:hover .menu-bubble-text {
        color: #f0f0f0;
    }
}



.container {
    padding: 2rem;
    text-align: center;
    width: 40%;
    max-width: 700px;
    position: relative;
    border-radius: 8px;
    font-size: 7.2px;
    font-family: 'JetBrains Mono', monospace;
}




/* Title container styling for the main title */
.title-container {
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 2em;
}

.title-container figure.bungee {
    margin: 0;
    padding: 0;
    line-height: 1;
    font-size: 7.2em;
    letter-spacing: 0.1em;
    margin-left: 0.1em;
}
.textarea-wrapper {
    position: relative;
    width: 80%;
}
textarea#searchInput {
    width: 100%;
    padding: 0.8rem;
    padding-right: 100px;
    height: 100px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.7), rgba(255, 253, 253, 0.7), rgba(255, 252, 252, 0.7));
    color: rgb(23, 23, 23);
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    outline: none;
    border: 1px solid #f0f0f0;
    box-sizing: border-box;
    resize: none;
    backdrop-filter: blur(10px);
    box-shadow: -6.5px 6.5px 0px rgba(0, 0, 0, 0.75);
    line-height: 1.3;
}

textarea#searchInput::placeholder {
    color: #888888;
}

button#searchButton {
    position: absolute;
    right: 12px;
    bottom: 15px;
    padding: 0;
    height: 36px;
    width: 36px;
    min-height: 0;
    border: 1px solid #f0f0f0;
    background: #8e0202;
    z-index: 1;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.1s;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -4px 4px 0px rgba(0, 0, 0, 0.75);
}

@media (hover: hover) {
    button#searchButton:hover {
        background-color: #000000;
        color: #FFFFFF;
        box-shadow: none;
        cursor: pointer;
    }
}
.search-form-group {
    display: flex;
    justify-content: center;
   
}




#results-container {
    width: 44%;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.result-box {
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    box-shadow: -6.5px 6.5px 0px rgba(0, 0, 0, 0.75);
    text-align: left;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.8), rgba(255, 253, 253, 0.8), rgba(255, 252, 252, 0.8));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    position: relative;
    backdrop-filter: blur(10px);
    color: rgb(23, 23, 23);
}

.description-reveal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.description-reveal.visible {
    opacity: 1;
}

.description-word {
    opacity: 0;
    transition: opacity 0.2s ease;
    display: inline-block;
    white-space: pre;
}

.description-word.visible {
    opacity: 1;
}
.result-box h2 {
    margin: 0;
    padding: 0;
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
    margin-top: 0.5rem;
}

.lab-name-link {
    color: #000 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lab-name-link:hover {
    color: #888888 !important;
}

.pi-name {
    font-size: 0.9rem;
    color: rgb(23, 23, 23);
    margin-top: 0.3rem;
    margin-bottom: 14px;
    font-style: normal;
}





.contact-section {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.contact-header {
    background: #8e0202;
    color: #f0f0f0;
    padding: 0;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.6rem;
}

.contact-content {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #000;
}

.copy-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #666;
}

.copy-button.copied {
    color: #b1040e;
}

.overall-score {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    
}

.copy-button:hover {
    color: #b1040e; 
    background: none;
    box-shadow: none;
}



.overall-score-box {
    border-radius: 10px;
    padding: 0.2em 0.8em;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: rgba(142, 2, 2, 0.1);
    color: #8e0202;
    min-width: 2em;
    height: 1.5em;
    line-height: 1;
}

.result-content {
    margin-top: 18px;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.result-content p {
    color: rgb(23, 23, 23);
    margin: 0 0 18px 0;
    line-height: 1.3;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 20px;
}

.menu-style-button {
    width: 145px;
    height: 42px;
    padding: 0;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.7), rgba(255, 253, 253, 0.7), rgba(255, 252, 252, 0.7));
    color: #000;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: normal;
    box-shadow: -5px 5px 0px rgba(0, 0, 0, 0.75);
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.menu-style-button .menu-symbol {
    background: #8e0202;
    color: white;
    margin-right: 0;
    border-radius: 5px;
    width: 40px;
    flex: none;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-style-button .menu-text {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: none;
    border-radius: 4px;
    margin: 0;
    flex: 1;
    color: rgb(23, 23, 23);
}

.menu-style-button:hover {
    background: rgba(0, 0, 0, 0.75);
    color: #f0f0f0;
    box-shadow: 0px 0px 0px transparent;
}

.menu-style-button:hover .menu-symbol {
    background: rgba(0, 0, 0, 0.75);
}

.menu-style-button:hover .menu-text {
    color: #f0f0f0;
}

.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.browse-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

footer {
    position: absolute;
    bottom: 40px;
    text-align: center;
    color: #555;
    font-size: 12px;
    font-family: 'JetBrains Mono', monospace;
}

.tags-container {
    margin: 0 0 18px 0;
}
.lab-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 4px 0;
    justify-content: flex-start;
    align-items: center;
}
.lab-tag {
    border-radius: 10px;
    padding: 0.2em 0.8em;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
    font-weight: normal;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid;
}
.school-tag {
    background: transparent;
    color: #000000;
    border-color: #000000;
}
.affiliation-tag {
    background: transparent;
    color: #b1040e;
    border-color: #b1040e;
}
.skeleton {
    position: relative;
    overflow: hidden;
}
.skeleton::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
    z-index: 1;
}
@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.skeleton-score {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 0;
}
.skeleton-title {
    width: 80%;
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 0;
}
.skeleton-pi {
    width: 60%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
    z-index: 0;
}
.skeleton-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 0;
}
.skeleton-tag {
    width: 80px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    z-index: 0;
}
.skeleton-content {
    position: relative;
    z-index: 0;
}
.skeleton-line {
    width: 100%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 0;
}
.skeleton-line.short {
    width: 70%;
}

.skeleton-papers {
    margin: 18px 0;
    padding-top: 1rem;
}

.skeleton-papers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0;
}

.skeleton-paper-box {
    background: transparent;
    padding: 0.7rem;
    border-radius: 0;
}

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

.skeleton-paper-label {
    width: 60px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
    z-index: 0;
}



.skeleton-paper-title {
    width: 100%;
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    z-index: 0;
}

.skeleton-contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.skeleton-contact-header {
    width: 36px;
    height: 36px;
    background: #e0e0e0;
    border-radius: 6px;
    position: relative;
    z-index: 0;
}

.skeleton-contact-text {
    width: 180px;
    height: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
    z-index: 0;
}


.topcontainer {
    text-align: center;
    width: 60%;
    max-width: 1000px;
    position: relative;
    border-radius: 8px;
    font-size: 7.2px;
    font-family: 'JetBrains Mono', monospace;
    border: 2px solid #000000;
    background: #fff;
    margin-left: auto;
    margin-right: 10vw;
}

.title-box {
    border: 2px solid #000000;
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
    box-shadow: -3px 3px 0px #000000;
}

.table-box {
    border: 2px solid #000000;
    border-radius: 8px;
    background: #fff;
    padding: 0 1rem 1rem 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
    box-shadow: -3px 3px 0px #000000;
}

.stanford-100-title {
    margin: 0;
    font-size: 1.5rem;
}

.browsecontainer {
    padding: 2rem;
    text-align: center;
    border: 2px solid #000000;
    max-width: 700px;
    position: relative;
    border-radius: 8px;
    font-size: 7.2px;
    font-family: 'JetBrains Mono', monospace;
}

.departments-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    justify-content: flex-start;
    align-items: center;
    padding: 0;
    margin: 0 0 1em 0;
    list-style: none;
}

.paper-title {
    font-style: italic;
    color: #666;
    font-size: 0.8rem;
}

.papers-section {
    margin: 0;
}

.papers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin: 0;
}

.paper-box {
    background: transparent;
    color: rgb(23, 23, 23);
    border: none;
    border-radius: 0;
    padding: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    line-height: 1.3;
    text-decoration: none;
    display: block;
    transition: all 0.2s ease;
    text-align: left;
}

.paper-box:hover {
    background: rgba(142, 2, 2, 0.1);
    border-radius: 6px;
}

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

.paper-score {
    border-radius: 10px;
    padding: 0.2em 0.8em;
    font-size: 0.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: normal;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: rgba(142, 2, 2, 0.1);
    color: #8e0202;
    min-width: 2em;
    height: 1.5em;
    line-height: 1;
}

.paper-title {
    font-size: 0.7rem;
    line-height: 1.2;
    font-style: normal;
}

.paper-label {
    border-radius: 10px;
    padding: 0.2em 0.8em;
    font-size: 0.85em;
    font-family: 'JetBrains Mono', monospace;
    font-weight: normal;
    margin: 0;
    display: inline-block;
    white-space: nowrap;
    border: 1px solid;
    background: transparent;
    color: #b1040e;
    border-color: #b1040e;
}

.browse-lab {
    /* Styling for browse lab results */
}

.dept-btn {
    /* Styling for department buttons (currently uses inline styles) */
}

.error {
    border: 1px solid #f0f0f0;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.8), rgba(255, 253, 253, 0.8), rgba(255, 252, 252, 0.8));
    color: rgb(23, 23, 23);
    box-shadow: -6.5px 6.5px 0px rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
}

/* New Browse Labs Layout Styles */
.browse-container {
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    font-family: 'JetBrains Mono', monospace;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.browse-search-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.browse-search-box input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: #fff;
}

.browse-search-box input:focus {
    outline: none;
    border-color: #b1040e;
}

.browse-search-box button {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    font-size: 12px;
}

.browse-search-box button:hover {
    background: #000;
    color: #fff;
}

.search-box input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: #fff;
}

.search-box input:focus {
    outline: none;
    border-color: #b1040e;
}

.search-box button {
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    font-size: 12px;
}

.search-box button:hover {
    background: #000;
    color: #fff;
}

.content-area {
    display: flex;
    gap: 0;
    overflow: visible;
}

.left-box {
    flex: 2;
    padding: 0 1.5rem;
    position: relative;
    overflow: visible;
}

.right-box {
    flex: 3;
    padding: 0 1.5rem;
}

.left-box h3,
.right-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 18px;
    font-weight: bold;
}

.lab-count-heading-left {
    text-align: left;
    margin-bottom: 1rem;
    font-size: 1.8em;
    font-family: "Bungee Shade", sans-serif;
    color: rgb(0, 0, 0);
    margin-top: 0;
}

.lab-results-header {
    padding: 1.5rem;
    border: 1px solid #f0f0f0;
    box-shadow: -6.5px 6.5px 0px rgba(0, 0, 0, 0.75);
    text-align: left;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.8), rgba(255, 253, 253, 0.8), rgba(255, 252, 252, 0.8));
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    position: relative;
    backdrop-filter: blur(10px);
    color: rgb(23, 23, 23);
}

/* Command Center Styles */
.command-center {
    padding: 1.5rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: -4px 4px 0px #000;
    margin-bottom: 1em;  /* Changed from 1.5rem */
    position: relative;
    z-index: 2;
}

.command-center h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    margin: 0;  /* Remove all margins */
    padding: 0; /* Remove all padding */
}

.filter-toggle-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    background: #fff;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: bold;
    font-size: 12px;
}

.filter-toggle-btn:hover {
    background: #000;
    color: #fff;
}

.filter-toggle-btn.active {
    background: #000;
    color: #fff;
}

.filter-btn {
    transition: all 0.2s ease;
}

.filter-btn.highlighted {
    background: #000 !important;
    color: #fff !important;
    box-shadow: -1px 1px 0px #000 !important;
    transform: translateX(2px);
}

.filter-btn.dept-btn.highlighted {
    background: #b1040e !important;
    color: #fff !important;
    box-shadow: -1px 1px 0px #b1040e !important;
}

/* Filter Box Styles */
.filter-box {
    padding: 1.5rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: -4px 4px 0px #000;
    margin-bottom: 1em;  /* Changed from 1.5rem */
    position: relative;
    z-index: 1;
    display: none;
}

/* Department Box Specific Styles */
.departments-box {
    margin-top: 0;  /* Changed from -0.5rem */
    border-radius: 8px;
    box-shadow: -4px 4px 0px #000;
    background: #fff;
}

.departments-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.department-btn {
    transition: all 0.2s ease;
}

.department-btn:hover {
    background: #b1040e !important;
    color: #fff !important;
    box-shadow: -1px 1px 0px #b1040e !important;
    transform: translateX(2px);
}

.department-btn.highlighted {
    background: #b1040e !important;
    color: #fff !important;
    box-shadow: -1px 1px 0px #b1040e !important;
    transform: translateX(2px);
}

.department-btn.highlighted span {
    background: #fff !important;
    color: #b1040e !important;
}

/* Update filter box styles to ensure consistency */
.filter-box {
    padding: 1.5rem;
    border: 2px solid #000;
    border-radius: 8px;
    background: #fff;
    box-shadow: -4px 4px 0px #000;
    margin-bottom: 1em;  /* Changed from 1.5rem */
    position: relative;
    z-index: 1;
    display: none;
}

.filter-box h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 14px;
    font-weight: bold;
    color: #000;
}





/* Submit Lab Button */
.submit-lab-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.submit-lab-button {
    width: 125px;
    height: 42px;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, rgba(255, 254, 254, 0.7), rgba(255, 253, 253, 0.7), rgba(255, 252, 252, 0.7));
    color: #000;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: normal;
    cursor: pointer;
    box-shadow: -5px 5px 0px rgba(0, 0, 0, 0.75);
    padding: 0;
    backdrop-filter: blur(10px);
}

@media (hover: hover) {
    .submit-lab-button:hover {
        background: rgba(0, 0, 0, 0.75);
        color: #f0f0f0;
        box-shadow: 0px 0px 0px transparent;
    }
}

@media (hover: hover) {
    .submit-lab-button:hover .submit-symbol {
        background: rgba(0, 0, 0, 0.75);
    }
}

.submit-symbol,
.submit-text {
    opacity: 1;
    transition: opacity 0s;
    margin-left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    border: none;
    border-radius: 4px;
    margin: 0;
    flex: 1;
}

.submit-symbol {
    background: #8e0202;
    color: white;
    margin-right: 0;
    border-radius: 5px;
    width: 40px;
    flex: none;
    padding: 0;
}

.submit-text {
    margin-right: 0;
    color: rgb(23, 23, 23);
}

@media (hover: hover) {
    .submit-lab-button:hover .submit-text {
        color: #f0f0f0;
    }
}

/* Submit Lab Form Styles */
.submit-lab-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: block;
    z-index: 10000;
}

.form-content {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: -4px 4px 0px #000;
    width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 50vh auto 0;
    transform: translateY(-50%);
}

.form-content h2 {
    margin: 0 0 1rem 0;
    font-family: 'JetBrains Mono', monospace;
    color: #000;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: normal;
    color: rgb(23, 23, 23);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    box-sizing: border-box;
    color: rgb(23, 23, 23);
}

.form-group input:focus {
    outline: none;
    border-color: #b1040e;
    box-shadow: 0 0 0 2px rgba(177, 4, 14, 0.2);
}

.helper-text {
    font-size: 0.7rem;
    color: #666;
    margin-top: 0.2rem;
    font-family: 'JetBrains Mono', monospace;
}

.form-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-buttons button {
    flex: 1;
    padding: 0.5rem 1rem;
    border: 2px solid #000;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.2s;
}

.form-buttons button[type="submit"] {
    background: #fff;
    color: #000;
}

.form-buttons button[type="submit"]:hover {
    background: #000;
    color: #fff;
}

.form-buttons button[type="button"] {
    background: #fff;
    color: #000;
}

.form-buttons button[type="button"]:hover {
    background: #000;
    color: #fff;
}

/* Autocomplete Styles */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #000;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid #eee;
}

.autocomplete-item:hover {
    background: #f5f5f5;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

/* Trapezoid Folders */
.trapezoid-folders {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    width: 120px;
    height: 200px;
}

.trapezoid-folder {
    position: absolute;
    width: 100px;
    height: 160px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 8px;
    transform: translateX(80px);
    transition: transform 0.3s ease;
}

.trapezoid-folder::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 4px;
}

.trapezoid-folder:nth-child(1)::after {
    background: #8B0000;
}

.trapezoid-folder:nth-child(2)::after {
    background: #B22222;
}

.trapezoid-folder:nth-child(3)::after {
    background: #DC143C;
}

.trapezoid-folder:nth-child(4)::after {
    background: #FF0000;
}

.trapezoid-folder::before {
    content: '';
    position: absolute;
    bottom: 70px;
    left: -45px;
    width: 130px;
    height: 30px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-90deg);
    transform-origin: center;
    border: 1px solid red;
}

.trapezoid-folder:nth-child(1)::before {
    content: 'Stanford 100';
}

.trapezoid-folder:nth-child(2)::before {
    content: 'Engineering 100';
}

.trapezoid-folder:nth-child(3)::before {
    content: 'Medicine 100';
}

.trapezoid-folder:nth-child(4)::before {
    content: 'Humanities 100';
}

.trapezoid-folder:nth-child(1) {
    top: -60px;
    z-index: 3;
}

.trapezoid-folder:nth-child(2) {
    top: -20px;
    z-index: 2;
}

.trapezoid-folder:nth-child(3) {
    top: 20px;
    z-index: 1;
}

.trapezoid-folder:nth-child(4) {
    top: 60px;
    z-index: 0;
}

.trapezoid-folder.selected {
    transform: translateX(35px);
}

.trapezoid-folder:hover {
    transform: translateX(35px);
}

.independent-lab-tag {
    background-color: #e6f5ed !important;
    color: #00a651 !important;
    border: 1px solid #00a651 !important;
}

.independent-labs-box {
    background-color: rgba(0, 166, 81, 0.05);
    border: 1px solid #00a651;
}

#independent-labs-btn.active {
    background-color: #00a651;
    color: white;
}

/* Fred Terman Page Styles */
.fred-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.fred-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    border: 2px solid #000;
    box-shadow: -3px 3px 0px #000;
}

.fred-section h3 {
    color: #b1040e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    border-bottom: 2px solid #b1040e;
    padding-bottom: 0.5rem;
}

.fred-section p {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #333;
}

.fred-section p:last-child {
    margin-bottom: 0;
}

.fred-navigation {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

.fred-navigation .menu-style-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: bold;
    box-shadow: -3px 3px 0px #000;
    transition: all 0.2s ease;
}

.fred-navigation .menu-style-button:hover {
    transform: translate(-2px, 2px);
    box-shadow: -1px 1px 0px #000;
    background: #f0f0f0;
}

.container h2 {
    text-align: center;
    color: #b1040e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Mobile Breakpoint for Smartphones */
@media screen and (max-width: 768px) {
    
    body {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        display: flex;
        flex-direction: column;
        margin-top: 0;
    }
    
    .title-container {
        width: 100%;
        margin-top: 10vw;
        margin-bottom: 8vw;
    }
    
    .title-container figure.bungee {
        font-size: 10vw;
    }
    
    .textarea-wrapper {
        width: 90%;
    }
    
    #ascii-background {
        background-position: 60% center;
    }
    
    footer {
        position: fixed;
        bottom: 20px;
        left: 0;
        right: 0;
        text-align: center;
    }
    
    .menu-button {
        width: 100px;
        height: 40px;

    }
    
    .menu-button .menu-symbol {
        width: 38px;
        height: 100%;
    }
    
    .submit-lab-button {
        width: 120px;
        height: 40px;
        font-size: 13px;
    }
    
    .submit-symbol {
        width: 38px;
        height: 100%;
    }
    
    .menu-container {
        position: absolute;
        top: 20px;
        left: 20px;
    }
    
    .submit-lab-container {
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .menu-bubble {
        height: 40px;
        font-size: 13px;
    }
    
    .menu-bubble .menu-bubble-symbol {
        width: 38px;
    }
    
    button#searchButton {
        height: 38px;
        width: 38px;
    }
    
    .menu-button .close-icon {
        font-size: 16px;
        line-height: 1;
        text-align: center;
    }
    
    #results-container {
        width: 100%;
        max-width: none;
        margin: 60px 0 0 0;
        transition: margin-top 0.3s ease;
    }
    
    /* When menu is active, push results down */
    body.menu-active #results-container {
        margin-top: 220px;
    }
    
    /* Prevent menu-active from affecting main page layout */
    body.menu-active .title-container,
    body.menu-active .search-form-group {
        margin-top: 0;
        transform: none;
    }
    
    /* Mobile submit lab form width */
    .form-content {
        width: 320px;
    }
    

    

    
}





