* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
:root {
    --pale-blue: hsl(225, 100%, 94%);
    --bright-blue: hsl(245, 75%, 52%);
    --very-pale-blue: hsl(225, 100%, 98%);
    --desaturated-blue: hsl(224, 23%, 55%);
    --dark-blue: hsl(223, 47%, 23%);
}
.fw-500 {
    font-weight: 500;
}
.fw-700 {
    font-weight: 700;
}
.fw-900 {
    font-weight: 900;
}
body {
    max-width: 100vw;
    height: 100vh;
    font-family: 'Red Hat Display', sans-serif;
    background-color: var(--pale-blue);
    background-image: url(../images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
p {
    font-size: 16px;
}
.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }
main {
    display: grid;
    grid-template-columns: 450px;
    grid-template-rows: auto;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}
main p {
    text-align: center;
}
.main-p {
    margin: 10px 50px 10px 50px;
    color: var(--desaturated-blue);
}
main img {
    width: auto;
    height: auto;
    object-fit: contain;
}
h1 {
    text-align: center;
    margin: 40px 0 10px 0;
}
.music-plan {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px;
    background-color: var(--very-pale-blue);
    margin: 20px 50px 40px 50px;
    padding: 20px;
}
.music-plan img {
    width: 80px;
}
.music-plan div {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    align-items: start;
    margin-left: 20px;
}
button {
    margin: 0 50px 0 50px;
    padding: 10px 0;
    border: none;
    border-radius: 8px;
    background-color: var(--bright-blue);
    color: white;
    overflow: hidden;
    box-shadow: 0px 7px 20px var(--desaturated-blue);
}
.cancel {
    text-align: center;
    text-decoration: none;
    color: var(--desaturated-blue);
    margin: 20px 0 20px 0;
}
footer {
    margin: 20px;
}
footer a {
    text-decoration: none;
}

@media screen and (max-width: 768px) {
    body {
        background-image: url(../images/pattern-background-mobile.svg);
        background-size: contain;
    }
}

@media screen and (max-width: 425px) {
    main {
        grid-template-columns: 380px;
        margin-top: 50px;
    }
    main img {
        width: 100%;
        height: 100%;
    }
    .music-plan {
        margin: 20px 30px 40px 30px;
    }
    button {
        margin: 0 30px 0 30px;
        padding: 15px 0;
        font-size: 15px;
    }
    footer p {
        font-size: 14px;
    }
}

@media screen and (max-width: 375px) {
    main {
        grid-template-columns: 320px;
        margin-top: 0;
    }
    main img {
        width: 100%;
        height: 100%;
    }
    .main-p {
        font-size: 15px;
        margin: 10px 35px 10px 35px;
    }
    .music-plan {
        margin: 20px 20px 40px 20px;
        padding: 15px;
    }
    button {
        margin: 0 20px 0 20px;
        padding: 13px 0;
    }
    .music-plan a {
        font-size: 14px;
    }
    .music-plan div {
        margin-left: 10px;
    }
    .music-plan div p {
        font-size: 15px;
    }
    .cancel {
        font-size: 14px;
    }
    footer {
        margin: 20px 10px 10px 10px;
    }
    footer p {
        font-size: 12px;
    }
}

@media screen and (max-width: 320px) {
    h1 {
        font-size: 30px;
    }
    main {
        grid-template-columns: 280px;
    }
    .main-p {
        font-size: 14px;
        margin: 10px 30px 10px 30px;
    }
    .music-plan a {
        font-size: 13px;
    }
    .music-plan div p {
        font-size: 14px;
    }
    .cancel {
        font-size: 12px;
    }
    button {
        font-size: 13px;
    }
    footer p {
        font-size: 11px;
    }
}