/*
 Theme Name:   matteomanferdini.com
 Description:  Twenty Twelve Child Theme
 Template:     twentytwelve
*/


/* Removing the navigation from the landing pages */

.page-id-735 .site-header,
.page-id-788 .site-header,
.page-id-944 .site-header,
.page-id-975 .site-header,
.page-id-1011 .site-header,
.page-id-1036 .site-header,
.page-id-1055 .site-header,
.page-id-1146 .site-header,
.page-id-1231 .site-header,
.page-id-1268 .site-header,
.page-id-1270 .site-header,
.page-id-1272 .site-header,
.page-id-1277 .site-header,
.page-id-1309 .site-header,
.page-id-1393 .site-header, /* Ultimate course landing page */
.page-id-1395 .site-header,
.page-id-1398 .site-header,
.page-id-1417 .site-header,
.page-id-1438 .site-header,
.page-id-1454 .site-header,
.page-id-1469 .site-header,
.page-id-1515 .site-header,
.page-id-1531 .site-header,
.page-id-1731 .site-header,
.page-id-1998 .site-header /* Ultimate course landing page A/B test */
{
   display: none;
}

/* General */

:root {
  --palette-purple: #531CAD;
  --palette-lilac-bush: #9874D3;
  --palette-dark-blue: #182EB7;
  --palette-light-blue: #5EABF2;
  --palette-orange: #FFB800;
  --palette-dark-orange: #FFA100
}

p, ul, ol, label, input {
  font-weight: lighter;
  font-size: 18px;
  color: black;
  line-height: 1.5em !important;
}

li { margin-bottom: 0.67em !important; }

a { color: var(--palette-purple)}
a:hover { color: var(--palette-dark-blue)}
.entry-content a:visited:not(.more-link):not(.cta-link) { color: var(--palette-light-blue) !important}

h1 {
  font-family: 'Georgia';
  font-size: 36px !important;
  line-height: normal !important;
  font-weight: bold !important;
  font-style: italic;
  color: black;
}

.entry-content h2 {
  font-family: 'Georgia';
  text-transform: none;
  font-weight: bold;
  font-style: italic;
  line-height: normal !important;
  font-size: 30px !important;
  margin: 40px 0 30px 0 !important;
  color: black;
}

h6 {
  font-size: 12px !important;
  color: black;
}

.more-link, .more-link:visited {
  background: var(--palette-orange);
  color: white !important;
  padding: 10px;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: bolder;
  width: 100% !important;
}

.more-link .meta-nav { display: none;}

.entry-title { color: black; }

.comments-link, .entry-meta, .nav-single { display: none !important; }

blockquote { margin: 24px 0px 24px 0px !important; }

.entry-content img, .comment-content img, .widget img, img.header-image, .author-avatar img, img.wp-post-image {
    border-radius: none !important;
    box-shadow: none !important;
}

.page .entry-title { display:none; }
.site-info { display:none; }
.entry-date { display: none; }

.narrow-column {
  max-width: 625px;
  margin-left: auto;
  margin-right: auto;
}

.bigger-text p, .bigger-text ul, .bigger-text label {
   font-size: 18px;
}

.picture-box {
  background-size: cover;
  width: 100%;
  display: block;
  overflow: auto;
  padding: 1.5em 1em 1.5em 1em;
  box-sizing: border-box;
}

.picture-box h1, .picture-box h2 {
  color: white !important;
}

.leadbox {
  margin-bottom: 3em;
  width: 100%;
  display: block;
  overflow: auto;
}

.popular { color: var(--palette-purple) !important}
.popular:hover { color: var(--palette-dark-blue) !important}

/* Artcile TOC */

.article-TOC {
  display: inline-block;
  width: 100%;
  margin: auto;
  text-align: center;
}

.TOC-item {
  display: inline-block;
  padding: 0px 10px 0px 10px;
  max-width: 160px;
  vertical-align: top;
}

.TOC-item a {
  text-decoration: none;
}

.TOC-item h6 {
  text-transform: uppercase;
  margin-bottom: 5px;
}

