html {
    scrollbar-gutter: stable;
}

body {
    overflow: auto;
    background-color: #39a3aa;
    background-image: linear-gradient(
        -45deg,
        #156c72,
        #2e9299,
        #39a3aa, #39a3aa, #39a3aa,
        #55c2ca,
        #39a3aa);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: 100vw 100vh;
    margin-top: 3%;
    margin-bottom: 3%;
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
}

nav a, header.mainheader, .content, img.preview, a.playbutton {
    border-right: 2px solid #00000070;
    border-bottom: 2px solid #00000070;
    border-left: 2px solid #ffffffa0;
    border-top: 2px solid #ffffffa0;
}

nav, header.mainheader, .content {
    box-shadow: 10px 10px #000a;
}

nav {
    flex: 1;
    background-color: #c7c7c7;
    padding: 0px;
    height:fit-content;
}

nav a {
    display: block;
    padding: 5px;
}

nav a:hover {
    background-color: #ffffff8e;
}

nav a:active {
    background-color: #00000070;
    border-right-color: #ffffff70;
    border-bottom-color: #ffffff70;
    border-left-color: #00000070;
    border-top-color: #00000070;
}

footer {
    margin: 3%;
    text-align: center;
    color: #ffffff8e;
    text-shadow: 1px 1px#00000070;
}

#midpage {
    display: flex;
}
@media (max-width: 600px) {
    #midpage {
        flex-direction: column;
    }
}

.content {
    flex: 3;
    background-color: #f1f1f1;
    padding-left: 10px;
    padding-right: 10px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

header.mainheader {
    text-align: center;
    background-color: #bae7eb;
    display: block;
    padding: 1px;
}

@keyframes rainbow {
    0% {background-image: linear-gradient(to right, #FF0000, #00FF00, #0000FF);}
    33% {background-image: linear-gradient(to right, #00FF00, #0000FF, #FF0000);}
    66% {background-image: linear-gradient(to right, #0000FF, #FF0000, #00FF00);}
    100% {background-image: linear-gradient(to right, #FF0000, #00FF00, #0000FF);}
}

h1.mainheader {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bolder;
    font-size: 3rem;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;

    color: #fff0;
    background: linear-gradient(to right, #FF0000, #00FF00, #0000FF);
    background-clip: text;
    -webkit-background-clip: text;

    animation: rainbow 1s linear 0s infinite normal;

    text-shadow: -3px -3px 0px #fff, -2px -2px 2px #000b, -3px -3px 2px #000b;
}

h4.mainheader {
    font-family: 'Brush Script MT', cursive;
    font-weight: normal;
    color: #fff;
    text-shadow: 0px 0px 2px #000, 0px 0px 2px #000, 1px 1px 0px #000;
}

article.demoitem {
    vertical-align: top;
    display: flex;
}

img.preview {
    max-width: 20%;
    padding: 5px;
    margin-bottom: auto;
    margin-left: 5px;
    flex: 0, 0, auto;

    background-color: #e1e1e1;
}

a.playbutton {
    height: fit-content;
    display: block;
    flex: 0, 0, auto;

    width: fit-content;
    margin-left: auto;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 2px;
    padding-bottom: 2px;

    font-size: larger;
    background-color: #e1e1e1;
}

div.demoinfo {
    flex: 3;
    width: auto;
    overflow: hidden;
}

div.demoinfo pre {
    white-space: pre-wrap;
}