html {
    box-sizing: border-box;
}

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

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

sup {
    line-height: 0;
}

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

.cf::after {
    clear: both;
}

html {
    font-family: "Trebuchet MS", Verdana, sans-serif;
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background: #000 linear-gradient(to bottom left, #f8dff3, #d1b6cd, #cc6abb);
}

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

/**
 * .wrapper margin-top value
 * - Pushes wrapper down
 * - Makes room for fixed nav
 * - em unit based on nherited font-size
 * - 16px * 4.626 = 74px
 */
.wrapper {
    border: 2px solid hsl(0, 0%, 100%);
    border-radius: 10px;
    background: #650c55;
    margin-top: 4.625em;
    margin-bottom: 10px;
}

/**
 * .header-main fixed
 * - wrapper will slide under fixed nav
 * - attach to top, right and left edge of screen
 * - z-index is the stacking order - eg. layers in Photoshop
 * - larger higher in the stack / negative lower in the stack
 * - 100 is an arbitrary location with room below
 */
.header-main {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background:  #f8dff3;
    box-shadow: inset 0 2px 4px hsla(0, 0%, 0%, 0.8), 0px 4px 6px 0px hsla(227, 17%, 16%, 0.62);
}

/**
 * .header-main h1
 * - line-height 2 times the inherited font-size
 * - float left - shrink wrap the width around the content
 * - position relative - can be positioned
 * - left: 50% find the left edge of the element and align with 50% left of parent element
 * - translateX move the element based on the element size -50% plus half the size of the hamburger
 * - this will center the h1 in the negative space to the right of the hamburger
 * - not the center of the parent element
 */
.header-main h1 {
    line-height: 2;
    float: left;
    position: relative;
    left: 50%;
    transform: translateX(calc(-50% - 25px));
    margin: 0;
    color: black;
    font-family: Impact, "Arial Black", sans-serif;
    font-weight: 400;
    letter-spacing: 5px;
}

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

.nav-main {
    position: relative;
}

/* hide the check box - input type=checkbox*/
.nav-main-menu-toggle {
    display: none;
}

/* style the checkbox's label */
.nav-main-menu-toggle-icon {
    position: fixed;
    z-index: 200;
    width: 64px;
    height: 64px;
    top: 0;
    right: 0;
    cursor: pointer;
}

