.toolbar {
    line-height: 1;
    height: 22px;
    margin-bottom: 5px;
    border: none;
    border-radius: 5px;
    color: var(--button-text-color);
    font-family: inherit;
}

#yearSelect {
    background-color: DarkRed;
}

#templateSelect {
    background-color: DarkRed;
}

#uploadTemplateButton {
    background-color: Crimson;
}

#downloadTemplateButton {
    background-color: DarkOrange;
}

#pushYearButton {
    background-color: Gold;
}

#popYearButton {
    background-color: Green;
}

#showTransferButton {
    background-color: MediumBlue;
}

#hideTransferButton {
    background-color: MediumBlue;
    display: none;
}

#showCheckboxesButton {
    background-color: DarkViolet;
    display: none;
}

#hideCheckboxesButton {
    background-color: DarkViolet;
}

#clearFlowchartButton {
    background-color: DeepPink;
}

#coursePopup {
    opacity: 0;
    display: none;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;    /* Centers horizontally */
    align-items: stretch;
    overflow-y: auto;
    top: 25%;
    left: 25%;
    width: 50vw;
    border: 5px solid var(--text-color);
    border-radius: 5px;
    box-shadow: 5px 5px 15px var(--shadow-color);
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 0.9rem;
    overflow-wrap: break-word;
    word-break: break-word;
    position: fixed;
    z-index: 3;
}

#coursePopup.reveal {
    display: flex;
    animation: fadeInEffect 0.2s ease-out forwards;
}

#coursePopup.hide {
    display: flex;
    animation: fadeOutEffect 0.2s ease-out forwards;
}

#coursePopup button {
    display: inline-flex;
    justify-content: center;    /* Centers horizontally */
    align-items: center;        /* Centers vertically */
    top: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    margin: 0px;
    padding: 0;
    border: 0;
    border-radius: 3px;
    background-color: var(--background-color);
    color: var(--text-color);
    cursor: pointer;
    position: absolute;
    z-index: 4;
}

#coursePopup button:hover {
    background-color: var(--x-color);
    color: var(--button-text-color);
}

.coursePopupInformation {
    display: flex;
    justify-content: left;      /* left horizontally */
    align-items: center;        /* Centers vertically */
    margin-bottom: 5px;
    padding: 5px;
    border: none;
}

#coursePopupTitle {
    font-weight: bold;
    padding-right: 17px;
}

#transfer {
    min-height: 100px;
}

.year {
    display: flex;
}

.year-text {
    display: flex;
    justify-content: center;    /* Centers horizontally */
    align-items: center;        /* Centers vertically */
    box-sizing: border-box;
    min-width: 5%;
    padding: 5px;
    font-size: 1.3rem;
    font-weight: bold;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.year-block {
    width: 90%;
}

.year-divider {
    height: 15px;
    margin: 5px 0px;
    background-color: var(--divider-color);
}

.semester {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 10px;
    min-height: 5px;
    margin: 5px auto;
}

.class {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;    /* Centers horizontally */
    align-items: center;        /* Centers vertically */
    width: 100px;
    height: 100px;
    border: 5px solid var(--text-color);
    border-radius: 5px;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 0.75rem;
    font-weight: bold;
    text-align: center;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.class input {
    width: 80%;
    margin-top: 10px;
    border: none;
    border-bottom: 1px solid var(--text-color);
    text-align: center;
}

.class select {
    width: 95%;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    text-align: center;
    white-space: normal;
}

.co-op {
    display: flex;
    justify-content: center;    /* Centers horizontally */
    align-items: center;        /* Centers vertically */
    width: 100%;
    min-height: 20px;
    padding: 3px 5px;
    border: 5px solid var(--co-op-border-color);
    border-radius: 5px;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    overflow-wrap: break-word;
    word-break: break-word;
    position: relative;
    z-index: 1;
}

.co-op select {
    width: auto;
    padding-right: 5px;
    border: none;
    border-radius: 5px;
    text-align: center;
    white-space: normal;
}

.class input, .class label, .class select, .co-op select {
    color: inherit;
    background-color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit
}

input[type="checkbox"] {
    top: 2px;
    right: 2px;
    width: 15px;
    height: 15px;
    margin: 0px;
    padding: 0px;
    accent-color: var(--text-color);
    cursor: pointer;
    position: absolute;
    z-index: 2;
}

#flowchartNotesTitle {
    margin: 10px 0px;
    display: none;
}

#flowchartNotesList {
    display: none;
}

#flowchartNotesList:hover {
    outline: auto;
}

@media (orientation:portrait) {
    #coursePopup {
        left: 10%;
        width: 80vw;
    }
}
