body {
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    background: #181a1b;
    color: white;
    overflow-x: scroll
}

/* Additional styles for the front page */
.front-page-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.welcome-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(138, 13, 12, 0.1);
    border-radius: 10px;
    border: 1px solid #8a0d0c;
}

.welcome-section h2 {
    font-size: 2.5em;
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: normal;
}

.welcome-section p {
    font-size: 1.2em;
    color: #cccccc;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.school-section {
    margin-bottom: 3rem;
}

.school-title {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 1.5rem;
    text-align: left;
    border-bottom: 2px solid #8a0d0c;
    /* Your red accent */
    padding-bottom: 0.5rem;
    padding-left: 10px;
    border-left: 3px solid #8a0d0c;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.program-card {
    background: #2a2e30;
    border-radius: 10px;
    padding: 2rem;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: #8a0d0c;
    box-shadow: 0 10px 25px rgba(138, 13, 12, 0.3);
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #8a0d0c;
}

.program-card h3 {
    font-size: 1.5em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.program-card p {
    color: #cccccc;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.program-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #999;
}

.program-card:hover .program-icon {
    transform: scale(1.2);
    /* Enlarge effect */
    color: #ffffff;
    opacity: 1;
    text-shadow: 0 0 10px rgba(138, 13, 12, 0.5);
    /* Glow effect */
}

.view-link {
    color: #cbb2b2;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.view-link:hover {
    color: #ffffff;
    /* Pure white on hover */
    transform: translateX(5px);
}

.program-card.has-concentrations .view-link {
    color: #cbb2b2;
}

.program-card.has-concentrations .view-link:hover {
    color: #ffffff;
    /* Your slightly lighter red */
}

.features-section {
    background: rgba(138, 13, 12, 0.1);
    padding: 3rem 2rem;
    border-radius: 10px;
    border: 1px solid #8a0d0c;
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 2rem;
    color: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 1rem;
    color: #8a0d0c;
}

.feature-item h4 {
    font-size: 1.2em;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-item p {
    color: #cccccc;
    line-height: 1.5;
}



/* Header styling */
.wide-bg-colour {
    text-align: left;
    background-color: #8a0d0c;
    display: block;
    padding: 20px;
    margin-bottom: 20px;
    width: 100vw;
    /* Ensures it spans the entire width of the viewport */
    height: auto;
    /* Adjusts the height to auto */
    position: relative;
}

footer {
    width: 100vw;
}

.titl {
    padding-top: 0;
    margin-top: 0;
    font-size: 2em;
    font-weight: normal;
    color: rgb(255, 255, 255);
    text-align: center;
}

.legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding: 10px;
    flex-wrap: wrap;
}

.left-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.center-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    /* Allow centering by occupying remaining space */
    margin-left: 20px;
}

.legend-item {
    display: flex;
    color: white;
    align-items: center;
    margin: 0 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    border-radius: 3px;
}

.legend-arrow-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.arrow-line {
    width: 20px;
    height: 1.6px;
    background-color: #FFFFFF;
}

.arrow-line-dotted {
    width: 20px;
    height: 0px;
    border-top: 1.6px dotted #ffffff;
}

.arrow-head {
    width: 0;
    height: 0;
    border-left: 6px solid #FFFFFF;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    margin-left: -1px;
}

.legend-text {
    font-size: 14px;
}

#settings-bar {
    margin-top: 15px;
}

.legend-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 0;
    flex-wrap: wrap;
}

/* Zoom controls - positioned at bottom right */
#zoom-size-div {
    position: fixed;
    right: 20px;
    bottom: 20px;
    font-size: 1.2em;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: white;
    padding: 1rem;
    border-radius: 0.5em;
    background: #660808;
    width: 200px;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#zoom-range-slider {
    width: 100%;
    margin-top: 10px;
}

div#root {
    padding: 0;
    margin: 0;
    position: relative;
}

.year-label {
    position: absolute;
    left: 0;
    font-size: 1.7em;
    font-weight: 600;
    color: #cccccc;
    z-index: 10;
    left: 1.5em;
}

.svgConns {
    position: absolute;
}

.classBox {
    width: 12em;
    height: 5em;
    text-align: center;
    border-radius: 0.5em;
    position: absolute;
    box-shadow: 0 10px 16px 3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
    padding: 0.3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 500ms ease;
}

.internship {
    width: 82em;
}

.internship-short {
    width: 68em;
}

.internship-large {
    width: 96em;
}

/* by level */
div#root[colorcode="level"] .yl-1 {
    border-style: solid;
    border-color: #8c860b;
    border-width: 2px;
    background-color: #686204;
}

