/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/*
Start: Site CSS
*/

@keyframes bounceInDown {

    from,
    65%,
    75%,
    80%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }

    0% {
        opacity: 0;
        transform: translate3d(-50%, -3000px, 0) scale(0);
    }

    65% {
        opacity: .4;
        transform: translate3d(-50%, 20px, 0) scale(1.2);
    }

    75% {
        opacity: .6;
        transform: translate3d(-50%, -30px, 0) scale(.8);
    }

    80% {
        opacity: .8;
        transform: translate3d(-50%, 0, 0) scale(1.2);
    }

    to {
        opacity: 1;
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
}


@keyframes launch {
    0% {
        transform: rotate(-48deg) translateX(40%) translateY(0) scale(1);
        opacity: 1;

    }

    50% {
        transform: rotate(400deg) translateX(60%) translateY(0) scale(4);
        opacity: 1;
    }

    100% {
        transform: rotate(40deg) translateX(6000%) translateY(-6000%) scale(4);
        opacity: 0;
    }
}

@keyframes rubberBand {
    0% {
        -webkit-transform: scaleX(1);
        transform: scaleX(1) translate3d(-50%, -50%, 0);
        transform-origin: center;
    }

    30% {
        -webkit-transform: scale3d(1.25, .75, 1);
        transform: scale3d(1.25, .75, 1) translate3d(-50%, -50%, 0)
    }

    40% {
        -webkit-transform: scale3d(.75, 1.25, 1);
        transform: scale3d(.75, 1.25, 1) translate3d(-50%, -50%, 0)
    }

    50% {
        -webkit-transform: scale3d(1.15, .85, 1);
        transform: scale3d(1.15, .85, 1) translate3d(-50%, -50%, 0)
    }

    65% {
        -webkit-transform: scale3d(.95, 1.05, 1);
        transform: scale3d(.95, 1.05, 1) translate3d(-50%, -50%, 0)
    }

    75% {
        -webkit-transform: scale3d(1.05, .95, 1);
        transform: scale3d(1.05, .95, 1) translate3d(-50%, -50%, 0)
    }

    to {
        -webkit-transform: scaleX(1);
        transform: scaleX(1) translate3d(-50%, -50%, 0)
    }
}

@keyframes fade-in-move-down {
    from {
        opacity: 0;
        -webkit-transform: translateY(-3rem);
        transform: translateY(-3rem)
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0)
    }
}

