/* CSS Document */

html {
    box-sizing: border-box;
}

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

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

.cf::after {
    clear: both;
}

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

body {
    min-height: 100%;
    margin: 0;
    background:linear-gradient( rgba(127,255,212,0.5), 
								rgba(102,205,170, 0.5),
								rgba(32,178,170, 0.5));
}

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

.wrapper {
    border: 7px solid #4682b4;
    border-radius: 10px;
    background-color: rgba(127, 255, 212, 0.3);
    margin-top: 4.625em;
    margin-bottom: 10px;
}

.header-main {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
	padding: 1.5em 0;
	line-height: 3em;
    z-index: 100;
    background: url("images/fishing-icon.png");
	background-repeat: no-repeat;
	background-size: contain;
	background-color: #f5deb3;
	box-shadow: inset 0 2px 3px hsla(0, 0%, 0%, 0.8), 0px 4px 6px 0px hsla(227, 17%, 16%, 0.62);
}

.header-main h1 {
    line-height: 2.5;
	font-size: 2em;
    float: left;
    position: relative;
    left: 45%;
    transform: translateX(calc(-50% + 32px));
    margin: 0;
    color: #2D6CA0;
    font-family: Impact, "Arial-Black", "sans-serif";
    font-weight: 800;
    letter-spacing: 4px;
}

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

div>p {
	text-indent: 1em;
	margin-top: 50px;
}

.nav-main {
    position: relative;
}

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

.nav-main-menu-toggle-icon {
    position: fixed;
    z-index: 300;
    width: 80px;
    height: 80px;
    top: 2.1em;
    right: 2em;
    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: #2D6CA0;
    height: 8px;
    position: absolute;
    content: '';
    transition: all .25s ease-out;
	border: 1px solid #7fffd4;
    border-radius: 4px;
}

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

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

.nav-main-menu-toggle:checked~.nav-main-menu-toggle-icon span {
    background-color: #91CCDF;
	border: 1px solid #2D6CA0;
}

.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;
	background-color: #91CCDF;
	border: 1px solid #2D6CA0;
}

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

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

.nav-main-menu {
    position: fixed;
    z-index: 50;
    top: 6em;
    right: 0;
    width: 0;
    height: calc(100vh - 3em);
    background-color: rgba(178,174,174,0.87);
	margin-right: -3em;
    box-shadow: none;
    overflow-y: auto;
	list-style-type: none;
}

.nav-main-menu-toggle:checked~.nav-main-menu {
    width: 35vw;
	margin-top: 2.3em;
    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: 600;
    color: #085F5F;
    text-decoration: none;
    text-indent: 0.5em;
    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: #085F5F;
    transition: inherit;
}

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

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

.intro-main {
	padding: 3em 2em 1em 2em;
}

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

.cards .card {
	background-color: #f5deb3;
	margin: 10px;
	flex: 0 0 calc(100% - 20px);
	display: flex;
	min-width: 0;
	border: 5px solid #203E4B;
}

.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: scale(1);
	transition: all 2s;
	filter:grayscale(100);
}

.cards .card-link:hover .card-figure-image {
	transform: translateY(-20% )scale(0.7);
	filter: grayscale(0);
}

.cards .card-figure-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0px;
	background: rgba(32,178,170, 0.4);
	line-height: 2;
	font-style: italic;
	font-size: 1.5em;
	font-weight: 800;
	color: #085F5F;
	padding: 10px 20px;
}

.cards .card section {
	background: rgba(245,222,179, 1);
	padding: 10px 20px;
	display: flex;
	flex-grow: 1;
    flex-direction: column;
}

.cards .card section:hover {
	transform: translateY(-20%);
	transition: all 1.5s ease-in;
}

.cards .card-section-title {
	text-align: center;
	color: #2D6CA0;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 5px double #4682b4;
}

.cards .card-section-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin: 0 30px;
}

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

span>img {
	width: 15px;
	padding-right: 3px;
}

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

.cards .card-section-meta :last-child {
	text-align: center;
}

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

.cards .card-section-button {
	align-self: center;
	margin: 10px;
	padding: 0 1em;
	border-radius: 0.5em;
	border: 3px solid #20b2aa;
	color: black;
	background: rgba(32,178,170, 0.4);
	line-height: 2;
	box-shadow: inset 0 2px 4px hsla(0, 0%, 0%, 0.8), 0px 4px 6px 0px hsla(227, 17%, 16%, 0.62);
}

.callout {
    font-family: sans-serif;
	font-weight: 400;
	background: url("images/school-tan.png"), repeat, 
                linear-gradient(to bottom left, rgb(255, 255, 255) 10%, rgba(245,222,179, 0.8) 40%, rgb(210,180,140) 100%);
    padding: 12px;
	height: 100%;
}

