html {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

hr {
    border: none;
    height: 3px; /* sets the thickness */
    background-color: #6a35ce; /* sets the color */
}

i {
    font-size: 1rem;
}
button {
    border: none;
}

table,
th,
td {
    border: 1px solid gray;
}

table {
    border-collapse: collapse;
    width: 60%;
    margin: 0 auto;
}

/*
tr:nth-child(even) {
  background-color: #f2f2f2; 
}

tr:nth-child(odd) {
  background-color: transparent; 
}
*/

thead tr {
    font-weight: 900;
    background-color: navy;
    color: white;
}

th,
td {
    padding: 0.4rem;
    text-align: left;
}

th {
    text-align: center;
}

label {
    font-weight: 700;
    padding-right: 0.5rem;
    font-size: 1rem;
}

input {
    margin-right: 0.75rem;
    font-size: 1rem;
}

input[type="radio"] {
    transform: scale(1.5); /* Makes the radio button 1.5 times its original size */
    /* Add vendor prefixes for broader browser support if needed: */
    -ms-transform: scale(1.5);
    -webkit-transform: scale(1.5);
    vertical-align: middle; /* Helps align the larger button with adjacent text */
}

#main-container {
    width: 100%;
    margin: 0 auto;
}

.upper-menu {
    width: 100%;
}

.hero-image {
    width: 100%;
}

.col1,
.col3,
.col4,
.col5 {
    width: 10%;
}

.col2 {
    width: 25%;
}

.col6 {
    width: 10%;
    text-align: right;
}

.col7 {
    width: 10%;
    text-align: right;
}

.col8 {
    width: 15%;
}

.bold {
    font-weight: 900;
}

.logo {
    width: 100%;
}

.container {
    border: 1px solid #ccc;
    padding: 0.5rem;
    overflow: auto; /* Clears the float within the container */
}
/********************************************/

.desktop-only {
    display: none;
}

