/* Reset */
html, body, div, h1, h2, h3, h4, h5, h6, ul, ol, dl, li, dt, dd, p, blockquote, pre, form, fieldset, table, th, td { margin: 0; padding: 0; }
img { border: 0; display: block; }
article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, mark, time { display: block; }
table { border-spacing: 0; border-collapse: collapse; }
input, select, textarea { border-radius: 0; font-family: inherit }
* { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
*, *:before, *:after { box-sizing: border-box; }

/* Global */
:root {
    --title-height: clamp(8rem, 20vw, 20rem);
}

body, html {
    height: 100%;
    font-size: 16px;  
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Poppins", sans-serif;
    color: #000;
    font-weight: 400;
}

h1, h2, h3, h4, b, strong {
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw + 0.25rem, 6rem);
    line-height: 1em;
    margin-bottom: 0.875em;
}

h2 {
    font-size: clamp(1.5rem, 2vw + 0.25rem, 2rem);
    line-height: 1em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: clamp(1.375rem, 1.5vw + 0.25rem, 1.5rem);
    line-height: 1em;
    margin-bottom: 0.5em;
}

h4 {
    font-size: 1.25rem;
    line-height: 1em;
    margin-bottom: 0.5em;
}

:is(h1, h2, h3, h4, p, ul, ol) + :is(h1, h2, h3, h4) {
    margin-top: 1.5em;
}

a {
    color: #367eff;
}

p,
ol li,
ul li {
    font-size: clamp(1rem, 1vw + 0.25rem, 1.125rem);
    line-height: 1.75em;
    margin-bottom: 1.5em;
}

ol li,
ul li {
    list-style-type: disc;
    margin-left: 2rem;
    margin-bottom: 0;
}

ol li {
    list-style-type: decimal;
}

body {
    position: relative;
    background-image: url(assets/images/bg.jpg);
    background-size: cover;
    background-position: center;
}

.page-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
    animation: revealContent 750ms ease-in-out forwards;
}

.title-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(90vw, 1200px);
    height: var(--title-height);
}

.title-container h1 {
    color: #fff;
    margin-bottom: 0;    
    animation: title 750ms ease-in-out;
}

.text-container {
    position: relative;
    width: min(90vw, 1200px);
    max-height: calc(100vh - var(--title-height));
    padding: clamp(2rem, 5vw, 5rem);
    padding-bottom: 0;
    background-color: #fff;
    border-radius: 1rem 1rem 0 0;
    flex-grow: 1;    
}

.text-container.has-phone {
    padding-right: clamp(7rem, 15vw, 20rem);
}

.text-container .text-content {
    height: 100%;
    overflow-y: auto;
    padding-right: 3rem;
    padding-bottom: 2rem;
}

.text-container .phone {
    position: absolute;
    top: calc(-1 * clamp(1rem, 4vw, 4rem));
    right: calc(-1 * clamp(1rem, 4vw, 4rem));
    width: clamp(50px, 13vw, 240px);
    height: auto;
    filter: drop-shadow(1rem 1rem 2rem rgba(0, 0, 0, 0.4));
    animation: phone 750ms ease-in-out forwards;
}

.google-play-badge {
    width: min(100%, clamp(160px, 15vw, 240px));
    height: auto;
    margin: clamp(2rem, 4vw, 4rem) 0;
}

@keyframes revealContent {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes title {
    from {
        transform: scale(0.75) translateY(2rem);
    }
    to {
        transform: scale(1) translateY(0);
    }
}

@keyframes phone {
    from {
        transform: translateY(50px) rotate(0deg);
    }
    to {
        transform: translateY(0) rotate(2deg);
    }
}

@media screen and (max-width: 768px) {
    .title-container {
        justify-content: flex-start;
    }

    .text-container.has-phone {
        padding-right: clamp(2rem, 5vw, 5rem);
    }

    .text-container .phone {
        top: calc(-1 * var(--title-height) + 2rem);
        right: 1rem;
    }
}