@import url(https://fonts.googleapis.com/css?family=Lato);
@import url(https://fonts.googleapis.com/css?family=EB+Garamond);
@import url(https://fonts.googleapis.com/css?family=Oranienbaum);
@import url(https://fonts.googleapis.com/css?family=Oswald:400,300);

@font-face {
  font-family: "EB Garamond Italic";
  src: url("../fonts/EBGaramondItalic.ttf");
}

/* bootstrap reset fix */
[type=submit] {
    -webkit-appearance: initial;
}

/* Base */

body {
  background: white;
  color: #444;
  font-family: 'EB Garamond', serif;
  font-size: 18px;
  padding: 0 !important;
}

body i,
body em {
  font-family: 'EB Garamond Italic';
  font-style: normal;
}

.container {
  padding: 1em 1em;
}

a {
  transition: all 0.2s linear;
}

a:hover, a:focus, a:active, a:visited{
  background-color: white;
  color: #ff2395;
}

hr {
  height: 1px;
  background-color: #dcdcdc;
  margin: .5em 0;
}

#content {
  min-height: 55vh;
  margin-top: 1em;
}

.italicized { font-style: italic; }
.bolded { font-style: bold; }
.accent-color { color: #ff2395; }

/* Header */

.jumbotron {
  padding: 0;
  margin: 0;
  background-color: #1A1A1A;
}

.jumbotron .container {
  padding: 0;
  margin: 0;
}

.jumbotron .header {
  display: block;
  min-height: 205px;
  width: 100%;
  background-image: url("https://www.currentaffairs.org/static/images/calogo.png");
  background-repeat: no-repeat;
  background-size: 100% auto;
  background-position: center;
  margin: 1em 0 0 0;
}

.jumbotron a.header:hover,.jumbotron a.header:focus,.jumbotron a.header:active,.jumbotron a.header:visited {
  background-color: inherit !important;
  color: inherit !important;
}

.jumbotron .settings-box {
  padding-top: 10px;
  font-family: 'Lato', sans;
  text-align: center;
}

.jumbotron .fa-user {
  border: 1px solid #666;
  border-radius: 50%;
  padding: 3px;
  margin-right: 1px;
  width: 1.5em;
  height: 1.5em;
}

.jumbotron a:hover .fa-user, .jumbotron span:hover .fa-user, .jumbotron .open .fa-user {
  border: 1px solid white;
}

.dark-gray-bg {
    background: #1a1a1a;
}

.jumbotron .settings-box .dropdown {
  text-transform: uppercase;
  font-size: 0.8em;
  color: #666;
}

.jumbotron .dropdown-toggle {
    background: #1a1a1a;
    text-transform: uppercase;
    font-family: 'Lato', sans;
    -webkit-appearance: inherit;
    color: #666;
}

.jumbotron .dropdown-item:hover {
    background-color: transparent;
}

.jumbotron .settings-box .dropdown .name, .jumbotron .settings-box .dropdown a {
  transition: all 0.2s linear;
}

.jumbotron .settings-box .dropdown .name:hover, .jumbotron .settings-box .dropdown a:hover {
  cursor: pointer;
  color: white;
}

.jumbotron .settings-box .dropdown.open .name {
  color: white;
}

.jumbotron .settings-box .dropdown-menu {
  border-radius: 0;
  background-color: #1a1a1a;
  min-width: auto;
}

.jumbotron .settings-box .dropdown-menu::before {
	  margin-left: 10px;
	  width: 0;
	  height: 0;
	  border-left: 5px solid #1a1a1a;
	  border-right: 5px solid #1a1a1a;
	  border-bottom: 5px solid #666;
	  position: absolute;
	  top: -6px;
	  content: "";
}

.jumbotron .settings-box ul {
  border: 1px solid #666;
  list-style: none;
}

.jumbotron .settings-box ul li {
    margin: 3px;
    text-transform: uppercase;
    font-family: 'Lato', sans;
    font-size: 0.8em;
    width: 100%;
}

.jumbotron .settings-box  {
  padding-left: 10px;
}

.jumbotron .settings-box a,
.jumbotron .settings-box a:hover,
.jumbotron .settings-box a:focus,
.jumbotron .settings-box a:active,
.jumbotron .settings-box a:visited {
  background-color: transparent;
  font-family: 'Lato', sans;
  color: #666;
}

.jumbotron .settings-box .login {
  color: #666;
  text-transform: uppercase;
  font-size: 0.8em;
  transition: all 0.2s linear;
}

.jumbotron .settings-box .login:hover {
  cursor: pointer;
  color: white;
}

#login-modal .modal-dialog {
  width: 350px;
}

#login-modal .modal-content {
  border-radius: 0;
  background-color: #f1f1f1;
}

#login-modal input, #login-modal button {
  border-radius: 0;
  font-size: 1em;
  margin: 5px 0;
  font-family: 'Lato';
}

#login-modal form button {
  background-color: #1a1a1a;
  color: #cfcfcf;
  text-transform: uppercase;
  padding: 5px 0;
}

