:root {
    --hue-envy: 120; 
    --hue-veerle: 200;
    --header-bg-envy: url('../website-review-style/image/envyhero.webp');
    --header-bg-veerle: url('../website-review-style/image/veerlehero.webp');
    --header-bg-ghost: url('../website-review-style/image/ghosthero.webp');
    --color-cta: #007bff;
    --color-black: #000;
    --color-white: #fff;
    --gap: 15px;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: hsl(var(--hue-envy), 30%, 90%);
}

body.ghost {
    background-color: #0056845f;
    color: #fff;
}

body.envy {
    --hue: var(--hue-envy);
    background-color: aliceblue;
}

body.veerle {
    --hue: var(--hue-veerle);
    background-color: #333;
}

.ghost {
    --color-hue: 156;
    --color-primary: hsl(var(--color-hue), 50%, 50%);
    --color-secondary: hsl(var(--color-hue), 50%, 90%);
    --color-cta: hsla(var(--color-hue), 80%, 80%, var(--color-opacity));

    --header-hero: url(./image/ghosthero.webp);
    --header-h1-x: 0;
    --header-h1-y: calc(75px - 50%);
    --header-a-content-emoji: "👻";
}

.envy {
    --color-hue: 156;
    --color-primary: hsl(var(--color-hue), 50%, 50%);
    --color-secondary: hsl(var(--color-hue), 50%, 90%);
    --color-cta: hsla(var(--color-hue), 80%, 80%, var(--color-opacity));

    --header-hero: url(./image/ghosthero.webp);
    --header-h1-x: 0;
    --header-h1-y: calc(75px - 50%);
    --header-a-content-emoji: "✉️";
}

.veerle {
    --color-hue: 156;
    --color-primary: hsl(var(--color-hue), 50%, 50%);
    --color-secondary: hsl(var(--color-hue), 50%, 90%);
    --color-cta: hsla(var(--color-hue), 80%, 80%, var(--color-opacity));

    --header-hero: url(./image/ghosthero.webp);
    --header-h1-x: 0;
    --header-h1-y: calc(75px - 50%);
    --header-a-content-emoji: "🖥️";
}

.wrapper, .wrapper-ghost {
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.wrapper {
    background-color: #d4c7fe;
}

.wrapper-ghost {
    background-color: #828282;
}

header {
    padding: 20px;
    background-color: hsl(var(--hue), 50%, 50%);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    position: relative; 
}

header h1 {
    text-align: center; 
    background-color: var(--color-white); 
    color: var(--color-black);
    border-radius: var(--gap);
    line-height: 50px;
    border: 2px solid var(--color-cta);
    box-shadow: 0px 0px 16px var(--color-black);
    transform-origin: center;
    perspective: 500px;
    opacity: 1;
    animation-name: bounceInDown;
    animation-fill-mode: forwards;
    animation-duration: 1.2s;
    animation-delay: 0.25s;
    margin-bottom: 3rem;
}

body.envy header {
    background-image: var(--header-bg-envy);
}

body.veerle header {
    background-image: var(--header-bg-veerle);
}

body.ghost header {
    background-image: var(--header-bg-ghost);
}

.link-bar {
    text-align: right;
}

header a {
    display: block;
    padding: 15px 30px; 
    background-color: rgba(0, 0, 0, 0.7); 
    color: var(--color-white); 
    text-decoration: none;
    text-align: right; 
    width: 94.2%; 
    position: absolute; 
    bottom: 0; 
    right: 0;
    letter-spacing: 0.3em;
    backdrop-filter: blur(10px);
    transition: all 0.5s;
}

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

header a:hover::after {
    opacity: 1;
    animation: launch 2s 1 forwards;
}

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

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

@keyframes launch {
    0% {
        transform: rotate(-48deg) translateX(60%) translateY(0) scale(1);
        opacity: 1;
    }
  
    50% {
        transform: rotate(25deg) translateX(60%) translateY(0) scale(4);
        opacity: 1;
    }
  
    100% {
        transform: rotate(90deg) translateX(6000%) translateY(-6000%) scale(4);
        opacity: 0;
    }
  }

@keyframes bounceInDown {
    from {
        opacity: 0;
        transform: translateY(-1000px);
    }
    60% {
        opacity: 1;
        transform: translateY(30px);
    }
    80% {
        transform: translateY(-10px);
    }
    to {
        transform: none;
    }
}

html {
    scroll-behavior: smooth;
}

@keyframes rubberBand {
    0% {
        transform: scaleX(1);
        transform-origin: center;
    }
    30% {
        transform: scale3d(1.25, .75, 1);
    }
    40% {
        transform: scale3d(.75, 1.25, 1);
    }
    50% {
        transform: scale3d(1.15, .85, 1);
    }
    65% {
        transform: scale3d(.95, 1.05, 1);
    }
    75% {
        transform: scale3d(1.05, .95, 1);
    }
    to {
        transform: scaleX(1);
    }
}

header h1:target {
    scroll-margin-top: 100px;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-name: rubberBand;
    animation-iteration-count: 4;
    transform-origin: 0 center;
    opacity: 1;
}

nav {
    background-color: #444;
    padding: 10px 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: #555;
    border-radius: 5px;
}

main {
    padding: 20px 0;
}

.review {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    align-items: center;
}

.review-content {
    flex: 1;
    padding-right: 20px;
}

.review-featured-image {
    flex: 1;
    text-align: center;
    padding: 10px;
}

.review-featured-image img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.review-featured-image figcaption {
    margin-top: 10px;
    font-size: 0.9em;
    color: #000;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: #fff;
    margin-top: 20px;
    position: fixed;
    bottom: 15px;
}

footer a {
    color: #ddd;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
}

footer a:hover {
    color: #fff;
}

a.button {
    display: inline-block;
    padding: 35px 45px;
    margin-bottom: 5%;
    margin-right: 4%;
    text-decoration: none;
    color: #fff;
    background-color: #7b889f;
    border-radius: 5px;
    border: 2px solid #000;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
    margin: 0 auto;
    max-width: 1200px;
}

.cards .card {
    background-color: #757575;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(74, 74, 74, 0.662);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
    flex: 1 1 300px;
    margin: 15px;
    max-width: 350px;
}

.cards .card:hover {
    transform: translateY(-10px);
}

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

.cards .card-section {
    padding: 20px;
    background-color: #7076cd;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cards .card-section-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #232323;
    padding-bottom: 10px;
    color: #333;
}

.cards .card-section-excerpt {
    flex-grow: 1;
    font-weight: 300;
    margin-bottom: 20px;
    color: #000;
}

.cards .card-section-button {
    padding: 10px 20px;
    border-radius: 5px;
    background-color: #007bff;
    color: rgb(155, 155, 155);
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease-in-out;
}

.cards .card-section-button:hover {
    background-color: #0056b3;
}

@media (max-width: 768px) {
    .cards {
        width: 100%;
    }

    .review {
        flex-direction: column;
    }
}

