@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

* {
    box-sizing: border-box;
}

body {
    font-size: 13px;
    margin: 1rem;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

header {
    display: block;
    text-align: center;
    max-width: 850px;
}

header .course {
    display: inline-block;
    color: #333;
    padding: 0.5rem 1rem;
    margin: 1rem 1rem 0rem 1rem;
    border: 1px solid #333;
    border-radius: 1rem;
    line-height: 100%;
    text-decoration: none;
}

header .course:hover {
    background-color: #eee;
}

header h1 {
    font-size: 40px;
    font-weight: 500;
    line-height: 150%;
}

header h1 span{
    padding: 0 0.5rem;
    background-color: rgba(216, 255, 125, 0.5);
    border-radius: 0.25rem;
}

header h3 {
    font-weight: 400;
    color: #555;
}

header .save-info {
    color: #888;
    font-weight: normal;
    line-height: 120%;
    margin: 0.25rem;
    font-style: italic;
}

header h4.save-info {
    font-size: 12px;
}

header .save-info.last-submitted {
    font-weight: bold;
    color: rebeccapurple;
}

.last-submitted {
    color: rebeccapurple;
}

header #due-date.extension {
    color: rebeccapurple;
}

header .save-info.hidden {
    display: none;
}

img.hero {
    display: block;
    width: 100%;
    margin: 2rem auto;
}

nav{
    position: fixed;
    top: 20.7%;
    right: 0;
    padding: 0em 1em;
    /* background: #f8fafc; */
    /*height: 76%;*/
    width:35%;
    border-radius: 8px;
    overflow-y: scroll;
}

main {
    margin: 1rem 6rem 6rem 6rem;
    font-size: 15px;
    line-height: 180%;
    color: #555;
}

main button {
    background-color: #aaa;
    border: none;
    outline: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 100%;
    display: flex;
    margin: 0;
}

main button:hover { opacity: 0.85; }
main button:active { opacity: 0.65; }


pre {
    line-height: 100%;
    padding: 0 0 0 3rem;
    letter-spacing: 1px;
}

h1+p {
    margin-top: 0;
}

div.note {
    margin: 1rem 2rem;
    background-color: #eee;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #aaa;
    border-left: 8px solid #aaa;
}

button.hidden { display: none; }
.extension.hidden { display: none; }

.assignment-buttons {
    border-top: 1px solid #aaa;
    padding: 0.5rem 0;
    margin: 1rem 0;
    display: flex;
}

.assignment-buttons button {
    user-select: none;
    margin-right: 1rem;
}

.expander {
    flex: 1;
}

#submit-button, #final-submit {
    background-color: rebeccapurple;
}


dialog {
    padding: 2rem 3rem;
    border: none;
    outline: none;
    min-width: 300px;
    min-height: 300px;
    border-radius: 0.75rem;
    box-shadow: 5px 5px 5px #0003;
}
dialog::backdrop { background: rgba(0,0,0,.45); }
 

dialog h2 {
    margin: 0;
}
.dialog-body {
    padding: 0;
}

#error-message {
    position: fixed;
    top: 0;
    z-index: 100;
    left: 0;
    right: 0;
    margin: 0 10%;
    text-align: center;
    padding: 6px;
    background: rebeccapurple;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
    color: #fffb;
    box-shadow: 0 0 5px 5px #0003;
    font-weight: normal;
    display: none;
}

#error-message.show {
    display: block;
}

#error-message a { color: white; font-weight: 700; text-decoration: none; }
#error-message a:hover { text-decoration: underline; }

.profile-button {
    position: absolute;
    top: 15px;
    right: 15px;
}

.profile-button img {
    width: 50px;
    height: 50px;
    display: block;
    border-radius: 50%;
    background-color: rebeccapurple;
}

button tunepad-icon {
    display: inline-block;
    fill: white;
    margin: 0 0.25rem;
    position: relative;
    top: 2px;
    width: 15px;
}


tunepad-cell.hidden { display: none; }

tunepad-cell:not(.music):not(.animation)::part(play-button),
tunepad-cell:not(.music):not(.animation)::part(pause-button),
tunepad-cell:not(.music)::part(stop-button),
tunepad-cell:not(.music)::part(timeline-mode-button),
tunepad-cell:not(.music)::part(info-beats),
tunepad-cell:not(.music)::part(info-time),
tunepad-cell:not(.music)::part(info-key),
tunepad-cell:not(.music)::part(info-bpm),
tunepad-cell:not(.music)::part(patch-credit) {
    display: none;
}

tunepad-project-menu::part(tabs) {
  display: none;
}

tunepad-project {
    max-width: 850px;
    display: block;
}

tunepad-cell-list {
    display: block;
    margin-top: 3rem;
}

tunepad-cell {
    display: block;
}

tunepad-cell::part(footer) {
    display: flex;
}

tunepad-cell-list h1 {
    font-size: 25px;
    margin-bottom: 0.5rem;
    margin-top: 3rem;
}

p tunepad-icon {
    display: inline-block;
    width: 15px;
    margin: 0 3px;
    position: relative;
    top: 2px;
}