#login-modal .close button {
  font-size: 2em;
  font-weight: normal;
  background-color: transparent;
  border: none;
}

#login-modal .close {
  opacity: 1;
  line-height: 0.7em;
  color: #1a1a1a;
  float: none;
  text-align: right;
}

#login-modal h2, #login-modal h4 {
  text-transform: uppercase;
  text-align: center;
}

#login-modal h2 {
  font-size: 1.8em;
  font-family: "Oranienbaum", serif;
}

#login-modal h4 {
  font-family: 'Lato', sans;
  margin: 20px 0;
  font-size: 1.2em;
}

#login-modal .forgot {
  text-align: right;
}
#login-modal .forgot a {
  font-family: 'Lato', sans;
  color: #1a1a1a;
  text-decoration: underline;
  font-size: 0.8em;
}

#login-modal .subscribe {
  font-family: 'Lato', sans;
  text-align: center;
  font-size: 0.8em;
}

#login-modal .subscribe a {
  text-transform: uppercase;
  text-decoration: underline;
  color: #1a1a1a;
}

ul.nav {
  text-align: center;
  font-family: 'Lato', sans;
  font-size: 13px;
  color: #666;
  background-color: #1A1A1A;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 1em 0;
}

/* Navigation */

.nav li {
  float: none;
  display: inline-block;
}

.nav li a {
  color: #666;
  background-color: #1a1a1a;
}

.nav li a:hover, .nav li a:focus, .nav li a:active {
  color: white;
  background-color: #1a1a1a;
}

li.nav-slash {
  color: #666;
  padding: 0.8em 0 0 0;
}

.dropdown-toggle .nav .open > a, .nav .open > a:focus, .nav .open > a:hover {
  background-color: #1a1a1a;
}

.dropdown-menu > li > a:focus, .dropdown-menu > li > a:hover {
  color: #1a1a1a;
  background-color: rgba(255, 255, 255, 0);
}

/* Index */

#primary-feature a, #secondary-feature a {
  color: #555;
  text-transform: uppercase;
  transition: all 0.2s linear;
}

#primary-feature a:hover, #secondary-feature a:hover,
#primary-feature a:active, #secondary-feature a:active {
  color: #ff2395;
  background-color: white;
}

#primary-feature {
  font-family: 'Oranienbaum';
  text-align: center;
  font-size: 1.1em;
}

#primary-feature h1 {
  font-size: 2.8em;
  text-transform: uppercase;
  margin: .5em 0;
}

#primary-feature img {
  width: 100%;
  padding: 0;
  margin: 0;
}

#secondary-feature {
  margin: 1em 0em;
  font-family: 'Oranienbaum';
  text-align: center;
}

.feature-col {
  padding: 0em 1.5em;
}

#secondary-feature h2 {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 125px;
}

#secondary-feature div.post-featured-image {
  height: 180px;
  overflow: hidden;
  display: block;
}

#more-posts {
  font-family: 'Oranienbaum';
  text-align: center;
}

#more-posts .byline {
  font-size: 1.1em;
}

#more-posts img {
  width: 100%;
}

#more-posts h2 a {
  color: #666;
  text-transform: uppercase;
  transition: all 0.2s linear;
}

#more-posts a:hover, a:focus {
  color: #ff2395;
}

.more-link:link, .more-link:visited{
  color: #666;
  font-size: 1.5em;
  text-transform: uppercase;
}

#subscribe-to-ca {
  border-top: 5px solid black;
  background-color: #f1f1f1;
  text-align: center;
  margin: 1em 0em;
}

#subscribe-to-ca a {
  color: #ff2395;
}

#subscribe-to-ca h3 {
  font-family: 'Oranienbaum';
  color: #ff2395;
  font-size: 1.8em;
  text-transform: uppercase;
  margin-top: 1.2em;
}

#subscribe-to-ca img {
  margin: 3em 0em 2em -1em;
  width: 100%;
}

#subscribe-to-ca p {
  line-height: 1.8em;
  font-size: 1em;
  padding: 1em;
  padding-top: 0.1em;
}

