:root {
  --sidebarWidth: 150px;
  --mainContentMargin: calc(var(--sidebarWidth) + 10px);
}

* {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background-color: grey;
  color: white;
}

.sidebar {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: var(--sidebarWidth);
  z-index: 999;
  background-color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.sidebar li {
  width: 100%;
  height: 50px;
}

.sidebar a {
  width: 100%;
  height: 100%;
  color: black;
  text-decoration: none;
  display: flex;
  align-items: center;
  box-sizing: border-box; /* Add this line to ensure consistency */
  padding-left: 15px; /* Add this line */
}

.sidebar a:hover {
  background-color: #f0f0f0;
}

.topmenu {
  background-color: white;
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  display: flex;
}

.topmenu a {
  justify-content: center; /* Add this line to center the content horizontally */
  height: 100%;
  padding: 0 15px;
  text-decoration: none;
  color: black;
  display: flex;
  align-items: center;
}

.topmenu li {
  height: 50px;
  display: flex; /* Add this line */
  align-items: center; /* Add this line */
}

.topmenu li:first-child {
  margin-right: auto;
}

.topmenu a:hover {
  background-color: #f0f0f0;
}

.mobileMenu {
  display: none;
  position: fixed;
  height: 100vh;
  z-index: 999;
  background-color: rgba(0, 0, 0, 0.264);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); /* Add this line for Safari */
  box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  list-style: none;
}

.mobileMenu li {
  width: 100%;
  height: 50px;
  font-size: large;
}

.mobileMenu a {
  width: 100%;
  color: white;
  text-decoration: none;
  padding: 0 15px;
  height: 100%; /* Ensure the anchor takes the full height of the li */
  display: flex; /* Use flexbox to center content */
  justify-content: center; /* Center text horizontally */
  align-items: center; /* Center text vertically */
  box-sizing: border-box; /* Ensure consistent box sizing */
}

.mobileMenu a:hover {
  color: black;
  background-color: white;
}

.main {
  margin-right: 10px;
  margin-left: 10px;
  margin-top: 10px;
}

@media (max-width: 500px) {
  .hideOnMobile {
    display: none;
  }
}

@media (min-width: 500px) {
  .hideOnLaptop {
    display: none;
  }
  .marginOnLaptop {
    margin-left: var(--mainContentMargin);
  }
}