.mobile-only {
    display: block;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.menu {
    list-style-type: none;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    z-index: auto;
    align-content: flex-start;
    align-items: flex-start;
    justify-items: flex-start;
    padding: 0 120px 0 0;
}

.menu-items > p {
    padding: 0 2rem;
    font-weight: 700;
}

.menu-items > p > a:hover {
    color: #931b32;
}

.hamburger {
    display: block;
    font-size: 3rem;
    background: #6a35ce;
    color: #fff;
    padding-left: 1rem;
    border-radius: 10px;
}

.menu-items {
    display: flex;
    justify-content: center;
    flex-direction: column;
    background: #6a35ce;
    display: none;
}

.menu-item {
    width: 100%;
    padding: 0.2em 1em;
    outline: none;
    position: relative;
    background: #6a35ce;
    /*transition: background-color 0.3s ease-in-out;*/
    color: #fff;
}

.sub-menu {
    width: 15rem;
    visibility: hidden;
    list-style-type: none;
    position: absolute;
    top: 100%;
    left: 15%;
    background-color: #6a35ce;
    color: white;
    box-shadow: 2px 2px 2px black;
    border: 1px solid black;
    z-index: 1;
}

.highlight:hover,
.highlight:focus,
.menu-item:hover,
.menu-item:focus {
    /* transition: 500ms ease all; */
    outline: none;
}

.sub-item:hover,
.sub-item:focus {
    /* transition: 500ms ease all; */
    /* border-radius: 1rem; */
    background: #931b32;
    color: white;
    /* transition-delay: 0.25s; */
}

.menu-item:focus > .highlight .sub-menu,
.menu-item:hover > .highlight .sub-menu,
.menu-item:focus > .sub-menu,
.menu-item:hover > .sub-menu,
.menu-item:focus-within,
.sub-item:focus > .sub-menu,
.sub-item:hover > .sub-menu,
.sub-item:focus-within {
    visibility: visible;
    /* transition-delay: 0.25s; */
}

/***********************************************/

.header-container {
    background-color: #fff;
}

.main-menu-container {
    background: #e4d7f5;
    height: 3.7rem;
}

nav.main-nav {
    width: 100%;
    background-color: #6a35ce;
    outline-offset: 3px;
    outline: 4px solid #6a35ce;
    padding: 1px;
}

nav.top-nav {
    width: 75%;
    float: right;
}

nav.main-nav,
nav.top-nav {
    height: 3.4rem;
    margin: 0 auto;
    /* text-align: center; */
    /* display: flex; */
    /* justify-content: space-around; */
}

nav.main-nav ul,
nav.top-nav ul {
    float: left;
}

nav.main-nav ul li,
nav.top-nav ul li {
    float: left;
    list-style: none;
    position: relative;
}

nav.top-nav ul li a,
.welcome {
    display: block;
    color: #222;
    padding: 1rem 0.5rem;
    text-decoration: none;
    font-size: 1rem;
}

nav.main-nav ul li a {
    display: block;
    color: #fff;
    padding: 0.85rem 0;
    text-decoration: none;
    font-size: 1.25rem;
}

.welcome {
    font-weight: 600;
    font-size: 0.7rem;
}

nav.main-nav ul li ul {
    display: none;
    position: absolute;
    background-color: #6a35ce;
    padding: 0.5rem;
    z-index: 1;
}

nav.top-nav ul li ul {
    display: none;
    position: absolute;
    background-color: #fcfcfc;
    padding: 0.5rem;
    top: 3em;
    z-index: 1;
}

nav.main-nav ul li:hover ul,
nav.top-nav ul li:hover ul {
    display: block;
}

nav.main-nav ul li ul li a,
nav.top-nav ul li ul li a {
    padding: 0.4rem 0.75rem;
}

nav.main-nav ul li ul li,
nav.top-nav ul li ul li {
    width: 13rem;
    border-radius: 0 0 4px 4px;
}

nav.main-nav ul li ul li a:hover,
nav.top-nav ul li ul li a:hover {
    background-color: #e4d7f5;
    color: #6a35ce;
    width: 13rem;
}

.prod-count {
    position: absolute;
    top: -2.5rem;
    right: 4.25rem;
}

.search-form {
    padding: 1rem 3rem;
}

.search-input {
    font-size: 1rem;
    width: 10rem;
}

.hero-container,
.select-products {
    display: flex;
    justify-content: space-around;
    margin-bottom: 1.25rem;
}

.select-products {
    margin: 2.5rem 0;
}

.fa-magnifying-glass {
    font-size: 1rem;
}

.hero-card,
.nav-images {
    flex: 1;
    padding: 0.25rem;
}

.hero-card img,
.nav-images img {
    width: 100%;
    height: auto;
    display: block;
}

.show-products,
.show-headings {
    padding: 0.5rem 0;
    margin: 0 2.5rem;
    position: relative;
}

.list-heading {
    font-size: 1.2rem;
    /* text-decoration-line: underline; */
    font-weight: 900;
    margin-bottom: 1rem;
    color: #6a35ce;
}

.list-subheading {
    font-size: 1rem;
    text-decoration-line: none;
    font-weight: 700;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: #6a35ce;
}

.list-detail {
    font-size: 0.8rem;
    text-decoration-line: none;
    font-weight: 300;
    margin: 0.25rem;
    color: #000;
}

.additional-info {
    margin: 0 auto;
    width: 60%;
}
#top_pager {
    position: absolute;
    top: -5rem;
    right: 3.75rem;
}

#end_pager {
    position: absolute;
    bottom: 0;
    right: 3.75rem;
}

#filter {
    position: absolute;
    top: -1rem;
    right: 3.75rem;
}

.normal {
    font-weight: 500;
}

.form-outline {
    background-color: lightgray;
    padding: 2.5rem;
    border: 2px black solid;
}

.product-display {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    /* height: 40rem; */
    margin-bottom: 1rem;
    background-color: #f2e6ff;
    padding: 0 0.5rem 2rem 1.5rem;
    border-radius: 25px;
}


.product-overview {
    margin-top: 1.25rem;
    display: flex;
    /* width: 20rem; */
    flex-direction: column;
}

.product-overview img,
.product-image {
    border-radius: 25px;
}

.product-image {
    width: 100%;
    max-width: 300px;
}

.product-price {
    font-weight: 500;
    margin-right: 1rem;
}

.so-hover {
    opacity: 0;
}

.so-hover:hover {
    opacity: 1;
}

/*
[id^="page"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
*/

[id^="page"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.show-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#substitute-entry {
    display: none;
}

