
/* Mobile First */

html {
    box-sizing: border-box; /*padding and border are included in the width and height */
}

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

ul,
ol {  /* ordered and unordered lists */
    margin: 0;
    padding-left: 0;
    list-style: none;
}

sup {  /*defines superscript text */
    line-height: 0;
}

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

.cf::after {
    clear: both;
}
html {
    color:#000000;
    font-family: "Helvetica Neue", Arial, sans-serif;
    min-height: 100%;
}

body {
    min-height: 400%;
    margin: 13px;
    background-image:url('../css/images/green3.png');

}

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

.wrapper {
    border:3px solid rgba(47,46,44,1.00);
    border-radius: 10px; 
    background:rgba(172,116,5,1.00);
    margin-top: 4.625em;
    margin-bottom: 10px;
    
}

/**
 * .header-main fixed
 * - wrapper will slide under fixed nav
 * - attaches to top, right and left edge of screen and will remain
 *      there when scrolling down the page.
 * - z-index is the stacking order 
 */
.header-main {
    position: fixed; /* header remains fixed at the top of the screen */ 
    top: 0;
    right: 0;
    left: 0;
    z-index: 100; /* stacking order */
    background: #000 linear-gradient(to bottom,rgba(164,125,175,1.00),rgba(100,59,87,1.00));
    box-shadow: inset 0 2px 4px rgba(97,81,92,1.00), 0px 4px 6px 0px hsla(286,81%,65%,0.62);
}

/* Beginning of Display: flex CARDS */
.cards {
    border-radius:20%;
    display: flex;
    flex-wrap: wrap;
    list-style: none;  /* hides bullets from list */
 }

.cards .card {
    flex: 0 0 calc(100% - 20px);
    display: flex;
    margin: 10px;
    min-width: 0;
    background:rgba(24,80,174,0.00);
}

.cards .card-link {
    border-radius:60%;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column; /* sets directon to column NOT row */
    flex: 0 0 100%;
}

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

.cards .card-figure-image {
    border-radius:50%;
    width: 100%;
    height: 250px;
    object-fit: cover;
    transform-origin: 80% 12%; /* scaling and zooming of image */
    transform: rotate(0) scale(1);
    transition: all 2s;
    filter:drop-shadow(100px);
}

.cards .card-figure-caption {
    text-align:center;
    padding:0px;
    border-radius:20%;
}

.cards .card-link:hover .card-figure-image {
    transform: scaleX(1.1);
    filter:sepia(80%);
    border-radius:20%;
}

.cards .card-figure-caption {
    position: absolute;
    width:20em;
    left: 10px;
    right: 25px;
    bottom: 65px;
    border-radius: 30%;
    background: hsla(57,41%,46%,1.00);
    color: hsla(0,0%,0%,1.00);
    line-height:2;
    font-style: italic;
}

.cards .card-section {
    border-radius:40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color:#C5BF9F;
}

.cards .card-section-title {
    margin-bottom: 0;
    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: 2;
}

.cards .card-section-meta :nth-child(even) {
    text-align: right;  /* aligns the even text to the right within the card */
}

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

.cards .card-section-button {
   background-color:rgba(174,154,24,0.70);
    align-self: flex-end;
    margin: 10px;
    padding: 0 1em;
    border-radius: .5em;
    line-height: 2;
}
 .cards .card-section-button:hover { /* scales on hover */
    transform: scaleX(1.1);
    filter:sepia(80%);
        border: 5px double;
}
/* end of display: flex cards */

section {
    overflow: hidden;
    color:black;
    margin: 20px;
    border: 2px solid rgba(208,200,110,1.00);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px ;
    background:rgba(121,108,124,0.00);
}

/**
 * .header-main h1
 * - 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;  /* line height 2x the font-size */
    position: relative;
    float: left;
    left: 50%;
    transform: translateX(calc(-50% + 32px));
    margin: 0;
    color:#bc8eff;
    font-family: "Myriad Pro Regular", sans-serif;
    font-weight: 200;
    letter-spacing: 2px;  /* text spacing */
    text-shadow: 0 -2px 2px hsla(0, 0%, 0%, 0.6);
}

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

/* beginning of the Hamburger navigation menu */

.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: 65px;
    height: 65px;
    top: 0;
    left: 0;
    cursor: pointer;/*  styles the cursor*/
}

/* 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: 30%;
    transform: translateY(-50%);
}

/**
 * .nav-main-menu-toggle-icon span
 * - build the hamburger icon
 * - ::before and ::after are pseudo elements
 * - every element that has content has ::before and ::after
 */
.nav-main-menu-toggle-icon span::before,
.nav-main-menu-toggle-icon span,
.nav-main-menu-toggle-icon span::after {
    background-color:#6C390F;
    height: 6px;/*sets the thickness of hamburger bars*/
    position: absolute;
    content: '';
    transition: all .25s ease-in;
    border-radius: 50%;/* makes oval hamburger bars*/ 
}

.nav-main-menu-toggle-icon span::before {
    width: 100%;
    top: -15px; /*spaces the top bar -10px above the middle bar */
}

