@import url("https://fonts.googleapis.com/css?family=Open+Sans:400,700");
@import url("https://fonts.googleapis.com/css?family=Raleway:700");

body {
  font-family: "Open Sans", sans-serif;
  background: #e4e4e4;
  font-size: 14px;
}

#maincontent ul li {
  padding-bottom: 3px;
  padding-top: 5px;
}

#content {
  background: #ffffff;
  width: 1024px;
}

#maincontent {
  padding-top: 30px;
  padding-left: 30px;
  background: none;
}

#maincontent p {
  line-height: 1.5;
  margin-bottom: 10px;
}

#maincontent p:last-child {
	margin-bottom: 15px;
}

#maincontent.user_dashboard .my_subscription_section.section ul li {
    line-height: 1em;
}

/* header */
#img_div {
  margin-left: 30px;
  margin-right: 30px;
}

#date_box {
  position: absolute;
  right: -3px;
  background: #457b9d;
  text-align: right;
  top: -180px;
  padding-left: 5px;
  height: 60px;
  padding-top: 8px;
}

#sidebar_left {
  background-image: url(https://youngisraelofthewestside.shulcloud.com/_preview/large/uploads/Slider-Images/October2007.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
  background-position: 0 0;
}

/* MAIN NAV */

#mainnav {
  background: none repeat scroll 0 0 #457b9d;
  box-shadow: -1px 6px 16px 0 rgba(0, 0, 0, 0.3);
  margin-top: 5px;
  width: 100%;
  font-family: "Open Sans", sans-serif;
}

#nav_section {
  background: none repeat scroll 0 0 #457b9d;
  color: #fff;
  text-align: center;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

#nav_section li:nth-last-child(1) {
  border-right: medium none;
}
#nav_section li {
  border-right: 1px solid;
}

#nav_section li a {
  color: #fff;
  font-family: "Open Sans", sans-serif;
  padding-left: 30px;
  padding-right: 30px;
  letter-spacing: 0.4px;
}
#nav_section li:hover a {
  color: #BAF2BB;
}

#nav_section li.selected_nav a {
  color: #fff;
  text-decoration: underline;
}

/* sub drop down nav */
#nav_section ul a {
  width: auto;
  min-width: 200px;
  text-transform: none;
  line-height: 1.5;
}

#nav_section ul li a {
  color: #817e79;
}

#nav_section li:hover ul li a:hover {
  color: #999;
}
#nav_section li ul {
  display: block;
  visibility: hidden;
  opacity: 0;
  top: 20px;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  transition: all 0.25s ease;
}
#nav_section li:hover ul {
  opacity: 1;
  top: 40px;
  visibility: visible;
}
#nav_section li:hover ul ul {
  opacity: 1;
  top: 40px;
  visibility: visible;
}
#nav_section li:hover ul ul,
#nav_section li:hover ul ul ul,
#nav_section li:hover ul ul ul ul {
  display: block;
  visibility: hidden;
  opacity: 0;
  top: -20px;
  -webkit-transition: all 0.25s ease;
  -moz-transition: all 0.25s ease;
  -ms-transition: all 0.25s ease;
  -o-transition: all 0.25s ease;
  transition: all 0.25s ease;
}

#nav_section li:hover ul {
  opacity: 1;
  top: 40px;
  visibility: visible;
}
#nav_section li li:hover ul,
#nav_section li li li:hover ul,
#nav_section li li li li:hover ul {
  opacity: 1;
  top: 0px;
  visibility: visible;
}

/* sidebar */
#sidebar_right {
  width: 280px;
  padding: 20px;
}

/* footer */
#footer {
  background: #457b9d;
  border-top: medium none;
  color: #ffffff;
  height: 120px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 10px;
  text-align: left;
  width: 1024px;
  position: relative;
}

.footer_inner {
  padding-top: 0;
}

.footer_inner ul li a {
  color: #fff;
}

#footer p a,
.footer_inner p {
  color: #fff;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
}

#footer .global_terms_links,
#footer .copyright {
  position: absolute;
  bottom: 50px;
  right: 20px;
}

#footer .copyright {
  bottom: 30px;
}
/* ADMIN BAR */
#header {
  background: none repeat scroll 0 0 #3d576f;
  border-bottom: medium none;
  color: #fff;
}

#header a {
  color: #fff;
}

#maincontent.admin .pad-helper {
  padding: 15px;
}

#content #maincontent.admin .next_step {
    position: static !important;
}
/* HEADINGS */

#maincontent h2,
#sidebar_right .right_bm .right_content h2,
h2 {
  font-weight: bold;
  font-family: "Raleway", sans-serif;
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}

/* RIGHT SIDEBAR */

