/*Reset*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}

button,
input,
optgroup,
select,
textarea,html input[type="button"],
input[type="reset"],
input[type="submit"],button[disabled],
html input[disabled],button::-moz-focus-inner,
input::-moz-focus-inner, input[type="checkbox"],
input[type="radio"], input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button, input[type="search"], input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration{
  border:none;
  background-image:none;
  background-color:transparent;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
  box-shadow: none;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}

ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

*{
  margin: 0;
  padding: 0;
}
a{
  text-decoration: none;
}
li{
  list-style: none;
}

body{
    font-family: 'Open Sans', sans-serif;
}

header{
    width: 100%;
    display: flex;
    margin-top: 16px;
}

.header__logo{
    margin-top: 10px;
    cursor: pointer;
    margin-left: 12%;
}

/*MENU*/
html, body, .page {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);
  -webkit-transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);
  -moz-transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);
  -o-transition: all .8s cubic-bezier(0.54, 0.35, 0.29, 0.99);  
  color: #fff;
  overflow: hidden;
}
#menu a{
  height: 100px;
}
* {
  font-family: 'open sans', 'lato', 'helvetica', sans-serif;
}
::selection{
  color: #1488;
}
.page {
  position: absolute;
}

#p1 {
  left: 0;
}
.wrapper{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#p2, #p3, #p4, #p5 {
  left: 190%;
}

#p1 { background-image: linear-gradient(to right top, #d16ba5, #c777b9, #ba83ca, #aa8fd8, #9a9ae1, #8aa7ec, #79b3f4, #69bff8, #52cffe, #41dfff, #46eefa, #5ffbf1);}

#uno:hover,
#dos:hover,
#tres:hover,
#cuatro:hover,
#cinco:hover {    transform: scale(1.2);   transition: all .3s ease-out; }

#t2:target #p1,
#t3:target #p1,
#t4:target #p1,
#t5:target #p1{  filter: blur(30px); }

#t2:target #p2,
#t3:target #p3,
#t4:target #p4,
#t5:target #p5 {
  transform: translateX(-190%);
  -webkit-transform: translateX(-190%);
  -moz-transform: translateX(-190%);
  -o-transform: translateX(-190%);
  transition-delay: .4s !important;
}
#t2:target #p1 .icon, 
#t3:target #p1 .icon,
#t4:target #p1 .icon,
#t5:target #p1 .icon {
  -webkit-filter: blur(3px);
}

.icon {
  color: #fff;
  font-size: 32px;
  display: block;
}

ul .icon:hover {
  opacity: 0.5;
}

.page .icon .title {
  line-height: 2;
}

#t1:target ul .icon,
#t2:target ul .icon,
#t3:target ul .icon,
#t4:target ul .icon,
#t5:target ul .icon{
  transform: scale(.7);
  -webkit-transform: scale(.7);
  -moz-transform: scale(.7);
  -o-transform: scale(.7);
  transition-delay: .25s;
}

#t1:target #uno,
#t2:target #dos,
#t3:target #tres,
#t4:target #cuatro,
#t5:target #cinco {
  transform: scale(1) !important;
  -webkit-transform: scale(1) !important;
  -moz-transform: scale(1) !important;
  -o-transform: scale(1) !important;
}

ul {
  justify-content: center;
  display: flex;
  flex-direction: column;
  position: fixed;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 13vh;
  padding: 0;
  text-align: center;
 }

#menu .icon {
  flex-direction: column;
  display: flex;
  margin: 30px 0;
  transition: all .3s ease-out !important;
  -webkit-transition: all .3s ease-out;
  -moz-transition: all .3s ease-out;
  -o-transition: all .3s ease-out;
}

a {
  text-decoration: none;
}

.title, .hint {
  display: block;
}

.title {
  font-size: 38px;
}

.hint {
  font-size: 13px;
}

#p4 .hint {
  display: inherit !important;
}

.hint a {
  color: yellow;
  transition: all 250ms ease-out;
  -webkit-transition: all 250ms ease-out;
  -moz-transition: all 250ms ease-out;
  -o-transition: all 250ms ease-out;
}

