@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;

}

h1 {
    font-family: 'montserratbold';
    font-size: 100px;
    line-height: 0.7;
    text-align: center;
    margin: -3% auto 10% auto;
    max-width: 500px;
    justify-content: center;
    align-items: center;
    color: #bf4226
}

h2 {
    font-family: 'montserratsemibold';
    font-size: 12px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

p {
    font-family: 'Times New Roman', Times, serif;
    color: #e9e6db;
    font-size: 24px;
}

html {
    background: #26221e;
}
div {
    margin-top: 5%;
    margin-bottom: 5%;
}

.credits {
    display: flex;
    flex-direction: column;
    color: #d1d2d4
}

.reveal { opacity: 10%; transition: opacity 0.5s linear; }

.reveal:hover {
   	opacity: 100%;
}

.shake {
	display:block;
	position:relative;
    display:inline-block;
    color: #bf5b45;
}

@-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;
}

@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: 70%;
        margin: auto;
    }
}

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

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