body {
  background-color: #0f0f2d;
  color: #fff;
  font-family: Tahoma, Verdana, 'Segoe UI', Georgia, sans-serif;
  font-size: 1em;
}

img {
  width:auto;
  height:auto;
  max-width:100%;
}

html::after {
  content:"";
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  pointer-events:none;
  background-color: #3d3d3d;
  opacity: 1;
  z-index: -1;
  background-image:  repeating-radial-gradient( circle at 0 0, transparent 0, #3d3d3d 7px ), repeating-linear-gradient( #00000055, #000000 );

}

 /* unvisited link */
 a:link {
  color: #F7EE7F;
  text-decoration: none;
  font-weight: bold;
}

/* visited link */
a:visited {
  color: #F7EE7F;
  text-decoration: none;
}

/* mouse over link */
a:hover {
  color: #fff;
  text-decoration: none;
}

/* selected link */
a:active {
  color: #fff;
  text-decoration: none;
}

/* the MDK logo */
.mdk {
  top: 0x;
  bottom: -2px;
  position:relative;
  font-family: "Sixtyfour Convergence", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "BLED" 0,
    "SCAN" -25,
    "XELA" 0,
    "YELA" 0;
}

.button {
  font-size: 1em;
}

.search {
  font-size: 1em;
  background-color: #99FFFF;
  color: #000;
}

.top {
  background-color: #fff;
}

.browse {
  justify-content: left;
  align-items: left;
  vertical-align: top;
  background-color: #3d3d3d;
  border:2px solid #fff;
  border-radius: 15px;
  padding: 5px;
  opacity: .9;
  display:inline-block;
}

.centernav {
  justify-content: center;
  align-items: center;
  display: flex;
}

.header {
  background-color: #333;
  padding: 10px;
  text-align: center;
  border:3px solid #fff;
  border-radius: 15px;
  display: inline-block;
  opacity: .9;
  z-index: 2;
  position: relative;
}

.submenu {
  padding-left: 10px;
  opacity: .9;
  z-index: 2;
  position: absolute;
  display: flex;
}

.randomheader {
  font-size: 1.2em;
  font-weight: bold;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;

}

.header ul, .submenu ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.header li, .submenu li {
  float: left;
}

.header li a, .dropbtn, .submenu li a {
  display: inline-block;
  color: #F7EE7F;
  text-align: center;
  padding: 2px;
  text-decoration: none;
}

.header li a:hover, .dropdown:hover .dropbtn, .submenu li a:hover {
  color: #fff;
}

.header li.dropdown, .submenu li.dropdown {
  display: block;
  text-align: left;
  padding: 0px;
}

.dropdown-content {
  display: none;
  position: absolute;
  padding: 1px 5px;
  background-color: #3d3d3d;
  border:2px solid #fff;
  border-radius: 15px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content p {
  margin-top: 5px;
  margin-bottom: 5px;
}

.dropdown-year {
  display: none;
  position: absolute;
  padding: 1px 5px;
  background-color: #3d3d3d;
  border:2px solid #fff;
  border-radius: 15px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  max-width: 800px;
  width: calc(100vw - 100px);
}

.dropdown-content a:hover, .dropdown-year a:hover {
  color: #fff;
}

.dropdown:hover .dropdown-content, .dropdown:hover .dropdown-year {
  display: block;
}

.search {
  background-color: #333;
  padding: 10px;
  text-align: center;
  border:3px solid #fff;
  border-radius: 15px;
  display: inline-block;
  margin-top: 10px;
  opacity: .9;
}

.content {
  background-color: #2b2b2b;
  border:2px solid #fff;
  border-radius: 15px;
  margin-top: 10px;
  width: calc(100% - 30px);
  padding: 10px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  opacity: .9;
  overflow: auto;
}

h1 {
  font-size: 1.2em;
  text-align: center;
}

h2 {
  font-size: 1.1em;
  text-align: center;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

details {
  padding-bottom: 25px;
  clear: both;
  overflow: visible;
  padding-left: 10px;
  padding-right: 10px;
}

pre {
  clear: both;
}

.info {
  float: left;
  margin-bottom: 15px;
  opacity: .9;
  background-color: #3d3d3d;
  border: 1px solid #fff;
  margin: 2px 2px 10px 2px;
  padding: 5px;
  border-radius: 5px;
}

.detailstable {
  float: left;
  opacity: .9;
  background-color: #3d3d3d;
  border: 1px solid #fff;
  margin: 2px 2px 10px 2px;
  padding: 2px;
  border-radius: 5px;
  font-weight: bold;
}

.detailstable td:first-child {  
  text-align: right;
  font-weight: normal;
}

.detailstable td:first-child:after {content: ':';}


.altdetails {
  float: left;
  margin-bottom: 15px;
  opacity: .9;
  background-color: #3d3d3d;
  border: 1px solid #fff;
  margin: 2px 2px 10px 2px;
  padding: 2px; 
  border-radius: 5px;
  font-weight: bold;
  
}
.altdetails th:first-child {
  border-bottom: 1px solid;
  font-weight: normal;
  text-align: right;
}

.altdetails th {
  border-bottom: 1px solid;
  font-weight: bold;
  text-align: left;
}


.altdetails td:first-child {  
  text-align: right;
  font-weight: normal;
}

.altdetails td:first-child:after {content: ':';}


.romstable {
  margin-bottom: 15px;
  opacity: .9;
  background-color: #3d3d3d;
  border: 1px solid #fff;
  margin: 2px 2px 10px 2px;
  padding: 2px;
  border-radius: 5px;
  white-space: nowrap;
  max-width: 100%;
}

.romstable td:first-child {  
  text-align: left;
  font-weight: normal;
}

.romstable th {
  border-bottom: 1px solid;
  font-weight: bold;
}

summary {
  width:fit-content;
  padding-bottom: 8px;
  margin-bottom: 1px;
  font-weight: bold;
  font-size: 1.1em;
  color: #7CB4B8;
}

details[open] summary {  
  margin-bottom: 10px;
  border-bottom: solid 1px #fff;
}

details[open] > details[open] summary {
  margin-bottom: 0px;
  border-bottom: 0px;
}

details[open] > details summary {
  margin-bottom: 0px;
  border-bottom: 0px;
}

/*Vertical Tabs*/
.tabGroup {
  color: #F7EE7F;
}

/* Configure the radio buttons to hide off screen */
.tabGroup > input[type="radio"] {
  position: absolute;
  left:-100px;
  opacity: .9;
}

.tabGroup > div.tablabels :hover {
  cursor: pointer;
}


/* Configure maximum width of tabs and align to top */
.tabGroup > div.tablabels {
  display: inline-block;
  width: min-content;
  border: 1px solid #fff;
  border-radius: 3px;
  background-color: #3d3d3d;
  padding-right: 15px;
  margin-right: 10px;
}

/* Configure labels to look like tabs */
.tabGroup > div.tablabels > label {
  display: inline-block;
  width: min-content;
  margin: 5px 13px 5px 5px;
  white-space: nowrap;
  font-weight: bold;
}

/* Configure labels to look like tabs */
.tabGroup > div.tablabels > label:hover {
  color: #fff;
}

/* Checked tabs must be white with the bottom border removed */
.tabGroup > input#rad1:checked ~ div.tablabels > label[for="rad1"],
.tabGroup > input#rad2:checked ~ div.tablabels > label[for="rad2"],
.tabGroup > input#rad3:checked ~ div.tablabels > label[for="rad3"],
.tabGroup > input#rad4:checked ~ div.tablabels > label[for="rad4"],
.tabGroup > input#rad5:checked ~ div.tablabels > label[for="rad5"],
.tabGroup > input#rad6:checked ~ div.tablabels > label[for="rad6"],
.tabGroup > input#rad7:checked ~ div.tablabels > label[for="rad7"],
.tabGroup > input#rad8:checked ~ div.tablabels > label[for="rad8"],
.tabGroup > input#rad9:checked ~ div.tablabels > label[for="rad9"],
.tabGroup > input#rad10:checked ~ div.tablabels > label[for="rad10"] {
  font-weight: bold;
  color: #fff;
  position:relative;
  background-color: #3d3d3d;
}

/* Checked tabs must be white with the bottom border removed */
.tabGroup > input#rad1:disabled ~ div.tablabels > label[for="rad1"],
.tabGroup > input#rad2:disabled ~ div.tablabels > label[for="rad2"],
.tabGroup > input#rad3:disabled ~ div.tablabels > label[for="rad3"],
.tabGroup > input#rad4:disabled ~ div.tablabels > label[for="rad4"],
.tabGroup > input#rad5:disabled ~ div.tablabels > label[for="rad5"],
.tabGroup > input#rad6:disabled ~ div.tablabels > label[for="rad6"],
.tabGroup > input#rad7:disabled ~ div.tablabels > label[for="rad7"],
.tabGroup > input#rad8:disabled ~ div.tablabels > label[for="rad8"],
.tabGroup > input#rad9:disabled ~ div.tablabels > label[for="rad9"],
.tabGroup > input#rad10:disabled ~ div.tablabels > label[for="rad10"] {
  position:relative;
  color: dimgray;
  background-color: #3d3d3d;
  font-weight: bold;
}

.tabGroup > div.tabcontent {
  display: inline-block;
  max-width: calc(100% - 150px);
  border-radius: 3px;
  background-color: #3d3d3d;
  vertical-align: top;
}

/* The tab content must fill the widgets size and have a nice border */
.tabGroup > div.tabcontent > div {
  width: 100%;
  display: none;
  overflow: auto;
  padding-left: 10px;
  padding-top: 6px;
}

/* This matchs tabs displaying to thier associated radio inputs */
.tabGroup > .tab1:checked ~ div.tabcontent > .tab1,
.tabGroup > .tab2:checked ~ div.tabcontent > .tab2,
.tabGroup > .tab3:checked ~ div.tabcontent > .tab3,
.tabGroup > .tab4:checked ~ div.tabcontent > .tab4,
.tabGroup > .tab5:checked ~ div.tabcontent > .tab5,
.tabGroup > .tab6:checked ~ div.tabcontent > .tab6,
.tabGroup > .tab7:checked ~ div.tabcontent > .tab7,
.tabGroup > .tab8:checked ~ div.tabcontent > .tab8,
.tabGroup > .tab9:checked ~ div.tabcontent > .tab9,
.tabGroup > .tab10:checked ~ div.tabcontent > .tab10 {
  display: inline-block;
}

.tabcontent img {
  padding: 0px;
  max-width: calc(100% - 20px);
  max-height: calc(100% - 20px);
  border: 1px solid #fff;
  border-radius: 3px;
}

.randomentry {
 display: flex;
 flex-direction: row;
 align-items: center;
}

.randomscreenshot {
  margin-left: 10px;
  border-radius: 3px;
  background-color: #3d3d3d;
  margin-left: 5px;
  padding: 10px 0px 10px 10px;
  
}

 .screenshot {
  max-width: calc(100% - 10px);
  max-height: 200px;
  border: 1px solid #fff;
  border-radius: 3px;
}

.crt {
  aspect-ratio: 4/3 auto;
}

.letterselection {
  background-color: #3d3d3d;
  border:2px solid #fff;
  border-radius: 15px;
  padding: 5px;
  margin: 10px;
  opacity: .9;
  text-align: center;
}

.letterselection a {
  font-weight: bold; 
}

.pageselection {
  background-color: #3d3d3d;
  border:2px solid #fff;
  border-radius: 15px;
  padding: 5px;
  opacity: .9;
  text-align: center;
  margin-bottom: 15px;
}

.pageselection a {
  font-weight: bold; 
}

.padleft {
  padding-left: 10px;
}

.padbottom {
  padding-bottom: 10px;
}

img:hover {
  transform: translate(-50%, -50%) scale(2); 
  left: 50%;
  top: 50%;
  position:fixed; 
  z-index: 2;
  max-width: 40vw;
  max-height: 40vh;
}

.tabs {
	display: flex;
	flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.tabs label {
  background-color: #3d3d3d;
  color: #F7EE7F;
  cursor: pointer;
	display: block;
  font-weight: 600;
  order: initial;
  justify-content: center;
  width: 100%;
  padding: 0px;
}

.tabs .tab-content {
	display: none;
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
}

.tabs input[type="radio"] {
	display: none;
}

.tabs input[type="radio"]:checked + label {
  background-color: #3d3d3d;
  color: #fff;
}

.tabs input[type="radio"]:checked + label + .tab-content {
	display: block;
}

@media (min-width: 10em) {
  .tabs .tab-content {
    order: 99
  }
  
  .tabs label {
    order: 1;
  }
  
  .tabs label {
    margin-right: 0.3rem;
    margin-top: 0;
    width: auto;
  }
}
