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

* {
    box-sizing: border-box;
}

body {
    padding: 0;
    margin: 0;
    background-color: #eee;
    background-image: url('../images/bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size:cover;
    background-attachment: fixed;
    font-family: 'Special Elite', cursive;
    font-size: 12pt;
    line-height: 1.3;
    color: #000;
}

h1, h2, h3 {
    font-family: 'Covered By Your Grace', cursive;
}

.title {
    text-align: center;
}

h1 {
    font-size: 6em;
    font-weight: normal;
    text-align: center;
    margin: 0 0 60px 0;
    position: relative;
    display: inline-block;
    line-height: 1;
}

h1::after {
    content: ' ';
    display: block;
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: url('../images/subline_title.svg');
    background-repeat: no-repeat;
}

a,
a:focus,
a:hover,
a:visited {
    color: #6d6b6e;
}

a {
    position: relative;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: none;
}

a::after {
    content: ' ';
    border-bottom: 2px solid #6d6b6e;
    display: block;
    width: 100%;
    left: 0;
    bottom: 0;
    position: absolute;
}

a:hover::after {
    border-color: #000;
    border-bottom: 4px double #000;
    transform: rotate(-1deg);
    bottom: -3px;
}

img {
    max-width: 100%;
}

#wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    display: flex;
}

.column {
    padding: 40px;
}

.column_images {
    width: 20%;
}

.column_images img:not(:last-of-type) {
    margin-bottom: 20px;
}

.img1 {
    transform: rotate(-2deg);
}

.img1:hover {
    transform: rotate(180deg);
}

.img2 {
    transform: rotate(2deg);
}

.img2:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

.img3 {
    transform: rotate(-3deg);
}

.img3:hover {
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    transition: all 0.2s linear;
    transform: scale(1.2) rotate(2deg);
}


.img4 {
    transform: rotate(-2deg);
}

.column_text {
    width: 80%;
}

.text {
    text-align: justify;
    line-height: 1.8;
}

form {
    margin: 20px 0 0 0;
    /*align-items: center;*/
    display: flex;
    position: relative;
}

form .fields {
    width: 70%;
}

form .dice {
    width: 30%;
    text-align: center;
    font-size: 1.3em;
    padding: 40px 20px 20px 20px;
    position: absolute;
    right: 0;
    top: 0;
    display: none;
}

.dice p {
    max-width: 80px;
    margin: 0 auto;
    text-align: center;
}

#rollthedice {
    width: 100px;
    display: block;
    margin: 10px auto 0 auto;
}


#rollthedice:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
    cursor: pointer;
}

#incognito {
    width: 100px;
    position: absolute;
    top: -30px;
    transform: rotate(20deg);
    z-index: -1;
    display: none;
}

input[type="text"],
input[type="email"],
textarea,
input[type="text"]:active,
input[type="email"]:active,
textarea:active,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    font-family: 'Covered By Your Grace', cursive;
    display: block;
    font-size: 2em;
    width: 100%;
    margin-bottom: 15px;
    color: #000;
    padding: 10px 20px;
    background-color: transparent;
    border: 1px solid #000;
    outline: none;
}

textarea {
    min-height: 160px;
}

.submit {
    text-align: center;
    margin-top: 20px;
}

button,
a.button {
    margin: 0 auto;
    font-family: 'Covered By Your Grace', cursive;
    display: inline-block;
    border: none;
    font-size: 2em;
    text-align: center;
    background-color: transparent;
    padding: 17px 20px 15px 20px;
    width: 100%;
    max-width: 400px;
    background-position: center center;
    cursor: pointer;
    position: relative;
    background-image: url('../images/button-lines.svg');
    background-repeat: no-repeat;
    background-size: contain;
    text-decoration: none;
    color: #000;
}

button:hover,
a.button:hover {
    border: none;
    background-image: none;
}

a.button::after {
    display: none;
}

button:hover::after,
a.button:hover::after {
    content: ' ';
    display: block;
    width: 100%;
    max-width: 200px;
    left: 50%;
    position: absolute;
    border-color: #000;
    border-bottom: 8px double #000;
    transform: rotate(-1deg) translateX(-50%);
    bottom: -3px;
}

body.thx {
    height: 100%;
    position: absolute;
    left: 0;
    width: 100%;
    top: 0;
    display: flex;
    align-items: center;
}

.thx #wrapper {
    max-width: 980px;
}

.thx .row {
    align-items: center;
}

.thx h1 {
    text-align: left;
    font-size: 3em;
    margin: 0 0 40px 0;
}

.thx h1::after {
    display: none;
}

.thx .column_thxpic {
    width: 30%;
}

.thx .column_thxtext {
    width: 70%;
}

.thx a.button {
    left: -20px;
}

.deactivated {
  margin:20px 0 0 0;
}

.deactivated .your_question {
  margin: 20px;
  font-style:italic;
}


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

    h1 {
        font-size: 4em;
        margin-bottom: 30px;
    }

    .row {
        display: block;
    }

    .column {
        padding: 20px;
    }

    .column_images {
        width: 100%;
        text-align: center;
        padding: 0;
    }

    .column_images img {
        height: auto;
        width: 20%;
        margin: 20px;
    }

    .column_text {
        width: 100%;
    }

    .thx .column_thxpic {
        width: 100%;
        text-align: center;
    }

    .thx .column_thxpic img {
        max-width: 250px;
    }

    .thx .column_thxtext {
        width: 100%;
        text-align: center;
    }

    .thx h1 {
        text-align: center;
    }

    .thx a.button {
        left: 0;
    }

}


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


    h1 {
        font-size: 3em;
        margin-bottom: 20px;
    }

    h1::after {
        bottom: -15px;
    }

    form {
        margin: 60px 0;
    }

    form .fields {
        width: 100%;
    }

    form .dice {
        width: 100%;
        position: relative;
        padding: 0;
        display: flex;
        align-items: center;
        margin-bottom: 15px;
    }

    .dice p {
        max-width: 100%;
        text-align: right;
        padding: 0 10px 0 0;
    }

    #rollthedice {
        width: 80px;
    }

    #incognito {
        right: -20px;
        top: -120px;
    }

    body.thx {
        position: relative;
        padding-top: 40px;
    }


}
