@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Lexend+Deca&display=swap");

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}
body {
    line-height: 1;
}
ol,
ul {
    list-style: none;
}
blockquote,
q {
    quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}

* {
    font-size: 15px;
    --white: hsl(0, 0%, 100%);
    --slight-white: hsla(0, 0%, 100%, 0.75);
    --very--slight-white: hsla(0, 0%, 100%, 0.6);
    --very-dark-blue: hsl(233, 47%, 7%);
    --dark-blue-des: hsl(244, 38%, 16%);
    --soft-violet: hsl(277, 64%, 61%);
}

body {
    background-color: #0a0c1b;
    width: 100vw;
    min-height: 100vh;
}

.card {
    max-width: 1100px;
    width: 90%;
    margin: auto;
    transform: translateY(50%);
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: var(--dark-blue-des);
    border-radius: 5px;
    overflow: hidden;
}

.left {
    padding: 72px;
    margin-right: 50px;
}

.left h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-top: 0px;
    font-weight: 700;
    font-family: "Lexend Deca", sans-serif;
}

.left h1 span {
    font-size: 2rem;

    color: var(--soft-violet);
}

.left > p {
    line-height: 1.4rem;

    margin-top: 32px;
    color: var(--slight-white);
}

footer {
    margin-top: 81px;
    display: flex;
    justify-content: space-between;
}

footer p {
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--very--slight-white);
}

footer div h2 {
    font-weight: 700;
    font-family: "Lexend Deca";
    font-size: 1.5rem;
    color: var(--white);
}

.left {
    width: 50%;
}

.right {
    content: url("./images/image-header-desktop.jpg");
    filter: grayscale(100%) brightness(70%) sepia(50%) hue-rotate(228deg) saturate(400%) contrast(1);
    object-fit: cover;
    width: 50%;
    height: 100%;
}

.attribution {
    color: white;
    margin-top: 20px;
    font-family: "Lexend Deca", Courier, monospace;
}

@media screen and (max-width: 1250px) {
    .card {
        flex-direction: column;
        align-items: center;
        width: 90%;
        transform: translateY(10%);
    }

    .card img {
        width: 100%;
        max-height: 100px;
        content: url("./images/image-header-mobile.jpg");
    }
}

@media screen and (max-width: 750px) {
    .left {
        padding: 25px;
        margin: auto;
        width: 80%;
    }

    .card img {
        width: 100%;
        max-height: 100px;
        content: url("./images/image-header-mobile.jpg");
    }
}

@media screen and (max-width: 650px) {
    footer {
        flex-direction: column;
        margin-top: 20px;
    }

    footer * {
        padding: 5px;
    }
}
