body {
    background-color: #202122;
}

* {
    font-family: Caladea, Merriweather, serif;
    color: white;
}

.box {
    display: flex;
    width: 100%;
    height: 100vh;
}

.box_subscription {
    margin: auto;
    margin-top: 7rem;
    text-align: center;
}

.tiers_checkboxes, .payment_renewal_checkboxes {
    display: none;
}

.tiers_choices, .payment_renewal_choices {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 2rem;
}

.button_choices {
    padding: .4rem 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #3d3e40;
    border: none;
    border-radius: .4rem;
    transition: all .4s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    user-select: none;
}

.button_choices:hover {
    scale: 1.1;
    background-color: #52aeff;
    transition: all .2s ease-in-out;
}

.box_yearly_save {
    display: inline;
    margin-left: .2rem;
    padding: .1rem .4rem;
    border-radius: .4rem;
    background-color: #ffae3d
}

.text_yearly_save {
    font-size: 1rem;
    color: black;
}

/* Selected tier button */
#tier_1:checked ~ .tiers_choices .button_choices:nth-child(1),
#tier_2:checked ~ .tiers_choices .button_choices:nth-child(2),
#tier_3:checked ~ .tiers_choices .button_choices:nth-child(3) {
    background-color: #4299e5;
}

.tier_choice_active {
    background-color: #4299e5;
}

/* Selected renewal button */
#monthly:checked ~ .payment_renewal_choices .button_choices:nth-child(1),
#yearly:checked ~ .payment_renewal_choices .button_choices:nth-child(2) {
    background-color: #4299e5;
}

/* Display plans based on tier and payment renewal choices */
#tier_1:checked ~ #monthly:checked ~ #tier_1_plans_monthly,
#tier_1:checked ~ #yearly:checked ~ #tier_1_plans_yearly,
#tier_2:checked ~ #monthly:checked ~ #tier_2_plans_monthly,
#tier_2:checked ~ #yearly:checked ~ #tier_2_plans_yearly,
#tier_3:checked ~ #monthly:checked ~ #tier_3_plans_monthly,
#tier_3:checked ~ #yearly:checked ~ #tier_3_plans_yearly {
    display: flex;
}

.box_plans_choices {
    display: none;
    flex-direction: row;
    align-items: flex-start;
    margin-top: 2rem;
    padding: 2rem;
    gap: 2rem;
}

.box_plan {
    display: flex;
    flex-direction: column;
    background-color: #242527;
    border: 0.2rem solid #343438;
    border-radius: 1rem;
    padding: 2.8rem;
    width: 18rem;
    transition: transform 0.3s ease;
    position: relative;
}

.title {
    font-size: 1.7rem;
    margin-bottom: 4rem;
}

.plan_popular {
    border-color: #52aeff;
}

.price {
    font-size: 1.7rem;
}

.split_price {
    font-size: 1.2rem;
    margin-top: .4rem;
}

.price_info {
    font-size: 1rem;
    font-weight: bold;
    margin-top: .4rem;
    text-decoration: none;
    color: #4299e5;
}

.original_price {
    text-decoration: line-through;
    text-decoration-thickness: .15rem;
    text-decoration-color: #4299e5;
    font-size: 1.4rem;
}

.credits {
    font-size: 1.4rem;
    margin-top: .8rem;
}

.plan_check_list {
    width: 1rem;
    height: auto;
    margin-right: .4rem;
}

.plan_text_list {
    font-size: 1.2rem;
    text-align: left;
    margin-left: 1.2rem;
    margin-top: .8rem;
}

.text_popular {
    font-size: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -2.2rem;
    background-color: #4299e5;
    padding: .2rem .5rem;
    border-radius: .28rem;
}

.button_subscribe {
    margin: auto;
    margin-top: 2rem;
    padding: .4rem 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    background-color: #4299e5;
    border: none;
    border-radius: .2rem;
    transition: all .4s ease-in-out;
    cursor: pointer;
    user-select: none;
}

.button_subscribe:hover {
    scale: 1.1;
    background-color: #52aeff;
    transition: all .2s ease-in-out;
}

/*Desktop*/
@media only screen and (max-width: 1300px) {

    .box_plans_choices {
        gap: 1.4rem;
    }

    .box_plan {
        padding: 1.4rem;
        padding-top: 2.8rem;
    }

}

/*Desktop*/
@media only screen and (max-width: 1150px) {

    .box_plans_choices {
        gap: 1rem;
    }

    .box_plan {
        padding: .2rem;
        padding-top: 2.8rem;
        padding-bottom: .8rem;
    }

}

/*Desktop*/
@media only screen and (max-width: 1000px) {

    .box_plans_choices {
        flex-direction: column;
        align-items: center;
        margin-top: 0;
    }

    .box_plan {
        padding: 2.8rem;
        width: 18rem;
        padding-top: 2.8rem;
        padding-bottom: .8rem;
    }

}

/*Mobile*/
@media only screen and (max-width: 750px) {

    .tiers_choices {
        flex-direction: column;
        gap: .4rem;
    }

    .payment_renewal_choices {
        margin-top: 1rem;
        gap: .7rem;
    }

    .title {
        font-size: 1.7rem;
        margin-bottom: 0;
    }

}

/*Mobile*/
@media only screen and (max-width: 450px) {

    .box_subscription {
        margin-top: 5.4rem;
    }

    .title {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

    .tiers_choices, .payment_renewal_choices {
        margin-top: 1rem;
        gap: .7rem;
    }

    .button_choices {
        padding: .2rem .4rem;
        font-size: 1rem;
    }

    .box_plans_choices {
        margin-top: 1rem;
        padding-top: .2rem;
        gap: 1rem;
    }

    .box_plan {
        width: 14rem;
        padding: 0;
        padding-top: 1.8rem;
        padding-bottom: .8rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .split_price {
        font-size: .9rem;
    }

    .price_info {
        font-size: .8rem;
    }

    .original_price {
        font-size: 1rem;
    }

    .credits {
        font-size: 1rem;
        margin-top: .4rem;
    }

    .plan_check_list {
        width: .8rem;
        height: auto;
    }

    .plan_text_list {
        font-size: 1rem;
        text-align: left;
        margin-left: .8rem;
        margin-top: .4rem;
    }

    .text_popular {
        font-size: .7rem;
        margin-top: -1.5rem;
    }

    .button_subscribe {
        margin-top: 1.4rem;
        padding: .2rem .4rem;
        font-size: 1rem;
    }

    .button_subscribe:hover {
        scale: 1.1;
        background-color: #52aeff;
        transition: all .2s ease-in-out;
    }

}