#subscribe-to-ca p a, #subscribe-to-ca p a:hover, #subscribe-to-ca p a:focus, #subscribe-to-ca p a:active, #subscribe-to-ca p a:visited {
  color: #000;
  background-color: transparent;
  text-decoration: none;
}

#subscribe-to-ca h3 a:hover {
  background-color: transparent;
}

/* About */

.about {
  text-align: center;
}

.about img {
  width: 90%;
}

.about p {
  font-family: 'EB Garamond';
  font-size: 1.5em;
  margin: 2em 0;
}

#staff {
  font-family: 'Oranienbaum';
  background-color: #f1f1f1;
  line-height: 3.5em;
  padding: 2.5em;
}

#staff h1 {
  font-size: 2.5em;
  text-transform: uppercase;
}

.small-caps {
  text-transform: uppercase;
  font-weight: bold;
}

.about-side {
  font-family: 'Oranienbaum';
  font-size: 1.2em;
  color: #666;
}

#about-side-quotes p {
  font-family: 'Trebuchet MS';
  font-size: 1em;
}

#about-side-cartoon p {
  font-size: 1em;
  font-style: italic;
}

.about hr {
  margin: 2em 0em;
}

/* Magazine */

.magazine-col {
  padding-right: 3em;
}

.magazine img {
  width: 100%;
  margin: 1em 0em;
}

.magazine h1 {
  text-align: center;
  margin: 0em 0em 1em 0em;
}

.magazine h2, h3 {
  font-family: 'Oranienbaum';
  text-align: center;
  text-transform: uppercase;
}

.magazine h2 { font-size: 2.5em; }
.magazine h3 { font-size: 1.8em; }

.magazine p {
  margin: 1em 0em;
  line-height: 1.7em;
}

.magazine .small-caps {
  font-family: 'Oranienbaum';
}

.magazine ul, .magazine ul li, .post-content ul, .post-content ul li {
  list-style: none;
  margin: 1em 0em;
  padding: 0;
}

.magazine ul li:before, .post-content ul li:before {
  content: '♦ ';
}

#magazine-features {
  font-family: 'Oranienbaum';
  font-size: 1.2em;
  color: #666;
}

#description {
  font-size: .9em;
  text-align: center;
}

/* Posts */

.post-col {
  padding-right: 3em;
}

.post-title h1 {
  font-family: 'Oranienbaum';
  font-size: 2.8em;
  text-transform: uppercase;
  margin: 0em;
}

h2.post-title,
h2.post-title a:link,
h2.post-title a:visited {
  color: #666;
  font-family: 'Oranienbaum';
  font-size: 1.25em;
  text-transform: uppercase;
  margin: .25em 0em;
}

h2.post-title a:hover {
  color: #ff2395;
}

.post-featured-image img {
  width: 100%;
  margin: .5em 0em;
}

.post-excerpt, .byline {
  font-family: 'Oranienbaum';
  font-size: 1.5em;
  color: #444;
  text-align: center;
  font-weight: normal;
  margin: 0;
}

.post-date {
  font-family: 'Oswald';
  text-transform: uppercase;
  font-size: 1.2em;
  font-weight: 300;
  color: #999;
  margin-bottom: .25em;
}

.post-author a:link,
.post-author a:visited {
  color: #666;
  font-family: 'Oranienbaum';
  text-transform: uppercase;
}

.post-author-description {
  font-family: 'EB Garamond Italic';
  text-align: right;
  color: #666;
  padding-left: 2em;
}

.post-author a:hover {
  color: #ff2395;
}

.post-content p {
  line-height: 1.7em;
  font-size: 1em;
  margin: 1em 0em;
}

.post-content > p:first-child:first-letter {
  float: left;
  font-size: 6.25em;
  line-height: 1em;
  margin: 0px 5px -15px 0;
  font-family: 'Oranienbaum';
  font-style: normal;
}

.post-content > p:last-child:after {
  content: ' ♦';
}

.post-content a {
  color: #ff2395;
}

.post-content blockquote {
  border: 0;
  border-top: 2px solid #dcdcdc;
  border-bottom: 2px solid #dcdcdc;
  font-size: 36pt;
  font-family: "Oranienbaum", serif;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
}

.post-content blockquote p {
  margin: 0;
  line-height: 1.15em;
}

.post-content em {
  font-family: 'EB Garamond Italic';
}

.post-footer-ad p {
  margin-top: 1em;
  font-weight: bold;
  text-align: center;
  font-family: Garamond;
  font-variant: small-caps
}

