body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background-color: #fff;
  line-height: 1.6;
  font-size:18px;
  color: #222;
}

.topbar {
  padding-left: 3rem;
  padding-right: 3rem;
}

.mainbox {
  height: 450px;
}

.mainhero {
  height: 100%;
  width: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(90%);
}

.JJMLogo h1 {
  max-width:50rem;
  margin-left:auto;
  margin-right:auto;
  *display: inline;
  *position: relative;
  *top: -2rem;
  *padding-left: 5rem;
  float:right;
}

.white {
  background-color: #fff;
}

.grey {
  background-color: #f4f4f4;
}

.JJMLogo img {
  display: inline;
  max-height: 97px;
}

.maintext {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 3rem 0rem 3rem 0rem;
  *margin-top: 3rem;
  font-size: 16px;
}

.maintext h2 {
  *position: relative;
  *top: -20rem;
  width: 20rem;
  margin-left: auto;
  margin-right: auto;
  *color: #eee;
}

.texthead {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.textbody {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

#gallery img {
  margin-bottom: 1rem;
  margin-right: 1rem;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  max-width: 318px;
  min-width: 318px;
}

#logogallery img {
  margin-bottom: 1rem;
  margin-right: 1rem;
  max-width: 200px;
  max-height: 150px;
  vertical-align: middle;
}

#badgegallery img {
  margin-bottom: 1rem;
  margin-right: 2rem;
  max-width: 250px;
  max-height: 100px;
  vertical-align: middle;
    
}

