/* main css */

@font-face {
    font-family: 'montserratbold';
    src: url(./fonts/montserrat-bold-webfont.woff2) format('woff2'),
         url(fonts/montserrat-bold-webfont.woff) format('woff');
    font-weight: normal;
    font-style: normal;

}

@font-face {
    font-family: 'montserratsemibold';
    src: url(fonts/montserrat-semibold-webfont.woff2) format('woff2'),
         url(fonts/montserrat-semibold-webfont.woff) format('woff');
    font-weight: normal;
    font-style: normal;

}

html {
    background-color: #26221e
}

h1 {
    font-family: 'montserratbold', sans-serif;
    font-size: 90px;
    line-height: 0.85;
    text-align: center;
    margin: -3% auto 10% auto;
    max-width: 500px;
    justify-content: center;
    align-items: center;
    color:  #bf4226;
    animation: 2s shake infinite alternate;
}

@keyframes shake {
    0% { transform: skewX(-15deg); }
    5% { transform: skewX(15deg); }
    10% { transform: skewX(-15deg); }
    15% { transform: skewX(15deg); }
    20% { transform: skewX(0deg); }
    100% { transform: skewX(0deg); }  
  }

h2 {
    font-family: 'montserratsemibold', sans-serif;
    font-size: 12px;
    text-align: center;
    justify-content: center;
    align-items: center;
    color: #bf5b45
}

p {
    font-family: 'Times New Roman', Times, serif;
    color:  #e9e6db;
    font-size: 20px;
    line-height: 1.4;
}

div {
    margin-top: 5%;
    margin-bottom: 5%;
}

.credits {
    display: flex;
    flex-direction: column;
}


/* hover effects */

/* 1) reveal */

.reveal { 
    opacity: 10%; 
    transition: opacity 0.5s linear;
    text-decoration: underline;
}

.reveal:hover {
   	opacity: 100%;
    cursor: pointer;
    text-decoration: none;
}

/* 2) hysterical */

.hysterical {
    text-decoration: underline;
    text-transform: none;
}
.hysterical:hover {
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
  }

/* 3) shake */

.shake {
	display:block;
	position:relative;
    display:inline-block;
    text-decoration: underline;
}

@-webkit-keyframes spaceboots {
	0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
	10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
	20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
	30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
	40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
	50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
	60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
	70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
	80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
	90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
	100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}
.shake:hover, .shake:focus {
	-webkit-animation-name: spaceboots;
	-webkit-animation-duration: 0.8s;
	-webkit-transform-origin:50% 50%;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
    cursor: pointer;
    text-decoration: none;
}



/* 4) glow */

.glow {
    color: #e9e6db;
    text-decoration: underline;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
  }
  
.glow:hover {
    color: #e9e6db;
    cursor: pointer;
    text-shadow:0px 0px 30px #e9e6db;
    -moz-transition: all 0.2s ease-in;
    -o-transition: all 0.2s ease-in;
    -webkit-transition: all 0.2s ease-in;
    transition: all 0.2s ease-in;
    text-decoration: none;
    }

/* 5) blur */

.blur {
    transition: all 3s ease-in-out;
    -webkit-transition: all 3s ease-in-out;
    -moz-transition: all 3s ease-in-out;
    -ms-transition: all 3s ease-in-out;
    -o-transition: all 3s ease-in-out;
    transform: translateX(-50%);
    text-decoration: underline;
  }

.blur:hover {
    filter: blur(80px);  
    cursor: pointer;
    text-decoration: none;
}

/* 6) pulse */

.pulse {
  color:#e9e6db;
  animation: none;
  text-decoration: underline;
}

.pulse:hover {
    text-decoration: none;
    color:#e9e6db;
    background: #bf422698;
    border-radius: 50%;
    margin: 10px;
    height: 20px;
    width: 20px;
    cursor: pointer;
    box-shadow: 0 0 0 0 rgb(206, 116, 116);
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(218, 71, 71, 0.831);
  }

  70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* 7) rotate */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;   
}