.post-footer-ad a {
  color: #ff2395;
}

/* Side */

#more-current-affairs h2 {
  text-transform: uppercase;
  color: #ff2395;
  font-size: 1.2em;
  font-family: 'Oswald';
  font-weight: 300;
  letter-spacing: 1;
  padding-bottom: .3em;
  text-align: center;
  margin: 1em 0em .5em 0em;
}

#more-current-affairs a {
  font-size: 1.1em;
  font-family: 'Oranienbaum';
  text-transform: uppercase;
  text-decoration: none;
  color: #555;
  transition: all 0.2s linear;
  margin: 0em;
}

#more-current-affairs a:hover {
  color: #ff2395;
}

#more-current-affairs hr {
  height: 1px;
  background-color: #999;
}

.fb-page div,
div.fb-page.fb_iframe_widget {
  margin: 1em 0em;
}

.sidebar-ad img {
  width: 100%;
}


/* Footer */

footer {
  color: #666;
  background-color: #1A1A1A;
  bottom: 0px;
  width: 100%;
  height: 200px;
  padding: 3em 0;
  font-size: .8em;
}

#copyright {
  font-family: 'EB Garamond';
  font-size: 1em;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Subscribe */

.subscribe-form .inactive {
  display: none;
}

.subscribe-form {
  margin: 0em 3em;
}

.heading, .info {
  font-family: 'Oranienbaum';
  font-size: 1.5em;
  margin: 1em 0em .8em 0em;
  border-bottom: 3px solid black;
  width: 100%;
}

.subheading {
  font-family: 'Oranienbaum';
  line-height: 2em;
  margin: 1em 0em 0em 0em;
}

.shipping-choice {
  margin: 2em 0em;
}

.radio-line input[type="radio"], .radio-line input[type="checkbox"] {
  margin: .5em .5em 0em 0em;
}

.radio-line input[type="radio"], .radio-line input[type="checkbox"] {
  margin: .5em .5em 0em 0em;
}

.generic-form label {
  font-weight: 400;
  padding: 0em .5em 0em 0em;
  margin: .5em 0em;
}

.gift-information {
  margin: 3em 0em;
}

.information label {
  width: 100px;
}

button.generic {
  margin: 3em 0em 0em 0em;
  line-height: 1.8em;
  background-color: #000;
  color: white;
  text-transform: uppercase;
  border: 0;
  padding: 5px 20px;
}

.lock {
  background-image: url("https://www.currentaffairs.org/static/images/lock.png");
  height: 35px;
  margin: auto;
  display: inline-block;
  width: 25px;
  margin-left: 10px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 3em;
  vertical-align: bottom;
  margin-bottom: 2px;
}

.subscribe-form .total {
  border-bottom: 2px solid black;
}

.total .name {
  font-family: 'Oranienbaum';
  font-size: 1.5em;
  text-transform: uppercase;
  margin: 1em .5em 1em 0em;
}

input#cc_month { width: 50px; }
input#cc_year { width: 70px; }

#subscription-heading {
  font-family: 'Oranienbaum';
  font-size: 1.5em;
  margin: 1em;
  border-bottom: 3px solid black;
}

#subscribe-sidebar {
  padding: 0em 2em;
}

#subscribe-sidebar img {
  display: block;
  margin: 1em auto;
  width: 50%;
}

/* Donate */

#donate\.amount {
  margin: 0em .4em;
  width: 100px;
}

#donate\.name, #donate\.email, #donate\.address, .donate-rest .cc_row input {
  width: 300px;
  resize: none;
}

#donate\.address {
  margin: .5em 0em;
  height: 4em;
}

#donate-sidebar {
  text-align: center;
  padding: 1em 0em;
  max-width: 500px;
}

#donate-sidebar img {
  display: block;
  margin: 1em auto;
  width: 50%;
}

#content .single-page-content, #content .redeem-content {
  background-image: none;
  padding-left: 0;
  height: auto;
}


/* Mobile and Tablet */