.right {
    align-self: flex-end;
    text-align: right;
    float: right;
}

.center {
    text-align: center;
}

.pad-r32 {
    padding-right: 1.6rem;
    text-align: right;
}

.select {
    border-radius: 0.5rem;
    background-color: blue;
    color: white;
    text-align: center;
    font-size: 1rem;
}

.sold-out {
    border-radius: 0.5rem;
    background-color: red;
    color: white;
    text-align: center;
    font-size: 1rem;
}

a.cancel,
.cancel {
    border-radius: 0.5rem;
    background-color: red;
    color: white;
    text-align: center;
    font-size: 0.75rem;
    white-space: pre;
    border-width: 2px;
    border-style: outset;
    border-color: buttonborder;
    text-decoration: none;
}

.update-select {
    border-radius: 0.5rem;
    background-color: green;
    color: white;
    text-align: center;
}

.remove-select {
    border-radius: 0.5rem;
    background-color: red;
    color: white;
    text-align: center;
}

.select:hover {
    background-color: #000099;
}

.sold-out:hover {
    background-color: #990000;
}
.update-select:hover {
    background-color: darkgreen;
}

.remove-select:hover {
    background-color: maroon;
}

.select a {
    text-decoration: none;
    color: white;
}

.sold-out a {
    text-decoration: none;
    color: white;
}

.button,
.update-button {
    padding: 0.5rem 1rem;
}

.subtotal {
    float: right;
}

.check-out {
    float: right;
    padding-right: 20%;
}

.check-out form input {
    font-size: 1rem;
}

.cart-listing {
    margin-top: 1.5rem;
    margin-left: 5rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.form {
    padding: 1.5rem;
    width: 85%;
    background-color: #e5e4e2;
    border: 2px solid darkgray;
    margin: 1.5rem auto;
}

.details {
    padding: 1.5rem;
    width: 100%;
    background-color: lightgray;
    border: 2px solid darkgray;
    margin: 1.5rem auto;
}

.new-customer-heading {
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 900;
    width: 50%;
    float: left;
}

.msg {
    border: 2px solid gray;
    width: 100%;
    background-color: lightgray;
}

.emsg {
    border: 2px solid gray;
    width: 100%;
    background-color: #f28c8c;
    padding: 0 0.5rem;
}

.gmsg {
    border: 2px solid gray;
    width: 100%;
    background-color: #71d895;
    padding: 0 0.5rem;
}

p.errmsg {
    background-color: red;
    color: white;
}

p.infomsg {
    background-color: green;
    color: white;
}

.margin-style {
    width: 60%;
    margin: 0 auto;
}

.check-out-container {
    line-height: 1.5;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    width: 60%;
    margin: 0 auto;
    margin-top: 0.75rem;
}

.cart-widget {
    border: 0;
    width: 100%;
    padding: 2px 5px;
    margin-left: 1.25rem;
}

.footer-container {
    position: relative;
    margin-top: 4rem;
}

.footer-container img {
    width: 100%;
}

.footer-contact-info {
    position: absolute;
    font-size: 1rem;
    font-weight: 900;
    top: 47%;
    left: 42%;
    width: 25em;
}

.footer-copyright {
    position: absolute;
    font-size: 0.75rem;
    font-weight: 600;
    bottom: 10%;
    right: 1%;
    width: 30em;
}

.why-buy-container {
    position: relative;
    margin: 2.5rem 0;
}

.image-area {
    width: 100%;
    display: flex;
}

.section-container {
    position: absolute;
    top: 1rem;
    left: 40%;
    width: 52%;
    height: auto;
}
.section-heading {
    width: 100%;
    margin-bottom: 1rem;
}

.section-heading p {
    font-size: 2rem;
    color: #007032;
    font-weight: 500;
}

.section-text {
    width: 100%;
    height: auto;
}

.section-text p {
    font-size: 1.5rem;
    color: white;
    font-weight: 400;
}

.catalog-container {
    background-color: #6da54a;
    width: 100%;
    margin: 2.5rem 0 0 0;
    padding: 3.75rem;
    display: flex;
}

.catalog-section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 65%;
}

.catalog-section-title {
    margin: 1rem 0;
}

