html {
    position:relative;
    min-height: 100%;
}

@font-face {
    font-family: 'ztbrososkon90s-regular';
    src: local('ztbrososkon90s-regular'),
         url('ztbrososkon90s-regular') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'whitrabt';
    src: local('whitrabt'),
         url('whitrabt') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'nintendo-ds-bios';
    src: local('nintendo-ds-bios'),
         url('nintendo-ds-bios') format('truetype');
    font-weight: normal;
    font-style: normal;
}

input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
    
body {
    font-family: 'ztbrososkon90s-regular', serif; 
    font-weight: normal;
    color: rgb(207,207,196);
    font-size: 18px;
    background-image: repeating-radial-gradient(rgb(22,22,22), rgb(8,8,8) 2%, black 1%);
    background-position: top;
    background-repeat:repeat-y;
    background-size: 100% 500px;
    min-height: 100%;
    z-index: 1;
    background-color: rgb(8,8,8);
    padding-bottom: 50px;
}

* {
    box-sizing: border-box;
}

a { 
    position: relative;
    text-decoration: none;
}

a, a:visited {
    color: inherit;
}

a:active {
    top: 1px;
}

.active {
    text-shadow: 1px 1px 3px rgb(207,207,196);
    font-variant-caps: small-caps;
}

.link {
    margin: 15px;
    font-family: 'nintendo-ds-bios', monospace;
    text-align: center;
    font-size: 25px;
  animation: blinker 3s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-content: center;
    background-size:auto;
    position:sticky;
    background-image: repeating-radial-gradient(rgb(22,22,22), rgb(8,8,8) 2%, black 1%);
    margin: -10px;
    margin-bottom: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

footer {
    height: 40px;
    background-size: cover;
    position: absolute;
    bottom:0;
    z-index: 3;
}

.title {
    color: firebrick;
    text-shadow: 0 0.5px rgb(207,207,196);
    font-size: 35px;
    text-align: center;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 0px;
    font-family: 'ztbrososkon90s-regular', serif;
    font-variant-caps: small-caps;
}

#logo {
    margin-left: 15px;
    margin-right: 15px;
}

#logo img:hover {
    box-shadow: none;
}

#logo2 {
    display: none;
    margin-left: auto;
    margin-right: auto;
}

#logo2 img:hover {
    box-shadow: none;
}

nav ul {
    list-style: none;
    padding-left: 0;
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    
}

nav li {
    padding-right: 30px;
}

nav a {
    text-decoration: none;
    font-family: inherit; 
    font-size: 25px;
}

nav a:hover {
    color: rgb(248,248,255);
}

.subnav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-left: 0;
    background-size: cover;
    text-align: center;
}

.subnav li {
    padding: 10px;
    color: rgb(207,207,196);
}

.subnav a {
    text-decoration: none;
    font-family: inherit; 
    font-size: 22px;
}

.subnav a:hover {
    color: rgb(248,248,255);
}

.textbox {
    margin: 10px;
    padding: 10px;
    border: 10px solid transparent;
    border-image: url(illustration-2020-little-leaf.jpg);
    border-image-slice: 20%;
    border-image-repeat: round;
}

.blogbox {
    margin: 10px;
    padding: 10px;
    border: 10px solid transparent;
    border-image: url(illustration-2021-bffs.png);
    border-image-slice: 12%;
    border-image-repeat: round;
}

.quote {
    font-family:  'apple-chancery', cursive;
    font-style: italic;
    font-size: 18px;
    background-image: repeating-radial-gradient(firebrick, rgb(8,8,8) 2%);
    margin: 18px;
    padding: 0px;
    background-position: inherit;
    background-size: 20px 20px;
    border-radius: 15px;
    text-align: center;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.thought {
    font-style: italic;
    background-image: repeating-radial-gradient(rgb(207,207,196), rgb(244,240,236) 2%);
    background-position: inherit;
    background-size: 10px 10px;
    width: 200px;
    height: 130px;
    border: 5px solid transparent;
    border-image: url(right-thought-bubble.png);
    border-image-outset: 40px;
    border-image-repeat: stretch;
    border-image-slice: 30%;
    border-image-width: 40px;
    color: rgb(8,8,8);
    font-family: 'nintendo-ds-bios', sans;
    font-size: 18px;
    margin-left: 40px;
    padding: 5px;
    text-align: center;
    overflow: scroll;
    margin-bottom: 40px;
}

h1 {
    color: rgb(207,207,196);
    font-size: 22px;
    font-weight:normal;
    text-align: center;
}

h2 {
    color: rgb(207,207,196);
    font-size: 19px;
    font-weight:normal;
    text-align: center;
}

h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: rgb(207,207,196);
    font-size: 19px;
    font-weight:normal;
    text-align: center;
}