.hint a:hover {
  color: #FFF;
}

.line-trough {
  text-decoration: line-through;
}

.page .icon {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 10%;
  left: 0;
  width: 270px;
  height: 170px;
  margin: auto;
  text-align: center;
  font-size: 80px;
  line-height: 1.3;
  transform: translateX(360%);
  -webkit-transform: translateX(360%);
  -moz-transform: translateX(360%);
  -o-transform: translateX(360%);
  transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
  -webkit-transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
  -moz-transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
  -o-transition: all .5s cubic-bezier(.25, 1, .5, 1.25);
}

.page#p1 .icon {
  height: 220px;
}

.page#p1 .icon {
  transform: translateX(10%) !important;
}

#t1:target .page#p1 .icon,
#t2:target .page#p2 .icon,
#t3:target .page#p3 .icon,
#t4:target .page#p4 .icon,
#t5:target .page#p5 .icon {
  transform: translateX(0) !important;
  -webkit-transform: translateX(0) !important;
  -moz-transform: translateX(0) !important;
  -o-transform: translateX(0) !important;
  transition-delay: 1s;
}


.fa-github{
  color: white;
  font-size: 5em;
  display: flex !important;
  justify-content: center;
  position: absolute;
  text-align: center;
  width: max-content;
  left: 0;
  right: 0;
  align-items: center;
  align-content: center;
  bottom: 0;
  margin: 0 auto;
  top: 0;
  height: 100px;
  margin: auto;
}

