
* {
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  box-sizing: inherit;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}

*:focus { outline: none; }

html { box-sizing: border-box; }

body {
  background-color: #f9eedb;
  min-width: 300px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  display: block;
  font-weight: 400;
}

li, span, p, a, h1, h2, h3, h4, h5 { line-height: 1; }

p { display: block; }

a { text-decoration: none; }

a:hover { text-decoration: underline; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}


button {
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

/* Navbar style */
.navbar{
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.bg-custom {
  background-color: #ded7cc;
}

.navbar-brand {
  white-space: normal;
  word-wrap: break-word;
}

.navlink {
  min-width: 100px;
  white-space: nowrap;
}

.sticky{
  position: fixed;
  top: 0;
}

/* === Index Page === */
/* Main Feature */
#mainfeature,
#about {
  width: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizelegibility;

}

#mainfeature {
  display: table;
  background: url('images/cross1.jpg') 50% 50% no-repeat;
  background-size:100%;
  max-height:600px;
  margin-top: 50px;
  padding-top: 15%;
  padding-bottom: 10%;
}


#mainfeature h1, #mainfeature p {
  text-align: center;
}

#mainfeature h1 {
  font-family: 'Raleway',sans-serif;
  vertical-align: middle;
  font-size: 3em;
  color:rgba(0, 0, 0, 0.7);
}
/*Link tiles*/
.centering{
  display:flex;
  justify-content:center;
}

.linktile, .sslinktile {
  display:block;
  position:relative;
  margin:auto;
  text-align:center;
  text-decoration:none;
  border-radius:2px;
  font-size:2em;
  color:rgba(255, 255, 255, 1.0);
  text-shadow:2px 2px 5px #000000;
}

.linktile{
  padding-top:100px;
  padding-bottom:100px;
  width:auto;
  height:250px;
  max-width:420px;
  max-height:250px;
  min-height:250px;
}

.linktile:hover, .sslinktile:hover {
  color: rgba(255,255,255,1.0);
  text-decoration: none;}

  .tile1 {
    background-image: url('images/scheduleimg1.jpg');
    background-position: center;
  }

  .tile2 {
    background-image: url('images/sundayschool.jpg');
    background-position: center;
  }

  .tile3 {
    background-image: url('images/sanbicafe.jpg');
    background-position: center;
  }

  .tile1:hover, .tile2:hover, .tile3:hover,
  .ss1:hover, .ss2:hover, .ss3:hover, .ss4:hover, .ss5:hover, .ss6:hover{
    width:100%;
    height:100%;
    position:relative;
    opacity: 0.7;
  }

  #linktilepadding {
    padding-left: 0;
    padding-right: 0;
    max-width: 420px;
  }

  #lesspadding {
    padding-left: 10px;
    padding-right: 10px;
  }

  #toppadding {
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 15px;
  }

  #smallertext {
    font-size: 0.9em;
  }


  #about h2, #linkarea h2{
    padding-top:10px;
  }


  #linkarea p {
    padding-left:25px;
  }

  /*About*/
  #about {
    background-color:#f3ead0;
    padding-top: 25px;
    padding-bottom: 25px;
  }

  /*News*/
  #recentNews{
    padding-top: 40px;
    height:350px;
    overflow:auto;
    border:none;
  }

.newsrow th{
  padding-right: 10px;
  font-weight:normal;
  color: #7e750c;
}

