

body {
    background-color: rgb(224, 224, 224);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 10px;
    padding: 0px;
}
.sidegrid {
    display: grid;
    grid-template-columns: 1;
    gap: 10px;
    padding: 5px;
}

/* The sidebar menu */
.sidenav {
    height: 100%; /* Full-height: remove this if you want "auto" height */
    width: 20em; /* Set the width of the sidebar */
    position: fixed; /* Fixed Sidebar (stay in place on scroll) */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    left: 0;
    background-color: rgb(224, 224, 224);
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 20px;
    color: black;
  }


  .headercard {
    background-color: rgb(212, 212, 212);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 1em;
    color: darkred;
    display: block;
}
.sidecard {
    background-color: rgb(212, 212, 212);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 1em;
    color: darkred;
    display: block;
}
  /* The navigation menu links */
  .sidecard a, h2 {
    font-weight:  normal;;
    text-decoration: none;
    font-size: 1.5em;
    color: darkred;
    display: block;
  }
  .sidecard li {
    font-weight:  normal;;
    text-decoration: none;
    font-size: 1em;
    color: darkred;
    display: block;
    padding: 0.2em;
  }
  
  /* When you mouse over the navigation links, change their color */
  .sidecard a:hover {
    color: #f1f1f1;
    background-color: darkslategray;
  }
  

  /* Style page content */
  .main {
    margin-left: 20em; /* Same as the width of the sidebar */
    padding: 0px 0px;
    background-color: rgb(224, 224, 224);
    color: black;
    font-size: 1em;
  }

  .card {
    background-color: rgb(212, 212, 212);
    padding: 20px;
    margin: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: left;
    padding: 6px 8px 6px 16px;
    text-decoration: none;
    font-size: 1em;
    color: black;
    display: block;
}
.card li {
    font-weight:  none;
    text-decoration: none;
    font-size: 1em;
    display: block;
    padding: 0.2em;
  }

.important {
    font-size: 1.25em;
}

.sidenav .closebtn {
    position: absolute;
    right: 45px;
    font-size: 0em;
    text-decoration: none;
    color: darkred;
    font-weight: bold;
  }

  .topmenu {
    font-size:0em;
}

@media screen and (min-width: 64rem) {
    .sidenav {
        width: 20em;
    }    
    .main {
        margin-left: 20em; /* Same as the width of the sidebar */
        margin-top: 0em;
    }
}
@media screen and (max-width: 64rem) {
    .sidenav {
        width: 0px;
        /* visibility: hidden;
        height: 0px; */
        transition: 0.5s;
      /* width: 100%;
      height: 22em;
      position: fixed; */
    }
    .sidenav .closebtn {
        font-size: 3em;
    }
    .topmenu {
        font-size:2em;
        cursor:pointer;
    }
        /* .sidenav a {float: left;}
    div.content {margin-left: 0;}
    /* .headercard {
        visibility: hidden;
        height: 0px;
    } */
   /* .sidecard p,ul,li,h2 {
        visibility: hidden;
        height: 0px;
        width: 0px;
        padding: 0em;
        margin: 0px;
    } */
    .main {
        margin-left: 0em; /* Same as the width of the sidebar */
        margin-top: 2em;
    }

  }
  
  /* On screens that are less than 400px, display the bar vertically, instead of horizontally */
  @media screen and (max-width: 400px) {
    .sidebar a {
      text-align: center;
      float: none;
    }
  }