body {
    background: #111;
    color: #ccc;
    font-family: Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
    margin: 0;
    padding: 0;
}
a {
   color: #d8a68f;
}
a:hover {
   color: #d8a68f;
}
a:visited {
   color: #d8a68f;
}

h1 {
    text-align: center;
    max-width: 75%;
}

#aboutPage {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: space-around;
}
#aboutPage > p {
    max-width: 24em;
}
#aboutPage button {
    font-size: 168%;
    margin: .25em;
    padding: .25em;
    padding-left: 1em;
    padding-right: 1em;
}
#imgBox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    justify-content: space-around;
}
#imgBox > h1 {
    margin: 0;
}
.imgContent {
    flex: 1 1 auto;
    position: relative;
    max-height: 62%;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 1em;
}
.imgContent img {
    width: 100%;
    height: 100%;
    max-width: 62vw;
    max-height: 62vh;
    object-fit: contain;
    image-orientation: from-image;
}

#toAbout {
    position: fixed;
    bottom: .5em;
    right: .5em;
    text-align: right;
}
#toAbout img {
    width: 4em;
}

#toTOC {
    position: fixed;
    top: .5em;
    right: .5em;
    text-align: right;
    font-size: 200%;
}
#toTOC > a {
    text-decoration: none;
    color: #ccc;
}

#toCover {
    position: fixed;
    top: .5em;
    right: .5em;
    text-align: right;
    border-radius: 50%;
    overflow: hidden;
}
#toCover img {
    width: 4em;
}

.toc {
}
.tocItem {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}
.tocTitle {
    margin-right: .62em;
}
.tocSpecial {
    font-weight: bold;
}

mgsp-song {
    position: fixed;
    top: 0;
    left: 0;
    max-height: 100%;
    bottom: 0;
    right: 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
}
.songFrame {
    flex: 1 1 auto;
    max-height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
}
.lyricsFrame {
    flex: 1 1 auto;
    min-height: 1em;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
}
.lyricsList {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    overflow-y: auto;
    min-height: 1em;
}
.lyricFrame {
    flex: 1 1 auto;
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
    max-width: 50%;
    min-height: 1em;
}
.lyricView {
    flex: 1 1 auto;
    padding: 5%;
}
.lyricContents {
    white-space: pre-wrap;
}
.lyricEditor {
    position: absolute;
    top: .25em;
    left: .25em;
    bottom: .25em;
    right: 0;
    display: flex;
    flex-flow: column nowrap;
    align-items: stretch;
}
.lyricEditor > textarea {
    flex: 1 1 auto;
    background: #ccc;
    color: #000;
    padding: .5em;
}
.endEdit {
    font-size: 5.5vh;
    background: #111;
    color: #d77;
    font-weight: bold;
    position: absolute;
    top: .25rem;
    right: 0;
}
.myNameBox {
    flex: 0 0 auto;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    padding: .25em;
    font-size: 5.5vh;
}
.myNameBox > input {
    flex: 1 1 auto;
    padding: .25em;
    font-weight: bold;
}

.songControls {
    flex: 0 0 auto;
    display: flex;
    flex-flow: column wrap-reverse;
    align-items: center;
    justify-content: space-between;
    padding: .25em;
    font-size: 7.5vh;
}
.songControls img {
    width: 1.5em;
}
.songControls a {
    text-decoration: none;
    color: #ccc;
}
.songControls button {
    border-radius: 50%;
    font-size: 5.5vh;
    padding: .25em;
}

@media (max-aspect-ratio: 4/3) {
    .songFrame {
        flex-flow: column nowrap;
    }
    .lyricsFrame {
        overflow-y: default;
    }
    .lyricsList {
        flex-flow: column nowrap;
    }        
    .lyricFrame {
        max-width: none;
        max-height: 50%;
        overflow-y: auto;
    }
    .lyricEditor {
        bottom: 0;
        right: .25em;
    }        
    .endEdit {
        font-size: 5.5vw;
        right: .25rem;
    }
    .myNameBox {
        font-size: 7.5vw;
    }
    .songControls {
        font-size: 6vw;
        flex-flow: row wrap-reverse;
    }
    .songControls button {
        font-size: 5.5vw;
    }
}

    