@media only screen and (max-width : 768px) {
  #content {
    margin-top: 0em;
  }

  .jumbotron .header {
    min-height: 100px;
    background-size: 125% auto;
  }

  .jumbotron .settings-box {
    padding-top: 10px;
  }

  .front-page-container {
    padding: 0em;
  }

  #secondary-feature h2 {
    display: block;
    height: 100%;
  }

  .feature-col {
    margin: 1em 1em 2em;
  }

  div.feature-col:nth-child(2) {
    border: none;
  }

  .post-container {
    padding: 0em;
  }

  .post-title h1 {
    font-size: 2.75em;
  }

  .post-col {
    width: 100%;
    padding: 1em;
  }

  .post-content {
    text-align: justify;
  }

  .subscribe-form {
    margin: 0em 1em;
  }

  .information input {
    width: 100%;
  }

  #donate\.amount, #donate\.name, #donate\.email, #donate\.address, .donate-rest .cc_row input {
    max-width: 60%;
  }
  .donation-rest input {
    width: 100px;
  }

  #more-posts img {
    width: 100%;
  }
}

@media only screen and (min-width: 769px) {
  .front-page-container {
    padding: 0em 3em;
  }

  .post-container {
    padding: 1em 5em;
  }
}

@media only screen and (min-width: 992px)  {
  div.feature-col:nth-child(2) {
    border-left: 1px solid #DCDCDC;
    border-right: 1px solid #DCDCDC;
  }

  #primary-feature h1 {
    margin: 0em 0em .5em;
  }
}

@media screen and (min-width: 992px) and (max-width: 1200px) {
  .primary-feature-img, .primary-feature-info {
    margin: 0 0 1em;
    width: 100%;
  }
}

@media only screen and (min-width: 1200px) {
  #more-posts img {
    max-height: 180px;
    padding-right: 1em;
  }
}

/* Settings */

.settings-left, .settings-right {
  text-align: center;
  display: inline-block;
  vertical-align: top;
}

.settings-left, .settings-right {
  width: 40%;
}

/* Store  */

.store h1 {
  font-family: 'Oranienbaum';
  font-size: 3em;
  text-transform: uppercase;
  text-align: center;
  margin: 0em auto .5em;
}

.store p {
  text-align: center;
  font-size: 1.1em;
}

.store-sidebar {
  padding: 0em 2em;
}

.store-sidebar p {
  text-align: center;
  font-size: 1.25em;
  padding: 1.5em 0em;
  margin: 1em auto;
  border-top: 2px solid #555;
  border-bottom: 2px solid #555;
}

.store-sidebar img {
  width: 100%;
}

.cart {
  text-transform: uppercase;
  text-align: right;
  padding: 1em;
}

.cart a, .cart a:visited {
  font: .8em bold 'Lato';
  color: black;
}

.cart a:hover {
  color: #ff2395;
}

.products {
  text-align: center;
}

.products .item, .issues .item {
  margin-top: 40px;
  min-height: 500px;
}

.products .item .title {
  text-align: center;
  font-family: 'Lato', sans;
  font-size: .9em;
  text-transform: uppercase;
  margin: 1em auto;
}

.products .item .description,
.products .item .price {
  display: block;
  font-family: 'Lato', sans;
  font-style: italic;
  font-size: .8em;
  text-align: center;
}

.products .item .price {
  color: #555;
  margin: .5em;
}

.products .item .picture {
  max-height: 500px;
  display: flex;
}

.products .item .picture img {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products .item a.add-to-cart:link {
  font-family: 'Lato', sans;
  color: white;
  padding: .5em 1em;
  font-size: .75em;
  background-color: black;
  text-transform: uppercase;
}

.products .item a.add-to-cart:hover {
  color: white;
  background-color: #ff2395;
}

#checkout-inner table.products {
    width: 550px;
    margin: 20px;
    border-collapse: collapse;
    border-spacing: 1px;
}

#checkout-inner tr.headings {
    color: #666;
}

#checkout-inner tr.product {
    border-bottom: #000 dotted 2px;
}

#checkout-inner td {
    padding: 6px;
}

#checkout-inner tr.total td {
    padding-top: 20px;
}

#checkout-inner td.q {
    width: 40px;
    text-align: center;
}

#checkout-inner tr.product td.q div {
    margin: 3px;
    border: 1px solid #ccc;
    padding: 3px;
}

#checkout-inner tr.product td.r {
    width: 15px;
}

#checkout-inner tr.product td.r a {
    display: block;
    width: 15px;
    height: 15px;
    background-image: url("../images/auth/remove_item.png");
    background-repeat: no-repeat;
}

#checkout-inner tr.product td.r a:hover {
    background-image: url("../images/auth/remove_item_mo.png");
}

#checkout-inner td.n {
    padding-left: 30px;
}

#checkout-inner td.a {
    width: 60px;
}

#checkout-inner tr.separator {
    border-top: #000 solid 2px;
}

#checkout-inner td.total {
    padding-left: 380px;
}

#checkout-inner .security {
  display: none;
}
