html {
    box-sizing: border-box;
}

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


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

.cf::after {
    clear: both;
}

html {
    font-family: Georgia, "Lucida Bright", serif;
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    background-color: antiquewhite;
}

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

.wrapper {
    border: 5px solid #ad7100;
    border-radius: 10px;
    background-color: #dec8ab;
    margin-top: 4.625em;
    margin-bottom: 10px;
}

.header-main {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    background-color: antiquewhite; 
	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;
    float: left;
    position: relative;
    left: 50%;
    transform: translateX(calc(-50% + 32px));
    margin: 0;
    color: darkblue;
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, "serif";
    font-weight: 800;
    letter-spacing: 4px;
}

h2  {
	color: darkblue;
    font-family: Constantia, "Lucida Bright", "DejaVu Serif", Georgia, "serif";
}

.nav-main {
    position: relative;
}

.nav-main-menu-toggle {
    display: none;
}

.nav-main-menu-toggle-icon {
    position: fixed;
    z-index: 200;
    width: 64px;
    height: 64px;
    top: 0;
    left: 0;
    cursor: pointer;
}

.nav-main-menu-toggle-icon span {
    width: 80%;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle-icon span,
.nav-main-menu-toggle-icon span::after {
    background-color: darkblue;
    height: 6px;
    position: absolute;
    content: '';
    transition: all .25s ease-out;
    border-radius: 3px;
}

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

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

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span {
    background-color: transparent;
}

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

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

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

.nav-main-menu {
    position: fixed;
    z-index: 50;
    top: 4em;
    left: 0;
    width: 0;
    height: calc(100vh - 3em);
    transition:
        width .5s .25s ease-out,
        box-shadow .25s ease-out;
    background-color: rgba(1, 101, 160, .7);
	margin-left: -3em;
    box-shadow: none;
    overflow-y: auto;
	list-style-type: none;
}

.nav-main-menu-toggle:checked~.nav-main-menu {
    width: 30vw;
    box-shadow: 0 0 0 100vw hsla(210, 3%, 23%, 0.40);
}


.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-indent: 2rem;
    margin: 4px 0;
    transition: all .25s ease-in;
}

.nav-main-menu a::before {
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    transform: translateX(-280%);
    content: "";
    display: inline-block;
    width: 10px;
    background: hsl(0, 0%, 100%);
    transition: inherit;
}

.nav-main-menu a:hover {
    text-indent: 2.5rem;
}

.nav-main-menu a:hover::before {
    transform: translateX(100vw);
    opacity: 0;
}

.cards {
	list-style-type: none;
    background: darkblue;
	padding: 0;
	margin: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

.cards .card {
	background: #F5D90F;
	margin: 10px;
	flex: 0 0 calc(100% - 20px);
	display: flex;
	min-width: 0;
}

.cards .card-link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex: 0 0 100%;
}

.cards .card figure {
	position: relative;
	margin: 0;
	line-height: 0;
	overflow: hidden;
}

.cards .card-figure-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transform-origin: 30% 30%;
	transform: rotate(0) scale(1);
	transition: all 2s;
	filter:grayscale(100);
}

.cards .card-link:hover .card-figure-image {
	transform: rotate(-4deg) scale(1.5);
	filter: grayscale(0);
}

.cards .card-figure-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0px;
	background: rgba(255,255,0, 0.7);
	line-height: 2;
	font-style: italic;
	font-weight: 600;
	color: darkblue;
	padding: 20px 20px;
}


.cards .card section {
	background: antiquewhite;
	padding: 10px 20px;
	display: flex;
	flex-grow: 1;
	flex-direction: column;
}

.cards .card-section-title {
	text-align: center;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 2px solid;
}

.cards .card-section-meta {
	display: flex;
	flex-wrap: wrap;
}

.cards .card-section-meta * {
	flex: 0 0 50%;
	font-size: .8em;
	line-height: 1.5;
}

.cards .card-section-meta :nth-child(even) {
	text-align: right;
}

.cards .card-section-excerpt {
	flex-grow: 1;
}

.cards .card-section-button {
	align-self: center;
	margin: 10px;
	padding: 0 1em;
	border-radius: 0.5em;
	border: 2px solid darkblue;
	color: darkblue;
	background: rgba(5,31,251,0.15);
	line-height: 2;
}

