* {
    box-sizing: border-box;
}


body {
    margin: 0px;
    padding: 0;
    background-color: #8C8C8C;
}

/* Hides Over-Flow Either Side */
  html,body{
      overflow-x: hidden;
  }

/* Emergency Contact Index Page */
h1 {
  margin: 20px;
  font-size: 55px;
  color: white;
  text-align: center;

}

h2 {
  margin: 20px;
  font-size: 55px;
  color: white;
  text-align: center;
}

h3 {
  margin: -5px;
  color: red;
  font-size: 55px;
  color: white;
  text-align: center;
}

h3 a {
  color: white;
  text-decoration: none;
}

/* Navigation Bar */
.navbar {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: top;
    background-color: #474747;
}

.brand-title img {
  width: 100px;
  float: left;

}

/* Pages It Goes Too */
.navbar-links {
    height: 200;
}

.navbar-links ul {
    display: flex;
    margin: 0;
    padding: 0;
    background-color: #474747;
}

.navbar-links li {
    list-style: none;
}

.navbar-links li a {
    display: block;
    text-decoration: none;
    color: white;
    padding: 1rem;
}

/* Colour When Hovered Over */
.navbar-links li:hover {
    background-color: #8C8C8C;
}

/* Position of Button */
.toggle-button {
    position: absolute;
    top: .75rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

/* Size of button bars */
.toggle-button .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
}

/* Footer  */
  *:before,
  *:after {
    box-sizing: inherit;
  }

  .body-for-sticky {
    position: relative;
    min-height: 100%;
    padding-bottom: 8rem;
  }

  .sticky-footer {
    position: absolute;
    bottom: 0;
  }

  body {
    margin: 0;
    font-family: "Helvetica Neue", Arial, sans-serif;
  }

  .footer {
    right: 0;
    left: 0;
    padding: 0rem;
    background-color: #8C8C8C;
    text-align: center;
  }

  .demo {
    margin: 0 auto;
    padding-top: 64px;
    max-width: 640px;
    width: 100%;
  }

/* Slide Show On Index Page */
/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot:hover {
  background-color: #717171;
}