p {
    font-family: 'apple-chancery', cursive;
    text-align: center;
}

p2 {
    font-family: 'apple-chancery', cursive;
    color: rgb(8,8,8);
    font-size: 19px;
}

.caption {
    position: relative;
    font-family: 'nintendo-ds-bios', monospace;
    color: rgb(207,207,196);
    margin-top: 10px;
    flex-wrap: wrap;
    width: 300px;
}

.gallery {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
}

.galleryitem {
    padding: 10px;
    position: relative;
    text-align: center;
}

img {
    margin: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px;
    height: 100%;
}

img:hover {
    box-shadow: 2px 2px 2px silver;
}

.copyright {
    font-weight:100;
    font-style: normal;
    font-size: 16px;
    color: rgb(207,207,196);
    position:relative;
    padding: 10px;
    text-align: center;
}
    
    /* Custom player style */
#section3 midi-player {
  display: block;
  width: 500px;
  margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
}
#section3 midi-player::part(control-panel) {
  background-image: repeating-radial-gradient(firebrick, rgb(8,8,8) 2%);
  border: 2px solid rgb(8,8,8);
  border-radius: 5px 5px 0 0;
}
#section3 midi-player::part(play-button) {
  color: rgb(8,8,8);
  border: 2px solid currentColor;
  background-color: rgb(178,236,93);
  border-radius: 2px;
  transition: all 0.2s;
  content: 'hello';
}
#section3 midi-player::part(play-button):hover {
  color: #0a0;
  background-color: #5f5;
}
#section3 midi-player::part(time) {
  font-family: 'nintendo-ds-bios', monospace;
    color: rgb(244,240,236);
}

/* Custom visualizer style */
#section3 midi-visualizer .piano-roll-visualizer {
  background: repeating-linear-gradient(rgb(207,207,196),rgb(244,240,236) 3%);
  border: 2px solid rgb(8,8,8);
  border-top: none;
  border-radius: 0 0 5px 5px;
  margin-top: 0;
    margin-left: auto;
    margin-right: auto;
    width: 500px;
  overflow: auto;
    
    
}
#section3 midi-visualizer svg rect.note {
  opacity: 0.4;
  stroke-width: 1;
}
#section3 midi-visualizer svg rect.note[data-instrument="0"]{
  fill: rgb(79,134,247);
  stroke: rgb(65,102,245);
}
#section3 midi-visualizer svg rect.note[data-instrument="2"]{
  fill:  rgb(79,134,247);
  stroke: rgb(65,102,245);
}
#section3 midi-visualizer svg rect.note[data-is-drum="true"]{
  fill: #888;
  stroke: #888;
}
#section3 midi-visualizer svg rect.note.active {
  opacity: 0.9;
  stroke: #000;
}

@media only screen and (max-width: 600px) {
 header {
    background-image: repeating-radial-gradient(rgb(207,207,196),rgb(244,240,236) 2%);
    background-position: center;
    background-repeat:repeat-y;
    background-size: 100% 500px;
}   
    
    h4 {
    color: rgb(8,8,8);
}
    
    nav ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin-bottom: 10;
}
    
    nav li {
    padding-right: 0px;
}
    
    nav a {
    font-size: 22px;
}
    
    .subnav ul {
    display: flex;
    flex-direction: row;
    text-align: center;
    padding: 2px;
    margin: 0px;
    
}
    .title {
    color: firebrick;
    text-shadow: 0 01px rgb(8,8,8);
    font-size: 27px;
    text-align: center;
    margin-top: 10px;
    font-family: 'ztbrososkon90s-regular', serif;
    font-variant-caps: small-caps;
}
    
    
    #logo {
        display: none;
    }
    
    #logo2 {
        display: contents;
    }
    
    header {
        padding-bottom: 2px;
    }
    
    nav li {
    font-size: 28px;
    color: rgb(8,8,8);
}
    
    .subnav li {
    font-size: 25px;
}
    
.active {
    text-shadow: 1px 1px 2px black;
    font-variant-caps: small-caps;
}
    
.subnav li  .active {
    text-shadow: 1px 1px 2px white;
    font-variant-caps: small-caps;
}
    
    .quote {
        width: 300px;
    }
    
    .thought {
    margin-top: 20px;
    margin-left: 0px;
}
    #section3 midi-player {
        width: 300px;
    }
    
    #section3 midi-visualizer .piano-roll-visualizer {
        width: 300px;
    }
}
