/* Reset CSS */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Titillium Web', sans-serif;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

/* Layout */
.wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-height: 600px;

}

.wrapper a div {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 50px;
}

.wrapper a:nth-child(1) > div {
    background-color: #510C76;
    align-items: end;
}

.wrapper a:nth-child(2) > div {
    background-color: #263D96;
    align-items: start;
}

.wrapper a div h2 {
    text-transform: uppercase;
    font-weight: bold;
    color: #FFFFFF;
    font-size: 35px;
    text-align: center;
}

.wrapper h1 {
    position: absolute;
    bottom: 50px;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 70px;
    color: #FFFFFF;
}


/* Footer */
footer {
    padding-top: 63px;
    padding-bottom: 30px;
    padding-left: 1rem;
    padding-right: 1rem;
    color: #555555;
    font-size: 15px;
    text-align: center;
}

footer > div {
    margin-bottom: 22px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: .7rem;
}

footer > div a {
    position: relative;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
}

footer > div a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: currentColor;
    -webkit-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

footer > div a:hover {
    color: #333333;
}

footer > div a:hover::after {
    width: 100%;
}

footer img {
    margin: 0 auto;
    margin-bottom: 36px;
}

footer p {
    font-size: 13px;
}

/* RWD */
@media (max-width: 768px) {
    .wrapper {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .wrapper a div {
        padding: 40px 20px;
    }

    .wrapper h1 {
        font-size: 36px;
        bottom: auto;
        top: 1rem;
        height: 30px;
    }

    .wrapper a div h2 {
        font-size: 24px;
    }

    footer {
        padding: 1rem;
    }

    footer img {
        margin-bottom: 1rem;
    }

    footer > div {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
    }

    footer > div span {
        display: none;
    }
}

@media (max-width: 480px) {
    .wrapper h1 {
        font-size: 28px;
        bottom: 10px;
    }

    .wrapper a div h2 {
        font-size: 20px;
    }

    .wrapper a div {
        gap: 30px;
    }
}
