@charset "utf-8";

:root {
    font-size: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    color: #3f3e3e;
    font-family: "Arial", sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #ddd9d9;
}

img {
    max-width: 100%;
    height: auto;
}

#wrapper {
	position: relative;
	max-width: 50rem;
	margin: 1rem auto;
	overflow: hidden;
    background-color: #fff;
    border: 1px solid #ededed;
}

:is(a:link, a:visited, a:hover, a:active) {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

h1 {
    font-size: 1.5rem;
    color: #ef717c;
    line-height: 1.2;
    text-align: center;
}

h2 {
    font-size: 1.2rem;
    text-align: center;
    margin: 1rem 0 0.5rem;
}

h3 {
    font-size: 1.2rem;
    color:#bed07c;
    text-align: center;
    margin-bottom: 0.75rem;
}

.red {
    color: #ef717c;
}
.green {
    color: #bed07c;
}
.yellow {
    color: #ffda22;
}

p {
    margin-bottom: 1rem;
}

ul {
    margin: 0 0 1rem 1rem;
}

header {
    padding: 2rem 2rem 1rem;
}

article {
    display: flex;
    gap: 3rem;
    padding: 1rem 2rem;
    position: relative;
}

article section {
    width: 50%;
    margin: 0 2rem;
}

footer {
    background-color: #bed07c;
    padding: 1.5rem 2rem;
    position: relative;
}

footer p {
    color: #fff;
    text-align: center;
    font-size: 1.1rem;
    margin: 0;
}

.image {
    position: absolute;
    right: 0;
    bottom: -0.95rem;
    z-index: 1000;
}

@media only screen and (max-width: 49.938rem) {
    #wrapper {
        border: none;
        margin: 0 auto;
    }

    p,
    ul {
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
        hyphens: auto;
    }
}

@media only screen and (max-width: 48rem) {
    article {
        flex-direction: column;
        gap: 0;
    }
    article section {
        width: 100%;
        margin: 0;
    }
    h2 {
        text-align: left;
    }
    .margin-bottom {
        margin-bottom: 8rem;
    }
}

@media only screen and (max-width: 40rem) {
header,
article {
    padding: 1rem;
}

}