.catalog-section-title p {
    font-size: 4rem;
    color: #007032;
    font-family: "Times New Roman", Times, serif;
}

.catalog-section-subtitle {
    margin: 1rem 0;
}

.catalog-section-subtitle p {
    font-size: 2.5rem;
    color: #007032;
    font-family: "Times New Roman", Times, serif;
}

.catalog-section-text {
    margin: 1rem 0;
}

.catalog-section-text p {
    font-size: 2rem;
    color: #fff;
}

.catalog-section-button {
    text-align: center;
    width: 25rem;
}

.catalog-section-button a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: #fff;
}

.catalog-button-style {
    font-size: 2rem;
    border: 3px solid white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    color: #fff;
    font-weight: 900;
}

.catalog-button {
}

.catalog-menu-container {
    padding: 0 3.75rem;
}

.catalog-menu-item {
    margin: 3.25rem 0 0 0;
}

.catalog-menu-item a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: #007032;
}

.catalog-menu-item p {
    font-size: 2rem;
    color: #007032;
    font-family: "Times New Roman", Times, serif;
}

.MarkupPagerNav {
    clear: both;
    margin: 1em 0;
    font-family: Arial, sans-serif;
}
.MarkupPagerNav li {
    display: inline;
    list-style: none;
    margin: 0;
}

.MarkupPagerNav li a,
.MarkupPagerNav li.MarkupPagerNavSeparator {
    display: block;
    float: left;
    padding: 2px 9px;
    color: #fff;
    background: #2f4248;
    margin-right: 3px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.MarkupPagerNav li.MarkupPagerNavOn a,
.MarkupPagerNav li a:hover {
    color: #fff;
    background: #db1174;
    text-decoration: none;
}

.MarkupPagerNav li.MarkupPagerNavSeparator {
    display: inline;
    color: #777;
    background: #d2e4ea;
    padding-left: 3px;
    padding-right: 3px;
}
/*  css to change a checkbox to a switch */
/* The switch container - the label */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 20px;
    cursor: pointer; /* Indicates it's clickable */
}

/* Hide the default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider track (span) */
.slider {
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    bottom: -2px;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 34px; /* Rounded corners for the pill shape */
}

/* The slider handle (the dot) - using a pseudo-element */
.slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    border-radius: 50%; /* Circular handle */
}

/* Change background color when the checkbox is checked */
input:checked + .slider {
    background-color: #2196f3; /* Blue when "on" */
}

/* Move the handle to the right when checked */
input:checked + .slider::before {
    -webkit-transform: translateX(26px); /* Moves it the width of the handle plus padding */
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Medium screens (e.g., tablets and small laptops) */
@media screen and (min-width: 768px) {
    html {
        font-size: 20px; /* New base font size for medium screens */
    }
    /* h1 will now be 2 * 18px = 36px without needing a separate rule */
}

/* Large screens (e.g., desktops) */
@media screen and (min-width: 1024px) {
    html {
        font-size: 20px; /* New base font size for large screens */
    }
    .section-container {
        position: absolute;
        top: 4rem;
        left: 40%;
        width: 52%;
        height: auto;
    }

    .desktop-only {
        display: block;
    }

    .mobile-only {
        display: none;
    }

    .hamburger {
        display: none;
    }

    nav.main-nav,
    nav.top-nav {
        height: 3.4rem;
        margin: 0 auto;
        /* text-align: center; */
        display: flex;
        justify-content: space-around;
    }

    .menu-items {
        display: flex;
        justify-content: center;
        flex-direction: column;
        background: #6a35ce;
        width: 100%;
        /* display: none; */
    }

    .top-menu-item {
        align-self: center;
        width: 250px;
        font-weight: 500;
        font-size: 1rem;
    }

    .main-nav ul li a:not(:last-child)::after,
    .top-nav ul li a:not(:last-child)::after {
        content: " | ";
        margin: 0 2rem;
    }

    .product-overview {
        margin-top: 1.25rem;
        display: flex;
        width: 20rem;
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        max-width: 380px;
        margin-top: 1rem;
    }

    .show-products,
    .show-headings {
        padding: 0.5rem 1.5rem;
        margin: 0 2.5rem;
    }

    .show-headings {
        width: 80%;
    }
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
    .modal-content {
        width: 100%;
    }
}