.newsrow th, .newsrow td{
  font-size:16px;
  vertical-align: top;
}

  #news{
    background-color: #D3C6AF;
    padding-top: 20px;
    padding-bottom: 30px;
  }

  /* === SUNDAY SCHOOL === */
  .sslinktile{
    object-fit: contain;
    padding-top:85px;
    padding-bottom:85px;
    width:auto;
    height:230px;
    max-width:500px;
    max-height:230px;
    min-height:230px;
  }

  .ss1 {
    background-image: url('images/littleclass.jpg');
  }

  .ss2 {
    background-image: url('images/miraiclub.jpg');
  }

  .ss3 {
    background-image: url('images/awanalogo.jpg');
  }

  .ss4 {
    background-image: url('images/joyful.jpg');
  }

  .ss5 {
    background-image: url('images/js.jpg');
  }

  .ss6 {
    background-image: url('images/jnmc.jpg');
  }

  .ss1, .ss2, .ss3, .ss4, .ss5, .ss6{
    background-position: center;
  }

  .sslinktile p{
    padding-top:5px;
    font-size: 0.6em;
  }


  /* === FOOTER === */

  footer {
    box-shadow: 0px 2px 15px 0px rgba(0,0,0,0.3);
    padding-top:25px;
    padding-bottom:25px;
    background-color:#484848;
    color: white;
  }

  footer img {
    max-height:250px;
  }

  footer p{
    padding-top:10px;
  }


  /* Feature Images */

  .feature-image {
    display: table;
    width: 100%;
  }

  .feature-image-type1 {
    background:url("images/featureimage1.jpg") 50% -10% fixed no-repeat;
    background-size:auto;
  }

  .feature-image-type2 {
    background:url("images/featureimage2.jpg") 40% -20% fixed no-repeat;
    background-size:auto;
  }

  .feature-image-type3 {
    background:url("images/featureimage3.jpg") 40% -20% fixed no-repeat;
    background-size:auto;
  }

  .feature-image-type4 {
    background:url("images/featureimage4.jpg") 40% -10% fixed no-repeat;
    background-size:auto;
  }

  .feature-image h1{
    padding-top: 110px;
    padding-bottom:50px;
    text-align: center;
    color:white;
    text-shadow:2px 2px 5px #000000;
    font-size:4em;
    font-weight:bold;
  }

  /* Information */
  #information {
    padding-top: 70px;
    padding-bottom: 40px;
  }

  #clergy {
    padding-top: 20px;
  }

  #gmap {
    margin-top:5px;
    background-color: #9b9b9b;
    border: none;
    outline: none;
    padding:3px;
    border-radius: 3px;
    cursor: pointer;
  }

  #gmap:hover {
    background-color: #727272;
  }

  /*QA*/
  .question, .answer{
    vertical-align: top;
  }

  .answer{
    color: green;
    padding-bottom: 20px;
  }

  /*Sanbi Cafe*/
  .sanbiparallax,.ssparallax{
    min-height: 450px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: white;
    text-shadow:2px 2px 5px #000000;
  }

.sanbiparallax {
      background-image: url("images/sanbicafepic.jpg");
}

  #centertext80{
    padding-top: 80px;
    text-align: center;
  }

  #topPadding40 p, #centertext80 p, #sanbidiv p, #sanbidiv li {
    padding: 10px;
    font-size: 1.1em;
  }

/*Messages*/
#messageList a{
text-decoration: none;
color: #8a722a;
}
#messageList a:hover{
color: #4c8dd0;
}

#messageList li{
  font-size: 1.3em;
  padding-top: 10px;
}

  /*Sunday School*/
  .objfit-contain{
    object-fit: contain;
    margin-bottom: 10px;
  }

  .intro1, .intro2{
    position: relative;
    padding:15px;
    margin-bottom: 10px;
  }

  .intro1{
    background-color: #fde9c4;
  }

  .intro2{
    background-color: #EEDBBC;
  }

  .ssparallax{
    background-image: url(images/bgpic2.jpg);
    padding-top: 90px;
    padding-bottom: 30px;
    text-align: right;
  }
  .ssparallax img{
    margin:auto;
    padding-top: 10px;
    padding-bottom:10px;
  }
  .ssreturnlink{
    color: white;
    font-size: 1.2em;
    text-decoration: none;
  }

  .ssreturnlink:hover{
      color: rgba(219,210,163,1.0);
  }

  /* Media Queries */
  @media only screen and (max-width: 975px) {
    #mainfeature {
      background: url('images/cross2.jpg') 50% 30% no-repeat;
      display: table;
      padding-top: 17%;
      padding-bottom: 10%;
    }

  }

  @media only screen and (max-width: 640px) {
    #mainfeature {
      background: url('images/cross3.jpg') 50% 30% no-repeat;
      display: table;
      padding-top: 30%;
      padding-bottom: 20%;
    }


    #mainfeature h1 {
      font-family: 'Raleway',sans-serif;
      vertical-align: middle;
      font-size: 1.6em;
    }

  }
  @media only screen and (max-width: 600px) {

    .navbar-brand {
      max-width: 250px;
      font-size: 1em;
      white-space: normal;
      word-wrap: break-word;
    }

    #mainfeature {
      background: url('images/cross3.jpg') 60% 25% no-repeat;
      display: table;
      padding-top: 35%;
      padding-bottom: 20%;
    }

    #mainfeature h1 {
      font-family: 'Raleway',sans-serif;
      vertical-align: middle;
      font-size: 1.5em;
    }

  }

  @media only screen and (max-width: 350px) {
    .navbar-brand {
      max-width: 180px;
      font-size: 1em;
      white-space: normal;
      word-wrap: break-word;
    }

  }

  @-moz-document url-prefix() {
    fieldset { display: table-cell; }
  }
