/* 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: 9999;
  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: 2;
  pointer-events: none;
  animation: flicker 0.15s infinite;
}
    
    
/* basic */
* {
	font-family: "MS UI Gothic", "Meiryo", メイリオ, "Hiragino Kaku Gothic ProN", ヒラギノ角ゴ Pro W3, sans-serif;
	font-size: 11px;
    margin: 0;
    padding: 0;
}
.page {
    display: none;
}
.page.active {
    display: block;
}
html {
    cursor: url("images/rance/curs.png"), auto;
    height: 100%;
    width: 100%;
    background: url(images/game_collection/bgtile2.png);
    
    overflow-x: hidden;

    scrollbar-color: #dbbadb #58545c;
}
a:hover {
    cursor: url("images/rance/curs.png"), auto;
}
.bg {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: -2;
    
    background-color: #857d8a;
    opacity: 0.3;
}
.trim {
    position: fixed;
    
    top: 0;
    right: 0;
    left: 0;
    height: 46px;
    background-size: 100%;
    z-index: -7;
    
    background: url('images/pixels/bordercute.png') repeat-x;
}
.main {
    padding: 0;
    margin-top: 0px;
    margin-left: auto;
    margin-right: auto;
    
    background-color: #a69bab;
    border-left: 2px #ffd4ff solid;
    border-right: 2px #ffd4ff solid;
    
    min-height: 100vh;
    max-height: 10000px;
    width: 600px;
    position: relative;
    z-index: 1;
}

header {
    background: url(images/game_collection/24c965cbb7526c3662eb939ac6a14e87ed9d48c9.jpg) no-repeat;
    background-size: cover;
    width: 100%;
    height: 295px;
    position: relative;
}
header li {
    display: inline-block;
    
   background-image: linear-gradient(to bottom, rgba(255, 189, 242, 0.6), rgba(255, 232, 250, 0.7), rgba(255, 189, 242, 0.6));
    padding: 10px;
    border-radius: 8px;
    box-shadow: 1px 1px 1px #735e6e inset, -1px -1px 1px #735e6e inset;
    
    font-family: "game";
    font-weight: normal;
    font-size: 8px;
    color: #8a6686;
}
header li:hover {
    background-image: linear-gradient(to bottom, rgba(255, 189, 242, 0.8), rgba(255, 232, 250, 0.9), rgba(255, 189, 242, 0.8));
}
header ul {
    position: absolute;
    bottom: 8px;
    left: 10px;
}

img {
    filter: sepia(5%)
        grayscale(35%) 
        hue-rotate(-10deg)
        brightness(108%)
        contrast(92%);
}  

.key {
    margin: 0px 10px 25px 10px;
    background-color: #c3b8cc;
}


#home {
    padding: 0px 5px 5px 5px;
    width: 98.5%;
}
.homeintro {
    background-image:   linear-gradient(to top, #a69bab 1%, rgba(174, 164, 179, 0) 40%), 
  linear-gradient(to top, #a69bab 1%, rgba(174, 164, 179, 0) 50%), 
  url(images/game_collection/bg.png);
    
   display: grid;
   grid-template-columns: 1fr 3fr;
    
    border-radius: 20px;
    
    height: 195px;
    padding-top: 3px;
    box-sizing: border-box;
}
.homeintro div {
    padding: 8px;
}
#home p {
    text-shadow: -1px -1px 0 #fff0fb, 0px -1px 0 #fff0fb, 1px -1px 0 #fff0fb, -1px 0px 0 #fff0fb, 1px 0px 0 #fff0fb, -1px 1px 0 #fff0fb, 0px 1px 0 #fff0fb, 1px 1px 0 #fff0fb;
}
#home li {
    text-transform: lowercase;
    list-style: none;
    margin-bottom: 5px;
}
#home li::before {
    content: '■';
}
h4 {
    background: url(images/game_collection/box.png) no-repeat;
    background-size: cover;
    height: 46px;
    border: 1px black solid;
    
    box-sizing: border-box;
    
    background-color: #f5e6f7;
    
    padding-top: 16px;
    
    margin-bottom: 8px;
}
.homebottom {
    display: grid;
   grid-template-columns: 300px 1fr;
    gap: 8px;
    margin-top: -10px;
}
.homebottom div {
    padding: 10px;
}