.TOC-item p {
  font-size: 14px;
  font-weight: normal;
  -moz-hyphens: none;
  -ms-hyphens: none;
  -webkit-hyphens: none;
  hyphens: none;
}

/* Article headers */

.section-header {
  background-color: var(--palette-purple);
  padding: 10px 20px 10px 20px;
  height: auto;
  overflow: hidden;
  padding-bottom: 40px;
}

.section-header p, .section-header h2, .section-header h6 {
  color: white;
}

.section-header h2 {
  font-size: 34px !important;
  margin-top: 10px !important;
  margin-bottom: 60px !important;
  padding-bottom: 20px;
  border-bottom-width: 1px;
  border-bottom-style: solid;
  border-bottom-color: var(--palette-lilac-bush);
}

.section-header .header-image {
  margin: 0px 20px 0px 20px;
  float: right;
  display: inline-block;
}

.section-header h6 {
  text-transform: uppercase;
  font-weight: normal;
  font-size: 13px !important;
  margin: 10px 0px 10px 0px !important;
}

@media (max-width: 500px) {
  .section-header .header-image {
    float: none;
    text-align: center;
    margin: auto;
  }
}

/* Mailchimp forms */

#mc_embed_signup, #mm-signup-form {
  border-style: solid;
  border-width: 1px;
  border-color: #ccc;
  padding: 10px;
  margin-bottom: 30px;
}

#mc_embed_signup h2, #mm-signup-form h2 {
  text-align: center;
  font-size: 22px !important;
  margin: 20px 0 20px 0 !important;
}

#mm-signup-form h2 {
  font-family: 'Georgia';
  font-weight: bold;
  font-style: italic;
  font-size: 20px !important;
}

#mc_embed_signup input, #mm-signup-form input {
  width: 100%;
  color: black;
}

#mc_embed_signup .button, #mm-signup-form .button {
  background: var(--palette-orange);
  color: white;
  font-size: 18px;
  font-weight: bolder;
}

#mc_embed_signup #mce-FNAME, #mc_embed_signup #mce-EMAIL, #mm-signup-form input {
  margin-bottom: 10px;
  -webkit-box-sizing : border-box;‌​
  -moz-box-sizing : border-box;
  box-sizing : border-box;
}

#mc_embed_signup #mce-responses, .hidden {
  display: none;
}

#mc_embed_signup .foot-note, #mm-signup-form .foot-note {
  color: #666;
  font-size: 12px;
}

.interstitial #mm-signup-form {
  border-right-style: none !important;
  border-left-style: none !important;
}

.interstitial #name {
  float: left;
  width: 48%;
}

.interstitial #email {
  float: right;
  width: 48%;
}

.interstitial .continue {
  color: grey;
  font-size: 12px;
}

.bottom .continue {
  display: none;
}

#mm-signup-form .error {
  color: red;
}

.error-form {
  max-width: 600px;
  margin: auto;
}

/* Thank you pages */

.main-list-background {
  background-image: url("http://matteomanferdini.com/wp-content/uploads/2015/06/main-list-background.jpg");
}

.fundamental-concepts-background {
  background-image: url("http://matteomanferdini.com/wp-content/uploads/2015/06/9-fundamental-concepts-background.jpg");
}

.objective-c-guide-background {
  background-image: url("http://matteomanferdini.com/wp-content/uploads/2015/06/objective-c-guide-for-developers-background.jpg");
}

.optionals-guide-background {
  background-image: url("http://matteomanferdini.com/wp-content/uploads/2015/11/complete-guide-to-swift-optionals-background.jpg");
}

.opaque-box h1, .opaque-box {
  color: white;
}

.bounding-box {
  padding: 0 5em 0 5em;
}

.share-buttons {
  text-align: center;
}

.share-button {
  text-align: center;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  color: white !important;
  font-weight: bold;
  display: inline-block;
  width: 200px;
  padding: 0.5em 0 0.5em 0;
  margin: 0.5em 0.5em 0.5em 0.5em;
}

