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-image: url(../images/waves.webp), url(../images/trees.webp),  linear-gradient(45deg,
     hsl(285deg 70% 76%) 0%,
     hsl(253deg 53% 61%) 5%,
     hsl(222deg 35% 46%) 11%,
     hsl(212deg 46% 54%) 19%,
     hsl(209deg 65% 71%) 28%,
     hsl(177deg 70% 66%) 43%,
     hsl(114deg 59% 42%) 69%,
     hsl(67deg 50% 23%) 83%,
     hsl(67deg 49% 20%) 92%,
     hsl(67deg 47% 17%) 100%
        );
    background-position: bottom left, left, center;
    background-repeat: repeat-x, repeat;
    
}

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

.wrapper {
    border-radius: 10px;
    background: #393B3D;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    border-radius: 10px;
    height: 550px;
    margin: 20px;
    background: url(../images/koala-branch.webp) no-repeat -44px 303px / 246px 347px,
                url(../images/koala-sitting.webp) no-repeat 98px 373px / 341px 291px,
                url(../images/koala-sleeping.webp) no-repeat center / cover;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
}

header h1 {
    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: linear-gradient(45deg,
    hsl(253deg 53% 61%) 5%,
    hsl(222deg 35% 46%) 11%,
    hsl(114deg 59% 42%) 69%,
    hsl(67deg 50% 23%) 83%,
    hsl(67deg 49% 20%) 92%,
    hsl(67deg 47% 17%) 100%
       );
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}


section {
    overflow: hidden;
    margin: 20px;
    border: 2px solid white;
    border-radius: 10px;
    padding: 10px;

    background: #b9ffe4 linear-gradient(to bottom, rgba(120, 211, 212, 0.8) 0%, #c7ffe9, rgb(239, 255, 255) 20%);
}

h2 {
    margin: 24px 0 6px;
}

p {
    margin: 0 0 16px;
    line-height: 1.4;
    text-indent: 12px;
}

img {
    width: 100%;
}

/*
Default - General styling all buttons built with class: buttonv01 (Button Version 01)
- they all use the same basic properties
- then modify design using a class name to add/remove/update a property: value 
*/

a.button-v01 {
    display: inline-block;
    line-height: 2;
    padding: 0 1em;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid hsl(0, 0%, 0%);
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 2px 6px hsla(0, 0%, 0%, 0.8);
    background-color: hsl(325, 100%, 33%);
    font-weight: bold;
}

/*  Default Pseudo States - :hover, :active */
a.button-v01:hover {
    box-shadow: none;
}

a.button-v01:active {
    box-shadow: inset 0 2px 4px hsla(0, 0%, 0%, 1);
}


/*  Button sizes [small default large] default is the buttonv01 selector rule */
a.button-v01-small {
    font-size: 0.8em
}

a.button-v02-small {
    font-size: 0.8em
}

a.button-v03-small {
    font-size: 0.8em
}

a.button-v04-small {
    font-size: 0.8em
}

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

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

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

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

.button-v02 {
    border-radius: 10px;
    box-shadow: 0 5px 0 #603482;
    background: #8523b9;
    color: #fff;
    padding: 5px 14px 3px;
    font-size: 1.1em;
    position: relative;
    text-decoration: none;
}

.button-v02:hover {
    background: #603482;
    box-shadow: 0 5px 0 #603482;
    text-decoration: none;
}

.button-v02:active {
    top: 5px;
    box-shadow: none;
}

.button-v03 {
    text-decoration: none;
    display: inline-block;
    padding: 7px 14px;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    background-color: #c1caff;
    border: 1px solid #d5d5d5;
    border-radius: 3px;
}

.button-v03:hover {
    background-color: #ddd;
    background-image: linear-gradient(to bottom, #eee, #ddd);
    border-color: #ccc
}

.button-v03:active {
    background-color: #dcdcdc;
    background-image: none;
    border-color: #b5b5b5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.button-v04 {
    text-decoration: none;
    display: inline-block;
    padding: 7px 14px;
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
    background-color: #00ffff;
    border: 1px solid #00ffff;
    border-radius: 3px;
}

.button-v04:hover {
    background-color: #03b3b3;
    border-color: #03b3b3;
}

.button-v04:active {
    background-color: #00ffff;
    background-image: none;
    border-color: #00ffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

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

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

.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;
    left: 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: 6px;
    position: absolute;
    content: '';
    transition: all 10s cubic-bezier(0, 0.87, 0.32, 1.28);
}

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

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

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

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

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

/* when input checked show the UL */
.nav-main-menu-toggle:checked~.nav-main-menu {
    width: 60vw;
    box-shadow: 0 0 0 100vw hsla(200, 32%, 31%, 0.737);

}

/* 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-indent: 1.25rem;
    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(-280%);
    content: "";
    display: inline-block;
    width: 10px;
    background: hsl(0, 0%, 100%);
    transition: ease-in;
}

/* style anchor :hover */
.nav-main-menu a:hover {
    text-indent: 1.5rem;
}

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

.callout {
    font-family: sans-serif;
    padding: 12px;
}

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

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

.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: rgb(26, 244, 255);
    --z-index: -1;
    padding: 10px;
}

.subscribe-newsletter {
    transition: all 1s ease-in;
    background: hsla(0, 0%, 0%, 0.80);
    color: white;
    border-radius: .5em;
}

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

.subscribe-newsletter fieldset {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    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/loader-circles-spin.svg") no-repeat center;
    z-index: var(--z-index, -1);
}

.subscribe-newsletter input:not([type="radio"]):not([type="checkbox"]) {
    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: var(--color-button-dark);
}

.subscribe-newsletter input[type=email] {
    background: white;
}

.subscribe-newsletter input[type=email]: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 ease, opacity .25s ease;
}

.subscribe-newsletter input:focus::placeholder {
    transform: translateX(100%);
    transition: transform 1s ease-in, 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;
    text-transform: uppercase;
    padding: 0 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: var(--color-button-light);
    transform: scale(1);
    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-white-80);
    line-height: 1.625em;
    padding: 0 .5em;
}

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

/*
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;
    }

    header {
        height: 550px;
            background: url(../images/koala-branch.webp) no-repeat -3px 263px / 250px 320px,
                url(../images/koala-sitting.webp) no-repeat 492px 302px / 371px 338px,
                url(../images/koala-sleeping.webp) no-repeat center / cover;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8);
    }

    header h1 {
        line-height: 2;
        font-size: 2.75em;
        align-self: flex-end;
    }

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

    .wrapper {
        border-radius: 10px;
        background: #393B3D;
        margin-top: 100px;
        margin-bottom: 100px;
    }
    
     /*  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: 2px solid hsl(0, 0%, 100%);
         border-radius: 25px;
         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: hsl(200, 61%, 29%);
         background-color: hsl(0, 0%, 100%);
         box-shadow: 0 0px 0px currentColor;
     }
 
     .nav-main-menu a:active {
         text-indent: 0;
         color: hsl(200, 61%, 29%);
         background-color: hsl(0, 0%, 100%);
         box-shadow: inset 0 0px 4px currentColor;
     }
     .callout {
        padding: 80px;
    }
    .subscribe-newsletter {
        flex-direction: row;
        height: 8em;
        align-items: center;
    }
    .subscribe-newsletter:valid input[type=submit] {
        transform: scale(1.2);
    }
}