.canvas {
    width: 9vw;
    height: 4vh;
    position: relative;
    overflow: hidden;
}

.rotate {
    transition: all 1.5s ease-in-out;
    -webkit-transition: all 1.5s ease-in-out;
    -moz-transition: all 1.5s ease-in-out;
    -ms-transition: all 1.5s ease-in-out;
    -o-transition: all 1.5s ease-in-out;
    text-decoration: underline;
    display: inline-block
}

.rotate:hover {
    transform: rotate(180deg);
    cursor: pointer;
    text-decoration: none;
}

/* 8) float */

.float {
	margin: 0 10px;
    text-decoration: underline;
    display: inline-block
}

.float:hover {
	margin: 0 10px;
	transition: all 0.4s ease-in-out;
	overflow: hidden;
	transform: translatey(0px);
	animation: float 6s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* 9) explode */

.explode {
    font-family: 'Times New Roman', Times, serif;
    color:  #e9e6db;
    text-align: center;
    text-decoration: underline;
}

.explode:hover {
    cursor: pointer;
    text-decoration: none;
}

#explode {
    display: inline-block
}

/* 10) color */

.color {
    text-decoration: underline;
}
.color:hover {
    transform: translate(-50%, -50%);
    font-style: italic;
    color:red;
    cursor: pointer;
    text-decoration: none;
}

/* 11) disconnected */

.disconnected {
    text-decoration: underline;
}
.disconnected:hover {
    text-decoration: none;
}

.letter{
	display: inline-flex;
	height: 7px;
	width: 5px;
	/* border: 2.5px solid #FF1EAD; */
	border: 2.35px solid #e9e6db;
	border-radius: 15px;
	animation: none
}
.letter:hover{
	display: inline-flex;
	height: 7px;
	width: 5px;
	/* border: 2.5px solid #FF1EAD; */
	border: 2.35px solid #e9e6db;
	border-radius: 15px;
	animation: letter 2s ease-in-out infinite alternate;
}

/* 12) hormones */

.hormones {
    text-decoration: underline;
}

.hormones:hover {
    text-decoration: none;
    border: #bf5b45;
    border-style: dotted;
}

@keyframes letter {
	0%,30%{ width: 25px; }
	70%,100%{ width: 30vw; }
}

/* 13) text scramble */
.text {
    width: 300px;
    height: 300px
}


/* media querries */

@media screen and (min-width: 481px) {
    h1 {
        margin: -1.8% auto 10% auto;
        font-size: 8em;
        text-align: center;
    }

    .credits {
        display: flex;
        flex-direction: row;
    }

    .author {
        text-align: left;
        flex: 1
    }

    .designer {
        text-align: right;
        flex: 1
    }

    p {
        max-width: 80%;
        margin: auto;
    }
}


@media screen and (min-width: 769px) {
    h1 {
        margin: -1.2% auto auto auto;
        font-size: 10em;
        max-width: 700px;
    }
    p {
        max-width: 65%;
        margin: auto;
        font-size: 26px;
    }
}

@media screen and (min-width: 1025px) {
    h1 {
        margin: -0.5% auto auto auto;
        font-size: 12em;
        max-width: 800px;
    }
    p {
        max-width: 50%;
        margin: auto;
    }

}

