body
{
	background-color: #AAAAAA;
	font: 14px/1.5em Verdana, Arial, Helvetica, sans-serif;
	background-attachment: fixed;
}

table
{
	font: 14px/1.5em Verdana, Arial, Helvetica, sans-serif;
	background-attachment: fixed;
}

.box
{
    width: 75%;
    background: #FFFFFF;
    box-shadow: 0px 0px 10px 4px #444444;
    margin: 32px auto;
    padding: 32px 64px;
    text-align: justify;
}

A {color: #0000AA; text-decoration: none}
A:link {color: #0000AA; TEXT-DECORATION: none}
A:visited {color: #0000AA; TEXT-DECORATION: none}
A:hover {color: #0000AA; TEXT-DECORATION: underline}

h1
{
	background-color: #FFFFFF;
	color: #000000;
    line-height: 1.5em;
	font-size: 32px;
    padding: 0px 0px 32px 0px;
    text-align: center;
}

h2
{
	background-color: #FFFFFF;
	color: #000;
	font-size: 20px;
    line-height: 1.5em;
    padding: 2px 24px 2px 24px;
    border: 1px solid #000;
}

h3
{
	background-color: #FFFFFF;
    color: #000;
    font-size: 18px;
    text-decoration: underline;
    text-align: left;
}

img 
{ 
    max-width: 100%;
    max-height: 100%;
}

h1 a, h1 a:link, h1 a:visited, h1 a:hover,
h2 a, h2 a:link, h2 a:visited, h2 a:hover,
h3 a, h3 a:link, h3 a:visited, h3 a:hover {
    color: #000;
}

pre
{
	background-color: #EEEEEE;
    padding: 0px 24px;
    border: 1px solid #000;
    font: 12px/1.5em "Courier New";
}

.inlinecode
{
    font-family: "Courier New";
}

.rom-filter-header:not([hidden])
{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px 0px;
}

#filter-toggle
{
    border: 1px solid #888;
    border-radius: 2px;
    background: #e8e8e8;
    color: #222;
    padding: 6px 10px;
    font: 13px Verdana, Arial, Helvetica, sans-serif;
    cursor: pointer;
}

#filter-toggle::before
{
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg);
    vertical-align: 3px;
}

#filter-toggle[aria-expanded="true"]::before
{
    transform: rotate(225deg);
    vertical-align: 0px;
}

.rom-filters:not([hidden])
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px 12px;
    align-items: end;
    margin: 16px 0px;
    text-align: left;
}

.rom-filters label
{
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-weight: bold;
    font-size: 12px;
}

.rom-filters input, .rom-filters select, .rom-filters button
{
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 32px;
    border: 1px solid #888;
    border-radius: 2px;
    background: #fff;
    color: #222;
    padding: 3px 6px;
    font: 13px Verdana, Arial, Helvetica, sans-serif;
}

.rom-filters button
{
    cursor: pointer;
    background: #e8e8e8;
}

.rom-filters input:focus, .rom-filters select:focus, .rom-filters button:focus, #filter-toggle:focus
{
    outline: 2px solid #934444;
    outline-offset: 1px;
}

#filter-count
{
    align-self: center;
    font-size: 12px;
}

.rom-filter-item:not([hidden])
{
    display: inline-block;
    vertical-align: bottom;
}

@media screen and (max-width: 736px)
{
    .box
    {
        box-sizing: border-box;
        width: calc(100% - 16px);
        margin: 16px auto;
        padding: 24px 16px;
    }
}

/* Main ROM box body */
.romiconcontainer
{
    width: 249px;
    margin: 5px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    display: inline-block;
    vertical-align: bottom;
    border-spacing: 0px;
    background-color: #e8e8e8;
    border: 1px solid #5b5b5b;
    box-shadow: 2px 2px 2px 0px #6d6d6d;
}

/* ROM header box */
.romiconheader
{
    width: 233px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
    margin: 3px;
    padding: 0px 3px 0px 3px;
    overflow: hidden;
    color: #e8e8e8;
    outline: 3px solid #e8e8e8;
    background-color: #a34d4d;
    border-top: 2px solid #ca6f6f;
    border-left: 2px solid #ca6f6f;
    border-right: 2px solid #911414;
    border-bottom: 2px solid #911414;
}

/* ROM header text */
.romiconheadertext
{
    width: 235px;
    height: 30px;
    font-size: 13px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    display: table-cell;
    vertical-align: middle;
    line-height: 100%;
    text-shadow: 0px 1px #000000;
}

/* ROM icon */
.romiconbody
{
    width: 240px;
    height: 125px;
    background-position: center;
    background-repeat: repeat;
    text-align: center;
    vertical-align: middle;
    line-height: 150px;
    border-bottom-right-radius:10px;
    border-bottom-left-radius:10px;
    margin: 1px 3px 3px 3px;
    overflow: hidden;
    background-color: #a2a2a2;
    border-left: solid 2px #a2a2a2;
    border-top: solid 2px #a2a2a2;
    border-right: solid 1px #a2a2a2;
    border-bottom: solid 1px #a2a2a2;
}

.section
{
    position: relative;
    height: 30px;
    padding-left: 10px;
    text-align: left;
    font-weight: bold;
    font-size: 18px;
    line-height: 30px;
    background-color: #d86363;
    text-shadow: 1px 1px 1px #492e2e;
    color: #ffffff;
    margin-bottom: 10px;
}

.sect-name
{
    display: inline-block;
    width: calc(100% - 40px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #ffffff;
}

.sect-name a
{
    color: inherit;
    line-height: 30px;
}

.section-contents
{
    width: calc(100% - 30px);
    padding: 00px 10px 10px 0px;
    text-align: center;
    transition: max-height 0.2s ease-out;
    overflow: hidden;
}

.section-contents .iconcontainer
{
    margin: 0px 0px 10px 10px;
}

.collapse-button
{
    float: right;
    margin-right: 15px;
    cursor: pointer;
    height: 30px;
}

.collapse-button img
{
    padding-top: 7px;
}

@media screen and (min-width: 736px)
{
    .carousel-object
    {
        width: 540px;
        height: 310px;
    }
}

@media screen and (max-width: 736px)
{
    .carousel-object
    {
        max-width: 75vw;
        height: 42vw;
    }
}

.carousel-object img
{
    object-fit: cover;
    height: 100%;
}

.carousel-object iframe
{
    width: 100%;
    height: 100%;
    background: black;
}

.carousel-object video
{
    width: 100%;
    height: 100%;
    background: black;
}

.carousel-list
{
    background-color: #AAAAAA;
    overflow: auto;
    white-space: nowrap;
    padding: 5px;
    display: inline-block;
}

@media screen and (min-width: 736px)
{
    .carousel-list
    {
        width: 530px;
    }
}

@media screen and (max-width: 736px)
{
    .carousel-list
    {
        max-width: 75vw;
    }
}

.carousel-list img
{
    margin: 0px;
}

.carousel-list-object
{
    display: inline-block;
}

.carousel-list-object.video
{
    position: relative;
    z-index: 1;
}

.carousel-list-object.videomp4
{
    position: relative;
    z-index: 1;
}

.video-player
{
    position: absolute; 
    top: 24px;
    left: 36px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border: none;
}

.carousel-list-object img
{
    height: 75px;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
}

.carousel-list-object:last-child
{
    padding-right: 5px;
}

.carousel-list-object.selected img
{
    box-sizing: border-box;
    border: 1px solid cyan;
}

.fadeout
{
    animation-name: fadeout;
    animation-duration: 0.5s;
}

@keyframes fadeout
{
    from {opacity: 1}
    50% {opacity: 0}
    to {opacity: 0}
}

.fadein
{
    animation-name: fadein;
    animation-duration: 0.25s;
}

@keyframes fadein
{
    from {opacity: 0}
    to {opacity: 1}
}