/* position the span in the label - this is the hamburger of the hamburger icon */
.nav-main-menu-toggle-icon span {
    width: 80%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

/**
 * .nav-main-menu-toggle-icon span
 * - build the hamburger icon
 * - ::before and ::after are pseudo elements
 * - they do not exist in the markup but we can style them
 * - every element that has content has ::before and ::after
 * - each line is 6px tall with a 3px border radius
 */
.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle-icon span,
.nav-main-menu-toggle-icon span::after {
    background-color: hsl(0, 0%, 100%);
    height: 8px;
    position: absolute;
    content: '';
    transition: all .25s ease-in;
	border: 2px solid black;
    border-radius: 3px;
}

.nav-main-menu-toggle-icon span::before {
    width: 80%;
    top: -12px;
	left: 10%;
}

.nav-main-menu-toggle-icon span::after {
    width: 80%;
    top: 10px;
	left: 10%;
}

/**
 * .element ~ element
 * - is the General sibling combinator
 * - find .nav-main-menu-toggle:checked
 * - when the input is checked...
 * - style the .nav-main-menu-toggle-icon span
 * - a trick to use the input type="checkbox" to trigger changes in our layout
 */
.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span {
    background-color: transparent;
	border: none;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after {
    top: 0;
	width: 100%;
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::before {
    transform: rotate(-495deg);
}

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span::after {
    transform: rotate(495deg);
}

/* style the UL left 0 width 0 can not be seen */
.nav-main-menu {
    position: fixed;
    z-index: 50;
    top: 4em;
    right: 0;
    width: 0;
    height: calc(100vh - 3em);
	padding-top: 1.5em;
    transition:
        width .5s .25s ease-in,
        box-shadow .25s ease-in;
    background-color: hsla(210, 3%, 23%, 0.60);
    box-shadow: none;
    overflow-y: auto;
}

/* when input checked show the UL */
.nav-main-menu-toggle:checked~.nav-main-menu {
    width: 100vw;

}

/* style the anchor */
.nav-main-menu a {
    position: relative;
    display: block;
    font-size: 1.5em;
    line-height: 2;
    font-weight: 300;
    color: hsl(0, 0%, 100%);
    text-decoration: none;
    text-align:center;
    /margin: 4px 0;
    /transition: all .25s ease-in;
}

/* create and style the anchor's ::before pseudo element */
.nav-main-menu a::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    /transform: translateX(100%);
    content: "";
    display: inline-block;
    width: 0px;
    background: hsl(0, 0%, 100%);
    transition: inherit;
}

/* style anchor :hover */
.nav-main-menu a:hover {
    text-indent: 25%;
	font-family: Impact, "Arial Black", sans-serif;
	color: lightpink;
}

.nav-main-menu a:active {
	text-indent: 25%;
	font-family: Impact, "Arial Black", sans-serif;
	color: white;
}

/* style the ::before when :hover on anchor */
.nav-main-menu a:hover::before {
    transform: translateX(100vw);
    opacity: 0;
}

/* End Navigation: Small Screen: 0px and UP */

section {
    overflow: hidden;
    margin: 20px;
    border: 2px solid hsl(0, 0%, 100%);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.8);
    background: hsl(0, 0%, 100%) linear-gradient(to bottom, rgba(0, 0, 0, 0.80) 0%, hsla(0, 0%, 100%, 0.6) 5%, hsl(0, 0%, 100%) 20%);
}

img {
    width: 100%;
}


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


.callout {
    font-family: sans-serif;
    background: #650c55;
    max-width: 960px;
    margin: 0 auto;
    padding: 5px;
	width: 100%;
    max-width: 960px;
    margin:0 auto;
}

.callout-heading {
    color: white;
    font-size: 3em;
    text-transform: uppercase;
	text-align: center;
    margin: 25px 0 32px;
	
}

.callout-header {
	background-color: transparent;
	background-image: url("images/finger.png");
	background-size: contain;
	background-repeat:no-repeat;
	background-position: left;
	line-height: 1.0em;
	margin-left: 20px;
}

.callout-intro {
    color: white;
	text-align: center;
    font-size: 1.2em;
	padding:10px 0 20px 0;
    margin: 10px 0 80px;
}
.subscribe-newsletter {
    --color-white-20: hsla(0, 0%, 100%, 0.20);
    --color-white-40: hsla(0, 0%, 100%, 0.40);
    --color-white-60: hsla(0, 0%, 100%, 0.60);
    --color-white-80: hsla(0, 0%, 100%, 0.80);
    --color-black-20: hsla(0, 0%, 0%, 0.20);
    --color-black-40: hsla(0, 0%, 0%, 0.40);
    --color-black-60: hsla(0, 0%, 0%, 0.60);
    --color-black-80: hsla(0, 0%, 0%, 0.80);
    --color-button-dark: hsla(266, 47%, 30%, 1.00);
    --color-button-light: hsla(54, 86%, 58%, 1.00);
    --z-index: -1;
}

.subscribe-newsletter fieldset:first-child {
    transition: all 1s ease-in;
    
    border-radius: 0.2em;
}

.subscribe-newsletter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
}

.subscribe-newsletter fieldset {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    margin: 20px 0 75px 0;
    border: none;
}

.subscribe-newsletter fieldset:first-child {
    flex: 1 1 auto;
	
}

.subscribe-newsletter fieldset:last-child::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 100%;
    background: url("images/Pinwheel.gif") no-repeat center;
    z-index: var(--z-index, -1);
}

.subscribe-newsletter input:not([type="radio"]):not([type="checkbox"]) {
    -webkit-appearance: none;
    border: none;
    border-radius: 0;
}

.subscribe-newsletter input {
    position: relative;
    font-family: inherit;
    font-size: 1.2em;
    line-height: 2.0;
    letter-spacing: 0.05em;
    padding: 0 .5em;
    margin: 0;
    color: var(--color-button-dark);
}

.subscribe-newsletter input[type=email] {
    background: var(--color-white-60);
}

.subscribe-newsletter input[type=email]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-button-dark);
}

.subscribe-newsletter input[type=text] {
    background: var(--color-white-60);
}

.subscribe-newsletter input[type=text]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-button-dark);
}

.subscribe-newsletter input::placeholder {
    position: relative;
    color: var(--color-button-dark);
    opacity: .4
}

.subscribe-newsletter input::placeholder {
    transition: 2s cubic-bezier(1, 1.65, 0.35, 1.32), opacity 1s ease;
}

.subscribe-newsletter input:focus::placeholder {
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(0.15, 0.69, 0.7, -0.42), opacity 3s ease;
    opacity: 0
}

.subscribe-newsletter input[type=submit],
.subscribe-newsletter input[type=submit]:invalid {
    background: var(--color-button-dark);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
	text-align: center;
	width: 50%;
	padding: 25px 10px 25px 10px;
    transition: all .1s .1s ease-in;
    transform-origin: right center;
    transform: scale(1);
	margin: 0 0 10px 10px;
	
}

.subscribe-newsletter:valid input[type=submit],
.subscribe-newsletter:invalid input[type=submit]{
		border: 4px solid white;
	    border-radius: 5px;
}

