/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Island+Moments&family=Playfair+Display+SC&display=swap');

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

ul,
ol {
    padding-left: 0;
    list-style: none;
}

sup {
    line-height: 0;
}

.cf:before,
.cf:after {
    content: " ";
    display: table;
}

.cf:after {
    clear: both;
}

html {
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: url(images/ghost.png) no-repeat left 5% center / 275px 275px fixed, 
url(images/tombstone.png) no-repeat right 5% center / 275px 275px fixed,
        #000 linear-gradient(to bottom,  rgba(196,116,74,1) 0%,rgba(51,37,37,1) 100%) fixed;
    /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#c44a54+0,332525+100 */

}

.container {
    margin: 0 .625rem;
    overflow: hidden;
}

.wrapper {
    border: 2px solid white;
    border-radius: 10px;
    background: #393B3D;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}



header {
    display: flex;
    border-radius: 10px;
    border: 2px solid gray;
    margin: 20px;
    background: url(images/zombie-hand.png) no-repeat right bottom / 100px 100px,
url(images/bats.png) no-repeat top 10px left 10px / 50px 50px,
url(images/halloween-hero-sm.png) no-repeat center center / cover,
        #000 linear-gradient(to bottom,  rgba(196,116,74,1) 0%,rgba(51,37,37,1) 100%);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

header h1 {
    line-height: 5;
    text-align: center;
    flex: 1 0 auto;
    margin: 0;
    color: #fff;
    font-family: "Myriad Pro Regular", sans-serif;
    font-weight: 200;
    letter-spacing: 4px;
    text-shadow: 0 -2px 2px rgba(0, 0, 0, 0.6);
    background: transparent linear-gradient(to bottom, hsl(0deg 62% 80% / 70%) 1px, hsl(21deg 51% 49% / 70%) 2px, hsla(218, 62%, 8%, 1.00));
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

header h1 sup {
    font-size: .6em;
}

section {
    overflow: hidden;
    margin: 20px;
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.8);
    background: #fff linear-gradient(to bottom, rgba(196, 117, 74, 0.60) 3%, rgba(0, 0, 0, 0.90) 8%);
	color: white;
}

h2 {
    margin: 75px 0 16px;
	font-family: 'Playfair Display SC', serif;
	font-size: 2.25rem;
}

p {
    margin: 24px 0 24px;
    line-height: 1.75;
    text-indent: 12px;
	font-family: 'Island Moments', cursive;
	font-size: 2rem;
}

img {
    width: 100%;
}

a.button {
    display: inline-block;
    line-height: 2.75;
    padding: 0 1.25em;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid hsl(0, 0%, 0%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 2px 6px rgba(100,100,100,1);
    background: linear-gradient( to bottom, hsla(0, 0%, 100%, 0.8) 0px, rgba(196,116,74,1) 2px, rgba(51,37,37,1) );
    font-weight: bold;
}

a.button:hover {
    box-shadow: none;
}

a.button:active {
    box-shadow: inset 0 2px 4px hsl(0deg 0% 0%);
}

a.button-small {
    font-size: .65em;
}

a.button-large {
    font-size: 2.25em;
}

a.button-secondary {
    background: linear-gradient( to bottom, hsla(0, 0%, 100%, 0.8) 0px, rgba(51,133,171,1) 2px, rgba(37,37,51,1) );
}

a.button-tertiary {
    background: linear-gradient( to bottom, hsla(0, 0%, 100%, 0.8) 0px, #F20CB0 2px, rgba(37,37,51,1) );
}

a.button-polygon {
    border-radius: 10% 10% 0% 0% / 10% 10% 0% 0%;
}

a.button-3d {
    border-radius: 10px;
    box-shadow: 0 5px 0 rgba(255,255,255,1);
    background:  rgba(196,116,74,1);
    color: #0D1024;
    line-height: 2.5;
    padding: 0 1.75em;
    margin: 16px 10px;
    font-size: 1.1em;
    font-weight: bold;
    position: relative;
    text-decoration: none;
    display: inline-block;
}

a.button-3d:hover {
    background: #edd46b;
    box-shadow: 0 5px 0 rgba(196,116,74,1);
    text-decoration: none;
}

a.button-3d-small {
    font-size: 0.85em;
}

a.button-3d-large {
    font-size: 2em;
}

a.button-3d-secondary {
    box-shadow: 0 5px 0 rgba(255,255,255,1);
    background:  rgba(51,133,171,1);
}

a.button-3d-tertiary {
    box-shadow: 0 5px 0 rgba(255,255,255,1);
    background:  #F20CB0;
}

a.button-3d-secondary:hover {
    background: #DBC25A;
    box-shadow: 0 5px 0 rgba(51,133,171,1);
}

a.button-3d-tertiary:hover {
    background: #DBC25A;
    box-shadow: 0 5px 0 #F20CB0;
}

a.button-3d:active,
a.button-3d-secondary:active,
a.button-3d-tertiary:active {
    background: #edd46b;
    top: 5px;
    box-shadow: none;
}

a.button-inset {
    text-decoration: none;
    display: inline-block;
    line-height: 2.33;
    padding: 0 .75em;
    margin: 16px 10px;
    font-size: 1.1em;
    font-weight: bold;
    color: #eee;
    text-shadow: 0 1px 0 rgb(0 0 0 / 90%);
    background: linear-gradient( to bottom, hsla(0, 0%, 100%, 0.8) 0px, rgba(196,116,74,1) 2px, rgba(51,37,37,1) );
    border: 1px solid #d5d5d5;
    border-radius: 3px;
}

a.button-inset-small {
    font-size: .85em;
}

a.button-inset-large {
    font-size: 2em;
}

a.button-inset-secondary {
    background: linear-gradient( to bottom, hsla(0, 0%, 100%, 0.8) 0px, rgba(51,133,171,1) 2px, rgba(37,37,51,1) );
}

a.button-inset-tertiary {
    background: linear-gradient( to bottom, hsla(0, 0%, 100%, 0.8) 0px, #F20CB0 2px, rgba(37,37,51,1) );
}

a.button-inset:hover {
    box-shadow: inset 0 3px 7px 2px rgb(75 75 75 / 50%);
}

a.button-inset:active {
    background-color: #eee;
    background-image: none;
    border-color: #b5b5b5;
    box-shadow: inset 0 3px 5px 2px rgb(125 125 125 / 100%);
    color: #111;
    text-shadow: none;
    border-color: #333;
}

footer {
    clear: both;
    overflow: auto;
    margin: 0 20px;
    padding: 0 0 20px;
    color: #fff;
}

footer a:first-child {
	color: white;
}

footer a[href^=javascript] {
    position: relative;
    color: #000;
    display: block;
    line-height: 2em;
    font-size: 0.625em;
    background-color: #fff;
    border-radius: 3px;
    margin: 0 0 0 10px;
    padding: 0 10px;
    float: right;
    text-decoration: none;
    box-shadow: 0 2px 2px #000;
}

footer a[href^=http]:active {
    top: 2px;
    box-shadow: none;
}


/*
Start Media Query
    if screen is 48rem or larger (can use px or em)
    rem is based on font size of root element
        (16px * 48 = 768)
    use the following rules
*/

@media (min-width: 48rem) {
    .container {
        width: 96%;
        max-width: 800px;
        margin: 20px auto;
    }
    
    .wrapper {
        width: 80%;
        max-width: 1000px;
    }

    header {
        height: 400px;
        background: url(images/zombie-hand.png) no-repeat right bottom / 200px 200px,
url(images/bats.png) no-repeat top 10px left 10px / 100px 100px,
url(images/halloween-hero-sm.png) no-repeat center center / cover,
            #000 linear-gradient(to bottom,  rgba(196,74,84,1) 0%,rgba(51,37,37,1) 100%);
    }

    header h1 {
        line-height: 2.5;
        font-size: 2.75em;
        align-self: flex-end;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;

    }

    img {
        width: auto;
        float: right;
        margin: 0 0 2px 4px;
    }
}