#sidebar_right .right_bm {
  border-bottom: thin solid #252525;
}

#sidebar_right .right_bm:last-child {
  border-bottom: none;
}

#sidebar_right hr {
  height: 5px;
  color: transparent;
  margin: 0 auto 12px auto;
  border-bottom: 1px solid black;
}

#sidebar_right .right_bm .right_content h2 {
  margin-top: 10px;
  margin-bottom: 0;
  padding-bottom: 5px;
}

#sidebar_right .right_bm table td,
#sidebar_right .right_bm table a {
  color: #252525;
  font-size: 14px;
  line-height: 20px;
}

#sidebar_right .right_bm table td,
#sidebar_right .right_bm table a {
  padding-bottom: 0px;
}

#sidebar_right .right_bm .right_content h4 {
  font-weight: bold;
  font-family: "Raleway", sans-serif;
  color: #252525;
  font-size: 14px;
  line-height: 20px;
  padding-bottom: 0px;
}

.fck_widget_calendar table {
  margin-bottom: 15px;
}

#sidebar_right .readmore a {
  background: none repeat scroll 0 0 #b0b1a6;
  color: #fff;
  padding-right: 0px;
  padding-left: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
  padding: 8px;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  width: 65%;
  line-height: normal;
  font-weight: 400;
  font-size: 14px;

  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  -khtml-border-radius: 8px;
  border-radius: 8px;
}

/* CALENDAR */
#maincontent.cal .pad-helper {
	padding: 10px;
}

@media (max-width: 1024px) {
    #content, #footer {
        width: auto;
    }
    
    #maincontent {
        width: 60%;
    }
}

/*ADMIN*/
.tab.css-tabs li {
    padding-bottom: 5px;
}

ul.css-tabs a.current {
    height: 25px;
}

/*Hebrew Input fix*/
.hebrew-keyboard ~ .keyboardInputBox {
    background-color: #eeeeee;
    border-width: 1px 0 1px 1px !important;
    border-style: solid !important;
    border-color: #cccccc !important;
    border-radius: 3px 0 0 3px;
    line-height: 28px;
}

.hebrew-keyboard {
    box-shadow: none !important;
}

/* Form fields */
div.featured_article .pfbc-form select {
    margin-bottom: 5px;
}

.pfbc-form select,
.pfbc-form textarea,
.pfbc-form input[type="text"],
.pfbc-form input[type="password"],
.pfbc-form input[type="datetime"],
.pfbc-form input[type="datetime-local"],
.pfbc-form input[type="date"],
.pfbc-form input[type="month"],
.pfbc-form input[type="time"],
.pfbc-form input[type="week"],
.pfbc-form input[type="number"],
.pfbc-form input[type="email"],
.pfbc-form input[type="url"],
.pfbc-form input[type="search"],
.pfbc-form input[type="tel"],
.pfbc-form input[type="color"],
.pfbc-form .uneditable-input {
  min-height: 30px;
  line-height: 28px !important;
}

/* admin button */

input[type="button"],
input[type="submit"],
.action-button {
    background-color: #457b9d;
    color: #fff;
    display: inline-block;
    zoom: 1;
    white-space: nowrap;
    vertical-align: middle;
    text-align: center;
    cursor: pointer;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding: .5em 1em;
    border: 1px solid #999;
    text-decoration: none;
    border-radius: 2px;
}

input[type="button"],
input[type="submit"] {
    border-color: transparent;
}

@media (max-width: 768px) {
  #maincontent, #sidebar_right .right_bm {
        width: 100%;
        padding: 30px;
    }   
    
    #date_box {
        position: static;
    }
    
    #mobile_nav_dropdown {
        height: 0;
        visibility: hidden;
    }
    
    #footer .global_terms_links, #footer .copyright {
        position: static;
    }
    
    #sidebar_left {
        background-size: unset;
    }
    
}

@media (max-width: 576px) {
  #content {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }

  #nav_section {
    display: block;
  }

  #topnav {
    left: 30px;
  }

  #maincontent {
    padding: 15px;
  }
  
  #nav_section li ul {
    display: none;
  }

  #nav_section li {
    border: none;
  }

  #nav_section li ul,
  #nav_section li:hover ul,
  #nav_section li:hover ul ul,
  #nav_section li:hover ul ul ul,
  #nav_section li:hover ul ul ul ul {
    top: 0;
    transition: none;
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
  }

  #nav_section li:hover ul a {
    color: #fff;
  }
  
  #sidebar_right {
    width: auto;
  }

  #sidebar_right .content_container {
    padding: 15px;
  }
  
  #footer {
      height: auto;
      width: 100%;
  }
}