.subscribe-newsletter:valid input[type=submit] {
    color: var(--color-button-dark);
    background: var(--color-button-light);
	border: 3px solid black;
	border-radius: 10px;
	text-align: center;
	width: 35%;
	margin: 0 0 10px 75px;
    transform: scale(1.2);
  
}

.subscribe-newsletter fieldset input[type=submit]:disabled {
    background: var(--color-white-80);
    color: black;
    transform: scale(1.2);
}

.subscribe-newsletter label {
    color: var(--color-white-80);
	background: var(--color-white-20);
    line-height: 2em;
    padding: 0.5em .5em;
}


.subscribe-newsletter.received {
    background: var(--color-white-20);
}
	

.subscribe-newsletter .subscribe-newsletter-message-error {
    background: var(--color-button-dark);
}

.subscribe-newsletter .subscribe-newsletter-message-success {
    background: var(--color-white-80);
    color: var(--color-button-dark);
    font-size: 1.6em;
    flex: 1;
    text-align: center;

}

.spam { 
	display: flex;
	flex-direction: row;
	width: 250px;
	height: 150px;
	align-items: center;
	background-image: url("images/nospam.pg");
	background-size: contain;
	background-color: rgba(198,161,207, 1);
	margin: 0 0 0 0;
	
}  

h3  {
	font-family: Georgia, serif;
}

footer {
    clear: both;
    overflow: auto;
    margin: 0 20px;
    padding: 0 0 20px;
    color: hsl(0, 0%, 100%);
}

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

footer a[href^="javascript"]:active {
    top: 2px;
    box-shadow: none;
}
   
@media (min-width: 768px) {

    /*  override margin */
    .container {
        width: 96%;
        max-width: 800px;
        margin: 20px auto;
    }

    /*  override size and position of header */
    .header-main {
        position: static;
        height: 120px;
        border-radius: 10px;
        border: 2px solid hsl(0, 0%, 50%);
        margin: 20px;
    }

    .header-main h1 {
        line-height: 120px;
        font-size: 2.75em;
        transform: translateX(-50%);
    }

    /*  hide the checkbox and the hamburger */
    .nav-main-menu-toggle,
    .nav-main-menu-toggle-icon {
        display: none;
    }

    /*  override and reset to no style */
    .nav-main-menu {
        display: flex;
        justify-content: space-between;
        position: relative;
        z-index: 0;
        top: auto;
        left: auto;
        width: auto;
        height: auto;
        transition: none;
        background-color: transparent;
        box-shadow: none;
        overflow: hidden;
        padding: 0 20px;
    }

    /*  override and reset to no style */
    .nav-main-menu-toggle:checked~.nav-main-menu {
        width: auto;
        box-shadow: none;
    }

    /*  override and basic style for navigation large screen */
    .nav-main-menu a {
        position: static;
        display: block;
        text-indent: 0;
        padding: 0 1em;
        border: 5px solid hsl(0, 0%, 100%);
        border-radius: 20px;
        transition: all .25s linear;
        box-shadow: 0 0px 4px currentColor;
    }

    /*  hide the a:::before */
    .nav-main-menu a::before {
        display: none;
    }

    /*  basic style for navigation large screen */
    .nav-main-menu a:hover {
        text-indent: 0;
        color: black;
        background-color: whitesmoke;
		border: 5px solid black;
        box-shadow: 0 4px 4px #d1b6cd;
    }

    .nav-main-menu a:active {
        text-indent: 0;
        color: black;
        background-color: #f8dff3;
        box-shadow: inset 0 0px 4px currentColor;
    }


    img {
        width: auto;
        float: right;
        margin: 0 0 2px 4px;
    }
	
	 .callout {
        padding: 20px 80px 80px 60px;
    }
	
	.callout-heading {
		margin: 0 0 32px;
	}
	
	.callout-header {
		margin-top: 20px;
	}
	
	.subscribe-newsletter label {
		text-align: center;
	}
	
    .subscribe-newsletter {
        flex-direction: row;
        height: 8em;
        align-items: center;
    }
    .subscribe-newsletter:valid input[type=submit],
    .subscribe-newsletter:invalid input[type=submit]{
        transform: scale(1);
		width: 100%;
		padding: 0 15px;
		margin: 0 0 80px 30px;
		
    }
	
	.subscribe-newsletter fieldset:last-child::after {
		width: 100%;
		margin-bottom: 40px;
	}

	.spam { 
	display: flex;
	width: 60%;
	margin-left: 20%;
	margin-top: 25px;
	align-content: center;
	background-image: url("images/nospam.pg");
	background-color: rgba(198,161,207, 1);
	
    }  
}
