/*
	*********************************************************************************************************************
	Custom SASS - UPV
	Tasks: Html / Css / jQuery
	Client: UPV
	Version: 1.0
	********************************************************************************************************************
*/
/* *********************************************************************************************************************
 * IMPORTS
 */
@import url(normalize.css);
@import url(animate.min.css);
@import url(grid.css);
/* *********************************************************************************************************************
 * VARS
 */
/* *********************************************************************************************************************
 * GLOBAL
 */
@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;700&display=swap");
* {
  margin: 0;
  padding: 0;
}

body, html {
  overflow: hidden;
  font-family: 'Rubik', sans-serif;
  font-size: 14px;
  color: #aaa;
  background: #222;
}

p {
  line-height: 1.6;
}

a, a:before, a:after {
  text-decoration: none;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

a:hover, a:active, a:focus {
  outline: none;
}

a.default-link {
  color: #000;
}

a.accent-link {
  color: #08c2c0;
}

a.white-link {
  color: #fff;
}

a.grey-link {
  color: #868789;
}

a.dark-link {
  color: #4D4D4D;
}

a.black-link {
  color: #000;
}

a.default-link:hover {
  color: #888;
}

a.grey-link:hover {
  color: #000;
}

a.white-link:hover, a.dark-link:hover, a.black-link:hover {
  color: #08c2c0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
}

h1 {
  font-size: 23px;
  color: #fff;
}

h2 {
  padding-bottom: 8px;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #08c2c0;
}

strong, .bold {
  font-weight: 700;
}

button {
  font-family: 'Rubik', sans-serif;
}

textarea:focus, select:focus, input:focus {
  outline: 0;
}

.colored {
  color: #08c2c0;
}

ul li {
  list-style: none;
}

.disabled {
  pointer-events: none;
  cursor: default;
}

.padded {
  padding: 0 5px;
}

/* *********************************************************************************************************************
 * LAYOUT
 */
.rwd-break,
.hidden {
  display: none;
}

::selection {
  background: #08c2c0;
  color: #000;
}

::-moz-selection {
  background: #08c2c0;
  color: #000;
}

@-moz-document url-prefix() {}
/* *********************************************************************************************************************
 * CONTENT > GLOBALS
 */
canvas {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  vertical-align: bottom;
}
canvas:active {
  cursor: pointer;
  cursor: -webkit-grabbing;
}

#canvas-container {
  margin: 0;
  padding: 0;
  opacity: 0;
}

.main {
  position: absolute;
  pointer-events: none;
  top: 40px;
  left: 40px;
  opacity: 0;
}
.main #projects_bt {
  pointer-events: auto;
  margin-left: 3px;
  padding: 2px 10px;
  font-size: 11px;
  color: #fff;
  background-color: #08c2c0;
  border-radius: 12px;
}
.main #projects_bt:hover {
  padding: 2px 14px;
  background-color: #fff;
  color: #08c2c0;
}
.main .controls {
  position: relative;
  pointer-events: none;
  left: -150px;
  opacity: 0;
}
.main .gravity {
  margin-top: 40px;
  pointer-events: auto;
}
.main .destroy,
.main .explosion,
.main .colorize {
  margin-top: 10px;
  pointer-events: auto;
}

.projects-active #projects_bt {
  pointer-events: none;
  padding: 2px 14px;
  background-color: #fff;
  color: #08c2c0;
}

