@font-face {
    font-family: Scala;
    src: url(/bcs/assests/ufonts.com_scala-sans-bold.ttf);
}

@font-face {
    font-family: Gentona;
    src: url(/bcs/assests/GentonaExtraBold.otf);
}

:root {
    --x: 0;
    --y: 0;
}

body {
    margin: 0;
    text-align: center;
    font-family: Scala;
    font-size: 2vh;
    overflow: hidden;
}

#mainContainer {
    display: flex;
    position: absolute;
    top: 12%;
    bottom: 0;
    z-index: 1;
    width: 100%;
    background-color: gray;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
}

p {
    line-height: 1em;
}

@keyframes closeFooter {
    from {
        height: 85%;
    }

    to {
        height: 0%;
    }
}

@keyframes openFooter {
    from {
        height: 0%;
    }

    to {
        height: 85%;
    }
}

.closedTab {
    animation-name: closeFooter;
}

.openedTab {
    animation-name: openFooter;
}

#footer {
    position: absolute;
    top: 82%;
    bottom: 0%;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: end;
    pointer-events: none;
}

#realFooter {
    background-color: white;
    width: 100%;
    height: 0%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-top: 3px solid black;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    pointer-events: all;
}

#hideFooter {
    width: 1.1em;
    height: 1.1em;
    background-color: white;
    border: 2px solid black;
    border-top-left-radius: 0.3em;
    border-bottom: none;
    border-right: none;
    user-select: none;
    pointer-events: all;
}

#hideFooter:hover {
    background-color: lightgray;
}

#hideFooter:active {
    background-color: rgb(172, 172, 172);
}

.footerSection {
    /* background-color: red; */
    width: 20em;
    height: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 0;
}

#formContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 25%;
    transform: translate(0, -30%);
}

#formLogo {
    height: 100%;
    margin-right: 3%;
}

#header {
    display: flex;
    position: absolute;
    top: 0%;
    left: 0;
    bottom: 88%;
    width: 100%;
    background-color: white;
    border-bottom: 3px solid black;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1%;
}

#timelineContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: left;
}

#timelineScale {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#timelineLine {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5em;
}

.playButton {
    width: 0;
    height: 0;
    border-top: 0.5em solid transparent;
    border-right: 0em solid transparent;
    border-bottom: 0.5em solid transparent;
    border-left: 0.7em solid black;
    user-select: none;
}

.playButton:hover {
    border-left: 0.7em solid #8FC73E;
}

.playButton:active {
    border-left: 0.7em solid #719e31;
}

.pauseButton {
	width: 0.3em;
	height: 1.0em;
	border-left: 0.3em solid black;
	border-right: 0.3em solid black;
	border-top: none;
	border-bottom: none;
	user-select: none;
}

#timeline {
    width: 40vw;
}

#profileButtons {
    display: none;
    gap: 0.3vw;
    flex-direction: column;
}

#rpb {
    gap: 0.3vw;
    flex-direction: row;
    height: 5vh;
}

#helloMsg {
    font-size: 1.4em;
}

#loginButtons {
    display: none;
    gap: 0.3vw;
    height: 7vh;
}

.headerButtonContainer {
    height: 100%;
    margin-right: 1%;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

.headerButtons {
    display: flex;
    height: 100%;
    gap: 0.3vw;
    justify-content: center;
    align-items: center;
}

#loginCorner {
    height: 100%;
    width: 50%;
    margin-right: 0.5%;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
}

button.header {
    height: 100%;
    padding-left: 0.6vw;
    padding-right: 0.6vw;
    background-color: #cfe6b0;
    border: 2px solid black;
    border-radius: 5px;
    text-align: center;
    font-size: 3vh;
    overflow: hidden;
    text-align: center;
    margin-top: auto;
    margin-bottom: auto;
    font-family: Scala;
}

button.header:hover {
    background-color: #bcd1a1;
}

button.header:active {
    background-color: #9dad87;
}

#title {
    width: 4em;
    margin: 0;
    margin-left: 1vw;
    text-align: center;
    float: left;
    display: flex;
    color: #8FC73E;
    font-family: Gentona;
    font-size: 12vh;
    font-weight: bold;
    user-select: none;
    transform: translate(0, -5%);
}

.titleSmallText {
    font-size: 3vh;
    transform: translate(0, 38%);
    overflow: hidden;
    direction: rtl;
}


#stageBackground {
    position: relative;
    /* top: 6vh; */
    width: min(86vw, 86vh);
    height: min(60vw, 60vh);
    border: 3px solid black;
    background-color: lightgrey;
    background-size: 5% 5%;
    background-position: -1px -1px;
    background-image:
        linear-gradient(to right, grey 2px, transparent 2px),
        linear-gradient(to bottom, grey 2px, transparent 2px);
    /* display: none; */
}

#rightSide {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 1vh;
}

#musicDisplay {
    width: min(86vw, 86vh);
    height: min(40vw, 40vh);
    border: 3px solid black;
    background-color: white;
    overflow-x: scroll;
    overflow-y: hidden; 
}

#sheetMusicControls {
	display: flex;
	flex-direction: row;
	justify-content: space-evenly;
	align-items: start;
	width: min(86vh, 86vw);
}

#partSelector {
	font-size: 0.8em;
	font-family: Scala;
}

#partSelector > optgroup {
	font-family: Scala;
}

.controlSection {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: start;
}

.controlHeader {
	font-size: 1.5em;
}

/* #musicDisplay > svg {
    height: 100%;
} */

.autogenerated {
    display: none !important;
}

.stagePiece {
    position: absolute;
    top: 0;
    left: 0;
    width: 4vh;
    height: 4vh;
    border-radius: calc(2vh + 3px);
    border: 3px solid black;
    background-color: #8FC73E;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.pieceName {
    font-size: 0.5em;
    user-select: none;
    color: white;
    /* transform: translate(0, -1em); */
    /* transform: rotate(45deg); */
}

.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 0.5em solid transparent;
    border-right: 0.5em solid transparent;
    border-bottom: 0.5em solid black;
    border-left: 0.5em solid transparent;
    transform: translate(-50%, -50%) rotate(45deg) translate(0, -1.8em);
    user-select: none;
}

.arrow:hover {
    border-top: 0.45em solid transparent;
    border-right: 0.55em solid transparent;
    border-bottom: 0.55em solid black;
    border-left: 0.55em solid transparent;
}

.arrow:active {
    border-top: 0.45em solid transparent;
    border-right: 0.55em solid transparent;
    border-bottom: 0.55em solid black;
    border-left: 0.55em solid transparent;
}

.notePlaying {
	fill: red;
	color: red;
}

.bounding-box:not(.note) {
	pointer-events: none;
}