/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
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;
}

/* ------------------------------------------------------------------ */

body {
    background-image: url("Img/bg.jpeg");
    background-size: cover;
}

nav {
    width: auto;
    background-color: rgb(0, 0, 0, 255);
    background-image: url("Img/navbg.jpg");
    padding: 1%;
}

#navigation {
    display: flex;
    justify-content: right;
    align-items: center;
}

a {
    transition: 1s;
}
a:link {
    text-decoration: none;
    color: rgb(50, 0, 0);
}
a:visited {
    text-decoration: none;
    color: rgb(50, 0, 0);
}
a:hover {
    color: rgb(143, 0, 0);
}

.navlink {
    color: rgb(50, 0, 0);
    font-family: cursed;
    transition: 1s;
    margin: 3%;
    margin-top: -5%;
    font-size: 200%;
}
.navlink:hover {
    color: rgb(143, 0, 0);
}

#logo {
    width: 7.5%;
    --intensity: 0.5;
}
#logo:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

article {
    background-color: rgba(0, 0, 0, 0.388);
    padding: 2%;
    margin: 3%;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    font-family: script;
    color: rgb(255, 255, 255);
    font-size: 150%;
    text-align: center;
}
#title {
    font-size: 300%;
}

#bookofbill {
    width: 40%;
    height: 40%;
    display: block;
    margin: auto;
}

main {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

section {
    background-color: rgba(0, 0, 0, 0.388);
    padding: 2%;
    margin: 10%;
    margin-left: auto;
    margin-right: auto;
    font-family: script;
    color: rgb(255, 255, 255);
    font-size: 150%;
    text-align: center;
}

main {
    display: grid;

    grid-template-areas: 
        "abt1 abt1 img1"
        "img2 abt2 abt2"
        "abt3 abt3 img3"
    ;
}

#abt1 { grid-area: abt1; }
#abt2 { grid-area: abt2; }
#abt3 { grid-area: abt3; }
#imgabt1 { grid-area: img1; width: 50%; margin: 5%; border: 20px outset rgb(47, 31, 2); }
#imgabt2 { grid-area: img2; width: 80%; margin: 5%; border: 20px outset rgb(47, 31, 2); }
#imgabt3 { grid-area: img3; width: 90%; margin: 5%; border: 20px outset rgb(47, 31, 2); }

#summonimg1 {
    border: 20px outset rgb(47, 31, 2);
    margin: 5%;
    width: 15%;
    margin-bottom: -15%;
}
#summon1 {
    width: 25%;
    margin: 5%;
    margin-bottom: -5%;
    margin-top: -5%;
    margin-left: 60%;
}

#summonsigil {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

#summon2 {
    width: 25%;
    margin-left: 3%;
    margin-top: -5%;
}
#summonimg2 {
    border: 20px outset rgb(47, 31, 2);
    margin: 5%;
    width: 15%;
    margin-bottom: -95%;
    margin-left: 77%;
    padding: 0%;
}

#piano {
    border: 20px outset rgb(47, 31, 2);
    margin: 5%;
    width: 40%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#contsect {
    display: grid;
    grid-template-areas: 
    "img1 contract"
    "img2 contract"
    ;
}

#contract {
    grid-area: contract;
    background-image: url("Img/parchmentbg.png");
    background-repeat: no-repeat;
    margin: 10%;
    font-family: ink;
    font-size: 250%;
}
input[type=text] {
    background-color: rgba(255, 255, 255, 0);
    border: none;
    padding: 2%;
    font-size: 150%;
    color: rgb(143, 0, 0);
    font-family: ink;
    margin: 5%;
}
input[type=email] {
    background-color: rgba(255, 255, 255, 0);
    border: none;
    padding: 2%;
    font-size: 150%;
    color: rgb(143, 0, 0);
    font-family: ink;
    margin: 5%;
}
input[type=tel] {
    background-color: rgba(255, 255, 255, 0);
    border: none;
    padding: 2%;
    font-size: 150%;
    font-family: ink;
    color: rgb(143, 0, 0);
    margin: 5%;
}
input[type=submit] {
    background-color: rgba(255, 255, 255, 0);
    width: 80%;
    color: rgb(0, 0, 0);
    border: none;
    font-size: 250%;
    margin-top: -25%;
    font-family: organic;
    margin-left: -10%;
}
textarea {
    background-color: rgba(255, 255, 255, 0);
    border: none;
    padding: 2%;
    font-size: 200%;
    color: rgb(143, 0, 0);
    font-family: ink;
    margin: 2% auto;
}
#comments {
    position: absolute;
    margin-top: 0.5%;
}

