:root {
    --primary-color: #b09BB1FF0;
    --secondary-color: #76949F;
    --background-color: #fff;
    --primary-text-color: #000;
    --secondary-text-color: #b;
    --accent-color: #ba0c2f;
}

#brand {
    font-family: 'Radio Canada', sans-serif;
    color: var(--accent-color);
}

body {
    position: relative;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 1rem;
}

#intro {
    display: grid;
    grid-row-gap: 1em;
    grid-column-gap: 1em;
}

#tagline {
    font-size: 4em;
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-text-color);
}

#subtagline {
    font-size: 1.6em;
    font-weight: 500;
    line-height: 1.1;
    color: var(--secondary-text-color);
}

#search-form-search-page {
    width: 50%;
}

/* Large and above */
@media screen and (min-width: 992px) {
    #intro {
        grid-template-columns: 1fr 1fr;
    }

    #example-cards {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    #example-instructor-card {
        grid-column-start: 2;
        grid-column-end: span 2;
        grid-row-start: 1;
        grid-row-end: span 2;
        z-index: 2;
    }

    #example-course-card {
        grid-column-start: 1;
        grid-column-end: span 2;
        grid-row-start: 2;
        grid-row-end: span 2;
        z-index: 1;
    }
}

/* Small to Medium */
@media screen and (min-width: 576px) and (max-width: 991px) {
    #intro {
        justify-content: center;
    }

    #tagline, #subtagline {  
        text-align: center;
    }

    #example-cards {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
    }

    #example-instructor-card {
        grid-column-start: 2;
        grid-column-end: span 2;
        grid-row-start: 1;
        grid-row-end: span 2;
        z-index: 2;
    }

    #example-course-card {
        grid-column-start: 1;
        grid-column-end: span 2;
        grid-row-start: 2;
        grid-row-end: span 2;
        z-index: 1;
    }

    #search-form-search-page {
        width: 100%;
    }
}

/* Extra Small (Smartphones) */
@media screen and (max-width: 575px) {
    #intro {
        justify-content: center;
    }

    #tagline, #subtagline {  
        text-align: center;
    }

    #example-cards {
        display: grid;
        grid-row-gap: 1em;
    }

    #search-form-search-page {
        width: 100%;
    }

    #tagline {
        font-size: 3em;
    }
    
    #subtagline {
        font-size: 1.2em;
        font-weight: 500;
        line-height: 1.1;
        color: var(--secondary-text-color);
    }

    #results {
        width: 100%;
        font-size: 1.3em;
    }
}

nav.sei-colors {
    border-bottom: 2px solid var(--primary-color);
    background-color: var(--background-color);
    margin-bottom: 1rem;
    box-shadow: 0 4px 16px -8px var(--secondary-color);
}

nav.sei-colors a.navbar-brand {
    color: var(--primary-color);
    font-weight: bold;
}

nav.sei-colors a.nav-link {
    color: var(--secondary-color) !important;
}

.django-message-alert {
    max-width: 500px;
}

/* @media screen and (min-width: 576px) {
    #search-form {
        grid-template-columns: 1fr 1fr;
    }
    #search-form-button-container {
        grid-column: 1 / span 2;
    }

    #results {
        min-width: 432px;
    }
} */

/* @media screen and (max-width: 575px) {
    #search-form {
        grid-template-columns: 1fr;
    }

    #results {
        width: 100%;
    }
} */
/* 
#search-form > div {
    display: flex;
    align-items: center;
} */

button.btn.btn-primary {
    background-color: white;
    border-color: #ced4da;
}

.search-button-icon {
    color: var(--accent-color);
}

button i.bi.bi-search {
    margin-right: 0.5rem;
}

.cards {
    display: grid;
    row-gap: 1rem;
    column-gap: 1rem;
}

@media screen and (min-width: 1200px) {
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (min-width: 768px) and (max-width: 1199px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    border: 2px solid var(--primary-color);
    box-shadow: 0 8px 16px -8px var(--secondary-color);
}

.color-secondary {
    color: var(--secondary-color);
}

table.table tbody:nth-child(1) {
    border-top-width: 1px;
}

#sort-container {
    display: flex;
}

#sort {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

@media screen and (min-width: 768px) {
    #sort-container {
        justify-content: space-between;
    }

    #sort {
        align-items: center;
        align-self: end;
    }
}

@media screen and (max-width: 767px) {
    #sort-container {
        flex-direction: column;
    }
}

.card table.table {
    margin: 0;
}

table.table th {
    font-weight: normal;
}

.btn-check:active+.btn-outline-primary, .btn-check:checked+.btn-outline-primary, .btn-outline-primary.active, .btn-outline-primary.dropdown-toggle.show, .btn-outline-primary:active, .btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.number-explanation {
    line-height: 1.0;
    font-size: 73%;
    vertical-align: top;
    color: #76949F;
}

.instructor-header-grid {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
}

.instructor-percentile-grid {
    justify-self: end;
    display: grid;
    grid-template-rows: 1fr 1fr;
}

.instructor-raw-score {
    justify-self: end;
}