/*TASK 1*/
.container {
  cursor: pointer;
  display: flex;
}
svg {
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.active svg {
  transform: rotate(90deg);
}
path {
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dasharray 500ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
path:nth-child(1) {
  transform-origin: 36% 40%;
}
path:nth-child(2) {
  stroke-dasharray: 29 299;
}
path:nth-child(3) {
  transform-origin: 35% 63%;
}
path:nth-child(4) {
  stroke-dasharray: 29 299;
}
path:nth-child(5) {
  transform-origin: 61% 52%;
}
path:nth-child(6) {
  transform-origin: 62% 52%;
}
.active path:nth-child(1) {
  transform: translateX(9px) translateY(1px) rotate(45deg);
}
.active path:nth-child(2) {
  stroke-dasharray: 225 299;
  stroke-dashoffset: -72px;
}
.active path:nth-child(3) {
  transform: translateX(9px) translateY(1px) rotate(-45deg);
}
.active path:nth-child(4) {
  stroke-dasharray: 225 299;
  stroke-dashoffset: -72px;
}
.active path:nth-child(5) {
  transform: translateX(9px) translateY(1px) rotate(-45deg);
}
.active path:nth-child(6) {
  transform: translateX(9px) translateY(1px) rotate(45deg);
}
a{
  cursor: pointer;
}
/*TASK 2*/


.wrapper .switch {
  position: absolute;
  width: 120px;
  height: 50px;
}
.wrapper .switch input {
  display: none;
}
.wrapper .switch .wave {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 40px;
  width: 120px;
  height: 50px;
  display: none;
}
.wrapper .switch .wave:after {
  content: "";
  width: 60px;
  height: 3px;
  border-radius: 100%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 20%;
  opacity: 0.4;
}
.wrapper .switch .wave:before {
  content: "";
  width: 35px;
  height: 2px;
  border-radius: 100%;
  background: #fff;
  position: absolute;
  top: 10px;
  left: 30%;
  opacity: 0.3;
}
.wrapper .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(255, 255, 255, 0.3);
  transition: all 1.4s;
  border-radius: 50px;
  z-index: 100;
  overflow: hidden;
}
.wrapper .switch .slider:before,
.wrapper .switch .slider:after {
  position: absolute;
  content: "";
  height: 40px;
  width: 40px;
  left: 5px;
  bottom: 5px;
  border-radius: 30px;
  background-color: #fff;
}
.wrapper .switch .slider:before {
  transition: 0.4s;
}
.wrapper .switch .slider:after {
  transition: 0.5s;
}
.wrapper .switch .slider .fish {
  position: absolute;
  left: -20%;
  top: 20%;
  transition: 1.5s all;
}
.wrapper .switch .slider .fish .body {
  width: 20px;
  height: 20px;
  background: repeating-linear-gradient(-45deg, #e79c2a, #e79c2a 5px, #fb7813 5px, #fb7813 10px);
  border-radius: 0 100% 20% 100%;
  transform: rotate(-45deg);
  position: relative;
}
.wrapper .switch .slider .fish .eye {
  position: absolute;
  top: 8px;
  left: 15px;
  width: 4px;
  height: 4px;
  background-color: #000;
  border-radius: 100%;
}
.wrapper .switch .slider .fish .eye:after {
  content: "";
  width: 1px;
  height: 1px;
  background-color: #fff;
  border-radius: 100%;
  position: absolute;
  top: 25%;
  left: 25%;
}
.wrapper .switch .slider .fish .tail {
  width: 5px;
  height: 5px;
  background: repeating-linear-gradient(-45deg, #e79c2a, #e79c2a 5px, #fb7813 5px, #fb7813 10px);
  border-radius: 100% 10% 0 10%;
  transform: rotate(-45deg);
  position: absolute;
  left: -8px;
  top: 40%;
}
.wrapper .switch .sky {
  position: absolute;
  left: -40%;
  top: -150px;
  width: 100px;
  height: 100px;
  transform: scale(0);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wrapper .switch .sky .sun .outer {
  background: #e77b21;
  width: 50px;
  height: 50px;
  position: absolute;
  top: -11px;
  border-radius: 5px;
}
.wrapper .switch .sky .sun .outer:before,
.wrapper .switch .sky .sun .outer:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;
  width: 50px;
  background: #e77b21;
  border-radius: 5px;
}
.wrapper .switch .sky .sun .outer:before {
  transform: rotate(30deg);
}
.wrapper .switch .sky .sun .outer:after {
  transform: rotate(60deg);
}
.wrapper .switch .sky .sun .inner {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 100%;
  background-color: #ffd65a;
  top: -12px;
  overflow: hidden;
}
.wrapper .switch .sky .sun .inner:before {
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 100%;
  position: absolute;
  left: 3 px;
  top: 15px;
  background: #ffc631;
}
.wrapper .switch .sky .cloud {
  position: absolute;
  filter: url("#cloud");
  z-index: -1;
}
.wrapper .switch .sky .cloud .rect {
  width: 100px;
  height: 30px;
  background: #fff;
  border-radius: 100px;
}
.wrapper .switch .sky .cloud .circle {
  border-radius: 100%;
  background: #fff;
  position: absolute;
}
.wrapper .switch .sky .cloud .circle-lg {
  width: 50px;
  height: 50px;
  top: -55%;
  left: 5%;
}
.wrapper .switch .sky .cloud .circle-sm {
  width: 50px;
  height: 50px;
  border-radius: 100%;
  left: 35%;
  top: -50%;
}
.wrapper .switch .sky .cloud1 {
  left: -60%;
  top: 20%;
}
.wrapper .switch .sky .cloud2 {
  left: 150px;
  top: 10%;
  opacity: 0.8;
}
.wrapper .switch input:checked + .slider {
  background-color: transparent;
}
.wrapper .switch input:checked + .slider .fish {
  animation: fishMovement 4s linear infinite;
}
.wrapper .switch input:checked ~ .wave {
  background-color: #3398d9;
  display: block;
  filter: url(#wave);
}
.wrapper .switch input:checked + .slider:before {
  transform: translateX(70px);
}
.wrapper .switch input:checked + .slider:after {
  transform: translateX(70px);
}
.wrapper .switch input:checked ~ .boat {
  top: -25%;
  opacity: 1;
  z-index: -1;
  animation: boatMovement 3s linear alternate infinite;
}
.wrapper .switch input:checked ~ .sky {
  transform: scale(1);
  opacity: 1;
}
.wrapper .switch input:checked ~ .sky .outer {
  animation: rotateSun 5s infinite linear;
}
.wrapper .switch input:checked ~ .sky .cloud {
  animation: swingCloud 10s infinite linear;
}
.wrapper .switch .boat {
  position: absolute;
  top: 100%;
  left: 25%;
  width: 40px;
  height: 100px;
  transition: 0.6s all cubic-bezier(0.68, -0.6, 0.32, 1.6);
  opacity: 0;
}
.wrapper .switch .boat .bottom {
  border-top: 15px solid #d64242;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  height: 0;
  width: 40px;
  border-radius: 2px;
}
.wrapper .switch .boat .bottom:after {
  content: "";
  width: 50px;
  border-top: 4px solid #000;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  height: 0;
  position: absolute;
  top: -12px;
  left: -8px;
  opacity: 0.2;
}
.wrapper .switch .boat .mast {
  position: absolute;
  width: 3px;
  height: 35px;
  background: #6f4914;
  left: 70%;
  bottom: 100%;
}
.wrapper .switch .boat .rectangle-sm {
  width: 0;
  height: 0;
  border-top: 15px solid transparent;
  border-left: 10px solid #ffffff;
  border-right: 10px solid transparent;
  border-radius: 0 0 0 0;
  position: absolute;
  left: 80%;
  bottom: 110%;
}
.wrapper .switch .boat .rectangle-lg {
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-left: 10px solid transparent;
  border-right: 15px solid #ffffff;
  border-radius: 0 0 0 0;
  position: absolute;
  left: 5%;
  bottom: 110%;
}
.wrapper a {
  color: #fff;
  padding: 15px;
  display: block;
  font-family: sans-serif;
  font-size: 10px;
  position: absolute;
}

@keyframes fishMovement {
  60% {
    transform: translate(-50%, 50%);
  }
  65% {
    transform: translate(50%, 50%);
  }
  100% {
    transform: translate(100px, 50%);
  }
}
@keyframes boatMovement {
  30% {
    transform: rotate(-5deg);
  }
  60% {
    transform: rotate(5deg);
  }
  100% {
    transform: rotate(0);
  }
}
@keyframes twinkling {
  30% {
    opacity: 0.4;
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes rotateSun {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes swingCloud {
  50% {
    transform: translateX(50px);
  }
}

.lights-is-active {
  background: url(https://cdn.wallpapersafari.com/28/77/bAIE1j.jpg) no-repeat; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  
}


/*THREE*/
@-webkit-keyframes right {
  0% {
    transform: translate(-15px);
  }
  50% {
    transform: translate(15px);
  }
  100% {
    transform: translate(-15px);
  }
}
@keyframes right {
  0% {
    transform: translate(-15px);
  }
  50% {
    transform: translate(15px);
  }
  100% {
    transform: translate(-15px);
  }
}
@-webkit-keyframes left {
  0% {
    transform: translate(15px);
  }
  50% {
    transform: translate(-15px);
  }
  100% {
    transform: translate(15px);
  }
}
@keyframes left {
  0% {
    transform: translate(15px);
  }
  50% {
    transform: translate(-15px);
  }
  100% {
    transform: translate(15px);
  }
}
.loader {
  width: 200px;
  height: 200px;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -100px 0 0 -100px;
}

.loader-container {
  width: 200px;
  height: 100px;
  margin: 0 auto;
}

.ball {
  width: 15px;
  height: 15px;
  margin: 15px auto;
  border-radius: 50px;
  background-image: radial-gradient(circle, #5f8dff, #779dff, #8dadfe, #a4bdfc, #bacdfa, #c9d6f9, #d6e0f9, #e4e9f8, #eceefa, #f3f4fb, #f9f9fd, #ffffff);}
.ball:nth-child(1) {
  -webkit-animation: right 1s infinite ease-in-out;
          animation: right 1s infinite ease-in-out;
}
.ball:nth-child(2) {
  -webkit-animation: left 1.1s infinite ease-in-out;
          animation: left 1.1s infinite ease-in-out;
}
.ball:nth-child(3) {
  -webkit-animation: right 1.05s infinite ease-in-out;
          animation: right 1.05s infinite ease-in-out;
}
.ball:nth-child(4) {
  -webkit-animation: left 1.15s infinite ease-in-out;
          animation: left 1.15s infinite ease-in-out;
}
.ball:nth-child(5) {
  -webkit-animation: right 1.1s infinite ease-in-out;
          animation: right 1.1s infinite ease-in-out;
}
.ball:nth-child(6) {
  -webkit-animation: left 1.05s infinite ease-in-out;
          animation: left 1.05s infinite ease-in-out;
}
.ball:nth-child(7) {
  -webkit-animation: right 1s infinite ease-in-out;
          animation: right 1s infinite ease-in-out;
}
.containerd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  position: absolute;
  width: 500px;
  height: 500px;
  animation: clockwise 60s linear infinite;
}

.group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  place-items: center;
  height: 6em;
  width: 6em;
}
.group span {
  color: rgb(255, 255, 255);
  display: grid;
  place-items: center;
  height: 2em;
  width: 2em;
}
.group span:nth-child(1) {
  position: absolute;
  top: 0;
  left: 0;
}
.group span:nth-child(1) {
  animation: d1 3s linear infinite;
}
.group span:nth-child(2) {
  animation: d2 3s linear infinite;
}
.group span:nth-child(3) {
  animation: d3 3s linear infinite;
}
.group span:nth-child(4) {
  animation: d4 3s linear infinite;
}
.group span:nth-child(5) {
  animation: d5 3s linear infinite;
}
.group span:nth-child(6) {
  animation: d6 3s linear infinite;
}
.group span:nth-child(7) {
  animation: d7 3s linear infinite;
}
.group span:nth-child(8) {
  animation: d8 3s linear infinite;
}
.group span:nth-child(9) {
  animation: d9 3s linear infinite;
}
.group span:nth-child(10) {
  animation: d10 3s linear infinite;
}

.top {
  transform: rotateZ(0deg);
}

.right {
  transform: rotateZ(90deg);
}

.left {
  transform: rotateZ(-90deg);
}

.bottom {
  transform: rotateZ(360deg);
}

.middle {
  display: grid;
  place-items: center;
  height: 6em;
  width: 6em;
}
.middle span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2em;
  width: 2em;
  font-size: 2em;
  animation: beat 3s linear infinite;
}

@keyframes clockwise {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes beat {
  0%, 65% {
    transform: scale(1);
  }
  70% {
    transform: scale(4);
  }
  75% {
    transform: scale(1);
  }
  80% {
    transform: scale(4);
  }
  90%, 100% {
    transform: scale(1);
  }
}
@keyframes d1 {
  0%, 80% {
    transform: translateY(-6em);
    opacity: 0;
  }
  90%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes d2 {
  0%, 70% {
    transform: translateX(0);
  }
  80%, 100% {
    transform: translateX(2em);
  }
}
@keyframes d3 {
  0%, 60% {
    transform: translateX(0);
  }
  70%, 100% {
    transform: translateX(2em);
  }
}
@keyframes d4 {
  0%, 50% {
    transform: translateY(0);
  }
  60%, 100% {
    transform: translateY(2em);
  }
}
@keyframes d5 {
  0%, 20% {
    transform: translateY(0);
  }
  30%, 100% {
    transform: translateY(2em);
  }
}
@keyframes d6 {
  0%, 30% {
    transform: translateX(0);
  }
  40%, 100% {
    transform: translateX(-2em);
  }
}
@keyframes d7 {
  0%, 40% {
    transform: translateX(0);
  }
  50%, 100% {
    transform: translateX(-2em);
  }
}
@keyframes d8 {
  0%, 10% {
    transform: translateX(0);
  }
  20%, 100% {
    transform: translateX(2em);
  }
}
@keyframes d9 {
  0% {
    transform: translateX(0);
  }
  10%, 100% {
    transform: translateX(2em);
  }
}
@keyframes d10 {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  10%, 100% {
    transform: translateY(6em);
    opacity: 0;
  }
}


/*Burgir*/

svg {
	width: 100%;
	height: 100%;
}