::placeholder {
    color: rgba(0, 0, 0, 0);
}

label {
    margin: 5%;
}

#contimg1 { grid-area: img1; width: 50%; margin: 5%; border: 20px outset rgb(47, 31, 2); }
#contimg2 { grid-area: img2; width: 30%; margin: 5%; border: 20px outset rgb(47, 31, 2); }

#makethedeal {
    width: 50%;
    margin: 5%;
    border: 20px outset rgb(47, 31, 2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#print {
    width: 30%;
    rotate: -20deg;
    margin-left: 60%;
    margin-bottom: -15%;
}


@font-face {
    font-family: cursed;
    src: url(Crooth-d9xwg.ttf);
}
@font-face {
    font-family: script;
    src: url(BreatheFireIv-3zAVZ.ttf);
}
@font-face {
    font-family: organic;
    src: url(OrganicDisease-yjvY.ttf);
}
@font-face {
    font-family: ink;
    src: url(ScatterInk-MVVpJ.otf);
}

@keyframes shake {
    0% { transform: translate(calc(1px * var(--intensity)), calc(1px * var(--intensity))) rotate(0deg); }
    10% { transform: translate(calc(-1px * var(--intensity)), calc(-2px * var(--intensity))) rotate(-1deg); }
    20% { transform: translate(calc(-3px * var(--intensity)), calc(0px * var(--intensity))) rotate(1deg); }
    30% { transform: translate(calc(3px * var(--intensity)), calc(2px * var(--intensity))) rotate(0deg); }
    40% { transform: translate(calc(1px * var(--intensity)), calc(-1px * var(--intensity))) rotate(1deg); }
    50% { transform: translate(calc(-1px * var(--intensity)), calc(2px * var(--intensity))) rotate(-1deg); }
    60% { transform: translate(calc(-3px * var(--intensity)), calc(1px * var(--intensity))) rotate(0deg); }
    70% { transform: translate(calc(3px * var(--intensity)), calc(1px * var(--intensity))) rotate(-1deg); }
    80% { transform: translate(calc(-1px * var(--intensity)), calc(-1px * var(--intensity))) rotate(1deg); }
    90% { transform: translate(calc(1px * var(--intensity)), calc(2px * var(--intensity))) rotate(0deg); }
    100% { transform: translate(calc(1px * var(--intensity)), calc(-2px * var(--intensity))) rotate(-1deg); }
}

#footertitle {
    font-size: 400%;
    margin-top: -10%;
    text-align: center;
    font-family: cursed;
}
#footersub {
    font-size: 250%;
    margin-top: 1%;
    text-align: center;
    font-family: cursed;
}

#map {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin: 5%;
    margin-left: 24%;
}

@media screen and (max-width: 410px){
    #navigation {
        flex-direction: column;
        align-items: end;
    }
    #logo {
        width: 40%;
        margin-bottom: -37.5%;
    }
    .navlink {
        font-size: 125%;
        margin: 1.5%;
    }
    #footertitle {
        font-size: 200%;
        margin-top: -15%;
    }
    #footersub {
        font-size: 75%;
    }
    main {
        grid-template-areas: 
        "img1"
        "abt1"
        "img2"
        "abt2"
        "img3"
        "abt3"
    ;
    }
    #summon1 { display: none; }
    #summon2 { display: none; }
    #summonimg1 { display: none; }
    #summonimg2 { display: none; }
    #piano {
        font-size: 75%;
    }
    #contsect {
        grid-template-areas:
        "img1"
        "img2"
        "contract"
        "contract"
        ;
    } 
    form {
        background-size: 125%;
    }
    label {
        font-size: 50%;
    }
    input[type=text] {
        font-size: 75%;
        margin: 3%;
    }  
    input[type=tel] {
        font-size: 75%;
        margin: 3%;
    }  
    input[type=email] {
        font-size: 75%;
        margin: 3%;
    }  
    input[type=submit] {
        font-size: 75%;
        margin: 3%;
    }  
    textarea {
        font-size: 75%;
    }
    #print {
        width: 25%;
        rotate: -20deg;
        margin-left: 60%;
        margin-bottom: -15%;
        margin-top: -4000%;
    }
    #map {
        width: 80%;
        height: 80%;
        margin-left: 11%;
    }
}