/* ****** Mixins */
/**
 * Convert font-size from px to rem with px fallback
 *
 * @param $size - the value in pixel you want to convert
 *
 * e.g. p {@include fontSize(12px);}
 *
 */
/* ****** functions */
/*
https://css-tricks.com/snippets/sass/px-to-em-functions/
EXAMPLES:
h1 {
  font-size: em(32);
}

// is the same as:

h1 {
  font-size: em(32px);
}
*/
/* ****** Variables */
/* ****** Colors */
/* ****** Color Variables */
/* ****** Sizes */
/* ****** Fonts */
/* ****** Shared Partials */
/* ****** Shared Partials */
/* ****** Variables */
/* ****** Colors */
/* ****** Color Variables */
/* ****** Sizes */
/* ****** Fonts */
.Thumbnail {
  border: 1px solid #d2d2d2;
  display: block;
  width: 100%;
  height: auto;
}

.ArticleItem {
  width: 1200px;
  display: block;
  color: #2a2a2a;
  overflow: hidden;
  margin: 0 auto 34px auto;
}
.ArticleItem-thumbnail, .ArticleItem-info, .ArticleItem-avatar {
  float: left;
}
.ArticleItem-title {
  font-family: "OpenSansBold", "HelveticaNeue", "Helvetica Neue", helvetica, arial, sans-serif;
  margin: 25px 0 12px;
}
.ArticleItem-thumbnail {
  width: 400px;
}
.ArticleItem-info {
  width: 665px;
  padding: 0 33px;
  vertical-align: top;
}
.ArticleItem-timestamp {
  font-size: 1.0625em;
}
.ArticleItem-avatar {
  padding: 20px 25px 0 0;
}

/* ****** Variables */
.VideoItem {
  position: relative;
  display: block;
  max-width: 1200px;
  margin: 0 auto 35px auto;
}
.VideoItem::before {
  content: "";
  position: absolute;
  height: 125px;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, black, transparent);
}
.VideoItem-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}
.VideoItem-info {
  position: absolute;
  padding: 0 36px 32px;
  left: 0;
  bottom: 0;
}
.VideoItem:hover .VideoItem-icon > svg {
  transform: scale(1.25);
}
.VideoItem-icon {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  text-align: center;
}
.VideoItem-icon > svg {
  transition: transform 250ms;
}
.VideoItem-title, .VideoItem-desc {
  color: white;
}
.VideoItem-title {
  font-size: 1.875em;
}
.VideoItem-desc {
  font-size: 17px;
  margin: 0;
  width: 940px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ===[ COMPASS ]=== */
/* ****** Functions */
/*
https://css-tricks.com/snippets/sass/px-to-em-functions/
EXAMPLES:
h1 {
  font-size: em(32);
}

// is the same as:

h1 {
  font-size: em(32px);
}
*/
/* ****** Variables */
/*
Styling in order to affect the svg icons when using use. See http://tympanus.net/codrops/2015/07/16/styling-svg-use-content-css/
*/
#article-icon path,
#video-icon path {
  fill: inherit;
}

.VideoExtras {
  font-size: 1rem;
  background: #d0210d;
  max-width: 1200px;
  margin: 0 auto 2.1875em auto;
  padding: 1.3125em 1.3125em 0.5em;
  overflow: hidden;
}
.VideoExtras-extraTxt {
  float: left;
}
.VideoExtras-list {
  list-style: none;
  float: left;
  padding: 0;
  margin: 0;
}
.VideoExtras-item {
  display: inline-block;
  margin-right: 0.8125em;
  margin-bottom: 0.8125em;
  background: #dedfdf;
  border-radius: 5px;
}
.VideoExtras-item:hover {
  background-color: #aaadad;
  -moz-transition-property: background-color;
  -o-transition-property: background-color;
  -webkit-transition-property: background-color;
  transition-property: background-color;
  -moz-transition-duration: 0.2s;
  -o-transition-duration: 0.2s;
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
}
.VideoExtras-itemLink {
  font-size: 1.0625em;
  line-height: 1.35294em;
  padding: 0.94118em 1.17647em;
  display: inline-block;
}
.VideoExtras-item:last-of-type {
  margin-right: 0;
}
.VideoExtras-videoIcon, .VideoExtras-articleIcon {
  display: inline-block;
  height: 1.0625em;
  margin-right: 1.17647em;
  vertical-align: text-top;
}
.VideoExtras-articleIcon > use, .VideoExtras-videoIcon > use {
  fill: #d0210d;
}

.VideoItem + .VideoExtras {
  margin-top: -2.5em;
  padding-top: 1.625em;
  position: relative;
}

.Article .VideoExtras {
  font-size: .8rem;
}

