@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
:root {
    --Linear-gradient: hsl(237, 73%, 79%) to hsl(238, 63%, 64%);
    --Blue-50: hsl(240, 78%, 98%);
    --Gray-650: hsl(233, 13%, 49%);
    --Gray-700: hsl(232, 13%, 33%);
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Libre Franklin", sans-serif;
}

body, .plan {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-weight: 600;
    background-color: var(--Blue-50);
    color: var(--Gray-700);
    padding-top: 2em;
}

.top {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}

.bottom {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: -1;
}

.choose-plan {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1em;
    margin: 3em 0;
}

button#switcher {
    width: 80px;
    height: 40px;
    border-radius: 2em;
    border: none;
    background-image: linear-gradient(145deg, hsl(237, 73%, 79%), hsl(238, 63%, 64%));
    padding: 4px;
    cursor: pointer;
}

button#switcher:hover {
    background-color: hsl(237, 73%, 79%);
    background-image: none;
}

.circle {
    width: 50%;
    height: 100%;
    background-color: #fff;
    border-radius: 2em;
}

hr {
    width: 100%;
    border: 1px var(--Gray-700) none;
    border-top-style: solid;
}

.plans {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
    width: 100%;
    max-width: 960px;
    padding: 0 2em;
}

.plan {
    background-color: white;
    color: var(--Gray-700);
    padding: 1em;
    width: 100%;
    border-radius: 0.5em;
}

.price {
    font-size: 3em;
    font-weight: bold;
    margin: 0.5em 0;
}

.plan > p {
    margin: 1em 0;
}

.plan > button {
    margin: 2em 0 1em;
    width: 100%;
    padding: 1em 0;
    background-image: linear-gradient(145deg, hsl(237, 73%, 79%), hsl(238, 63%, 64%));
    color: white;
    border: 2px white solid;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

.plan > button:hover {
    background-color: transparent;
    background-image: none;
    border: 2px hsl(238, 63%, 64%) solid;
    color: hsl(238, 63%, 64%);
}

.plan:nth-child(2) {
    background-image: linear-gradient(145deg, hsl(237, 73%, 79%), hsl(238, 63%, 64%));
    color: white;
}

.plan:nth-child(2) hr {
    border-color: white;
}

.plan:nth-child(2) > button {
    border-color: white;
    background-image: none;
    background-color: white;
    color: hsl(238, 63%, 64%);
}

.plan:nth-child(2) > button:hover {
    background-color: transparent;
    border-color: white;
    color: white;
}

.monthly {
    display: block;
}

.annually {
    display: none;
}

footer {
    margin: 1em 0;
}

@media screen and (min-width: 768px) {
    .plans {
        flex-direction: row;
        gap: 0;
    }

    .plan:nth-child(2) {
        height: 30em;
    }

    .bottom {display: block}
}