@import url("https://use.typekit.net/uau5myn.css");
:root {
    --primary-color: #a70a14;
    --secondary-color: #f2cb70;
    --background-color: #185217;
    --text-color: #fff;
    --inverted-text-color: #185217;
    --inverted-background-color: #fff;
    --text-small-color: #111111;
}
html {
    height: 100%;
}
body {
    background: var(--background-color);
    min-height: 100%;
    overflow-x: hidden;
    color: var(--text-color);
    font-family: "proxima-nova", sans-serif;
    font-weight: 400;
    font-style: normal;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('assets/GreenBackground_Mobile-top.jpg') top center no-repeat;
    background-size: cover;
    z-index: -1;
}
body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: url('assets/GreenBackground_Mobile-bottom.jpg') bottom center no-repeat;
    background-size: cover;
    z-index: -1;
}
body>* {
    position: relative;
    z-index: 1;
}
main.container {
    max-width: 700px;
}

p, h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
}
a, a:hover, a:visited, a:active, a:focus {
    color: var(--text-color);
    text-decoration: none;
}
.lead { 
    font-size: 1.5rem;
    font-weight: 800;
}

.day {
    border: 1px solid var(--text-color);
    padding: 20px;
    margin-bottom: 70px;
    position: relative;
    background-color: var(--secondary-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}
.day.day-today {
    background: transparent;
    color: var(--text-color);
    flex-direction: column;
    justify-content: center;
}
.day.active {
    flex-direction: column;
    justify-content: center;
}
.day.day-today.active {
    background-color: var(--inverted-background-color);
    border-color: var(--secondary-color);
    color: var(--inverted-text-color);
}

/* Day Label */
.day .day-label {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 20px;
    border-radius: 999px;
    background-color: var(--inverted-background-color);
    color: var(--inverted-text-color);
    font-size: 1.1rem;
    text-transform: uppercase;
}

/* Unwrap Button */
.day-button {
    order: 5;
}
.day-button .btn-unwrap {
    padding: 10px 20px;
    color: var(--text-color);
    background-color: var(--primary-color);
    border-radius: 999px;
    font-size: 1.2rem;
}
.day.day-today .day-button .btn-unwrap {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: -50px;
}
.day.active .day-button .btn-unwrap {
    display: none;
}

/* Day Image */
.day .day-image {
    width: 50%;
    order: 9;
    pointer-events: none;
}
.day.day-today .day-image {
    width: 75%;
    order: 1;
}
.day.active .day-image {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30%;
}
.day.active .day-image img {
    transform: translateY(50%); 
}
.day .day-image .open-image {
    display: none;
}
.day .day-image .closed-image {
    display: block;
    min-height: 200px;
}
.day.active .day-image .open-image {
    display: block;
}
.day.active .day-image .closed-image {
    display: none;
}
.day.day-today:not(.active) .day-image {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 12.5%;
    overflow-x: hidden;
}
.day.day-today .day-image::before {
    content: '';
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    margin: 25px 0;
}
.bouncer {
    position: absolute;
    bottom: 20%;
    animation: bounce 0.8s infinite;
}
.active .bouncer {
    animation: none;
}
.bouncer img {
    width: 100%;
    height: 100%;
}

/* Day Content */
.day .day-content {
    display: none;
}
.day.active .day-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.day .day-content .content-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}
.day .day-content .small {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-small-color);
    margin-right: 28%;
}

/* Activation Button */
.day .day-content .btn-link {
    padding: 10px 20px;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--primary-color);
    text-transform: uppercase;
    border-radius: 999px;
}
.day .day-content:hover .btn-link {
    background-color: var(--background-color);
    color: var(--text-color);
}

/* Coming up next */
.coming-up-next {
    margin-bottom: 70px;
    padding: 15px 0;
    border: 1px solid var(--secondary-color);
}
.coming-up-next h2 {
    margin: 15px;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--secondary-color);
    text-align: center;
}
.coming-up-days {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    min-width: 100%;
    overflow-x: hidden;
    -webkit-mask-image: -webkit-gradient(linear, 85% top, right top, from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0) 100%);
}
.coming-up-days .day-next {
    width: 38%;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 5px 25px;
}
.coming-up-days .day-next .day-label {
    padding: 5px 20px;
    border-radius: 999px;
    background-color: var(--secondary-color);
    color: var(--inverted-text-color);
    font-size: 1.1rem;
    text-transform: uppercase;
    order: 9;
}
.coming-up-days .day-next .day-image {
    order: 1;
}

/* Footer */
footer {
    padding: 0 20px 40px;
    font-size: 0.9rem;
}


@keyframes bounce {
    0%{
        width: 100%;
        height: 100%;
    }
    30%{
        width: 90%;
        height: 100%;
    }
    50%{
        width: 105%;
        height: 80%;
        transform: translateY(20%);
        
    }
    75%{
        width: 90%;
        height: 100%;
    }
    100%{
        width: 100%;
        height: 100%;
        transform: translateY(0);
    }
}
