@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    min-height: 100vh;
    background-color: hsl(240, 78%, 98%);
    background-image: url(images/bg-top.svg), url(images/bg-bottom.svg);
    background-position: right top, left bottom;
    background-repeat: no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.wrapper {
    padding: 60px 20px;
    text-align: center;
}

.title {
    font-size: 32px;
    color: hsl(233, 13%, 49%);
}

.switch input {
    opacity: 0;

}

.switch {
    display: inline-block;
    width: 60px;
    height: 32px;
    position: relative;
    cursor: pointer;
}

.slider {
    position: absolute;
    background: linear-gradient(180deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 35px;
}

.slider:hover {
    background: hsl(236, 72%, 79%);
}

.slider::before {
    content: '';
    position: absolute;
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background-color: #FFF;
    bottom: 4px;
    left: 4px;
    transition: all .4s ease-in-out;
}

input:checked+ .slider::before {
    transform: translateX(26px);
}

.pricing {
    color: hsl(234, 14%, 74%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;

}

.pricing label {
    margin: 0 20px; 
}

.pricing-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.pricing-box {
    background: #FFF;
    padding: 50px 40px;
    border-radius: 12px;
    align-self: center;
}

.box-title {
    color: hsl(233, 13%, 49%);
    font-size: 18px;
    margin-bottom: 30px;
}

.price-monthly, .price-annually {
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: hsl(232, 13%, 33%);
}

.price-monthly {
    display: none;
}

.price {
    font-size: 65px;
    padding-left: 7px;
}

ul {
    list-style-type: none;
    padding: 35px 0;
}

ul li {
    color: hsl(233, 13%, 49%);
    border-bottom: 1px solid hsl(234, 14%, 74%);
    padding: 18px 0;
}

ul li:first-child {
    border-top: 1px solid hsl(234, 14%, 74%);
}

a {
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(180deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
    width: 100%;
    display: block;
    padding: 16px 0;
    color: #FFF;
    border: 1px solid transparent;
    border-radius: 7px;
}

a:hover {
    color: hsl(237, 63%, 64%);
    background: transparent;
    border-color: hsl(237, 63%, 64%);
}

.pricing-box.featured {
    background: linear-gradient(180deg, hsl(236, 72%, 79%), hsl(237, 63%, 64%));
    padding: 80px 40px;
    transform: scaleX(1.05);
}

.pricing-box.featured p {
    color: #FFF;
}

.pricing-box.featured ul li {
    color: #FFF;
}

.pricing-box.featured a {
    background: #FFF;
    color: hsl(237, 63%, 64%);
}

.pricing-box.featured a:hover {
    color: #FFF;
    border-color: #FFF;
    background: transparent;
}

@media only screen and (max-width: 1024px) {
    body{
        font-size: 14px;
    }
    .price {
        font-size: 50px;
    }
    .pricing-box {
        padding: 40px 30px;
    }

    .pricing-box.featured {
        padding: 70px 30px;
    }
}

@media only screen and (max-width: 820px) {
    pricing.main{
        grid-template-columns: 1fr;
        row-gap: 30px;
    }
    .price {
        font-size: 50px;
    }
    .pricing-box {
        padding: 50px;
    }

    .pricing-box.featured {
        transform: scaleX(1);
        padding: 50px;
    }
}