/*
 * Copyright (c) 2018 Eclipse Foundation, Inc.
 * 
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v. 2.0 which is available at
 * http://www.eclipse.org/legal/epl-2.0.
 * 
 * Contributors:
 *   Eric Poirier <eric@eclipse.org>
 * 
 * SPDX-License-Identifier: EPL-2.0
*/

// eclipse.org/neon styles

@font-face {
  font-family: 'clipregular';
  src: url('/neon/fonts/clip-webfont.eot');
  src: url('/neon/fonts/clip-webfont.eot?#iefix') format('embedded-opentype'),
       url('/neon/fonts/clip-webfont.woff2') format('woff2'),
       url('/neon/fonts/clip-webfont.woff') format('woff'),
       url('/neon/fonts/clip-webfont.ttf') format('truetype'),
       url('/neon/fonts/clip-webfont.svg#clipregular') format('svg');
  font-weight: normal;
  font-style: normal;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
}

// Mixins

.text-glow(@color) {
  text-shadow: 0 0 5px @color, 0 0 10px @color, 0 0 20px @color, 0 0 30px @color, 0 0 40px darken(@color,20%), 0 0 55px darken(@color,20%);
}

.box-glow(@color) {
  box-shadow: 0 0 5px @color, 0 0 10px @color, 0 0 20px @color, 0 0 30px @color, 0 0 40px darken(@color,20%), 0 0 55px darken(@color,20%);
}

.btn-glow(@color) {
  box-shadow:0px 0px 15px 2px @color,@color 0 0 11px 3px inset;
  &:hover{
    box-shadow:0px 0px 20px 3px @color,@color 0 0 24px 5px inset;
  }
}

@keyframes blink-one {
  0%,19.999%,22%,62.999%,64%, 64.999%,70%,100% {
    opacity:1;
    .text-glow(@purple);
  }
  20%,21.999%,63%,63.999%,65%,69.999% {
    opacity:0.4;
    text-shadow: none;
  }
}
@keyframes blink-two {
  0%,12%,18.999%,23%,31.999%,37%,44.999%,46%,49.999%,51%,58.999%,61%,68.999%,71%,85.999%,96%,100% {
    opacity:1;
    .text-glow(@purple);
  }
  19%,22.99%,32%,36.999%,45%,45.999%,50%,50.99%,59%,60.999%,69%,70.999%,86%,95.999% {
    opacity:0.4;
    text-shadow: none;
  }
}

.gradient-bg(@color1, @color2) {
  background: lighten(@color1, 20%); /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left top, lighten(@color1, 20%), lighten(@color2, 20%)); /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(bottom right, lighten(@color1, 20%), lighten(@color2, 20%)); /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(bottom right, lighten(@color1, 20%), lighten(@color2, 20%)); /* For Firefox 3.6 to 15 */
  background: linear-gradient(to bottom right, lighten(@color1, 20%), lighten(@color2, 20%)); /* Standard syntax */
}

// Variables

@white:#fff;
@black:#000;
@purple:#922596;
@pink:#ce08d7;
@blue:#2175c0;
@green:#1fc139;
@yellow:#e2d313;
@brown:#d89810;

.neon-container {
  font-family: 'Lato', 'Open Sans', 'Arial', sans-serif;
  color:@white;
  font-weight:300;
}

.span-block{
  span{
    display:block;
  }
}

// Container
.neon-container {
  background-image:url("/neon/images/neon-bg.jpg");
  //background-size:100%;
  background-position:top left;
  background-repeat:y-repeat;
  background-color:@black;
}

// Header
.neon-header{
  background-image:url("/neon/images/header-swirls.png");
  background-size:100%;
  @media (min-width: 768px) {
    background-size:70%;
  }
  background-repeat:no-repeat;
  background-position:top left;
  text-align:center;
  &:after{
    content:"";
    display:block;
    height:4px;
    width:100%;
    background-color:@white;
    box-shadow:0px 0px 3px 3px #0332b8;
    margin-top:50px;
  }
  .container{
    padding:30px 0;
    @media (min-width: 992px) {
      padding:60px 0;
      min-height:350px;
    }
  }
  .other-packages-link{
    color:@white;
    text-decoration:underline;
    font-weight:300;
  }
}

.neon-header-h1 {
  margin-bottom: 0;
  margin-top:0;
  line-height: 1;
  span {
    color:@white;
  }
}