div#root[colorcode="level"] .yl-2 {
    border-style: solid;
    border-color: #487b0b;
    border-width: 2px;
    background-color: #496a0a;
}

div#root[colorcode="level"] .yl-3 {
    border-style: solid;
    border-color: #0f5376;
    border-width: 2px;
    background-color: #0d4764;
}

div#root[colorcode="level"] .yl-4 {
    border-style: solid;
    border-width: 2px;
    border-color: #2d1364;
    background-color: #282b2d;
}

div#root[colorcode="level"] .yl-5 {
    border-style: solid;
    border-color: #1f3c36;
    /* Deep teal-green */
    border-width: 2px;
    background-color: #1a2a26;
    /* Darker teal-grey */
}



.course-code-full {
    font-weight: 900;
    margin-right: 5px;
}



#prereq-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid #555;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    opacity: 0;
}

#prereq-tooltip.show {
    opacity: 1;
}

/* Back Button Styles - Dark Theme */
#back-button-container {
    position: absolute;
    /* Positioned inside header */
    top: 20px;
    left: 20px;
    z-index: 1000;
    /* Ensures it stays on top */
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #660808;
    /* Darker shade of red */
    color: #FFFFFF;
    /* White text */
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 0.5em;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    background-color: #8a0d0c;
    /* Slightly lighter red on hover */
    color: #FFFFFF;
    text-decoration: none;
}

.back-arrow {
    font-size: 16px;
    font-weight: bold;
}

/* Program icon */
.program-icon {
    font-size: 1.2em;
    margin-right: 20px;
    width: 24px;
    text-align: center;
    color: #f8f9fa;
    /* Light color that matches your header text */
    opacity: 0.9;
    transition: all 0.3s ease-in-out;
    /* Added transition */
}

/* Concentration icon */
.concentration-icon {
    font-size: 1.1em;
    margin-right: 15px;
    width: 24px;
    text-align: center;
    color: #cccccc;
    /* Matches your secondary text color */
    opacity: 0.8;
    transition: all 0.3s ease-in-out;
    /* Added transition */
}

/* Hover effects for icons */
.program-card:hover .program-icon {
    color: #ffffff;
    /* Brighter on hover */
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    /* Slight upward movement and scaling */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtle shadow */
}

.concentration-link:hover .concentration-icon {
    color: #ffffff;
    /* Brighter on hover */
    opacity: 1;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Better alignment for program cards with icons */
.program-card h3 {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    margin-bottom: 1rem;
    color: #ffffff;
}

/* Better alignment for modal headers */
.modal-content h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 10px;
    font-size: 1.5em;
}

/* Better alignment for concentration links */
.concentration-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: rgba(138, 13, 12, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #8a0d0c;
    transition: all 0.3s ease-in-out;
    /* Added transition */
    transform: translateY(20px);
    opacity: 0;
}


/* Rest of your existing CSS remains the same */
.concentration-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.concentration-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #2a2e30;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    border: 2px solid #8a0d0c;
    text-align: center;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.concentration-modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content p {
    color: #ccc;
    margin-bottom: 25px;
}

.concentration-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.concentration-modal.active .concentration-link {
    transform: translateY(0);
    opacity: 1;
}

.concentration-link:hover {
    background: rgba(138, 13, 12, 0.4);
    transform: translateY(-2px);
}

.close-modal {
    background: #8a0d0c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.3s ease;
}

.close-modal:hover {
    background: #a00e0d;
}

.program-card.has-concentrations {
    cursor: pointer;
}

/* Staggered animation for links */
.concentration-link:nth-child(1) {
    transition-delay: 0.1s;
}

.concentration-link:nth-child(2) {
    transition-delay: 0.2s;
}

.concentration-link:nth-child(3) {
    transition-delay: 0.3s;
}

.concentration-link:nth-child(4) {
    transition-delay: 0.4s;
}

.concentration-link:nth-child(5) {
    transition-delay: 0.5s;
}

.concentration-link:nth-child(6) {
    transition-delay: 0.6s;
}

.concentration-link:nth-child(7) {
    transition-delay: 0.7s;
}

@media (max-width: 768px) {
    #back-button-container {
        top: 15px;
        left: 15px;
    }

    .back-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #back-button-container {
        top: 10px;
        left: 10px;
    }

    .back-button {
        padding: 6px 12px;
        font-size: 12px;
    }

    .back-arrow {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
    }

    .welcome-section h2 {
        font-size: 2em;
    }

    .programs-grid {
        grid-template-columns: 1fr;
    }

    .program-card {
        padding: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .welcome-section {
        padding: 1rem;
    }

    .welcome-section h2 {
        font-size: 1.8em;
    }

    .welcome-section p {
        font-size: 1em;
    }
}

