body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* make body full viewport height */
}

#wrapper { 
    margin-left: auto;
    margin-right: auto;
    width: 80%;
} 

header { 
    margin-left: auto;
    margin-right: auto;
    width: 1400px;
}

h1 { 
    color: #003366; 
    font-size: 100px;
    padding-left: 275px; 
    padding-top: 50px;
}

#container { 
    background-image: url(../image/studious.jpg);
    background-repeat: no-repeat;
    background-size: 125px;
    background-color: #FFE4C4;
    background-position: 75px;
    height: 200px;
    width: 1200px;
    margin-right: auto;
    margin-left: auto;
    border-radius: 12px;
}

main { 
    background-color: #FFE4C4;
    align-items: center;
    color: #003366;
    height: auto;
    width: 1200;
    padding-top: 10px;
}

h2 { 
    color: #003366; 
}

h3 { 
    color: #003366;
    font-weight: bold;
    font-size: 50px;
    text-align: center;
    line-height: 1.5px;
    
}

span {
    color: red;
}

p {
    
    font-size: 25px;
    padding : 20px;
    text-align: center;
}

.desc {
    font-weight: bold;
    font-size: 30px;
	text-align: left;
}

.column {
    padding: 5px;
}

.row {
    margin-bottom: 100px;
}

/* Each slideshow box */
.lightbox {
    width: 1100px;
   background: #FFE4C4;
   padding: 8px;
   border-radius: 10px;
   box-shadow: 0 4px 12px rgba(208, 106, 106, 0.1);
   margin: 50px;
   padding-bottom: 50px;
}

/* Images inside slideshow */
#lbImages {
   display: flex;
   flex-direction: row;
   gap: 20px;
   overflow-x: auto;   /* allows scrolling if too many images */
   width: 100%;
   padding: 10px 0;
   scroll-behavior: smooth;
   object-fit: cover;
}

/* Each image becomes a “slide” in the row */
#lbImages img {
   width: 200px;       /* adjust size as needed */
   height: auto;
   border-radius: 6px;
   cursor: pointer;
   flex-shrink: 0;     /* prevents images from shrinking */
   transition: transform 0.2s ease;
   object-fit: cover;
}

#lbImages img:hover {
   transform: scale(1.05);
}

/* Title */
#lbTitle {
   font-size: 50px;
   margin-bottom: 5px;
   text-align: center;
   padding-right: 270px;
}

/* Counter */
#lbCounter {
    text-align: right;
   font-size: 18px;
   margin-bottom: 10px;
   opacity: 0.7;
}

/* Overlay */
.lbOverlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.85);
   display: flex;
   justify-content: center;
   align-items: center;
}

.lbOverlay img {
   max-width: 600px;
   max-height: 60%;
   border-radius: 10px;
}

.lbOverlay figure {
   text-align: center;
   color: white;
}

.lbOverlayClose {
   position: absolute;
   top: 20px;
   right: 30px;
   font-size: 40px;
   color: white;
   cursor: pointer;
}

/* Image styles */
#bust {
    display: block;
    margin: 0 auto 5px;
    padding: 40px;
    float: none;
}

.column img {
    display: block;
    object-fit: cover;
    width: 200px;
    max-height: 200px;
    border-radius: 10px;
    margin-left: 18px;
}


/* estimator content */
.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: auto;
    border-radius: 10px;
    width: 1100px;
}

.art-card {
    display: block;
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background: white;
    cursor: pointer;
    transition: 0.2s;
    height: auto;
}

.art-card:hover {
    transform: scale(1.03);
}

.art-card img {
    display: block;
    object-fit: cover;
    width: 200px;
    max-height: 200px;
    border-radius: 10px;
}

/* Keep checkbox in layout so JS can detect it */
.art-card input {
    opacity: 0;
    position: absolute;
}

.art-card input:checked + img {
    outline: 4px solid #E9967A;
}

.art-card p {
    margin-top: 8px;
    font-weight: bold;
}

.total {
    margin-top: 20px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
}
/* contact page content */
.container {
            max-width: 800px;
            margin: 10px auto;
            background: #FFE4C4;
            padding: 50px;
            border-radius: 1px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }

        h2 {
            text-align: center;
        }

        label {
            display: block;
            margin-top: 10px;
            font-weight: bold;
        }

        input, textarea {
            width: 100%;
            padding: 10px;
            margin-top: 15px;
            border: 1px solid #ccc;
            border-radius: 2px;
        }

        textarea {
            resize: vertical;
            height: 120px;
        }

        button {
            margin-top: 10px;
            width: 50%;
            padding: 5px;
            background-color: #28a745;
            border: none;
            color: white;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
        }

        button:hover {
            background-color: #218838;
        }

    #successMessage {
        display: none;
        margin-top: 20px;
        padding: 15px;
        background: #d4edda;
        color: #155724;
        border-radius: 8px;
        text-align: center;
        font-weight: bold;
    }
    
/* Advice page content */

