@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Music&display=swap');
* {
    box-sizing: border-box;
    overscroll-behavior: none;
}

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;
}

.save-times {
    display: flex;
    width: 100%;
    font-size: 12px;
    padding-right: 2rem;
}

.last-saved, .last-submitted {
    flex: 1;
    user-select: none;
}

.last-submitted {
    text-align: right;
    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; }

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

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

.expander {
    flex: 1;
}

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

#remix-button {
    background-color: rgb(7, 156, 7);
}


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, #warn-message {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    margin: 0 10%;
    text-align: center;
    padding: 6px;
    background: rebeccapurple;
    color: #fffb;
    box-shadow: 0 0 5px 5px #0003;
    font-weight: normal;
    display: none;
}

#error-message {
    top: 0;
    border-bottom-left-radius: 17px;
    border-bottom-right-radius: 17px;
}

#warn-message {
    background-color: rgb(7, 156, 7);
    bottom: 0;
    font-weight: 500;
    padding: 0.5rem 2rem;
    border-top-left-radius: 17px;
    border-top-right-radius: 17px;
    line-height: 18px;
    align-items: center;
}

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

#warn-message.show {
    display: flex;
}

#error-message a, #warn-message.show {
    color: white; font-weight: 700; text-decoration: none;
}

#error-message a:hover, #warn-message a:hover {
    text-decoration: underline;
}

a#remix-button, a#signin-button {
    border: 1px solid white;
    display: inline;
    float: right;
    padding: 0.3rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 1rem;
}

a#remix-button:hover, a#signin-button:hover {
    background-color: white;
    color:rgb(7, 156, 7);
    text-decoration: none;
}

.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.music::part(info-module),
tunepad-cell:not(.music)::part(patch-credit),
tunepad-cell::part(info-bar) {
    display: none;
}

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

tunepad-project {
    max-width: 900px;
    display: block;
    padding-right: 2rem;
}

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

tunepad-cell {
    display: block;
}

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

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

tunepad-outline {
    margin-top: 0;
    position: fixed;
    top: 0;
    height: 100vh;
    right: 0;
    overflow: auto;
    padding-top: 5rem;
    background-color: #0002;
}

tunepad-block-menu {
    position: fixed;
    background-color: #0002;
    max-width: 300px;
    min-width: 300px;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 95px;
    left: 0;
    top: 0;
}


tunepad-canvas {
    display: block;
    text-align: center;
}

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


.context-menu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0005;
}


main.loading .page-loader {
    display: block;
}

.page-loader {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: #000a;
    color: white;
    font-size: 17px;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
    user-select: none;
    padding-top: 200px;
}

.page-loader img {
    width: 180px;
    flex: 1;
    display: block;
    margin: 0 auto;
}