/* Media queries for responsiveness */
@media (max-width: 600px) {
    .titl {
        font-size: 1.5em;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
    }

    .legend-item {
        margin: 5px 0;
    }

    #zoom-size-div {
        width: 150px;
        right: 10px;
        bottom: 10px;
    }
}

@media (min-width: 601px) and (max-width: 767px) {
    .legend {
        justify-content: space-around;
    }
}

@media (min-width: 768px) {
    .legend {
        justify-content: center;
    }
}

.gened-info {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    margin: 5px 0;
}

.gened-info strong {
    color: #2c3e50;
}

.gened-info em {
    color: #7f8c8d;
    font-style: italic;
}

#prereq-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid #555;
    max-width: 320px;
    /* Reduced from 400px */
    min-width: 200px;
    /* Reduced from 250px */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: opacity 0.3s ease;
    opacity: 0;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
}

/* Specific styles for electives tooltip content */
.electives-info {
    color: #cccccc;
    font-style: italic;
    margin: 6px 0;
    font-size: 0.9em;
}

.elective-option {
    margin: 6px 0;
    padding: 4px 6px;
    border-left: 2px solid #8a0d0c;
    background: rgba(138, 13, 12, 0.1);
    border-radius: 2px;
    font-size: 0.85em;
    line-height: 1.2;
}

.elective-option strong {
    color: #ffffff;
    font-weight: 600;
}

/* GenEd tooltip styles */
.gened-instruction {
    color: #cccccc;
    font-style: italic;
    margin: 4px 0;
    font-size: 0.85em;
}

.gened-option {
    margin: 4px 0;
    padding: 3px 6px;
    background: rgba(52, 152, 219, 0.1);
    border-left: 2px solid #3498db;
    border-radius: 2px;
    font-size: 0.85em;
    line-height: 1.2;
}

.no-options {
    color: #e74c3c;
    font-style: italic;
    padding: 6px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 3px;
    margin: 4px 0;
    font-size: 0.85em;
}

/* Ensure text wraps properly */
#prereq-tooltip strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.95em;
    color: #ffffff;
    line-height: 1.2;
}

#prereq-tooltip br {
    margin-bottom: 3px;
}

#prereq-tooltip small {
    color: #999;
    font-size: 0.75em;
    display: block;
    margin-top: 6px;
}

.total-credits {
    font-size: 0.75em;
    font-weight: normal;
}
.notification-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #2a2e30 0%, #1a1d1e 100%);
    border: 2px solid #8a0d0c;
    border-radius: 12px;
    padding: 25px;
    max-width: 480px;
    width: 90%;
    box-shadow:0 10px 40px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    font-family: 'Poppins', sans-serif;
    color: white;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
    backdrop-filter: blur(10px);
}

.notification-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8a0d0c 0%, #660808 100%);
    border-radius: 12px 12px 0 0;
}

.popup-content p {
    margin: 0 0 25px 0;
    color: #f8f9fa;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 300;
    padding: 0 10px;
}

.popup-content p strong {
    color: #ffffff;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    border-bottom: 1px solid rgba(138, 13, 12, 0.3);
    padding-bottom: 8px;
}

.close-btn {
    background: linear-gradient(135deg, #8a0d0c 0%, #660808 100%);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(138, 13, 12, 0.3);
    position: relative;
    overflow: hidden;
}

.close-btn:hover {
    background: linear-gradient(135deg, #a00e0d 0%, #8a0d0c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(138, 13, 12, 0.4);
}

.close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(138, 13, 12, 0.3);
}

.close-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.close-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -40%) scale(0.95);
    }
}

/* Add a class for fade out */
.notification-popup.fading-out {
    animation: fadeOutDown 0.4s ease-in forwards;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

@media (max-width: 768px) {
    .notification-popup {
        padding: 20px;
        max-width: 400px;
        border-width: 1px;
    }
    
    .popup-content p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .popup-content p strong {
        font-size: 16px;
    }
    
    .close-btn {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .notification-popup {
        padding: 18px;
        max-width: 320px;
        border-radius: 10px;
    }
    
    .popup-content p {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 18px;
    }
    
    .popup-content p strong {
        font-size: 15px;
    }
    
    .close-btn {
        padding: 9px 20px;
        font-size: 12px;
    }
}