.boundary {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.footer {
  border-top: 1px solid #ccc;
  *margin-top: 50rem;
}

.footer span {
  float: right;
  padding: 1rem 3rem 1rem 3rem;
}

a {
  color: #000;
}

/* header */

.header {
  background-color: #fff;
  box-shadow: 1px 1px 4px 0 rgba(0,0,0,.1);
  position: fixed;
  width: 100%;
  z-index: 3;
  max-height: 130px;
}

.header img {
  max-height: 92px;
}

.header ul {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  background-color: #fff;
}

.header li a {
  display: block;
  padding: 20px 20px;
  *border-right: 1px solid #f4f4f4;
  text-decoration: none;
}

.header li a:hover,
.header .menu-btn:hover {
  background-color: #f4f4f4;
}

.header .logo {
  display: block;
  float: left;
  font-size: 2em;
  padding: 10px 20px 0 20px;
  text-decoration: none;
}

/* menu */

.header .menu {
  clear: both;
  max-height: 0;
  transition: max-height .2s ease-out;
}

/* menu icon */

.header .menu-icon {
  cursor: pointer;
  display: inline-block;
  float: right;
  padding: 28px 20px;
  position: relative;
  user-select: none;
}

.header .menu-icon .navicon {
  background: #333;
  display: block;
  height: 2px;
  position: relative;
  transition: background .2s ease-out;
  width: 18px;
}

.header .menu-icon .navicon:before,
.header .menu-icon .navicon:after {
  background: #333;
  content: '';
  display: block;
  height: 100%;
  position: absolute;
  transition: all .2s ease-out;
  width: 100%;
}

.header .menu-icon .navicon:before {
  top: 5px;
}

.header .menu-icon .navicon:after {
  top: -5px;
}

/* menu btn */

.header .menu-btn {
  display: none;
}

.header .menu-btn:checked ~ .menu {
  max-height: 330px;
}

.header .menu-btn:checked ~ .menu-icon .navicon {
  background: transparent;
}

.header .menu-btn:checked ~ .menu-icon .navicon:before {
  transform: rotate(-45deg);
}

.header .menu-btn:checked ~ .menu-icon .navicon:after {
  transform: rotate(45deg);
}

.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:before,
.header .menu-btn:checked ~ .menu-icon:not(.steps) .navicon:after {
  top: 0;
}

.specialtextone, .specialtexttwo {
    max-width: 28rem;
    padding: 1rem 1rem 1rem 2rem;
}
.specialone {
    background-color: white;
    min-height: 22rem;
    min-width: 27rem;
}

.specialtwo {
    min-height: 22rem;
    background-color: white;
    min-width: 27rem;
}

.specialtextone {
    float: left;
    margin-left: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    position: relative;
    min-width: 26rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.specialoneimg {
    *float: right;
    width: 100%;
    *max-width: 32rem;
    height: 22rem;
    background-image: url("../images/special-one-image.jpg");
    background-size: cover;
    position: sticky;
    left: 50%;
    z-index: 0;
}

.specialtexttwo {
    float: right;
    margin-right: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1;
    position: relative;
    min-width: 26rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.specialtwoimg {
    *float: left;
    width: 100%;
    *max-width: 32rem;
    height: 22rem;
    background-image: url("../images/special-two-image.jpg");
    background-size: cover;
    position: sticky;
    *left: 50%;
    z-index: 0;
}

    /* Modal styles */
    .modal {
        display: none;
        position: fixed;
        z-index: 3;
        padding-top: 50px;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.7);
    }

    .modal-content {
        margin: auto;
        display: block;
        max-width: 80%;
        max-height: 90%;
    }

    .modal-content img {
        width: 100%;
        height: auto;
    }

    .close-button {
        position: absolute;
        top: 0.5rem;
        right: 1.5rem;
        font-size: 36px;
        cursor: pointer;
        z-index: 4;
        color: #fefefe;
        text-shadow: -2px 0 25px black, 0 2px 25px black, 2px 0 25px black, 0 -2px 25px black;
    }

    .big-button {
      display: inline-block;
      padding: 20px 40px;
      font-size: 18px;
      font-weight: bold;
      text-align: center;
      text-decoration: none;
      cursor: pointer;
      background-color: #4CAF50;
      color: #fff;
      border: none;
      border-radius: 8px;
    }

    /* Add some hover effect for better user experience */
    .big-button:hover {
      background-color: #45a049;
    }


/* 57rem = 912px */

@media (max-width: 58em) {
    
 .specialtexttwo {
    float: none;
    position: absolute;
    min-width: 24rem;
    margin-left: 2rem;
}   

.specialtextone {
    float: none;
    position: absolute;
    min-width: 24rem;
    margin-right: 2rem;
}

 .specialoneimg {
     left: 0;
}
    
}

/* 54rem = 864px */

@media (max-width: 54em) {
    
.specialtextone {
    min-width: 21rem;
    margin-right: 1rem;
    max-width: 21rem;
    min-height: 16rem;
}
.specialtexttwo {
    min-width: 21rem;
    max-width: 21rem;
    min-height: 16rem;
}
    
.specialtextone, .specialtexttwo {
    padding: 0rem 1rem 0rem 1rem;
}
.specialoneimg {
    height: 20rem;
}
.specialtwoimg {
    height: 20rem;
}
.specialtwo {
    min-height: 20rem;
}
.specialone {
    min-height: 20rem;
}    
    
    
}


/* 34rem = 544px*/

@media (max-width: 34em) {
    
.specialone {
  /* min-width: 27rem; */
  min-width: 18rem;
}

  .specialtextone {
    /* min-width: 21rem; */
    /* margin-right: 1rem; */
    /* max-width: 21rem; */
    min-width: 14rem;
    margin-right: 0rem;
    max-width: 14rem;
  }
  .specialoneimg {
    /* height: 20rem; */
    height: 18rem;
  }
  .specialone {
    /* min-height: 20rem; */
    min-height: 18rem;
  }
  .specialtwoimg {
    /* height: 20rem; */
    height: 17.3rem;
  }
  .specialtexttwo {
    /* min-width: 21rem; */
    /* max-width: 21rem; */
    /* min-height: 16rem; */
    min-width: 14rem;
    max-width: 14rem;
    min-height: 14rem;
  }
  .specialtwo {
    /* min-height: 20rem; */
    min-height: 17rem;
  }

.specialtextone {
  /* margin-left: 2rem; */
  /* margin-top: 2rem; */
  /* margin-bottom: 2rem; */
  margin-left: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.maintext {
  /* font-size: 16px; */
  font-size: 14px;
}

body {
  /* font-size: 18px; */
  font-size: 16px;
}

  .specialtexttwo {
    /* margin-left: 2rem; */
    margin-left: 1rem;
  }

.specialtexttwo {
  /* margin-right: 2rem; */
  /* margin-top: 2rem; */
  /* margin-bottom: 2rem; */
  margin-right: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.specialtwo {
  /* min-width: 27rem; */
  min-width: 18rem;
}

    
}

/* 48em = 768px */

@media (min-width: 48em) {
  .header li {
    float: left;
  }
  .header li a {
    padding: 20px 30px;
  }
  .header .menu {
    clear: none;
    float: right;
    max-height: none;
  }
  .header .menu-icon {
    display: none;
  }

 .maintext {
  max-width: 90%;
  padding: 6rem;
  font-size: 18px;
}
 .footersp1 {
    display: block;
  }
 .footersp2 {
    display: block;
  }
}
