body {
    margin: 0;
    background-color: #15110d;
    color: #ece3d0;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: bold;
    line-height: 1.2;
}

a {
    color: #ff7a6b;
}

a:hover {
    color: #e6c36a;
}

header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    background-color: #a9252b;
    border-bottom: 6px solid #6f1519;
    color: #ece3d0;
}

header img {
    border: 4px solid #e6c36a;
    border-radius: 50%;
}

header div {
    padding: 12px;
    text-align: center;
    background-color: #15110d;
}

header h1 {
    margin: 0;
    font-size: 40px;
    font-style: italic;
}

header p {
    margin: 0;
    font-size: 12px;
    font-variant: small-caps;
    letter-spacing: 2px;
    color: #e6c36a;
}

nav {
    background-color: #0e1a33;
    border-bottom: 3px solid #5a4a30;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav li {
    border-left: 1px solid rgba(236, 227, 208, 0.2);
}

nav li:last-child {
    border-right: 1px solid rgba(236, 227, 208, 0.2);
}

nav a {
    display: block;
    padding: 9px 18px;
    color: #ece3d0;
    font-variant: small-caps;
    font-size: 17px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

nav a:hover {
    background-color: #e6c36a;
    color: #15110d;
}

nav a:focus {
    background-color: #e6c36a;
    color: #15110d;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 8px;
}

main > section, main > .cards {
    margin-bottom: 16px;
}

.headerImg {
    padding: 100px 8px;
    text-align: center;
    background-image: url(FinalProjectResources/lithocraftpic003.jpg);
    background-size: cover;
    background-position: center;
    border: 8px solid #221b15;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
}

.headerImg h2 {
    margin: 0 0 0.5rem;
    font-size: 36px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9);
}

.headerImg p {
    margin: 0;
    font-size: 18px;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.button {
    display: inline-block;
    margin-top: 24px;
    padding: 9px 32px;
    background-color: #a9252b;
    font-variant: small-caps;
    font-size: 18px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.button:hover {
    background-color: #6f1519;
    transform: translate(1px, 2px);
}

.intro h2, .visit h2 {
    margin-top: 0;
    font-size: 32px;
    font-variant: small-caps;
    letter-spacing: 2px;
    color: #e6c36a;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card {
    flex: 1 1 8px;
    min-width: 240px;
    padding: 9px 9px 16px;
    text-align: center;
    background-color: #221b15;
    border: #5a4a30;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: scale(1.03);
}

.card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card h3 {
    margin: 16px 0 3px;
    font-size: 18px;
    color: #e6c36a;
}

.card p {
    color: #b8ab92;
}

.visit img {
    width: 30%;
    padding: 6px;
    background-color: #e9e0cc;
    border: 1px solid #b8ab92;
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.8);
    transform: rotate(3deg);
}

footer {
    padding: 24px 8px;
    text-align: center;
    background-color: #221b15;

}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #221b15;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.7);
}
 
caption {
    padding: 0.6rem;
    font-style: italic;
    color: #b8ab92;
    caption-side: bottom;
}
 
th, td {
    padding: 0.7rem 1rem;
    text-align: left;
    border: 1px solid #5a4a30;
}
 
thead th {
    background-color: #a9252b;
    color: #fff;
    font-variant: small-caps;
    letter-spacing: 1px;
}
 
tbody th {
    color: #e6c36a;
}
 
tbody tr:nth-child(even) {
    background-color: rgba(230, 195, 106, 0.06);
}
 
tbody tr {
    transition: background-color 0.3s;
}
 
tbody tr:hover {
    background-color: rgba(255, 122, 107, 0.15);
}

.panel {
    padding: 8px;
    background-color: #221b15;
    border: 4px solid #e6c36a;
    box-shadow: 3px 5px 10px rgba(0, 0, 0, 0.7);
}
 
.panel h2 {
    margin-top: 0;
}

ul {
    color: #ff7a6b;
}

fieldset {
    margin: 0 0 8px;
    padding: 16px 18px;
    background-color: #221b15;
    border: 3px solid #e6c36a;
}
 
legend {
    padding: 0 6px;
    font-variant: small-caps;
    letter-spacing: 2px;
    font-weight: bold;
    color: #e6c36a;
}
 
label {
    display: block;
    margin-bottom: 2px;
}
 
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    width: 100%;
    padding: 6px;
    background-color: #15110d;
    color: #ece3d0;
    border: 1px solid #5a4a30;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
 
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #e6c36a;
    box-shadow: 0 0 6px rgba(230, 195, 106, 0.6);
}
 
.groupLabel {
    margin-bottom: 2px;
    font-weight: bold;
}
 
.choices label {
    display: inline;
    margin-right: 8px;
}
 
.formButtons input {
    padding: 9px 24px;
    margin-right: 9px;
    background-color: #a9252b;
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 12px;
    letter-spacing: 1px;
    border: 3px solid #cf5a5f;
    box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.7);
    transition: background-color 0.3s;
    color: white;
}
 
.formButtons input:hover, .formButtons input:focus {
    background-color: #6f1519;
}
 
.formButtons input[type="reset"] {
    background-color: #1f365f;
    border-color: #4d6aa0;
}

@media (max-width: 480px) {

  header {
    flex-direction: column;
    padding: 16px;
  }

  header h1 {
    font-size: 32px;
  }

  nav ul {
    flex-direction: column;
  }

  nav li, nav li:last-child {
    border: 0;
    border-top: 1px solid rgba(236, 227, 208, 0.2);
  }

  nav a {
    padding: 16px;
    text-align: center;
  }

  .headerImg {
    padding: 48px 16px;
    background-attachment: scroll;
  }

  .headerImg h2 {
    font-size: 28px;
  }

  .card {
    flex-basis: 100%;
  }

  table {
    font-size: 0.9rem;
  }

  th, td {
    padding: 0.5rem;
  }

  .formButtons input {
    width: 100%;
    margin: 0 0 0.6rem;
  }
}