* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Lato', sans-serif;
}

.pointer {
  cursor: pointer;
}

#mainpanelwrapper {
  flex-direction: column;
  display: flex;
}

.banner {
  min-height: 20rem;
  height: 100vh;
  transform-style: preserve-3d;
}

.banner::before {
  content: '';
  height: 100vh;
  width: 100vw;
  top: 0;
  left: 0;
  background: no-repeat url("../img/mainbanner.jpg?v=2") center center;
  background-size: cover;
  position: absolute;
  z-index: -1;
}

.flex {
  display: flex;
}

.row {
  flex-direction: row;
}

.col {
  flex-direction: column;
}

.fixed {
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

.full {
  min-height: calc(100vh - 82px);
  width: 100%;
}

.full:nth-of-type(2n) {
  background-color: #00000030;
}

.full:nth-of-type(2n+1) {
  background-color: #ffffff30;
}

#bannerlogo {
  flex: 2;
  height: 50px;
  align-self: flex-start;
}

nav {
  padding: 1rem;
  background-color: #ffffffe0;
  text-transform: uppercase;
  opacity: .85;
  overflow: visible;
}

nav.fixed {
  overflow: visible;
}

nav::after {
  content: '';
  display: block;
  position: absolute;
}

#menulabel {
  flex: 5;
  justify-content: flex-end;
  align-self: center;
  color: #fff !important;
  font-size: 40px !important;
  position: relative;
}

nav ul li, #menulabel {
  margin-right: 1rem;
  list-style: none;
}

.menubar li {
  display: block;
  padding: .25rem 0;
}

.menubar {
  display: none;
  position: absolute;
  right: 0;
  top: 82px;
  margin-top: .5rem;
  padding: 1rem;
  background-color: #000000a0;
  border-radius: 5px;
  opacity: 0;
  z-index: -1;
  transition: all .35s;
}

li a, label {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.collapsed {
  display: none;
}

#menu-toggle + label + label {
  display: none;
  align-self: center;
  flex: 5;
  justify-content: flex-end;
  margin-right: 1.2rem;
  font-size: 40px;
}

#menu-toggle + label + label + ul {
  display: block;
  z-index: -1;
  opacity: 0;
  transition: all .35s;
  transform: scale(0.85);
}

#menu-toggle:checked + label + label + ul {
  display: block;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

#menu-toggle:checked + label {
  display: none;
}

#menu-toggle:checked + label + label {
  display: flex;
}

.headercontent {
  padding: 3rem;
  background-color: #00000030;
  margin: auto;
  width: calc(100% - 30px);
  min-height: 20rem;
  max-height: 30rem;
  height: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: azure;
  border-radius: 10px;
  line-height: 4rem;
  text-shadow: 1px 1px 1px #000;
}

#courses {
  flex-direction: column;
  justify-content: center;
}

.coursewrapper {
  flex-direction: row;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  height: inherit;
  width: 100%;
}

.card {
  position: relative;
  display: flex;
  top: 0;
  flex-direction: column;
  border-radius: .25rem;
  border: 1px solid rgba(0,0,0,.125);
  transition: all .35s ease-in-out;
  margin: 1rem auto;
  text-align: center;
  min-height: 20rem;
  max-width: 90%;
  width: 100%;
  background-color: #fff;
}

.card-img-top {
  max-width: 100%;
  width: 100%;
}

.card img {
  width: 10rem;
  margin: 1rem auto;
}

.card-title {
  font-size: 20px;
  margin-bottom: .5rem;
}

.card-subtitle {
  margin-bottom: .8rem;
  font-size: 16px;
  color: #333333c0;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.25rem 6px;
  letter-spacing: normal;
}

.card-text {
  font-size: 18px;
  letter-spacing: 1.2px;
}

.btn {
  margin-top: auto;
  /* color: #caf2e0; */
  color: #fff;
  background-color: #32592f;
  border-color: #32592f;
  /* background-color: #007bff;
  border-color: #007bff; */
  border: 1px solid transparent;
  text-align: center;
  vertical-align: middle;
  padding: .5rem 1rem;
  font-size: 3.5vw;
  line-height: 1.5;
  border-radius: .3rem;
  cursor: pointer;
  transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
  letter-spacing: 1.2px;
  font-weight: bolder;
}

.btn:hover {
  color: #fff;
  background-color: #363a1e;
  border-color: #2e2a1b;
  /* background-color: #0069d9;
  border-color: #0062cc; */
}

@media (min-width: 1000px) {
  .headercontent {
    width: 80%;
    margin: auto;
  }

  #menu-toggle + label, #menu-toggle + label + label, #menu-toggle + label + label + ul {
    transition: all 0s;
    opacity: 1;
    transform: scale(1);
  }

  #menu-toggle + label, #menu-toggle + label + label {
    display: none !important;
  }
  
  .menubar {
    flex: 5;
    display: flex !important;
    justify-content: flex-end;
    align-self: center;

    position: relative  !important;
    right: 0;
    top: 0;
    margin-top: 0;
    padding: 0;
    background-color: #00000000;
    border-radius: 5px;
    opacity: 1;
    z-index: 1;
  }

  #courses {
    width: 100%;
  }
  
  .card {
    max-width: 45%;
    width: 100%;
    padding: 15px;
    
  }
}

@media (min-width: 992px) {
  .card {
    max-width: 30%;
  }
}

@media (min-width: 1200px) {

  .coursewrapper {
    max-width: 1200px;
    margin: auto;
  }

  .card {
    max-width: 22%;
  }
}