.add {
    position: relative;
}
.add::before {
    content: '';
    
    top: 54px;
    left: 15px;
    
    height: 161px;
    width: 268px;
    position: absolute;
    border: 1px #66614a solid;
    z-index: 10;
}
#wl {
    background: url("images/pixels/page.png") no-repeat;
    background-size: contain;
    height: 300px;
    
    padding: 40px 10px 10px 10px;
    
    box-sizing: border-box;
    text-align: center;
}
h6 {
    margin-bottom: 10px;
}
#consoles {
    position: relative;
    box-sizing: border-box;
    height: 70px;
    margin-top: 10px;
    
    display: grid;
    place-items: center; 
    text-align: center;
    
    width: 565px;
    
    border-image-slice: 25;
    border-image-width: 20px;
    border-image-outset: 0px 10px 0px 5px;
    border-image-repeat: stretch stretch;
    border-image-source: url("images/retroborder2.png");
    border-style: solid;
    
    background-image: linear-gradient(-90deg, #000, #424242);
}
#consoles::after {
    content: '';
    position: absolute;
    
    right: 5px;
    
    width: 80px;
    height: 75px;

    
    background-image: url("images/pixels/reset.png");
    background-size: contain;
    background-repeat: no-repeat;
}
#recentlist {
    border: 4px solid #ffeeaa;
    outline: 1px black solid;
    margin-top: -13px;
    width: 278px;
    padding: 8px;
    
    background-color: #f5e6f7;
    
    box-sizing: border-box;
    
    height: 170px;
}
h3 {
    margin: 10px 0 10px 0;
    background-image: radial-gradient(rgba(184, 172, 194, 1), rgba(138, 126, 148, 1));
    box-shadow: 1px 1px 1px #735e6e inset, -1px -1px 1px #735e6e inset, 2px 2px 5px #735e6e;
    width: 500px;
    padding: 4px;
    color: #41344d;
    text-shadow: -1px -1px 0 #fff0fb, 0px -1px 0 #fff0fb, 1px -1px 0 #fff0fb, -1px 0px 0 #fff0fb, 1px 0px 0 #fff0fb, -1px 1px 0 #fff0fb, 0px 1px 0 #fff0fb, 1px 1px 0 #fff0fb;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    font-size: 12px;
}

h2 {
    font-family: "game";
    font-weight: normal;
    font-size: 10px;
    margin: 8px;
    color: white;
    text-shadow: -1px -1px 0 #738783, 0px -1px 0 #738783, 1px -1px 0 #738783, -1px 0px 0 #5e5e5e, 1px 0px 0 #738783, -1px 1px 0 #738783, 0px 1px 0 #738783, 1px 1px 0 #738783;
    letter-spacing: 0.6px;
}
@font-face {
  font-family: 'game';
  src: url("font/04B_11__.TTF");
}
.page {
    width: 100%;
    height: 100%; 
    z-index: 2;
    overflow: hidden;
    padding-top: 12px;
}
.magic {
    background: url("images/pixels/magiccircle.gif") no-repeat;
    background-size: 100px;
    height: 60px;
    width: 99px;
    text-align: center;
}

.gamepage table {
    border: 1px black solid;
    outline: 1px black solid;
    margin-top: 20px;
    border-collapse: collapse;
    width: 580px;
    z-index: 4;
    margin-bottom: 15px;
}

.gamepage td, .gamepage th {
    text-transform: lowercase;
    color: white;
    border: 1px solid #383342;
    margin: 0;
    padding: 2px;
}
.gamepage tr:nth-child(odd) {
    background-image: linear-gradient(-90deg, #000, #424242);
}
.gamepage td img {
    filter: grayscale(40%);
}
.gamepage tr {
    background-image: linear-gradient(-90deg, #000, #333);
}