* {
   -moz-box-sizing: border-box;
   -webkit-box-sizing: border-box;
   box-sizing: border-box;
}


    form {
      background: #E9967A;
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    input, textarea {
      width: 100%;
      margin: 8px 0;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 6px;
      font-size: 14px;
    }

    button {
      background: #003366;
      color: white;
      padding: 10px 15px;
      border-radius: 6px;
      cursor: pointer;
    }

    .primary {
      margin-left: 300px;
    }

    .secondary {
        margin-left: 80px;
        margin-bottom: 30px;
    }

    button:hover {
      background: #0a5db1;
    }

    .entry {
      background: white;
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .meta {
      font-size: 12px;
      color: gray;
      margin-bottom: 5px;
    }

/* main content */
article {
   width: 1200px;
   text-align: center;
   background: #FFE4C4;
   padding-bottom: 20px;

   color: #003366
}

article h2 {
   font-weight: bold;
   font-size: 2em;
   padding: 10px;
}

/* review styles */

table {
   width: 800px;
   border-collapse: collapse;
   margin: 50px auto;
   background-color: #FFFFFF;
   border-radius: 20px;
   box-shadow: 3px 3px 20px #E9967A;
}

table caption {
   font-size: 1.2em;
   margin: 0 0 10px 0;
}

table tr th {
   font-weight: bold;
   text-align: left;
   padding: 10px 0 0 15px;
   width: 120px;
}

table tr td {
   text-align: left;
   padding: 5px 0 0 12px;
}

table tr:last-of-type td {
   padding: 20px;
   text-align: justify;
}

/* order submit content */

section#summary {
   -webkit-flex: 1 1 50px;
   flex: 1 1 50px;
   padding: 20px 0px 10px 20px;
}

section#summary h1 {
   font-size: 1.8em;
   letter-spacing: 0.1em;
   line-height: 1.2em;
   font-weight: normal;
   margin-bottom: 10px;
}

section#summary h2 {
   font-size: 1.25em;
   font-weight: normal;
}

section#summary h3 {
   font-size: 1em;
   font-weight: normal; 
   margin-bottom: 20px;  
}

section#summary > img {
   display: block;
   width: 50%;
   margin: 0px auto;
}

section#summary p {
   font-size: 1.2em;
   text-align: justify;
}

section#orderSection {
   -webkit-flex: 1 1 200px;
   flex: 1 1 200px;
   margin: 20px;
}
   
/* Order Table Styles */

table#orderTable {
   margin: 15px;
   width: 95%;
   border-collapse: collapse;
   font-size: 1.3em;
}

form#orderForm fieldset {
   border: none;
   margin-left: -10px;
}

form#orderForm input[type="text"] {
   background-color: rgba(240, 233, 222, 0.5);
}

table#orderTable caption {
   font-size: 1.6em;
   font-weight: bold;
   letter-spacing: 0.2em;
   text-align: left;
   caption-side: top;
   margin-bottom: 20px;
}


table#orderTable td {
   height: 40px;
   vertical-align: top;
}


form#orderForm input[type="text"] {
   color: rgb(101, 101, 101);
}

form#orderForm select {
   display: inline-block;
   margin-left: 10px;
   color: rgb(101, 101, 101);
}

table#orderTable tr:first-of-type {
   border-bottom: 1px solid rgb(151, 151, 151);
}



table#orderTable tr:first-of-type label {
   font-size: 1.15em;
   line-height: 2;
}

table#orderTable tr:first-of-type select {
   font-size: 1em;
}

table#orderTable tr td:last-of-type input {
   text-align: right;
   border: none;
   font-size: 1em;
}

table#orderTable tr:nth-of-type(2) td {
   vertical-align: bottom;
   padding-bottom: 20px;
}

table#orderTable tr:nth-of-type(2) {
   border-bottom: 1px solid rgb(151, 151, 151);
}

table#orderTable tr:nth-of-type(1) td, table#orderTable tr:nth-of-type(3) td {
   padding-top: 15px;
}

table#orderTable tr:nth-of-type(4) td {
   border-bottom: 6px double rgb(151, 151, 151);
}

table#orderTable tr:last-of-type td {
   padding-top: 15px;
}

table#orderTable td.rightA {
   text-align: right;
   padding-right: 10px;
}

table#orderTable legend {
   font-size: 1.2em;
   line-height: 2;
}
form#orderForm fieldset label {
   line-height: 2;
   display: inline-block;
}

form#orderForm input#buttonAdd {
   display: block;
   width: 120px;
   height: 35px;
   margin: 15px auto;
   background-color: rgba(232, 218, 201, 0.8);
   font-size: 1.3em;
   border-radius: 20px;
}

/* store content */

