#root {
  height: 100%;
}

.site2 {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--site-header-height) 1fr;
  grid-template-areas:
    "header"
    "main";
}

.site2.hasNavbar {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: var(--site-header-height) 1fr var(--site-nav-height, 5rem);
  grid-template-areas:
    "header"
    "main"
    "nav";
}


.site2>header {
  grid-area: header;
}

.site-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: var(--site-drawer-max);
  padding-left: 1.6rem;
}

.site-logo>img {
  height: 2.4rem;
  padding-left: 1rem;
}

.site2>.drawer {
  display: none;
}

.site2>nav {
  width: 100%;
  max-width: 1284px;
  margin: 0 auto;
  grid-area: nav;
  overflow: auto;
}

.site2>main {
  grid-area: main;
  padding: var(--site-main-padding);
  overflow: hidden;
  display: flex;
}

.site2>footer {
  display: none;
}

.site>aside {
  position: absolute;
}

.site2>overlay {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.site2>overlay::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(100,100,100,.5);
  animation-name: overlayIn;
  animation-duration: .6s;
}

@keyframes overlayIn {
  0%   { opacity: 0 }
  100% { opacity: 1 }
}

dialog {
  border: 0px;
  padding: 0px;
  box-shadow: var(--shadow1);
  background-color: var(--paper-color);
  display: flex;
  flex-direction: column;
  z-index: 101;
  animation-name: dialogIn;
  animation-duration: .4s;
}

@keyframes dialogIn {
  0%   { transform: scale(.9,.9) }
  100% { transform: scale(1,1) }
}

dialog.fullscreen {
  width: 100%;
  height: 100%;
}

dialog>header {
  min-width: 32rem;
  height: 6rem;
  display: flex;
  align-items: center;
  background-color: var(--primary-color);
  color: var(--primary-color-text);
  font-size: 1.4rem;
  font-weight: 600;
  justify-content: center;
}

dialog>main {
  padding: 1rem;
  min-height: 10rem;
  min-width: 20rem;
  display: flex;
  flex-direction: column;
}

dialog.fullscreen>main {
  flex: 1;
}

dialog>footer {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.snackbar {
  position: absolute;
  z-index: 102;
  bottom: 8rem;
  left: 1rem;
  min-width: 34rem;
  min-height: 5rem;
  border-radius: .4rem;
  padding: .6rem 1.6rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow1);
}

.snackbar>label {
  flex: 1;
}

@media (max-width: 420px) {

  .site2>nav .tab {
    display: flex;
    flex-direction: column !important;
    line-height: 1rem;
    padding-bottom: 5px;
    font-size: 1rem;
    height: 5rem;
  }

  .site2>nav .tab.selected {
    border-bottom: 0;
  }

  .snackbar {
    min-width: calc(100% - 3.2rem) !important;
  }

}

@media (min-width: 1024px) {

  .site2 {
    grid-template-rows: var(--site-header-height) 1fr auto;
    grid-template-areas:
    "header"
    "main"
    "footer";
  }

  .site2.hasNavbar {
    grid-template-rows: var(--site-header-height) 5rem 1fr auto;
    grid-template-areas:
    "header"
    "nav"
    "main"
    "footer";
  }

  .site2.hasDrawer {
    grid-template-columns: auto 1fr;
    grid-template-areas:
    "header header"
    "drawer main"
    "footer footer";
  }

  .site2.hasDrawer.hasNavbar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
    "header header"
    "drawer nav"
    "drawer main"
    "footer footer";
  }

  .site2>footer {
    display: flex;
    grid-area: footer;
  }

  .snackbar {
    bottom: 1rem !important;
  }

}

@media (min-width: 1284px) {

  .site2>header {
    box-shadow: var(--shadow1-light);
  }

  .site2>.drawer {
    display: block;
    grid-area: drawer;
  }

  .site2>overlay.forDrawer {
    display: none;
  }

  dialog.fullscreen {
    max-width: 70%;
    max-height: 60%;
  }


}

expand {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
