
@media screen and (min-width:375px) {

    * {
        box-sizing: border-box;
    }
    
    body {
        background-color: hsl(225, 100%, 94%);
        background-image: url('images/pattern-background-desktop.svg');
        background-repeat: no-repeat;
        font-size: 16px;
        margin: 0;
        padding: 4.375em 0;
    }
    
    #card-container {
        background-color: #fff;
        border-radius: 1em;
        font-family: 'Red Hat Display';
        margin: 0 auto;
        width: 327px;
    }
    
    #top-image {
        background-image: url('images/illustration-hero.svg');
        background-size: cover;
        border-top-left-radius: 1em;
        border-top-right-radius: 1em;
        height: 10em;
    }

    #info {
        margin: 2.5em 2.5em 1.875em 2.5em;
    }
    
    #info h1 {
        font-size: 1em;
        font-weight: 900;
        margin: 0;
        padding: 0;
        text-align: center;
    }
    
    #info p {
        color: hsl(210, 9%, 60%);
        font-size: 1em;
        font-weight: 500;
        margin-top: 1.875em;
        text-align: center;
    }
    
    #price {
        background-color:hsl(225, 100%, 98%);
        border-radius: 0.5em;
        margin: 0 auto;
        overflow: hidden;
        padding: 1em;
        width: 85.32110091743119%;
    }
    
    #price-img, #price-plan {
        float: left;
    }
    
    #price-change {
        float: right;
    }
    
    #price-plan p {
        line-height: 1.5em;
        margin: 0;
        padding: 0 1.25em;
    }
    
    #price-plan p:first-child{
        font-weight: 900;
    }

    #price-plan p:nth-child(2) {
        color: hsl(210, 9%, 60%) ;
    }
    
    #price-change p {
        vertical-align: middle;
    }
    
    #price-change a {
       color: hsl(245, 75%, 52%);
       font-weight: 700;
    }
    
    #price-change a:hover {
        color: hsl(224, 23%, 55%);
        font-weight: normal;
        text-decoration: none;
     }
    
    .clearfix::after {
        content: "";
        clear: both;
        display: table;
      }
    
      #call-action {
        margin: 0 auto;
        padding: 2em 0 3.25em 0;
        text-align: center;
        width: 85.32110091743119%;
      }
    
    #call-action button {
        background-color: hsl(245, 75%, 52%);
        border: 0;
        border-radius: 0.5em;
        box-shadow: 5px 10px 5px hsl(210, 50%, 90%);
        color: #fff;
        cursor: pointer;
        font-family: 'Red Hat Display';
        font-weight: 700;
        margin-bottom: 1.5em;
        padding: 1em 4em;
        width: 100%;  
    }
    
    #call-action button:hover {
        background-color: hsl(224, 23%, 55%);
        cursor: pointer;
    
    }
    
    #call-action a {
        color: hsl(224, 23%, 55%);
        font-weight: 700;
        text-decoration: none;
    }
    
    #call-action a:hover {
       color: hsl(223, 47%, 23%);
    }
    
    .attribution {
        text-align: center;
        padding: 1em;
    }

}


@media screen and (min-width:1440px) {

* {
    box-sizing: border-box;
}

body {
    background-color: hsl(225, 100%, 94%);
    background-image: url('images/pattern-background-desktop.svg');
    background-repeat: no-repeat;
    font-size: 16px;
    margin: 0;
    padding: 6.3125em 0;
}

#card-container {
    background-color: #fff;
    border-radius: 1em;
    font-family: 'Red Hat Display';
    margin: 0 auto;
    width: 31.25%;
}

#top-image {
    background-image: url('images/illustration-hero.svg');
    background-repeat: no-repeat;
    background-size: cover;
    border-top-left-radius: 1em;
    border-top-right-radius: 1em;
    height: 220px;
}

#info {
    margin: 3.375em 4.9375em 1.6875em;
}

#info h1 {
    font-size: 1.25em;
    font-weight: 900;
    margin: 0;
    text-align: center;
}

#info p {
    font-size: 0.9375em;
    font-weight: 300;
    margin: 2em 0 0;
    text-align: center;
}

#price {
    background-color:hsl(225, 100%, 98%);
    border-radius: 0.5em;
    margin: 0 auto;
    overflow: hidden;
    padding: 1.5625em 1.5em;
    width: 78.6666667%;
}

#price-img, #price-plan {
    float: left;
}

#price-change {
    float: right;
}

#price-plan p {
    line-height: 1.5em;
    margin: 0;

}

#price-plan p:first-child{
    font-weight: 900;
}

#price-change p {
    vertical-align: middle;
}

#price-change a {
   color: hsl(245, 75%, 52%);
   font-weight: 700;
}

#price-change a:hover {
    color: hsl(224, 23%, 55%);
    font-weight: normal;
    text-decoration: none;
 }

.clearfix::after {
    content: "";
    clear: both;
    display: table;
  }

  #call-action {
    margin: 0 auto;
    padding: 2em 0 3.25em 0;
    text-align: center;
    width: 77.77777777777778%;
  }

#call-action button {
    background-color: hsl(245, 75%, 52%);
    border: 0;
    border-radius: 0.5em;
    box-shadow: 5px 10px 5px hsl(210, 50%, 90%);
    color: #fff;
    cursor: pointer;
    font-family: 'Red Hat Display';
    font-weight: 700;
    margin-bottom: 2.25em;
    padding: 1.25em;
    width: 100%;  
}

#call-action button:hover {
    background-color: hsl(224, 23%, 55%);
    cursor: pointer;

}

#call-action a {
    color: hsl(224, 23%, 55%);
    font-weight: 700;
    text-decoration: none;
}

#call-action a:hover {
   color: hsl(223, 47%, 23%);
}

.attribution {
    text-align: center;
    padding: 1em;
}

}
