html {
    font: 1em/1.5 Arial, sans-serif;
    margin: 0;
    background-color: #FFF;
}

body {
    margin: 0;
    padding: 0;
}


.menu {
    display: flex;
    flex-direction: row;
    position: fixed;
    justify-content: center;
    top: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    color: white;
    background: rgb(78,0,190);
    background: linear-gradient(90deg, rgba(78,0,190,1) 0%, rgb(200, 0, 175) 100%);
}

.menu h1 {
    color: white;
    cursor: pointer;
}

.container {
    width: calc(100% - 2rem);
    margin: auto;
    margin-top: 9rem;
    padding: 1rem;
    margin-bottom: 5rem;
    border-radius: 2rem;
}

@media screen and (min-width: 100vh) {
    .container {
        width: min(50rem, calc(90% - 6rem));
        padding: 3rem;
    }
}

a {
    color: rgb(186, 61, 197);
    text-decoration: none;
    cursor: pointer;
}
a:hover {
    text-decoration: underline;
}

hr {
    border-style: dashed;
}

h1 { font-size: 2.5em; line-height: 1; }
h2 { font-size: 2em; line-height: 1; text-align: left; }
h3 { font-size: 1.5em; line-height: 1; }
h4 { font-size: 1.2em; line-height: 1; }

textarea { width: 30em; height: 8em; }

code {
    display: block;
    padding: 1.5em;
    background-color: rgb(230, 230, 230);
    border-radius: 1em;
    margin: 1.5em 0;
}

#livepreviewwindow { overflow-y: scroll; height: 16em; resize: vertical; }

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 20em;
}

.imgleft {
    width: 15em;
    float: left;
    padding-right: 1em;
}

.imgtitle {
    font-style: italic;
    text-align: center;
    color: #555;
}

.title {
    text-align: center;
}

.right {
    text-align: right;
}

img {
    max-width: 100%;
}

.imglist {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -.25em;
    margin-right: -.25em;
}

.imglist div {
    flex-basis: 11.625em;
    padding: .25em;
}

.imglist div img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}


/* Footer */


.footer {
    display: flex;
    flex-direction: column;
    width: fit-content;
    margin: auto;
    text-align: center;
    border-top: 2px dashed rgb(165, 165, 165);
    margin-bottom: 2rem;
}

.footer h3 {
    color: rgb(165, 165, 165);
    font-size: 1.2rem;
    padding: .3rem;
}

.footer a {
    color: rgb(165, 165, 165);
    margin: .5rem;
}

.editorwrapper {
    display: flex;
    flex-direction: row;
}

.editorcomponent {
    width: 0;
    padding: 0 16px;
    flex: 1 1 auto;
}