#menu-button {
  display: none;
}

.nav-logo {
  margin: 4px 0 0 4px;
  height: 100px;
  width: auto;
  border-radius: 20px;
}

.main-layout {
  display: grid;
  grid-template-rows: 7.7em 1fr;
  grid-template-columns: 14em 1fr;
  grid-template-areas:
    "header header"
    "sidebar content";
  height: 100%;
}

.header {
  margin: 0.5em 0.5em 0 0.5em;
  grid-area: header;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5em;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 90;
}

.sidebar {
  margin: 0.5em 0 0.5em 0.5em;
  grid-area: sidebar;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: max-width 0.5s ease;
  overflow: hidden;
}

.content {
  height: 100%;
  grid-area: content;
  overflow-y: scroll;
  overflow-x: hidden;
}

.content-panel {
  width: 90%;
  margin: auto;
}

.sidebar-container {
  width: 100%;
  margin: auto;
}

.sidebar-close-button {
  display: none;
  position: absolute;
  top: 0.2em;
  right: 0.5em;
  background: none;
  border: none;
  color: #f47c57;
  font-size: 1.3em;
  font-weight: bold;
  cursor: pointer;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 99;
}

.sidebar-container .is-button.active {
  background-color: #f24e1e;
}

@media screen and (max-width: 700px) {
  .main-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"
      "content";
    position: relative;
  }

  .sidebar {
    margin: 0;
    position: fixed;
    height: 100%;
    width: 100%;
    max-width: 0;
    background-color: #ffffff;
    z-index: 100;
    border-radius: 0 20px 20px 0;
  }

  .sidebar.visible {
    max-width: 70%;
  }

  .sidebar-close-button {
    display: block;
  }

  .sidebar-container {
    width: 85%;
  }

  .sidebar-backdrop.visible {
    display: block;
  }

  .sidebar-scrollable {
    padding-top: 0.5em;
  }

  .sidebar-bottom {
    position: absolute;
    bottom: 0;
    width: 100%;
  }

  #menu-button {
    display: block;
  }
}

@media screen and (max-width: 362px) {
  .nav-logo {
    display: none;
  }
}
