@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;700&display=swap');

/* || RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

button {
    font-size: inherit;
}

/* || ULTILITY CLASSES */
.center {
    text-align: center;
}

.offscreen {
    position: absolute;
    left: -10000px;
}

/* || VARIABLES */
:root {
    /* COLORS */
    --BODY-BGIMAGE: url(/img/pattern-background-desktop.svg);
    --BODY-BGCOLOR: hsl(225, 100%, 94%);
    --HEADER-COLOR: hsl(223, 47%, 23%);
    --SHADOW-COLOR: #000;
    --MUSICBG: hsl(225, 100%, 98%);
}


/* || GENERAL CLASSES */
body {
    min-height: 110vh;
    background-image: var(--BODY-BGIMAGE);
    background-size: contain;
    background-repeat: no-repeat;
    background-color: var(--BODY-BGCOLOR);
    font-family: 'Red Hat Display', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* || MAIN */
.main {
    width: min(100%, 300px);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 20px auto;
    box-shadow: 0 0 5px var(--SHADOW-COLOR);
    background-color: #fff;
    border-radius: 15px;
}

.hero img {
    border-top-right-radius: 15px;
    border-top-left-radius: 15px;
}

.hero__h1 {
    color: var(--HEADER-COLOR);
    text-align: center;
    font-family: 'Red Hat Display', sans-serif;
    font-weight: 700;
    margin-top: 16px;
}

.hero__p {
    text-align: center;
    margin: 0.5em 2em;
    line-height: 1.5rem;
}

.music__plan {
    background-color: var(--MUSICBG);
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    margin: 1.5em;
    padding: 0.5em;
    border-radius: 10px;
}

.music__plan img {
    width: 48px;
    height: 48px;
}

.annual__plan {
    margin-right: 1em;
    margin-left: 0.5em;
    line-height: 20px;
}

.music__plan a {
    color: rgb(11, 11, 233);
    margin-right: 0.9em;
}


button {
    width: 90%;
    margin: 0.5em 1.5em;
    padding: 1em;
    border-radius: 10px;
    border: none;
}


.payment__button {
    background-color: hsl(245, 75%, 52%);
    color: #fff;
}

.payment__button:hover {
    opacity: 0.9;
}

.payment__cancel {
    background-color: #fff;
    color: hsl(224, 23%, 55%);
}

.payment__cancel:hover {
    color: #000;
    font-weight: bolder;
}

/* || MEDIA QUERIES */

/* SMALL */
@media screen and (min-width: 576px) {
    .main {
        width: min(100%, 400px);
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        align-content: center;
        margin: 30px auto;
    }

    .hero__p {
        text-align: center;
        margin: 0.25em 3em;
        line-height: 1.5rem;
    }

    .music__plan {
        margin: 0.25rem;
        padding: 20px;
    }

    .annual__plan {
        margin-right: 4em;
        margin-left: 1em;
    }

    button {
        width: 90%;
        margin-bottom: 1em;
        padding: 1em;
        border-radius: 10px;
        border: none;
    }
}

/* MEDIUM */
@media screen and (min-width: 768px) {
    .main {
        width: min(100%, 450px);
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        align-content: center;
        margin: 20px auto;
    }

    .music__plan {
        margin: 1rem;
        padding: 20px;
    }

    .annual__plan {
        margin-right: 7em;
    }
}

/* MOBILE DEVICE LANDSCAPE */
@media screen and (max-height: 425px) and (min-aspect-ratio: 7/4) {
    .hero__p {
        text-align: center;
        margin: 0.2em 1em;
    }

    .music__plan {
        margin: 0.25rem;
        padding: 5px;
    }

    button {
        width: 90%;
        margin: 0.5em;
        padding: 1em;
        border-radius: 10px;
        border: none;
    }
}


.footer {
    position: fixed;
    bottom: 0;
    background-color: #000;
    color: #fff;
    padding: 5px;
    z-index: 1;
    text-align: center;
    width: 100%;
}