input[type="checkbox"] {
  /* on checked */
}
input[type="checkbox"]:not(:checked), input[type="checkbox"]:checked {
  position: absolute;
  left: -9999px;
}
input[type="checkbox"]:not(:checked) + label, input[type="checkbox"]:checked + label {
  position: relative;
  padding-left: 55px;
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
input[type="checkbox"]:not(:checked) + label:before, input[type="checkbox"]:not(:checked) + label:after, input[type="checkbox"]:checked + label:before, input[type="checkbox"]:checked + label:after {
  content: '';
  position: absolute;
}
input[type="checkbox"]:not(:checked) + label:before, input[type="checkbox"]:checked + label:before {
  left: 0;
  top: -3px;
  width: 45px;
  height: 20px;
  background: #ccc;
  border-radius: 15px;
  -webkit-transition: background-color 0.2s ease;
  -moz-transition: background-color 0.2s ease;
  -ms-transition: background-color 0.2s ease;
  -o-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
  transition: background-color .2s;
}
input[type="checkbox"]:not(:checked) + label:after, input[type="checkbox"]:checked + label:after {
  width: 16px;
  height: 16px;
  top: -1px;
  left: 3px;
  border-radius: 50%;
  background: #999;
  -webkit-transition: all 0.2s ease;
  -moz-transition: all 0.2s ease;
  -ms-transition: all 0.2s ease;
  -o-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
input[type="checkbox"]:not(:checked) + label .ui, input[type="checkbox"]:not(:checked) + label .ui:before, input[type="checkbox"]:not(:checked) + label .ui:after, input[type="checkbox"]:checked + label .ui, input[type="checkbox"]:checked + label .ui:before, input[type="checkbox"]:checked + label .ui:after {
  position: absolute;
  left: 4px;
  top: 0;
  width: 45px;
  border-radius: 15px;
  font-size: 10px;
  line-height: 15px;
}
input[type="checkbox"]:checked + label:before {
  background: #08c2c0;
}
input[type="checkbox"]:checked + label:after {
  background: #fff;
  left: 26px;
}
input[type="checkbox"]:not(:checked) + label .ui:before {
  content: "OFF";
  left: 18px;
  color: #888;
  font-weight: 400;
}
input[type="checkbox"]:checked + label .ui:after {
  content: "ON";
  color: #fff;
  font-weight: 400;
}
input[type="checkbox"]:focus + label:before {
  box-sizing: border-box;
}

input[type="button"] {
  width: 45px;
  height: 20px;
  border: 0;
  -webkit-border-radius: 15;
  -moz-border-radius: 15;
  border-radius: 15px;
  color: #ffffff;
  font-size: 10px;
  background: #08c2c0;
  padding: 7px 20px 10px 8px;
  text-decoration: none;
  text-align: center;
  margin-top: 8px;
  pointer-events: auto;
}

@-moz-document url-prefix() {
  input[type="button"] {
    padding: 4px 20px 10px 8px;
  }
}
.info {
  position: absolute;
  top: 45px;
  right: 40px;
  pointer-events: none;
  text-align: right;
}
.info div {
  height: 25px;
}
.info div div {
  display: inline-block;
  vertical-align: middle;
}
.info a {
  pointer-events: auto;
}
.info .txt {
  display: none;
  font-size: 12px;
  line-height: 1.6;
  color: #999;
}
.info .txt a {
  color: #fff;
}
.info .txt a:hover {
  color: #08c2c0;
}
.info .icon {
  padding-left: 3px;
}
.info .icon a {
  opacity: 0.5;
}
.info .icon a:hover {
  opacity: 1;
}

.help {
  position: absolute;
  pointer-events: none;
  width: 100%;
  bottom: -30px;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
}
.help > span {
  vertical-align: top;
  margin-left: 5px;
  padding: 0 5px;
  font-size: 12px;
  line-height: 20px;
  color: #000;
  background-color: #08c2c0;
}
.help > span span {
  display: none;
}

/* *********************************************************************************************************************
 * WINDY - PROJECTS
 */
.projects {
  position: absolute;
  display: none;
  top: 50%;
  left: 50%;
  margin: -200px 0 0 -210px;
}

#close_bt {
  position: absolute;
  display: none;
  left: 50%;
  margin: -80px 0 0 -17px;
}

#grid_mode_bt {
  display: inline-block;
  position: relative;
  left: 50%;
  margin: 30px 0 0 -10px;
  opacity: 0;
}

