/* Simple dashboard grid CSS */

/* Assign grid instructions to our parent grid container
.grid-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  grid-template-rows: 50px 1fr 50px;
  grid-template-areas:
    "sidenav header"
    "sidenav main"
    "sidenav footer";
  height: 100vh;
}

/* Give every child element its grid name
.header {
  grid-area: header;
  background-color: #648ca6;
}

.sidenav {
  grid-area: sidenav;
  background: linear-gradient(to bottom, #74b9f3,#084ed1);
}

.main {
  grid-area: main;
  background-color: #8fd4d9;
  overflow-y: auto;
}

.footer {
  grid-area: footer;
  background-color: #648ca6;
}

.header, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background-color: #648ca6;
}

/* Mobile-first side nav styles
.sidenav {
  grid-area: sidenav;
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 240px;
  position: fixed;
  overflow-y: auto;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  z-index: 2; /* Needs to sit above the hamburger menu icon
  background-color: #394263;
  transform: translateX(-245px);
  transition: all .6s ease-in-out;
}

The active class is toggled on hamburger and close icon clicks
.sidenav.active {
  transform: translateX(0);
}
 Only visible on mobile screens
.sidenav__close-icon {
  position: absolute;
  visibility: visible;
  top: 8px;
  right: 12px;
  cursor: pointer;
  font-size: 20px;
  color: #ddd;
}


  .sidenav__list {
    padding-top: 2rem;
    padding-left: 1rem;
    margin-top: 85px;
    list-style-type: none;
  }

  .sidenav__list-item {
    padding: 20px 20px 16px 39px;
    color: #ffffff;
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
    text-transform: uppercase;
    font-size: 14px;
  }

  .sidenav__list-item:hover {
    background-color: #0C5DF4;
    cursor: pointer;
  }
   .main-header_ {
    display: flex;
    justify-content: space-between;
    margin: 20px;
    padding: 20px;
    height: 150px; /* Force our height since we don't have actual content yet
    background-color: #e3e4e6;
    color: slategray;
  }

     .main-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr)); /* Where the magic happens
    grid-auto-rows: 94px;
    grid-gap: 20px;
    margin: 20px;
  }

  .overviewcard {
    display: flex;
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background-color: #d3d3;
  }
  .main-cards {
    column-count: 2;
    column-gap: 20px;
    margin: 20px;
  }

  .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background-color: #82bef6;
    margin-bottom: 20px;
    -webkit-column-break-inside: avoid;
    padding: 24px;
    box-sizing: border-box;
  }

  /* Force varying heights to simulate dynamic content
  .card:first-child {
    height: 485px;
  }

  .card:nth-child(2) {
    height: 200px;
  }

  .card:nth-child(3) {
    height: 265px;
  }

    .grid-container {
    display: grid;
    grid-template-columns: 1fr; /* Side nav is hidden on mobile
    grid-template-rows: 50px 1fr 50px;
    grid-template-areas:
      'header'
      'main'
      'footer';
    height: 100vh;
  }



  .main-cards {
    column-count: 1;
    column-gap: 20px;
    margin: 20px;
  }

  /* Non-mobile styles, 750px breakpoint
  @media only screen and (min-width: 46.875em) {
     Show the sidenav
    .grid-container {
      grid-template-columns: 240px 1fr; /* Show the side nav for non-mobile screens
      grid-template-areas:
        "sidenav header"
        "sidenav main"
        "sidenav footer";
    }

    .sidenav {
      display: flex;
      flex-direction: column;
    }
  }

  /* Medium-sized screen breakpoint (tablet, 1050px)
  @media only screen and (min-width: 65.625em) {
    /* Break out main cards into two columns
    .main-cards {
      column-count: 2;
    }
  }

/* Non-mobile styles for side nav responsiveness, 750px breakpoint
@media only screen and (min-width: 46.875em) {
  .sidenav {
    position: relative; /* Fixed position on mobile
    transform: translateX(0);
  }

  .sidenav__close-icon {
    visibility: hidden;
  }
}

/* Make room for the menu icon on mobile
.header__search {
  margin-left: 42px;
}

/* Hamburger menu icon, stays fixed on mobile for any possible scrolling
.menu-icon {
  position: fixed;
  display: flex;
  top: 5px;
  left: 10px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  cursor: pointer;
  padding: 12px;
  background-color: #DADAE3;
}
.logo{
    padding: 0.875rem 1.25rem;
    background: #084ed1;
    height: 82px;
}
*/