.callout {
    font-family: sans-serif;
    background: radial-gradient(rgb(255, 255, 255) 10%, rgb(199,161,112) 75%, rgb(188,142,82) 100%);
    padding: 12px;
	height: 100%;
}

.callout-heading {
    color: black;
	background-color: hsla(0, 0%, 100%, 0.40) ;
	line-height: 2em;
    font-size: 3em;
    text-transform: uppercase;
    margin: -10px 0 25px;
	border: 5px solid #ad7100;
	border-radius: 25px;
	text-align: center;
}

.callout-intro {
    color: black;
	text-align: center;
    font-size: 1.5em;
    margin: 0 0 16px;
}

.callout-intro {
	display: flex;
	flex-direction: row;
	justify-content: center;
}

.callout-intro img {
	width: 30%;
}

.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-white-100: hsla(0, 0%, 100%, 1);
    --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: rgb(0,0,139);
    --color-button-light: hsla(54, 86%, 58%, 1.00);
    --z-index: -1;
}

.subscribe-newsletter {
    transition: all 1s ease-in;
    border-radius: .5em;
		
}

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

.subscribe-newsletter fieldset {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 10px 50px 10px;
    margin: 0;
    border: none;
}

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


.subscribe-newsletter fieldset:last-child::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/Stopwatch.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.4;
    letter-spacing: 0.05em;
    padding: 0 .5em;
    margin: 0;
    color: black;
}

.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 .25s ease;
}

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

.subscribe-newsletter input[type=submit],
.subscribe-newsletter input[type=submit]:invalid {
    background: var(--color-button-dark);
    color: white;
    font-weight: bold;
	font-size: 1em;
    text-transform: uppercase;
    padding: 1em 1em;
    transition: all 1s .5s ease-in;
    transform-origin: right center;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter:valid input[type=submit] {
    color: var(--color-button-dark);
    background: #ffffff;
    transform: scale(1.6);
    box-shadow: 2px 2px 4px var(--color-black-60), -2px -2px 4px var(--color-black-60);
}

.subscribe-newsletter fieldset input[type=submit]:disabled {
    background: var(--color-white-80);
    color: black;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter label {
    color: var(--color-black-80);
    line-height: 1.625em;
    padding: 0 .5em;
}

.subscribe-newsletter.sending {
    background: var(--color-white-60);
}

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


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

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) {
	
	.cards .card {
		flex: 0 0 calc(50% - 20px);
	}
	
    .callout {
        padding: 80px;
    }
    .subscribe-newsletter {
        flex-direction: row;
        height: 8em;
        align-items: center;
    }
    .subscribe-newsletter:valid input[type=submit] {
        transform: scale(1.2);
    }

	
	body {
		background: #000 linear-gradient(rgb(255, 255, 255) 20%, rgb(199,161,112) 60%, rgb(188,142,82) 100%);
	}

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

    .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%);
    }

    .nav-main-menu-toggle,
    .nav-main-menu-toggle-icon {
        display: none;
    }

    .nav-main-menu {
        display: flex;
        justify-content: space-between;
        position: relative;
        z-index: 0;
        top: auto;
        left: 1.5em;;
        width: auto;
        height: auto;
        transition: none;
        background-color: transparent;
        box-shadow: none;
        overflow: hidden;
        padding: 0 30px;
    }

    .nav-main-menu-toggle:checked~.nav-main-menu {
        width: auto;
        box-shadow: none;
    }

    .nav-main-menu a {
        position: static;
        display: block;
        text-indent: 0;
        padding: 0 1em;
        border: 4px solid #fada5e;
        border-radius: 10px;
        transition: all .25s linear;
        background-color: darkblue;
    }

    /*  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: darkblue;
        background-color: hsl(0, 0%, 100%);
        box-shadow: 0 0px 0px currentColor;
    }

    .nav-main-menu a:active {
        text-indent: 0;
        color: hsl(213, 100%, 44%);
        background-color: hsl(0, 0%, 100%);
        box-shadow: inset 0 3px 5px currentColor;
    }


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

}

/* CSS Document */