ul.wi-container {
  position: relative;
  list-style-type: none;
  width: 420px;
  height: 320px;
  padding: 0;
  perspective: 1400px;
}
ul.wi-container li {
  position: absolute;
  display: none;
  pointer-events: auto;
  user-select: none;
  top: 0;
  left: 0;
  width: 400px;
  height: 330px;
  margin: 0;
  padding: 0;
  background-color: #fff;
  border: 10px solid #fff;
}
ul.wi-container li.wi-move {
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
  transition: transform 1200ms cubic-bezier(0.19, 1, 0.22, 1), opacity 600ms ease, left 600ms ease, top 600ms ease;
}
ul.wi-container li a {
  display: block;
}
ul.wi-container li a:hover img {
  -moz-transform: scale(0.97);
  -o-transform: scale(0.97);
  -ms-transform: scale(0.97);
  -webkit-transform: scale(0.97);
  transform: scale(0.97);
}
ul.wi-container li a:hover .ptitle {
  opacity: 1;
}
ul.wi-container li a.no-link {
  pointer-events: none;
}
ul.wi-container li a img {
  -webkit-transition: transform 0.3s ease;
  -moz-transition: transform 0.3s ease;
  -ms-transition: transform 0.3s ease;
  -o-transition: transform 0.3s ease;
  transition: transform 0.3s ease;
}
ul.wi-container li a .ptitle {
  display: block;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  font-size: 11px;
  line-height: 2.5;
  letter-spacing: .1em;
  text-align: center;
  color: #333;
  opacity: 0.5;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.ui-slider {
  position: relative;
  width: 250px;
  margin: 60px auto 0 auto;
  text-align: left;
  border-radius: 10px;
  border: none;
  background-color: #333;
}
.ui-slider .ui-slider-handle {
  position: absolute;
  display: block;
  cursor: pointer;
  border: none;
  outline: none;
  z-index: 2;
  width: 1.2em;
  height: 1.2em;
  background-color: #08c2c0;
  border-radius: 50%;
  transform: translate(250px, 0);
  -webkit-transition: transform 3s cubic-bezier(0.86, 0, 0.07, 1);
  -moz-transition: transform 3s cubic-bezier(0.86, 0, 0.07, 1);
  -ms-transition: transform 3s cubic-bezier(0.86, 0, 0.07, 1);
  -o-transition: transform 3s cubic-bezier(0.86, 0, 0.07, 1);
  transition: transform 3s cubic-bezier(0.86, 0, 0.07, 1);
}
.ui-slider .ui-slider-handle:after {
  content: '>';
  position: absolute;
  top: 3px;
  left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}
.ui-slider .ui-slider-handle.ui-state-hover {
  background-color: #39f7f5;
  -webkit-transition: background 0.2s linear;
  -moz-transition: background 0.2s linear;
  -ms-transition: background 0.2s linear;
  -o-transition: background 0.2s linear;
  transition: background 0.2s linear;
}
.ui-slider .ui-slider-handle.ui-state-active {
  transform: scale(1.2) !important;
  box-shadow: 0 0 7px rgba(0, 0, 0, 0.5);
}
.ui-slider .ui-slider-handle.autoslide {
  transform: translate(0, 0);
}

.ui-slider-horizontal {
  height: .6em;
}
.ui-slider-horizontal .ui-slider-handle {
  top: -.3em;
  margin-left: -.6em;
}

/* *********************************************************************************************************************
 * RESPONSIVE MEDIA QUERIES
 */
/* *********************************************************************************************************************
 * LARGE SCREENS > 1280
 */
/* *********************************************************************************************************************
 * 1024 TO 1280 SCREENS 
 */
/* *********************************************************************************************************************
 * 1024 SCREENS 
 */
/* *********************************************************************************************************************
 * PORTRAIT TABLET TO LANDSCAPE AND DESKTOP
 */
/* *********************************************************************************************************************
 * LANDSCAPE MOBILES AND DOWN
 */
@media screen and (max-width: 767px) {
  .main {
    top: 20px;
    left: 20px;
    font-size: 12px;
  }
  .main .gravity {
    margin-top: 30px;
  }
  .main .destroy {
    display: none;
  }

  .info {
    top: initial;
    bottom: 20px;
    right: 20px;
  }
  .info .txt {
    font-size: 11px;
  }
  .info .txt .hide-on-mobile {
    display: none;
  }

  .help > span span {
    display: none;
  }

  ul.wi-container {
    -moz-transform: scale(0.8);
    -o-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -webkit-transform: scale(0.8);
    transform: scale(0.8);
  }

  .ui-slider .ui-slider-handle {
    top: -.7em;
    width: 2em;
    height: 2em;
  }
  .ui-slider .ui-slider-handle:after {
    top: 5px;
    left: 10px;
    font-size: 15px;
  }

  .projects-active .main {
    opacity: 0 !important;
    -webkit-transition: opacity 0.4s linear;
    -moz-transition: opacity 0.4s linear;
    -ms-transition: opacity 0.4s linear;
    -o-transition: opacity 0.4s linear;
    transition: opacity 0.4s linear;
  }
  .projects-active #close_bt {
    display: block;
  }
}