@media screen and (max-width:481px) {

/* 1) reveal */

.reveal { 
    opacity: 10%;
    text-decoration: none;
}

/* 2) hysterical */

.hysterical {
    text-decoration: none;
    text-transform: uppercase;
}

/* 3) shake */

.shake {
	display:block;
	position:relative;
    display:inline-block;
    text-decoration: none;
    -webkit-animation-name: spaceboots;
	-webkit-animation-duration: 0.8s;
	-webkit-transform-origin:50% 50%;
	-webkit-animation-iteration-count: infinite;
	-webkit-animation-timing-function: linear;
}

@-webkit-keyframes spaceboots {
	0% { -webkit-transform: translate(2px, 1px) rotate(0deg); }
	10% { -webkit-transform: translate(-1px, -2px) rotate(-1deg); }
	20% { -webkit-transform: translate(-3px, 0px) rotate(1deg); }
	30% { -webkit-transform: translate(0px, 2px) rotate(0deg); }
	40% { -webkit-transform: translate(1px, -1px) rotate(1deg); }
	50% { -webkit-transform: translate(-1px, 2px) rotate(-1deg); }
	60% { -webkit-transform: translate(-3px, 1px) rotate(0deg); }
	70% { -webkit-transform: translate(2px, 1px) rotate(-1deg); }
	80% { -webkit-transform: translate(-1px, -1px) rotate(1deg); }
	90% { -webkit-transform: translate(2px, 2px) rotate(0deg); }
	100% { -webkit-transform: translate(1px, -2px) rotate(-1deg); }
}

@keyframes shake {
    0% { transform: skewX(-15deg); }
    5% { transform: skewX(15deg); }
    10% { transform: skewX(-15deg); }
    15% { transform: skewX(15deg); }
    20% { transform: skewX(0deg); }
    100% { transform: skewX(0deg); }  
  }

/* 4) glow */
  
.glow {
    color: #e9e6db;
    text-shadow:0px 0px 30px #e9e6db;
    text-decoration: none;
    }

/* 5) blur */

.blur {
    filter: blur(1px);  
    cursor: pointer;
    text-decoration: none;
}

/* 6) pulse */

.pulse {
  color:#e9e6db;
  background: #bf422698;
  border-radius: 50%;
  margin: 10px;
  height: 20px;
  width: 20px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgb(206, 116, 116);
  transform: scale(1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(218, 71, 71, 0.831);
  }

  70% {
      transform: scale(1);
      box-shadow: 0 0 0 10px rgba(0, 0, 0, 0);
  }

  100% {
      transform: scale(0.95);
      box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/* 7) rotate */

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;   
}

.canvas {
    width: 9vw;
    height: 4vh;
    position: relative;
    overflow: hidden;
}

.rotate {
    transition: all 1.5s ease-in-out;
    -webkit-transition: all 1.5s ease-in-out;
    -moz-transition: all 1.5s ease-in-out;
    -ms-transition: all 1.5s ease-in-out;
    -o-transition: all 1.5s ease-in-out;
    text-decoration: none;
    display: inline-block;
    animation: infinite;
    transform: rotate(180deg);
    width: 15vw;
}

/* 8) float */

.float {
	margin: 0 10px;
	transition: all 0.4s ease-in-out;
	overflow: hidden;
	transform: translatey(0px);
	animation: float 6s ease-in-out infinite;
    cursor: pointer;
    text-decoration: none;
    display: inline-block
}

@keyframes float {
	0% {
		transform: translatey(0px);
	}
	50% {
		transform: translatey(-20px);
	}
	100% {
		transform: translatey(0px);
	}
}

/* 9) explode */

.explode {
    font-family: 'Times New Roman', Times, serif;
    color:  #e9e6db;
    text-align: center;
    text-decoration: none;
}

#explode {
    display: inline-block
}

/* 10) color */

.color {
    transform: translate(-50%, -50%);
    font-style: italic;
    color:red;
    text-decoration: none;
}

/* 11) disconnected */

.disconnected {
    text-decoration: none;
}

.letter{
	display: inline-flex;
	height: 7px;
	width: 5px;
	/* border: 2.5px solid #FF1EAD; */
	border: 2.35px solid #e9e6db;
	border-radius: 15px;
	animation: letter 2s ease-in-out infinite alternate
}

@keyframes letter {
	0%,30%{ width: 25px; }
	70%,100%{ width: 30vw; }
}

/* 12) hormones */

.hormones {
    text-decoration: none;
    border: #bf5b45;
    border-style: dotted;
}

}