/* ===[ MIXINS ]=== */
/* ===[ SHARED PARTIALS ]=== */
/* ===[ VARIABLES ]=== */
/* ****** Colors */
/* ****** Color Variables */
/* ****** Sizes */
/* ****** Fonts */
/* ===[ FUNCTIONS ]=== */
/*
https://css-tricks.com/snippets/sass/px-to-em-functions/
EXAMPLES:
h1 {
  font-size: em(32);
}

// is the same as:

h1 {
  font-size: em(32px);
}
*/
.Poll {
  min-width: 1200px;
  max-width: 1600px;
  position: relative;
  margin: 0 auto 35px;
  text-align: center;
  border-radius: 4px;
  font-size: 1rem;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}
.Poll::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 5;
}
.Poll-container {
  height: 100%;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  width: 100%;
  z-index: 10;
}
.Poll-heading {
  font-size: 3.75em;
  color: #FFF;
}
.Poll-optionListContainer {
  list-style-type: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.Poll-optionContainer {
  display: inline-block;
  position: relative;
  margin: 1em .5em;
  padding: 7.14286%;
  border-radius: 50%;
}
.Poll-percentage {
  position: absolute;
  bottom: -2em;
  left: 45%;
  color: #FFF;
  font-style: normal;
  font-weight: bold;
}
.Poll-postVoteMessage {
  background: #c8c8c8;
  height: 100%;
  left: 0;
  opacity: .8;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 10;
}

.Poll--voted .Poll-optionContainer::before,
.Poll--showResults .Poll-optionContainer::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: transparent;
  z-index: 10;
}

.EnhancedVideo .Poll,
.Article .Poll {
  min-width: 850px;
  font-size: .8rem;
}

.EnhancedVideo .Poll {
  border-radius: 0;
  margin-bottom: 0;
}
.EnhancedVideo .Poll .Poll-badge {
  display: none;
}

/* ===[ COMPASS ]=== */
/* ===[ VARIABLES ]=== */
/* ****** Colors */
/* ****** Color Variables */
/* ****** Sizes */
/* ****** Fonts */
/* ===[ LOCAL VARIABLES ]=== */
.PollOption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: .8em;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  outline: none;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1.125em;
  word-wrap: break-word;
  overflow: hidden;
}
.PollOption::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background-color: whitesmoke;
  z-index: -1;
}
.PollOption:active {
  transform: scale(0.95);
}
.PollOption-sanityCheck {
  opacity: 1;
  position: absolute;
  margin-top: 200px;
}
@media all and (max-width: 1550px) {
  .PollOption {
    font-size: 1.125em;
  }
}
@media all and (max-width: 1200px) {
  .PollOption {
    font-size: 1em;
  }
}

.PollOption--voted .PollOption-word::before {
  content: '\2713';
  margin: 0 .25em 0 0;
}

.Poll--showResults.Poll--allowHover .Poll-container:hover .PollOption {
  opacity: 1;
  -moz-transition-duration: 0;
  -o-transition-duration: 0;
  -webkit-transition-duration: 0;
  transition-duration: 0;
}

.Poll--allowHover {
  /* Setting the hover effect on the whole container looks better than only on the options container IMO */
}
.Poll--allowHover .PollOption:hover::after {
  background-color: gainsboro;
}
.Poll--allowHover .Poll-container:hover .PollOption {
  opacity: .5;
  -moz-transition-property: opacity;
  -o-transition-property: opacity;
  -webkit-transition-property: opacity;
  transition-property: opacity;
  -moz-transition-duration: 0.2s;
  -o-transition-duration: 0.2s;
  -webkit-transition-duration: 0.2s;
  transition-duration: 0.2s;
}
.Poll--allowHover .Poll-optionListContainer .PollOption:hover {
  opacity: 1;
}
.Poll--allowHover .Poll-optionListContainer .PollOption:hover .PollOption-word {
  display: none;
}
.Poll--allowHover .Poll-optionListContainer .PollOption:hover .PollOption-sanityCheck {
  position: static;
  opacity: 1;
  margin-top: 0;
}

.EnhancedVideo .PollOption,
.Article .PollOption {
  font-size: .9rem;
}

.PlugItem {
  margin: 0 auto 35px auto;
  display: block;
  width: 1200px;
}
.PlugItem-thumbnail {
  border-radius: 4px;
  display: block;
  overflow: hidden;
  width: 100%;
}

.ContentStream {
  padding-bottom: 75px;
}
.ContentStream-heading {
  font-size: 3em;
  text-align: center;
  margin: 20px;
}
.ContentStream-item {
  border: 1px solid #d2d2d2;
  background: white;
  margin-bottom: 10px;
}
.ContentStream-item-info {
  list-style: none;
  margin: 20px;
  padding: 0;
}

.ContentStream--loading::after {
  content: "";
  display: block;
  width: 50px;
  height: 50px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-image: url("/Content/Platform/screen-junkies/img/sj-popcorn-loading-indicator.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  -webkit-animation: spin 1s infinite linear;
  -moz-animation: spin 1s infinite linear;
  -o-animation: spin 1s infinite linear;
  animation: spin 1s infinite linear;
}

@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-moz-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-o-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