@keyframes fadeInSlideInLeft {
    from {
        opacity: 0;
        transform: translate3d(-100%, 0, 0);
    }

    40% {
        transform: translate3d(0, 0, 0);
    }

    60% {
        transform: translate3d(-20%, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/** 
 * Variables Scope Global 
 * Accessible by any element in the :root element
 */
 :root {
    --hsla-hue: 344;
	--color-body-bg: hsla(var(--hsla-hue),60%,80%,1.00);
	--color-wrapper-bg: hsla(var(--hsla-hue),40%,46%,1.00);
	--color-img-bg: hsla(var(--hsla-hue),40%,76%,1.00);
	--color-link: hsla(var(--hsla-hue),80%,20%,1.00);
	--color-img-border: hsla(var(--hsla-hue),40%,46%,1.00);
	--color-cards-bg: hsla(var(--hsla-hue),80%,96%,1.00);
	--color-header-bg: hsla(var(--hsla-hue),40%,46%,1.00);
	--margin-containers: 0 10px;
	--header-hero: url(images/review-header.png);
    --header-h1-top: 80%;
    --header-h1-left: 50%;
    --header-a-content-emoji: "🛸";
}

/** 
 * Variables Scope Local 
 * Accessible by any element in the .envy element
 * Class envy added to the body element on the envy page
 */
.envy {
    --hsla-hue: 155;
    --color-body-bg: hsla(var(--hsla-hue),25%,50%,1.00);
    --color-wrapper-bg: hsla(var(--hsla-hue),100%,94%,1.00);
    --color-img-bg: hsla(var(--hsla-hue),40%,76%,1.00);
    --color-img-border: hsla(var(--hsla-hue),40%,46%,1.00);
    --color-link: hsla(var(--hsla-hue),80%,20%,1.00);
	--header-hero: url(images/envy-header.png);
    --header-h1-top: 50%;
    --header-h1-left: 80%;
    --header-a-content-emoji: "🧤";
}

/**
 * Veerle HEX Color: #fe877f
 * Veerle HSLA Color: hsla(4,98%,75%,1.00) (use CMD + E or from developer tools)
 */
.veerle {
    --hsla-hue: 40;
    --color-body-bg: hsla(var(--hsla-hue),91%,68%,1.00);
    --color-wrapper-bg: hsla(var(--hsla-hue),100%,95%,1.00);
    --color-img-bg: hsla(var(--hsla-hue),98%,75%,1.00);
    --color-img-border: hsla(var(--hsla-hue),100%,85%,1.00);
    --color-link: hsla(var(--hsla-hue),80%,20%,1.00);
	--header-hero: url(images/veerle-header.png);
    --header-h1-top: 38%;
    --header-h1-left: 15%;
   --header-a-content-emoji: "🖍";
}

.cassie {
	--hsla-hue: 263;
	--color-body-bg: hsla(var(--hsla-hue),4%,16%,1.00);
	--color-wrapper-bg: hsla(var(--hsla-hue),54%,89%,1.00);
	--color-img-bg: hsla(var(--hsla-hue),55%,80%,1.00);
	--color-img-border: hsla(var(--hsla-hue),40%,46%,1.00);
	--color-link: hsla(var(--hsla-hue),80%,20%,1.00);
	--header-hero: url(images/cassie-header.png);
    --header-h1-top: 50%;
    --header-h1-left: 80%;
    --header-a-content-emoji: "💡";
}

/** 
 * var() Function
 * Resolve the variable value
 * Value will depend on body class
 */

html {
    box-sizing: border-box;
    font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	scroll-behavior: smooth;
}

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

body {
	background: var(--color-body-bg);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.wrapper {
    width: 96%;
	max-width: 960px;
    margin: 0 auto;
	background: var(--color-wrapper-bg);
}

header {
	position: relative;
	height: 200px;
	background: var(--color-header-bg);
	background-image: var(--header-hero);
	background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin: var(--margin-containers);
}

header h1 {
	float: left;
	position: relative;
	margin: 0;
	background: var(--color-wrapper-bg);
    line-height: 48px;
    padding: 0 48px;
    border: 1px solid #fff;
    box-shadow: 1px 1px 4px #444;
    top: var(--header-h1-top);
    left: var(--header-h1-left);
    transform: translateX(-50%) translateY(-50%);
    transform-origin: center;
    perspective: 500px;
    border-radius: 12px;
    opacity: 0;
    animation-name: bounceInDown;
    animation-fill-mode: forwards;
    animation-duration: 1.2s;
    animation-delay: .25s;
}

header h1:target {
    opacity: 1;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: rubberBand;
    animation-iteration-count: 4;
    transform-origin: 0 center;
    transform: translate3d(-50%, -50%, 0);
}

header a  {
    position: absolute;
    left: 0;
	bottom: 0;
    right: 0;
	padding-right: 10px; 
	text-align: right;
	font-size: 1.25em;
    line-height: 48px;
   	background-color: var(--color-img-border);
    color: #000;
    text-decoration: none;
    letter-spacing: .3em;
    transition: all .5s;
}

header a::after {
    content: var(--header-a-content-emoji);
    opacity: 0;
    position: relative;
    display: inline-block;
    transition: all .5s;
    transform: rotate(-48deg) translateX(60%);
    transform-origin: 20% 80%;
}

header a:hover::after {
    opacity: 1;
    animation: launch 2s 1 forwards;
    transition: all .5s;
}

header a:hover,
header a:focus {
    letter-spacing: -0.1em;
    font-style: italic;
}

header a:active {
    letter-spacing: 10em;
    opacity: 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px;
    display: flex;
    /* justify-content: space-around; */
}

nav ul li:first-child {
    margin-right: auto;
}

nav ul a {
    display: flex;
    text-decoration: none;
    font-weight: bold;
    line-height: 3;
    padding: 0 1.5em;
    border: 1px solid transparent;
    background: var(--color-wrapper-bg);
    transition: all .5s ease-in;
}

nav ul a:hover {
    border: 1px solid;
    background: var(--color-img-bg);
}

a {
    color: var(--color-link);
}

a:hover {
    text-decoration: none;
}

main {
    margin: var(--margin-containers);
    animation: fade-in-move-down 0.7s;
}

main h2 {
    clear: both;
    margin: 24px 0 6px;
    position: relative;
    overflow: hidden;
}

[class*=stars]:before {
    position: relative;
    z-index: 1;
    display: block;
    float: left;
    animation-name: fadeInSlideInLeft;
    animation-duration: 2000ms;
}

[class*=stars]:after {
    content: '🖤🖤🖤🖤🖤';
    color: rgba(167, 167, 167, 0.4);
    position: absolute;
    left: 0;
    top: 0;
}

.stars-5:before {
    content: '💗💗💗💗💗';
    padding-right: 10px;
}

.stars-4:before {
    content: '💗💗💗💗';
    padding-right: 32px;
}

.stars-3:before {
    content: '💗💗💗';
    padding-right: 54px;
}

.stars-2:before {
    content: '💗💗';
    padding-right: 76px;
}

.stars-1:before {
    content: '💩';
    padding-right: 98px;
}

.stars-1:after {
    content: '💩💩💩💩';
    color: rgba(167, 167, 167, 0.1);
}

main p {
    margin: 0 0 12px;
    line-height: 1.8;
}

main img {
	float: right;
    width: 100%;
    padding: 6px;
	margin: 0px 10px 10px 10px;
    background: var(--color-img-bg);
    border: 1px solid var(--color-img-border);
}

.cards {
		background: var(--color-cards-bg);
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding-left: 0px;
        gap: 32px;
    }

.cards .card {
        flex: 1 1 auto;
        box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    }

 .cards .card figure {
        margin: 0;
        line-height: 0;
    }

 .cards .card figure img {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }

footer {
    clear: both;
    height: 40px;
    line-height: 36px;
    background: var(--color-img-bg);
    margin: var(--margin-containers);
}

footer a {
    float: left;
    text-decoration: none;
    padding: 0 10px;
    border: 2px solid var(--color-img-bg);
    transition: all .25s ease-in;
}

footer a:hover {
    background: var(--color-wrapper-bg);
}

footer a[href^=javascript] {
    float: right;
}

@media (min-width: 768px){

    .cards .card {
        flex: 0 0 calc(33.3333% - 21.3333px);
    }
	
	main img {
		width: auto;
		float: right;
		 margin: 0 0 6px 12px;
	}
}
