:root {
    /* color definitions */
    --color-brand-primary: #FFBC4A;
    --color-background-primary: #B6360D;
    --color-primary-medium: #E3262E;
    --color-status-danger-light: #EB5757;
    /* font definitions */
    --font-brand-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

/* ******* General styles ******* */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    font-size: 62.5%;
    max-width: 50rem;
    margin: 0 auto;
}

body {
    font-family: var(--font-brand-primary);
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-background-primary);
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
}

h1 {
    font-size: 2.8rem;
}

#root {
    display: flex;
    flex-direction: column;
    background-color: var(--color-neutral-lightest);
    box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.15);
    border-radius: 0.3rem;
    margin: 16.2rem 1.6rem 1.5rem;
    padding: 2rem 0 0.8rem;
    position: relative;
}

.msisdn {
    position: absolute;
    font-weight: bold;
    right: 5px;
    color: var(--color-neutral-lightest);
    font-size: 12px;
    top: -140px;
}

/* ******* Page styles ******* */

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section p {
    font-size: 1.5rem;
    color: var(--color-neutral-dark);
}

.ladder-card,
.slidingHorizontal h1 {
    text-shadow: .2rem .2rem .4rem #000;
}

.ladder-card p {
    margin-bottom: 1.2rem;
}

header {
    display: flex;
    align-items: center;
    flex-direction: column;
}

header .header-logo img {
    width: 6.5rem;
    margin: 2.1rem 0 .4rem;
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

footer h3 {
    margin-bottom: 1.6rem;
}

footer small {
    margin: 0 0 1.2rem;
}

footer .footer-value {
    font-size: 2rem;
    margin-bottom: 1.2rem;
}

footer .btn,
footer .btn.animated {
    background: var(--color-primary-medium);
    box-shadow: 0 .8rem 1.2rem rgba(0, 0, 0, .4);
    border-radius: 2.5rem;
    border: none;
    font-weight: 500;
    font-size: 2.8rem;
    max-width: 34.4rem;
    width: 90vw;
}

footer .btn.disabled {
    background-color: var(--color-primary-medium);
    opacity: .32;
}

.confetti {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--color-primary-medium);
    position: absolute;
    left: 50%;
    animation: confetti 5s ease-in-out -2s infinite;
    transform-origin: left top;
}

.confetti:nth-child(3),
.confetti:nth-child(7),
.confetti:nth-child(8),
.confetti:nth-child(9),
.confetti:nth-child(11),
.confetti:nth-child(14) {
    background-color: var(--color-neutral-lightest);
}

@keyframes confetti {
    0% {
        transform: rotateZ(15deg) rotateY(0) translate(0, 0);
    }

    25% {
        transform: rotateZ(5deg) rotateY(360deg) translate(-5vw, 20vh);
    }

    50% {
        transform: rotateZ(15deg) rotateY(720deg) translate(5vw, 60vh);
    }

    75% {
        transform: rotateZ(5deg) rotateY(1080deg) translate(-10vw, 80vh);
    }

    100% {
        transform: rotateZ(15deg) rotateY(1440deg) translate(10vw, 110vh);
    }
}