.facebook {
  background-color: #3B5998;
}

.twitter {
  background-color: #4099ff;
}

.linkedin {
  background-color: #007bb6;
}

.google {
  background-color: #dd4b39;
}

/* Landing pages */

.landing-page .header {
  display:block;
  overflow:auto;
  background-image: url("cream_pixels.png");
  padding: 20px 110px 30px 90px;
  margin-bottom: 30px;
}

.landing-page .title {
  width: 65%;
  float: left;
}

.landing-page h1 {
  font-family: 'Georgia';
  text-transform: none;
  line-height: normal !important;
  font-size: 36px !important;
}

.landing-page .title h2 {
  font-weight: lighter !important;
  font-style: normal;
  font-size: 18px !important;
  color: grey;
}

.landing-page h2 {
    font-size: 24px !important;
    line-height: 1.3em !important;
}

.landing-page .header-image {
  float: right;
}

.landing-page .header-image .tilted {
  box-shadow: 0 0 10px #888888 !important;
  -ms-transform: rotate(5deg); /* IE 9 */
    -webkit-transform: rotate(5deg); /* Chrome, Safari, Opera */
    transform: rotate(5deg);
}

.landing-page .plain-header-image {
  float: right;
}

.landing-page p, .landing-page ul, .landing-page label, .landing-page input, .landing-page span {
  font-weight: lighter;
  font-size: 18px;
}

.landing-page li {
  padding-bottom: 22px !important;
}

.landing-page blockquote {
  border-left-color: var(--palette-purple);
  border-left-width: 10px;
  border-left-style: solid;
}

.cta-link, .cta-link:visited {
  background: var(--palette-orange);
  color: white !important;
  padding: 10px 20px 10px 20px;
  border-radius: 3px;
  background-clip: padding-box;
  text-align: center;
  text-decoration: none;
  font-weight: bolder;
}

.cta-link:hover { background: var(--palette-dark-orange)}


@media (max-width: 888px) {
  .landing-page .title {
    width: 100%;
    float: none;
    text-align: center;
  }

  .landing-page .header-image {
    float: none;
    margin: auto;
  }

  .landing-page .header-image img {
    margin: auto;
  }
}

@media (max-width: 510px) {
  .landing-page .header {
    padding-left: 10px;
    padding-right: 10px;
  }

  .landing-page .title h1 {
    font-size: 28px !important;
  }

  .landing-page .title h2 {
    font-size: 16px !important;
  }
}

/* Utimate Course Landing page */

.ultimate-course-landing-page .header-image {
  float: right;
  margin-top: 60px;
}

.ultimate-course-landing-page .header {
  padding: 20px 40px 30px 40px !important;
}

.ultimate-course-landing-page .title {
  width: 55%;
  float: left;
}

.ultimate-course-landing-page .personal-intro {
  background-image: url("http://matteomanferdini.com/wp-content/uploads/2017/02/headshot.jpg");
  height: 400px;
  background-size: cover;
  background-repeat: no-repeat;
  margin-bottom: 30px;
}

.ultimate-course-landing-page .personal-intro .content {
  color: white;
  float: right;
  width: 40%;
  margin: 50px 50px 0 0;
  font-weight: 600;
  font-style: italic;
}

@media (max-width: 888px) {
  .ultimate-course-landing-page .title {
    width: 100%;
    float: none;
    text-align: center;
  }

  .ultimate-course-landing-page .header-image {
    float: none;
    margin: auto;
  }
}

@media (max-width: 800px) {
  .ultimate-course-landing-page .personal-intro {
    height: auto;
    background-image: none;
  }

  .ultimate-course-landing-page .personal-intro .content {
    color: black;
    float: none;
    width: 100%;
    font-weight: lighter;
  }

  .ultimate-course-landing-page .personal-intro .content-reflow {
    background-image: url("http://matteomanferdini.com/wp-content/uploads/2017/02/headshot.jpg");
    height: 400px;
    background-size: cover;
    background-position: left;
  }
}