.nav-main-menu-toggle-icon span::after {
    width: 100%;
    top: 15px;/*spaces the top bar 10px below the middle bar */
}

/**
 * .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 {
   transform: rotate(-180deg);
}

.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);/* sets height of dropdown menu*/
    transition:
        width .5s .25s ease-in,
        box-shadow .25s ease-in;
    background-color:rgba(94,27,14,0.79);
    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(210, 3%, 23%, 0.40);

}

/* style the anchor */
.nav-main-menu a {
    position: relative;
    display: block;
    font-size: 1.5em;
    line-height: 2;
    font-weight: 300;
    color:#F9F9F9;
    text-decoration: none;
    text-indent: 1.25rem;
    margin: 4px 0;
}

/* 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(-180%);
    content: "";
    display: inline-block;
    width: 10px;
    background:rgba(188,90,13,1.00);  /*left bar color*/
    transition: inherit;
}

/* style anchor :hover */
.nav-main-menu a:hover {
  text-align: center;
  font-style: italic;
    font-weight:bold;
  background-color:rgba(9,8,8,0.50);
    
}

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

/* End Navigation: Small Screen */

section {
    overflow: hidden;
    margin: 20px;
    border: 2px solid hsla(0,5%,8%,1.00);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.8);
    background: rgba(255,255,255,1.00);
}

img {
    width: 100%;
}

footer {
    clear: both;
    overflow: auto;
    margin: 0 20px;
    padding: 0 0 20px;
    color: hsla(0,0%,1%,1.00);
}

footer a[href^="javascript"] {
    position: relative;
    color: hsla(0,0%,4%,1.00);
    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 hsla(0,0%,6%,1.00);
}

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

/* begin form layout for the Newsletter Subscription */

.callout {
    font-family: sans-serif;
    background-color:rgba(138,90,160,1.00);
    padding: 12px;
    margin:10px;
    border-radius:1.5em;
    border-style: solid;
    border-width: 7px;
    border-color:rgba(174,114,25,1.00);
}

.callout-heading {
    color: white;
    font-size: 1em;
    text-transform: uppercase;
    margin: 0 0 14px;
}

.callout-intro {
    color: white;
    font-size: 0.8em;
    margin: 0 0 14px;
}

.subscribe-newsletter { /*uses variable names to control color */
    --color-white-20: hsla(27,61%,55%,1.00); 
    --color-white-40: hsla(0,100%,100%,0.40);
    --color-white-60: hsla(0,0%,100%,0.60);
    --color-white-80: hsla(0,0%,100%,1.00);
    --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(0,0%,1%,1.00);
    --color-button-light: hsla(277,35%,68%,1.00);
    --z-index: -1;
}



.subscribe-newsletter {
    transition: all 1s ease-in;
    background: var(--color-white-20);
    border-radius: 1.5em;
    font-size: 0.9em;
    line-height: 0.9em;
    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: 80%;
    background: url("images/Spin-1.3s-53px.svg") 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: 0.9em;
    line-height: 2.4;
    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::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;
    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.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.2em;
    flex: 1;
    text-align: center;
} 

/* end form layout  Newsletter Subscription */

/* Start Media Query if screen is larger than 768px */

@media (min-width: 48rem) {

    /* start of buttonv03 */
a.buttonv03{
    font-size:1.2em;
    font-family:Georgia;
    text-align:center;
    border-width:1px;
    border-color:rgba(168, 115, 21, 1);  
    color:rgba(25, 24, 24, 1);
    margin-right:1em;
    padding:0.9em;
    width:100px;
    border-radius:50%; /* makes a circle button */
    box-shadow: 5px 6px 0px -1px rgba(19, 18, 16, 1);
    text-shadow: 1px 1px 0px rgba(211, 134, 71, 1);
    background:linear-gradient(rgba(161, 127, 84, 1), rgba(230, 220, 178, 1));
}

a.buttonv03:hover {
    background: linear-gradient(rgba(230,234,190,1.00), rgba(219,153,70,1.00));
}
a.buttonv03:active {
      background:#C6C96A;
}
    
/*  override margin */
.container {
     width: 96%;
     max-width: 1000px;
     margin: 20px auto;
}
/*  override size and position of header */
.header-main {
     position: static;  /* header will not remain fixed */
     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:rgba(174,114,25,1.00);
    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 hsla(57,39%,47%,1.00);
    border-radius: 10px;
    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(213, 100%, 44%);
    background-color: hsla(0,100%,98%,1.00);
    box-shadow: 0 0px 0px currentColor;
}

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

img {
    width: auto;
    float: right;
    margin: 0 0 2px 4px;
}
    
.callout {
    width:55%;
    padding: 20px;
    margin-left:280px;
    border-radius:1.5em;
    border-style: solid;
    border-width: 7px;
    border-color:rgba(174,114,25,1.00);
}
    
.cards .card-figure-caption {
    left: 50px;
}
    
.cards .card {
    flex: 0 0 calc(50% - 20px);
}

.subscribe-newsletter {
    flex-direction: row;
    height: 8em;
    align-items: center;
}

.subscribe-newsletter:valid input[type=submit] {
    transform: scale(1.2);
}
    
}

/* Close: @media (min-width: 48rem) */