/* Slide Show On Contact Page */
/* Slideshow container */
.slideshow-container-1 {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */
.mySlides {
  display: none;
}

/* Next & previous buttons */
.prev1, .next1 {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next1 {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev1:hover, .next1:hover {
  background-color: rgba(0,0,0,0.8);
}

/* The dots/bullets/indicators */
.dot1 {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active, .dot1:hover {
  background-color: #717171;
}

/* When the hamburger menu is activated */
@media (max-width: 767px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .toggle-button {
        display: flex;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar-links ul {
        width: 100%;
        flex-direction: column;
    }

    .navbar-links ul li {
        text-align: center;
    }

    .navbar-links ul li a {
        padding: .5rem 1rem;
    }

    .navbar-links.active {
        display: flex;
    }
}


/* Services Text Boxes */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  background: ;
  font-family: 'Josefin Sans', sans-serif;
}

.services-text-box{
  margin-top: 20px;
}

.services-text-box h5{
  font-family: 'Allura', cursive;
  font-size: 45px;
  margin-bottom: 20px;
  text-align: center;
  color: white;
}

.services-box-position{
  display: flex;
  justify-content: center;
  width: auto;
  text-align: center;
  flex-wrap: wrap;
}

.services-box-position .services-box-position-2{
  background: #fff;
  margin: 5px;
  margin-bottom: 70px;
  width: 400px;
  padding: 20px;
  line-height: 20px;
  color: #8e8b8b;
  position: relative;
}
h4+p {
  margin-top: 30px;
}
h4 {
  color: black;
  font-size: 40px;
  text-decoration: underline;
}
p{
  color: black;
  font-size: 14px;
  margin-top: 10px;
  margin-left: 15px;
  text-align: left;
}

/* Contact Form */
.contact {
  position: relative;
  min-height: 100vh;
  padding: 50px 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background: url(background.jpg);
  background-size: cover;
}

.contact .content {
  max-width: 800px;
  text-align: center;
}

.contact .content h5 {
  font-size: 36px;
  font-weight: 500;
  color: black;
}

p1 {
  color: black;
  font-weight: bold;
}
.contact .content p {
  font-weight: 500;
  color: #fff;
}

.container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.container .contactInfo {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.container .contactInfo .box {
  position: relative;
  padding: 20px 0;
  display: flex;
}

.container .contactInfo .box .icon {
  min-width: 60px;
  height: 60px;
  background:  #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  font-size: 22px;
}

.container .contactInfo .box .text {
  display: flex;
  margin-left: 20px;
  font-size: 16px;
  color: #fff;
  flex-direction: column;
  font-weight: 300;
}

.container .contactInfo .box .text h6 {
  font-size: 20px;
  font-weight: 600;
  color: black;
}

.contactForm {
  width: 40%;
  padding: 40px;
  background:  #fff;
}

.contactForm h5{
font-size: 30px;
color: #333;
font-weight: 500;
}

.contactForm .inputBox {
  position: relative;
  width: 100%;
  margin-top: 10px;
}

.contactForm .inputBox input,
.contactForm .inputBox textarea {
  width: 100%;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
}

.contactForm .inputBox span {
  position: absolute;
  left: 0;
  padding: 5px 0;
  font-size: 16px;
  margin: 10px 0;
  pointer-events: none;
  transition: 0.5s;
  color: #666;
}

.contactForm .inputBox input:focus ~ span,
.contactForm .inputBox input:valid ~ span,
.contactForm .inputBox textarea:focus ~ span,
.contactForm .inputBoxt textarea:valid ~ span {
    color: #e91e63;
    font-size: 12px;
    transform: translateY(-20px);
}

.contactForm .inputBox input[type="submit"] {
  width: 100px;
  background: #00bcd4;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-size: 18px;
}

@media (max-width: 991px) {
  .contact {
    padding: 50px;
  }
  .container {
    flex-direction: column;
  }
  .container .contactInfo {
    margin-bottom: 40px;
  }

  .container .contactInfo,
  .contactForm {
    width: 100%;
  }
}

*,
*::after,
*::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  font-family: "Nunito", sans-serif;
  color: #333;
  font-weight: 300;
  line-height: 1.6;
}

.container {
  width: 60%;
  margin: 2rem auto;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 5vw);
  grid-gap: 1.5rem;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery__item--1 {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 3;

  /** Alternative Syntax **/
  /* grid-column: 1 / span 2;  */
  /* grid-row: 1 / span 2; */
}

.gallery__item--2 {
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 1;
  grid-row-end: 3;

  /** Alternative Syntax **/
  /* grid-column: 3 / span 2;  */
  /* grid-row: 1 / span 2; */
}

.gallery__item--3 {
  grid-column-start: 5;
  grid-column-end: 9;
  grid-row-start: 1;
  grid-row-end: 6;

  /** Alternative Syntax **/
  /* grid-column: 5 / span 4;
  grid-row: 1 / span 5; */
}

.gallery__item--4 {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 3;
  grid-row-end: 6;

  /** Alternative Syntax **/
  /* grid-column: 1 / span 4;  */
  /* grid-row: 3 / span 3; */
}

.gallery__item--5 {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 6;
  grid-row-end: 9;

  /** Alternative Syntax **/
  /* grid-column: 1 / span 4; */
  /* grid-row: 6 / span 3; */
}

.gallery__item--6 {
  grid-column-start: 5;
  grid-column-end: 9;
  grid-row-start: 6;
  grid-row-end: 9;

  /** Alternative Syntax **/
  /* grid-column: 5 / span 4; */
  /* grid-row: 6 / span 3; */
}

/* Different text sizes for emergency contact on index page (screen size dependant)*/


@media only screen and (max-width: 767px) {
  h1 {
    font-size: 22px;
  }
}

@media only screen and (max-width: 767px) {
  h2 {
    font-size: 22px;
    margin-top: -16px;
  }
}

@media only screen and (max-width: 767px) {
h3 {
  margin: -5px;
  color: red;
  font-size: 25px;
  color: red;
  text-align: center;
  }
}
