/* crt effect */
      .crt::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 5;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

@keyframes flicker {
  0% {
  opacity: 0.00001;
  }
  5% {
  opacity: 0.00009;
  }
  10% {
  opacity: 0.00004;
  }
  15% {
  opacity: 0.00006;
  }
  20% {
  opacity: 0.00008;
  }
  25% {
  opacity: 0.0006;
  }
  30% {
  opacity: 0.10008;
  }
  35% {
  opacity: 0.10004;
  }
}

.crt::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: rgba(18, 16, 16, 0.1);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
}
    
    
/* basic */
html {
    background: url("images/music/bg.jpg") no-repeat;
    cursor: url("patchicur.png"), auto;
    scrollbar-color: #9d90a3 #c9c3c8;
    background-size: contain;
    height: 100%;
    background-position: center;
    background-color: #ccbecc;
    font-family: 'win', MS Sans Serif;
    letter-spacing: 0.3px;
    
    overflow: hidden;
}
@font-face {
  font-family: 'win';
  src: url("font/w95f.woff");
}
a:hover {
    cursor: url("patchicur.png"), auto;
}
body, * {
    margin: 0;
    padding: 0;
}
a {
    text-decoration: none;
}
.nav {
    position: absolute;
    left: 10px;
    top: 0;
    list-style-type: none;
    text-align: center;
    image-rendering: crisp-edges;
    filter: sepia(5%)
        grayscale(25%) 
        brightness(108%)
        contrast(92%);
    
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    }
.nav li span:hover, #trashspan:hover {
    background-color: #008080;
}
.nav li span, #trash span {
    background-color: #777778;
    padding: 2px;
}
.nav li, #trash {
    margin-top: 22px;
    font-size: 13px;
    color: white;
}
.nav li img, #trash img {
    margin-bottom: 2px;
}
#trash {
    position: absolute;
    bottom: 37px;
    right: 18px;
        text-align: center;
    image-rendering: crisp-edges;
    filter: sepia(5%)
        grayscale(25%) 
        brightness(108%)
        contrast(92%);
}
#len {
    position: absolute;
    top: 40px;
    right: 14%;
}
#tab {
    background: url("images/music/tab.png") no-repeat;
    background-size: contain;
    height: 26px;
    width: 100vw;
    position: absolute;
    bottom: 0;
}
#time {
    position: fixed;
    right: 10px;
    bottom: 3px;
    font-size: 13px;
}
#bubarea {
    height: 400px;
    position: absolute;
    bottom: 24px;
    right: 100px;
    font-size: 13px;
}
#patch {
    height: 400px;
        filter: sepia(5%)
        grayscale(20%) 
        brightness(103%)
        contrast(92%);
}
.bub {
    position: absolute;
    left: -325px;
    top: -30px;;
    width: 270px;
    
    background-color: #eae4f2;
    outline: 1px black solid;
    border-top: 2px white solid;
    border-left: 2px white solid;
    padding: 15px;
    border-radius: 15px;
    height: 140px;
    text-align: left;
}
.bub::before {
    content: "";
    position: absolute;

    top: 40%;
    right: -23px;
    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-bottom: 6px solid transparent;
    border-top: 6px solid transparent;
        border-left: 15px solid #000;
}
.bub::after {
    content: "";
    position: absolute;

    top: 40.4%;
    right: -21px;
    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-bottom: 5px solid transparent;
    border-top: 5px solid transparent;
    border-left: 14px solid #eae4f2;
}
.hidden {
  display: none;
}
#main-window::before {
    content: '';
    position: absolute;
    
    right: -79px;
    top: -93px;
    
    width: 150px;
    height: 517px;

    
    background-image: url("images/music/mayura.png");
    background-size: contain;
    background-repeat: no-repeat;
}

/*win stuff*/
.windowpage.active {
    display: block;
}
.windowpage {
 display: none;
  position: fixed;
  z-index: 9997;
  left: 5%;
  top: 5%;

  background-image: linear-gradient(#fffaff, #ebe6eb);
  border: 5px groove #c3bbc4;
    
  min-height: 450px;
  min-width: 600px;
  transition: opacity 0.5s ease;
}
.title-bar-controls button {
border:none;
border-radius:0;
box-sizing:border-box;
color:transparent;
min-height:23px;
min-width:75px;
padding:0 12px;
text-shadow:0 0 #222;
}

.title-bar-controls button {
background:silver;
box-shadow:inset -1px -1px #0a0a0a, inset 1px 1px #fff, inset -2px -2px grey, inset 2px 2px #dfdfdf;
}

.title-bar-controls button:not(:disabled):active {
box-shadow:inset -1px -1px #fff, inset 1px 1px #0a0a0a, inset -2px -2px #dfdfdf, inset 2px 2px grey;
text-shadow:1px 1px #222;
}

@media (not(hover)){
button:not(:disabled):hover {
box-shadow:inset -1px -1px #fff,inset 1px 1px #0a0a0a,inset -2px -2px #dfdfdf,inset 2px 2px grey}
}

.title-bar-controls button:focus {
outline:1px dotted #000;
outline-offset:-4px;
}

.title-bar-controls button::-moz-focus-inner { border:0 }

.title-bar {
background-color: #665566;
padding: 3px 2px 3px 3px;
display: flex;
justify-content: space-between;
align-items: center;
font-family: "MS PGothic", "Meiryo", メイリオ, "Hiragino Kaku Gothic ProN", ヒラギノ角ゴ Pro W3, sans-serif;
font-size: 11px;
letter-spacing: 0.6px;
line-height: 15px;
}

.title-bar-text {
font-weight: bold;
color: white;
letter-spacing: 0;
margin-right: 24px;
}
.title-bar-text:before {
    content: "";
    display: inline-block;
    background-image: url('images/pixels/tumblr_ll7wh93Z2i1qi6qow540.gif');
    image-rendering: pixelated;
    width: 13px;
    height: 13px;
    background-repeat: none;
    background-size: cover;
    margin-right: 5px;
}

.title-bar-controls {
display: flex;
}

.title-bar-controls button {
padding: 0;
display: block;
min-width: 16px;
min-height: 14px;
}

.title-bar-controls button:active {
padding: 0;
}

.title-bar-controls button:focus {
outline: none;
}

.title-bar-controls button[aria-label=Minimize]{
background-image:url("https://raw.githubusercontent.com/jdan/98.css/main/icon/minimize.svg");
background-position:bottom 3px left 4px;
background-repeat:no-repeat
}

.title-bar-controls button[aria-label=Maximize]{
background-image:url("https://raw.githubusercontent.com/jdan/98.css/4a2282dd9170cabf730fb5803d1153d86b2e94e3/icon/maximize.svg");
background-position:top 2px left 3px;
background-repeat:no-repeat;
}

.title-bar-controls button[aria-label=Close]{
background-image:url("https://raw.githubusercontent.com/jdan/98.css/main/icon/close.svg");
background-position:top 3px left 4px;
background-repeat:no-repeat;
margin-left:2px;
}