.callout-heading {
    color: black;
	background-color: rgba(32,178,170, 0.3);
	line-height: 2em;
    font-size:2em;
    text-transform: uppercase;
    margin: 10px 0 25px;
	border: 5px solid #008080;
	border-radius: 25px;
	text-align: center;
}

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

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

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

.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);
    --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);
	 outline: 2px solid #008080;
}

.subscribe-newsletter input[type=email]:focus {
    outline: 2px solid #008080;
    box-shadow: inset 0 0 0 2px grey;
}

.subscribe-newsletter input[type=text] {
	background: var(--color-white-60);
	outline: 2px solid #008080;
}

.subscribe-newsletter input[type=text]:focus {
    outline: 2px solid #008080;
    box-shadow: inset 0 0 0 2px grey;
}

.subscribe-newsletter input::placeholder {
    position: relative;
    color: #008080; 
    opacity: .7;
	border: 3px solid #008080;
}

.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 {
    color: white;
    font-weight: bold;
	border-radius: 10px;
	border: 3px solid #20b2aa;
	color: white;
	text-shadow: 4px 3px 3px black;
	background: rgba(26,153,146,1);
	line-height: 2;
	box-shadow: inset 0 2px 4px hsla(0, 0%, 0%, 0.8), 0px 4px 6px 0px hsla(227, 17%, 16%, 0.62);
	font-size: 1.5em;
    text-transform: uppercase;
    padding: 0.5em 1em;
    transition: all 1s .5s ease-in;
    transform-origin: right center;
    transform: scale(1);
}

.subscribe-newsletter:valid input[type=submit] {
    background: rgba(32,178,170, 0.3);
	border: 3px solid #008080;
	border-radius: 0.5em;
    transform: scale(1.1);
	margin-left: 1em;
    box-shadow: inset 0 2px 4px hsla(0, 0%, 0%, 0.8), 0px 4px 6px 0px hsla(227, 17%, 16%, 0.62);
}

.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);
	text-shadow: none;
}

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

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

.subscribe-newsletter .subscribe-newsletter-message-error {
    background: #4682b4;
}

.subscribe-newsletter .subscribe-newsletter-message-success {
    background: var(--color-white-60);
    font-size: 1.6em;
    flex: 1;
    text-align: center;
	padding: 0 20px;
}

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) {
	
	body {
		background: url("images/school-light.png") repeat,
		            linear-gradient(to top, rgba(127, 255, 212, 0.5) 25%, 
			                                rgba(102, 205, 170, 0.5) 70%, 
			                                rgba(32, 178, 170, 0.5));
	}

    .container {
        width: 100%;
        max-width: 940px;
        margin: 20px auto;
		background-color: #4682b4;
    }

    .header-main {
		position: static;
        height: 500px;
		background: url("images/fish-icon.png") no-repeat top 40px right 45px / 100px 100px,
					url("images/waves.png") no-repeat top 60px right 40px / 120px 80px,
					url("images/fisherman.png") no-repeat center center / cover;
		border-radius: 10px;
        border: 2px solid hsl(0, 0%, 50%);
        margin: 20px;
    }

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

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

    .nav-main-menu {
        display: flex;
        justify-content:flex-start;
        position: relative;
        z-index: 0;
        top: auto;
		left: 2%;
        width: 80%;
        height: auto;
        transition: none;
        background-color: transparent;
        box-shadow: none;
        overflow: hidden;
        padding: 0 10px;
    }

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

    .nav-main-menu a {
        position: static;
        display: block;
        text-indent: 0;
		font-size: 1.2em;
        margin-right: 15px;
		padding: 0 15px;
        border: 4px solid #fada5e;
        border-radius: 10px;
        transition: all .25s linear;
        background-color: rgba(255, 248, 220);
    }
	
    .nav-main-menu a::before {
        display: none;
    }

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

    .nav-main-menu a:active {
        text-indent: 0;
        color: white;
        background-color: #4682b4;
        box-shadow: inset 0 3px 5px currentColor;
    }
	
	div>p {
		color: white;
		width: 80%;
		margin-left: 10%;
	}	
	
	.intro-main {
		padding: 0 2em 1em 2em;
	}

	.cards  {
		justify-content: space-around;
		margin-bottom: 2em;
	}

   .cards .card {
		flex: 0 0 calc(50% - 5%);
	}
	
    .callout {
        padding: 30px 80px 80px 80px;
	}
		
	 .callout-heading {
		line-height: 2em;
	}
	
	.callout-intro {
		width: 80%;
	}
	
	.callout-intro img {
		width: 20%;
	}
	
    .subscribe-newsletter {
        flex-direction: row;
        height: 8em;
        align-items: center;
    }
	
    .subscribe-newsletter:valid input[type=submit] {
        transform: scale(1.1);
    }
	

}

/* CSS Document */
