body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff0dc;
    overflow-y: auto; /* Ensure vertical scrolling for pages */
}

header {
    height: 100px;
    background: #a0a0a0;
    padding: 0;
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    border-bottom: 4px solid #f00;
    z-index: 10; /* Ensure it stays above other content */
}

header .logo {
    width: 155px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow( 2px 2px 1px rgba(0, 0, 0, .3));
}

header .logo img {
    width: 125px;
    height: 70px;
}

header .bars {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header .bars .top-bar {
    height: 50%;
    background: linear-gradient(to right, #a0a0a0, #002030);
    display: flex;
    align-items: center;
    justify-content: right;
    padding: 15px;
}

header .bars .top-bar a {
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
}

header .bars .top-bar a img {
    height: 20px;
    vertical-align: middle;
}

header .bars .top-bar a:hover {
    /* sets to a light blue (equal to #00c0e0) for easy reading */
    filter: brightness(0) saturate(100%) invert(65%) sepia(50%) saturate(2633%) hue-rotate(143deg) brightness(91%) contrast(104%);
}

header .bars .bottom-bar {
    height: 50%;
    display: flex;
    align-items: center;
    justify-content: center; /* Center the main links */
    position: relative;
}

header .bars .bottom-bar a {
    font-size: 1.5rem;
    color: #000;
    text-decoration: none;
    margin: 13px 30px;
    font-weight: bold;
    position: relative; /* Set the link as the reference point for the submenu */
    left: -77px; /* Shift links to the left by 77px */
}

header .bars .bottom-bar a:hover {
    color: #00e;
}

header .bars .bottom-bar img {
    height: 30px;
    width: 30px;
    cursor: pointer;
    position: absolute;
    right: 30px; /* Align the image to the right */
}

header .bars .bottom-bar img:hover {
    /* sets to a dark blue (equal to #00e) standard link hover color */
    filter: invert(9%) sepia(100%) saturate(7499%) hue-rotate(249deg) brightness(81%) contrast(139%);
}

header .bars .bottom-bar .submenu {
    display: none; /* Hide submenus by default */
    position: absolute;
    top: calc(100% + 15px); /* Position below the bottom bar */
    left: 50%; /* Position submenu start point center of bottom bar */
    transform: translateX(calc(-50% - 77px)); /* move to center of screen */
    width: 400px;
    height: 200px;
    background: #e0e0e0;
    border: 1px solid #f00;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 10px;
    z-index: 100;
}

header .bars .bottom-bar a:hover + .submenu {
    display: block; /* Show submenu when the corresponding link is hovered over */
}

header .bars .bottom-bar .submenu img {
    /* override bottom-bar img styles */
    cursor: default;
    position: relative;
    right: auto;
    /* continue with submenu img styles */
    width: 150px;
    height: 200px;
    object-fit: cover;
    float: left;
    margin-right: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header .bars .bottom-bar .submenu img:hover {
    filter: none; /* Disable hover effect on submenu images */
}

header .bars .bottom-bar .submenu .submenu-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
}

header .bars .bottom-bar .submenu .submenu-links a {
    left: 0;
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    padding: 10px 0;
    margin: 0;
    font-weight: bold;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

header .bars .bottom-bar .submenu .submenu-links a:hover {
    color: #00e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

header .bars .bottom-bar .menu {
    display: none; /* Hide the main menu by default */
    position: absolute;
    top: calc(100% + 15px); /* Position below the bottom bar */
    right: 15px; /* Align the menu to the right */
    width: 200px;
    height: auto;
    background: #e0e0e0;
    border: 1px solid #f00;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0px 10px;
    z-index: 100;
}

header .bars .bottom-bar .menu .mainmenu-links {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
}

header .bars .bottom-bar .menu .mainmenu-links a {
    left: 0;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    padding: 5px 0;
    margin: 2px 0;
    font-weight: bold;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    box-shadow: 0 1px 2px rgba(0,0,0,0.07);
    transition: background 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

header .bars .bottom-bar .menu .mainmenu-links a:hover {
    color: #00e;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.header-spacing {
    min-height: 100px;
    width: 100%;
    background: transparent; /* Acts as a spacer */
}

main {
    padding: 0px 30px;
    text-align: center;
}

footer {
    min-height: 30px;
    max-height: 30px;
    background: #a0a0a0;
    color: #fff;
    text-align: left;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100; /* Ensure it stays above other content */
}

footer p {
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
}

footer a {
    color: #000;
    font-weight: bold;
    text-decoration: none;
    margin-right: 15px;
}

footer a:hover {
    color: #00e;
}

.footer-spacing {
    min-height: 30px;
    max-height: 30px;
    width: 100%;
    background: transparent; /* Acts as a spacer */
}

/* Standard Content Styling */

h1 { /* main title */
    font-size: 1.6rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 0px;
    text-align: center;
}

h2 {/* sub title */
    font-size: 0.9rem;
    color: #000;
    margin-top: 5px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {/* inner conntent title */
    font-size: 1.25rem;
    color: #000;
    margin-top: 0px;
    margin-bottom: 10px;
    text-align: center;
}

h4 {/* inner content sub title */
    font-size: 1rem;
    color: #000;
    margin-top: 0px;
    margin-bottom: 8px;
    text-align: center;
}

h5 {/* main menu heading */
    font-size: 1rem;
    color: #a00;
    margin-top: 10px;
    margin-bottom: 10px;
    text-align: center;
}

p {
    font-size: 1rem;
    color: #000;
    line-height: 1.25;
    margin-bottom: 15px;
    text-align: left;
    padding: 0 10px;
}

ol li ol {
    list-style-type: lower-alpha; /* Changes markers to a, b, c... */
}

/* Home Page Content Styling */
main.home {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: calc(100vh - 100px - 30px); /* Remaining space minus header and footer */
    padding: 0; /* Remove padding to prevent overflow */
    gap: 0;
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}

main.home .blurb {
    flex: 0 0 auto; /* Ensure it takes only the space it needs */
    width: 100%;
    padding: 10px;
    text-align: center;
}

main.home .box-container {
    display: flex;
    flex: 1;
    justify-content: space-between;
    align-items: stretch;
    gap: 5%;
    padding: 0px 5% 25px 5%; /* Add padding inside the container */
}

main.home .box {
    flex: 1;
    background: #f0f0f0;
    border: 3px solid #f00;
    border-radius: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    overflow: hidden; /* Prevent scrolling */
    margin: 0;
}

main.home .box .preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    gap: 10px; /* Space between images */
    width: 100%;
    overflow: hidden; /* Prevent scrolling */
}

main.home .box img {
    width: auto;
    max-width: 80%; /* Resize images to fit within the box */
    height: auto; 
    max-height: 45%; /* Ensure images do not exceed 45% of box height */
    margin: 0 10px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

main.home .box:hover {
    border: 6px solid #f00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Storefront Content Styling */
main.content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
    height: calc(100vh - 100px - 30px); /* Remaining space minus header and footer */
    padding: 0;
    gap: 15px;
}

main.content .left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow-y: auto;
    padding: 15px;
    border-right: 1px solid #ccc;
}

main.content .left .content-header {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: right;
    margin-bottom: 10px;
}

main.content .left .content-header .title-section {
    flex: 1;
    text-align: left;
}

main.content .left .content-header .view {
    display: flex;
    flex-direction: column;
}

main.content .left .content-header .view input {
    width: 32px;
    height: 32px;
    margin: 2px;
    cursor: pointer;
}

main.content .left .tile-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 15px;
}

main.content .left .list-view {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

main.content .left .itembox {
    background: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: block;
    align-items: center;
    text-align: center;
}

main.content .left .itembox:hover {
    border: 3px solid #00e;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

main.content .left .itembox.selected {
    border: 3px solid #f00;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

main.content .left .tile-view .itembox .title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    float: top;
}

main.content .left .tile-view .itembox .graphic {
    width: 80%;
    height: auto;
    margin-bottom: 10px;
    object-fit: cover;
    border-radius: 5px;
}

main.content .left .tile-view .itembox .description {
    font-size: 0.9rem;
}

main.content .left .list-view .itembox {
    text-align: left;
    gap: 10px;
}

main.content .left .list-view .itembox .graphic {
    width: 50px;
    height: 50px;
    margin-bottom: 0;
    float: left;
}

main.content .left .list-view .itembox .title {
    margin-bottom: 10px;
}

main.content .left .list-view .itembox .description {
    font-size: 1rem;
    margin: 0;
    padding: 0 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

main.content .right {
    flex: 2;
    max-width: 33%;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.close-pane-btn {
    display: none; /* hide on desktop */
}

main.content .right .item-detail {
    flex: 1;
    height: 100%; /* Take up the remaining space */
    text-align: left;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 25px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Allow vertical scrolling if needed */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Styles for item-detail box */
.item-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.item-detail .promo-bar {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.item-detail .promo-bar img {
    max-width: 50%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.item-detail .promo-bar .buy-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: flex-start;
    gap: 10px;
}

.item-detail .promo-bar .buy-info .price {
    width: 90%;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    text-align: right;
}

.item-detail .promo-bar .buy-info a {
    align-self: center; /* Center the button horizontally */
}

.item-detail .promo-bar .buy-info button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s;
}

.item-detail .promo-bar .buy-info button:hover {
    background-color: #0056b3;
}

.item-detail .promo-bar .buy-info button span {
    font-size: 0.8em;
}


.item-detail .promo-bar .buy-info .promotion {
    font-style: italic;
    color: #555;
}

.item-detail .description-bar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-detail .description-bar h4 {
    margin-top: 10px;
    font-size: 1.2em;
    color: #333;
}

.item-detail .description-bar p {
    line-height: 1.25;
    margin: 0;
    color: #555;
}

.item-detail .quote {
    font-style: italic;
    margin: 10px 0;
    padding-left: 20px;
    border-left: 3px solid #ccc;
    color: #666;
}

.item-detail .footnote {
    font-size: 0.9em;
    color: #999;
}

/* Informational Content Styling */
main.info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto; /* Allow vertical scrolling */
    overflow-x: hidden; /* Hide horizontal scrollbar */
}


main.info .infoheader {
    flex: 0 0 auto; /* Ensure it takes only the space it needs */
    width: 100%;
    padding: 10px;
    text-align: center;
}

main.info .infomenu {
    position: relative; /* Make infomenu the reference point for arrows */
    width: 80%;
    margin: 0 auto; /* Center the menu */
    border-top: 2px solid red;
    border-bottom: 2px solid red;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0px 10px;
    align-items: center; /* Keep items vertically centered */
    overflow: hidden;
    white-space: nowrap;
    padding: 0 40px; /* Prevent overlap with arrows */
}

/* Infomenu items */
.infomenu .infomenu-link {
    display: inline-block;
    margin: 0 10px;
    white-space: nowrap;
}

/* Navigation arrows */
.infomenu-arrow {
    position: absolute;
    top: 215px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.infomenu-arrow.left {
    left: calc(10% - 50px); /* Position the left arrow just outside the infomenu */
}

.infomenu-arrow.right {
    right: calc(10% - 50px); /* Position the right arrow just outside the infomenu */
}

main.info .infomenu .infomenu-title {
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 20px;
    font-weight: bold;
    cursor: default;
}

main.info .infomenu .infomenu-btn {
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 20px;
    box-shadow: 3px 0 3px rgba(0, 0, 0, 0.3), -3px 0 3px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    cursor: pointer;
}

main.info .infomenu .infomenu-btn:hover {
    color: #00e;
    background: linear-gradient(to bottom, #f0f0f0, #c0c0c0);
}

main.info .infomenu .infomenu-btn.selected {
    box-shadow: inset 3px 0 3px rgba(0, 0, 0, 0.3), inset -3px 0 3px rgba(0, 0, 0, 0.3);
}

main.info .infomenu .infomenu-link {
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 20px;
    box-shadow: 3px 0 3px rgba(0, 0, 0, 0.3), -3px 0 3px rgba(0, 0, 0, 0.3);
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    font-weight: bold;
    cursor: default;
}

main.info .infomenu .infomenu-link:hover {
    background: linear-gradient(to bottom, #f0f0f0, #c0c0c0);
}

main.info .infomenu .infomenu-link.selected {
    box-shadow: inset 3px 0 3px rgba(0, 0, 0, 0.3), inset -3px 0 3px rgba(0, 0, 0, 0.3);
}

main.info .infomenu .infomenu-link a {
    color: #000;
    text-decoration: none;
}

main.info .infomenu .infomenu-link a:hover {
    color: #00e;
}

main.info .info-container {
    width: 100%;
}

main.info .info-container .infocontent {
    width: 80%;
    margin: 0 auto; /* Center the content */
    padding: 20px;
    color: #333; /* Text color */
    line-height: 1.6;
}

video {
    max-width: 80%;
    height: auto;
    border-radius: 25px;
}
