@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    overflow-x: hidden;
    margin: 0;
}

#head {
    width: 99.99%;
    display: block;
    height: 50px;
    background-color: red;
    color: white;
    box-shadow: 0 2px 3px 0 #0008;
}

#head h3 {
    width: 33%;
    text-align: center;
    float: left;
    padding-bottom: 5px;
    font-style: italic;
    margin-top: 12px;
}

.years {
    position: relative;
    display: flex;
    width: 100%;
    max-height: calc(100vh - 50px);
    overflow: hidden;
}

.courses {
    width: calc(33.3%);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-auto-rows: 50px;
    column-gap: 40px;
    row-gap: 30px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.courses .course {
    display: flex;
    align-items: center;
    padding: 5px;
    overflow: hidden;
    border-radius: 10px;
    text-align: center;
    font-size: 12px;
    outline: 2px solid white;
    cursor: pointer;
    transition: opacity 25ms ease;
}

.courses .mandatory {
    background-color: red;
    color: white;
} .courses .elective {
    background-color: white;
    border: 2px solid red;
} .courses .choice {
    background-color: #68a0c4;
    color: white;
}

.courses .mandatory.selected, .courses .elective.selected {
    box-shadow: 0 0 6px 3px #F00;
} .courses .choice.selected {
    box-shadow: 0 0 6px 3px #68a0c4;
}

.courses .course.dimmed {
    opacity: 0.55;
}

.courses .course span {
    display: block;
    width: 100%;
}

#arrows {
    position: absolute;
    left: 0;
    top: 0;
}

#masters {
    margin-bottom: 20px;
    margin-left: 20px;
} #masters-title {
    color: white;
    height: 40px;
    background-color: red;
    text-align: center;
    font-style: italic;
    width: 350px;
    padding-top: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: 0 2px 3px 0 #0008;
    margin-top: -10px;
}

.pure, .appl, .phys {
    background-color: red;
} .smi {
    background-color: #264c64;
} .sis {
    background-color: #68a0c4;
} .edu {
    background-color: #588caa;
}

.master {
    width: 15%;
    margin-right: 10px;
    position: relative;
    height: 70px;
    float: left;
    box-shadow: 3px 2px 4px 0 #0005;
    color: white;
    cursor: pointer;
    transition: opacity 30ms ease;
} .master h3 {
    padding: 4px 25px;
    padding-right: 0;
} .master::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    left: -2px;
    border-left: 10px solid #FFF;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    top: 0;
} .master.smi h3 {
    padding: 0px 25px;
    margin-top: 12px;
    line-height: 22px;
} .master.dimmed {
    opacity: 0.5;
} .master.selected {
    box-shadow: 3px 2px 4px 0 #F00E;
}