:root {
  --main-bg-color: #282828;
  --light-bg-color: #fff;
  --light-text-color: #fff;
  --middle-bg-color: hsl(0, 7%, 84%);
  --middle-text-color: #969696;
  --dark-text-color: #4d4d4d;
  --accent-color: #c99a22;
  --about-color: #e6e6e6;
  --second-accent-color: #990000;

  --body-font: 'Onest', sans-serif;
  --heading-font: 'Cinzel', 'Georgia', serif;

  --extra-small-txt: 0.7em;
  --small-txt: 0.8em;
  --middle-txt: 1em;
  --large-txt: 1.2em;
  --extra-large-txt: 1.5em;

  --extra-small-heading: 1.2em;
  --small-heading: 2em;
  --middle-heading: 3em;
  --large-heading: 4em;
  --extra-large-heading: 5em;
}

* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

li {
  list-style: none;
}

body {
  font-family: var(--body-font);
}

h1,
h2,
h3 {
  font-family: var(--heading-font);
}

.button {
  color: var(--light-text-color);
  background-color: var(--accent-color);
  padding: 10px;
  text-align: center;
  font-family: var(--body-font);
  font-size: var(--small-txt);
  font-weight: bold;
  border-radius: 20px;
}

/* Division between sections */
.title-container {
  min-width: 320px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.title {
  color: var(--dark-text-color);
  text-align: center;
  font-size: var(--middle-heading);
  font-family: var(--body-font);
  border-bottom: 5px solid var(--second-accent-color);
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px var(--main-bg-color),
  2px 2px 4px var(--main-bg-color),
  3px 3px 6px var(--main-bg-color);
}

/* NAVIGATION */
nav {
  position: static;
  width: 100%;
  min-width: 320px;
  min-height: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 10px;
  background-color: var(--main-bg-color);
  border-bottom: 5px solid var(--second-accent-color);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
}

#logo-container {
  flex: 1;
  text-align: left;
}

#logo-container img {
  width: 150px;
  height: auto;
}

#links-container {
  flex: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

#links-container a.active {
  border-bottom: 2px solid var(--accent-color);
}

/* Hide the submenu by default */
#submenu {
  display: none;
  position: absolute;
  background-color: var(--main-bg-color);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  z-index: 1;
}
#submenu li {
  margin: 10px 0;
}

nav a {
  color: var(--light-text-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: var(--large-txt);
  margin-right: 15px;
  position: relative;
}

nav li:hover #submenu {
  display: block;
}

nav a:hover {
  color: var(--middle-text-color);
}

#mobile-menu-icon {
  display: none; /* Hide by default on larger screens */
  cursor: pointer;
  position: relative;
  top: 30px;
  z-index: 2;
  margin-right: 10px;
}

.bar {
  width: 30px;
  height: 3px;
  background-color: var(--light-text-color);
  margin: 7px auto;
  transition: 0.4s;
}

#links-container.show-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 100px; /* Adjust the position as needed */
  left: 0;
  width: 100%;
  background-color: var(--main-bg-color);
  z-index: 1;
}

#mobile-menu-links {
  display: none;
}

/* FOOTER */
footer {
  background-color: var(--main-bg-color);
}
#footer-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  color: var(--middle-text-color);
  flex-wrap: wrap;
  padding: 10px 0;
}
#business {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  text-align: left;
}
#business img {
  width: 150px;
  height: auto;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--light-text-color);
}
#business p {
  margin-left: 5px;
}
#social-media {
  margin-right: 5px;
  border: 1px solid var(--accent-color);
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--accent-color);
}
#social-media p {
  font-size: var(--middle-txt);
  font-weight: bold;
}
.contact a {
  color: var(--light-text-color);
}

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.social-icon {
  font-size: var(--middle-txt);
  margin-right: 20px;
}
#left {
  font-size: var(--middle-txt);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}
#left a,
#right a {
  margin-right: 10px;
  margin-left: 10px;
}
#right {
  margin-top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
}

#copyright {
  text-align: center;
  font-size: 10px;
  color: var(--light-text-color);
  margin-top: 20px;
  font-style: italic;
}

#scroll-to-top {
  display: none;
  position: fixed;
  bottom: 10px;
  right: 20px;
  background-color: var(--accent-color);
  color: var(--light-text-color);
  padding: 10px 15px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

#scroll-to-top i {
  font-size: var(--extra-small-heading);
}

@media (max-width: 480px) {
  nav a,
  #left a {
    font-size: var(--small-txt);
  }
  .title {
    font-size: var(--extra-small-heading);
    text-shadow: 0px 1px 2px var(--main-bg-color);
  }
  .title-container {
    height: 100px;
  }
  #business img {
    border-right: none;
  }
}

@media (max-width: 768px) {
  #links-container {
    display: none; /* Hide the regular menu */
  }

  #mobile-menu-icon {
    display: block; /* Show the hamburger icon */
  }
  /* Mobile menu links container */
  #mobile-menu-links {
    display: none;
    flex-direction: column;
    background-color: var(--main-bg-color);
    padding: 20px;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    z-index: 1;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
  }

  /* Mobile menu link items */
  #mobile-menu-links a {
    color: var(--light-text-color);
    font-family: var(--body-font);
    font-size: var(--middle-txt);
    margin: 10px 0;
    padding: 10px;
    text-align: center;
    transition: color 0.3s;
    display: flex;
    align-items: center;
  }

  /* Icon styles for mobile menu links */
  #mobile-menu-links a i {
    margin-right: 10px; /* Adjust the spacing between icon and text */
  }

  /* Hover styles for mobile menu links */
  #mobile-menu-links a:hover {
    color: var(--accent-color);
  }
}
