@media screen and (max-width: 767px) {
  .flex-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    margin: 0;
  }
}

/* --------------------------------------------------
   Global CSS Variables
-------------------------------------------------- */
:root {
  --bg-color: #5d4243;
  --darker-color: #5d4243;
  --lighter-color: #fff9f4;
  --accent-color: #5d4243;
  --text-color: #806e74;
}

/* --------------------------------------------------
   Base Styles
-------------------------------------------------- */
html,
body {
  background-color: var(--bg-color);
  width: 100dvw;
  min-height: 100%;
  margin: 0;
  padding: 0;
  text-align: center;
  color: var(--text-color);
  font-family: sans-serif;
}

/* --------------------------------------------------
   Links
-------------------------------------------------- */
a:link,
a:visited {
  color: var(--darker-color);
  text-decoration: none;
}

a:hover:not(:has(> img:only-child)) {
  background-color: #AE9095;
  border-radius: 5dvw;
  color: var(--lighter-color);
}

a.active {
    background-color: #C6ADAD;
    color: var(--darker-color);
    border-radius: 5dvw;
}

/* --------------------------------------------------
   Horizontal Rule (the colored line break <hr>)
-------------------------------------------------- */
hr {
  border: none;
  background-color: var(--darker-color);
  height: 0.6dvh;
  border-radius: 5dvh;
  margin: 1.5rem 0;
}

/* --------------------------------------------------
   Header/Banner Image
-------------------------------------------------- */
header {
  border-top: 1px solid transparent;
  margin: 0.5dvh 0 1dvh;
}

header img {
  display: block;
  width: 100dvw;
  max-width: 97dvw;
  min-height: 100px;
  height: 20dvh;
  max-height: 300px;
  border-radius: 0.5dvh;
  margin: 0 auto;
}

/* --------------------------------------------------
   Layout/Spacing
-------------------------------------------------- */
.flex-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100dvw;
  height: 70%;
}

.containers {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  gap: 1dvh;
}

/* --------------------------------------------------
   Navigation
-------------------------------------------------- */
nav {
  background-color: var(--lighter-color);
  flex: 0 0 10dvw;
  border-radius: 0.5dvh;
  width: 50dvw;
  height: 30dvh;
  margin-left: 22.8dvw;
  padding: 2dvw;
}

#homebutton {
  width: 75%;
  height: 75%;
}

.nav-links a {
  display: block;
  margin: 0.5rem 0;
}

.webbadge {
  width: 88px;
  height: 31px;
}

/* --------------------------------------------------
   Main Content
-------------------------------------------------- */
main {
  background-color: var(--lighter-color);
  padding: 2dvw;
  border-radius: 0.5dvh;
  font-size: 16px;
  width: 90dvw;
  height: auto;
  max-height: none;
  overflow-y: visible;
  margin-left: 3dvw;
  margin-bottom: 3dvh;
}

.box {
  border: 0.25dvh solid var(--darker-color);
  border-radius: 1dvh;
  padding: 2dvw;
  font-size: 1rem;
  box-sizing: border-box;
  width: 90dvw;
  height: auto;
  max-height: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------
   Age Verification Modal
-------------------------------------------------- */
#verifyage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100dvw;
  height: 100dvh;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: var(--lighter-color);
}

.ageverificationcontent {
  background-color: var(--lighter-color);
  color: var(--darker-color);
  padding: 5%;
  border-radius: 8%;
  text-align: center;
}

/* --------------------------------------------------
   Buttons
-------------------------------------------------- */
button {
  background-color: var(--darker-color);
  color: var(--lighter-color);
  padding: 5% 10%;
  margin: 5%;
  border: none;
  border-radius: 8%;
  font-size: 2.3dvh;
  cursor: pointer;
}