.neon-title {
  font-family: 'clipregular', sans-serif;
  font-size:110px;
  @media (min-width: 992px) {
    font-size:180px;
  }
  .text-glow(@purple);
  position:relative;
  &:after{
    content:"";
    display:block;
    background-image:url('/neon/images/neon-header-arrow.png');
    background-size:100%;
    background-repeat:no-repeat;
    position:absolute;
    width: 60px;
    height: 140px;
    bottom: -128px;
    right: -17px;
    @media (min-width: 992px) {
      width:116px;
      height:166px;
      bottom: -129px;
      right: -70px;
    }
  }
}

.blink-one{
  animation: blink-one 20s linear infinite;
}

.blink-two{
  animation: blink-two 25s linear infinite;
}

.neon-year{
  color:@white;
  font-size:36px;
  @media (min-width: 992px) {
    font-size:48px;
  }
  margin-bottom:20px;
  display:block;
}

.neon-content {
  background-color:rgba(0,0,0,0.8);
}

.neon-redirect{
  padding:20px 0 0;
  width:100%;
  &:after{
    content:"";
    display:block;
    height:4px;
    width:100%;
    background-color:@white;
    box-shadow:0px 0px 3px 3px #0332b8;
    margin-top:20px;
  }
  p{
    margin:0;
  }
}

.neon-redirect-link{
  color:white;
  &:hover, &:active, &:visited{
    color:white;
    text-decoration:underline;
  }
}

// Section

.neon-section{
  padding:20px 0;
  h2,h3 {
    font-family: 'clipregular', sans-serif;
    color:@white;
  }
  .social-news-date{
    font-size:10px;
  }
  a{
    color:@white;
  }
}

// Titles
.noteworthy-h2{
  .text-glow(@pink);
}

.resources-h2{
  .text-glow(@green);
}

.social-h2 {
  font-size: 100px;
  position:relative;
  margin-top: -30px;
  @media (min-width: 992px) {
    font-size: 130px;
  }
  line-height: 0.8;
  .text-glow(@blue);
  span.small-social-h2{
    font-size:0.5em;
    color:@white;
  }
}

.news-h3 {
  .text-glow(@pink);
  font-size:32px;
}

.social-h3{
  .text-glow(@yellow);
  font-size:39px;
  text-align:center;
}

.social-h4 {
  font-size:16px;
  font-weight:700;
  color:@white;
  margin-top:0;
}

.web-series-h3{
  .text-glow(@brown);
}


// Circles
.neon-circle{
  background-color:@white;
  border-radius:100px;
  display:block;
  width:24px;
  height:24px;
  color:@black;
  text-align: center;
  padding-top: 2px;
}

.neon-circle-pink{
  .box-glow(@pink);
  .gradient-bg(@pink, @white);
}
.neon-circle-blue{
  .box-glow(@blue);
  .gradient-bg(@blue, @white);
}
.neon-circle-green{
  .box-glow(@green);
  .gradient-bg(@green, @white);
}
.neon-circle-yellow{
  .box-glow(@yellow);
  .gradient-bg(@yellow, @white);
}

// Buttons
.btn-neon{
  background:transparent;
  border:1px solid @white;
  border-radius:5px;
  color:@white;
  padding:8px 30px;
  &:hover{
    color:@white;
  }
}

.btn-download{
  .btn-glow(@purple);
  background-color:@purple;
  border-color:lighten(@purple, 10%);
}

.btn-neon-pink{
  .btn-glow(@pink);
}

.btn-neon-blue{
  .btn-glow(@blue);
}

.btn-neon-green{
  .btn-glow(@green);
}

.btn-neon-yellow{
  .btn-glow(@yellow);
}

.btn-neon-brown {
  .btn-glow(@brown);
}

.btn-white-text{
  color:@white;
  &:active,
  &:focus,
  &:visited,
  &:hover{
    color:@white;
  }
}

.btn-same-width{
  @media (min-width: 768px) {
    width:100%;
  }
  @media (max-width: 768px) {
    width:200px;
  }
}


// Donate

.neon-donate-text {
  font-size:24px;
  @media (min-width: 768px) {
    margin-top: 60px;
  }
  strong{
    .text-glow(@pink);
  }
}

// News

.neon-well {
  margin-bottom:5px;
  width:100%;
  white-space:inherit;
  text-align:left;
  text-transform:none;
  font-weight:inherit;
}

.neon-news-item{
  @media (max-width: 768px) {
    border-bottom: 1px solid #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
}

// Web series

.web-series-dates {
  @media (max-width: 767px) {
    color:darken(@white, 30%);
    border-top:1px solid darken(@white, 30%);
    margin-top:5px;
    padding-top:5px;
  }
}

// Twitter

.neon-timeline {
  margin-bottom:20px;
}

.eclipse-logo{
  padding:30px 0;
}

.list-no-margin{
  margin-left:0;
}

.white {
  color:@white;
}