.container1 {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.primary-button {
    background-color: #003366;
    color: white;
}

.secondary-button {
    background-color: #457b9d;
    color: white;
}

.remove-button {
    background-color: #c44536;
    color: white;
}

.intro-card,
.shipping-card,
.summary-card,
.cart-card,
.empty-cart,
.total-box {
    background-color: #FFE4C4;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.product-card {
    background-color: #FFE4C4;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.product-card img {
    object-fit: cover;
    width: 300px;
    max-height: 300px;
    border-radius: 8px;
    margin-left: 18px;
}

.product-card p {
    text-align: center;
    font-size: 30px;
}

label {
    display: block;
    margin-top: 12px;
    margin-bottom: 5px;
    font-weight: bold;
}

select {
    width: 100px;
    border: 1px solid #bfd0db;
    border-radius: 8px;
    padding: 3px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bfd0db;
    border-radius: 8px;
    font-size: 15px;
}

.cart-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    border-bottom: 1px solid #e4ebf0;
    padding: 15px 0;
}

.cart-row:last-child {
    border-bottom: none;
}

.cart-item-title {
    font-weight: bold;
    font-size: 17px;
}

.cart-price {
    font-weight: bold;
    color: #264653;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

article {
   padding: 20px 50px 60px;
}
article h1 {
   font-size: 1.7em;
   margin-bottom: 20px;
}


form#billShip {
   display: flex;
   flex-flow: row wrap;
}

form#billShip section {
   flex: 1;
   margin: 10px;
}

input#useShip {
   position: absolute;
   top: 10px;
   left: 10px;
}

label#cbLabel {
   position: absolute;
   top: 10px;
   left: 35px;
   width: 250px;
   float: none;
   clear: none;
   display: block;
   text-align: left;
}

fieldset {
   border: 2px ridge rgb(128, 128, 128);
   padding: 50px 5px 0px;
   position: relative;
   margin-top: 5px;
}

fieldset span {
   color: red;
   font-weight: bold;
}

fieldset label {
   display: block;
   float: left;
   clear: left;
   width: 200px;
   text-align: right;
   margin: 0 15px 25px 0;
}

fieldset p {
   position: absolute;
   top: 10px;
   right: 10px;
   
}

fieldset input[type="text"] {
   float: left;
   width: 200px;
   margin: 0 0 25px 0;
}

input[type="text"]:invalid {
   background-color: rgba(223, 68, 68, 0.3);
}

input[type="submit"] {
    width: 400px;
    background: #003366;
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 350px;
}

p#errorBox {
   width: 100%;
   color: red;
   font-size: 1.1em;
   margin-left: 10px;
   margin-top: 10px;
   border: 1px solid red;
   background-color: white;
   padding: 15px;
   
   
}

section > h1 {
   font-size: 1.4em;
   margin: 20px 0 20px 30px;
   padding: 10px;
}

table td {
   padding: 5px;
}


.shipping-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 25px;
    margin-bottom: 40px;
}

.summary-line {
    background-color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #e4ebf0;
}

.summary-line:last-child {
    border-bottom: none;
}

.message-box {
    margin-top: 18px;
    padding: 14px;
    background-color: #e8f7f4;
    border: 1px solid #b9e4dc;
    border-radius: 8px;
}

/* cart content */
.container3 {
    width: 100%;
    height: 300px;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 50px;
    text-align: center;
}

/* navigation content */
nav ul { 
    list-style-type: none;
    font-size: 30px;
    text-align: center;
    margin: 35px;
    background-color: #E9967A;
    word-spacing: 30px;
    border: 2px solid #FFE4C4;
    border-radius: 12px;

}

nav li { 
    display: inline; 
}

nav a { 
    text-decoration: none; 
    padding: 5px; 	 
}

nav a:link { color: #FFFFFF; }
nav a:visited { color: #FFE4C4; }
nav a:hover { color: #003366; }	

.nav-button,
.action-button {
    display: inline-block;
    padding: 15px 40px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 20px;
}

.nav-button {
    background-color: #003366;
    color: white;
}

.nav-button:hover,
.action-button:hover {
    opacity: 0.92;
}

footer { 
    font-size: 20px;
    text-align: center;
    background-color: #E9967A;
    padding-bottom: 5px;
    width: 1200px;
    border-radius: 12px;
}

footer ul {
    list-style-type: none;
    font-size: 20px;
    text-align: center;
    margin: 25px;
    word-spacing: 30px;
    padding-top: 20px;
}

footer li { 
    display: inline; 

}

footer a { 
    text-decoration: none; 
    padding: 10px; 
    color: #FFE4C4;
    border-radius: 12px;
    
}

.layout {
  display: flex;
  flex-direction: column; /* Stacks text on top of map */
  align-items: center;    /* Centers the stack */
}
	


/* THE FRAME */
#map {
   height: 350px; 
   width: 400px;
   border: 10px solid white; 
   border-radius: 15px;
   box-shadow: 0 4px 15px rgba(0,0,0,0.2);
   outline: 1px solid #ccc;
}
footer a:hover { 
    color: #003366;
}

/* Media Queries */
@media (min-width: 600px){
}

@media (min-width: 1024px){
}