/* 
Theme Name: Twenty Fifteen Child 
Theme URL: https://wensandou2ak.com
Description: Twenty Fifteen Child 
Theme Author: Elie Choufani
Author URL: http://mmfidawla.com
Template: twentyfifteen 
Version: 1.0.0 
Text Domain: twentyfifteen-child 
*/
/* Remove footer */
footer { display: none;}
.entry-footer {display: none}
/* END Remove footer */

/* default base class to hide elements */
.hidden {
  display: none !important;
}
/* base style correction to remove lines under anchors */
a {
  text-decoration: none;
}

/* limit logo height */
.custom-logo {
  max-height: 150px;
}

button.secondary-toggle {
  top: 64px;
}

/* fixing page spacings */
article {
  padding-top: 0 !important;
}
/* Page background image style */
article .entry-header {
  height: 100%;
  min-height: 250px;
  position: relative;
  padding: 0;
  border-top: solid 6px;
  background-image: url('/wp-content/uploads/2022/01/7-scaled2.jpg');
  background-repeat: no-repeat;
  background-size: contain;
}

/* Page title on red background image */
article .entry-header h1 {
  margin: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 8px;
  font-family: 'bahijthesansarabicextrabold' !important;
  font-weight: bolder;
  color: white;
  padding: 4px;
  font-size: 8rem;
}

body.page article .entry-header h1 {
  font-size: 8rem;
  font-family: 'bahijthesansarabicextrabold' !important;
}

/* Page content (text) spacing fix */
article .entry-content {
  padding-top: 80px;
}

/* Big red text class to use in editor to emphasize text */
article .big-text-red {
  color: red;
  font-size: 24px;
  font-weight: bolder;
}

/* Fix spacing and sizes for mobile and tablets */
@media only screen and (max-width: 1200px) {
  /** Start selecting from this line to delete **/

  /** temporary code **/

  .page-list-ext-item:last-child {
    /*width: 100%;*/
  }

  .page-list-ext-item:last-child h3 {
    max-width: calc(50%);
  }

  /** End temporary **/

  /** to this line **/

  article .entry-header h1 {
    padding-right: 7.6923%;
  }
}

@media only screen and (max-width: 600px) {
  body.page article .entry-header h1 {
    font-size: 4rem;
  }

  header#masthead {
    padding-bottom: 0;
    top: 0;
    position: fixed;
    width: 100%;
    z-index: 9999;
    display: block;
    transform: translateZ(0);
    -moz-transform: translatez(0);
    -ms-transform: translatez(0);
    -o-transform: translatez(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
  }

  /** Menu bar **/

  div#secondary.toggled-on {
    position: fixed;
    top: 160px;
    transform: translateZ(0);
    -moz-transform: translatez(0);
    -ms-transform: translatez(0);
    -o-transform: translatez(0);
    -webkit-transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    z-index: 999999;
    width: 100%;
    background-color: #EEF2F4;
    border-bottom: solid 6px black;
  }

  /** end menu bar **/

  div#content {
    margin-top: 165px;
  }

  article .post-thumbnail {
    padding-left: 16px;
  }

  article .post-thumbnail img {
    max-width: 100px;
  }

  article .entry-header {
    min-height: 150px;
    background-size: cover;
  }

  .page-list-ext .page-list-ext-item:nth-child(2) {
    margin-left: 0;
  }
}

@media only screen and (min-width: 1000px) {
  header#masthead {
    padding-right: 0;
  }

  header#masthead a.custom-logo-link img {
    width: 250px;
    min-height: 250px;
  }

  header#masthead a.custom-logo-link {
    margin-top: -80px;
    display: block;
  }

  div#secondary nav {
    font-size: 24px;
    margin-right: 0;
  }

  div#secondary nav div.menu-primary-menu-container {
    padding-right: 16px;
  }
}

/* OLD CODE FOR IMAGE IN PAGE */
article .post-thumbnail {
  text-align: left;
  padding-left: 80px;
  margin-bottom: 0;
  display: inline-block;
  width: 100%;
  border-top: solid 12px;
}

article .post-thumbnail img {
  margin: 0;
  text-align: left;
  display: inline-block;
}