* {
    font-family: 'Red Hat Display', sans-serif;
    box-sizing: border-box;
}

body {
    height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #abbef5;
  margin: auto;
  background-image: url(images/pattern-background-desktop.svg); 
  background-repeat: no-repeat;
  background-position: top -120px;
}

.container {
  background-color: white;
  border-radius: 20px;
  width: 300px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* This is the First Section */

img.hero {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

h1 {
    text-align: center;
    font-size: 24px;
    margin: 20px 0;
}

p {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin: 0 30px 20px;
}

/* This is the Second Section */

.plan {
    display: flex;
    justify-content: space-between;
    width: 80%;
    background: hsl(225, 100%, 98%);
    height: 10vh;
    margin: auto;
    padding: 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

strong {
    font-size: 13px;
    color: #333;
    margin: 0;
}

.plan p {
    font-size: 13px;
    color: hsl(224, 23%, 55%);
    margin: 0;
    text-align: left;
}

.plan div {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    width: 60%;
    padding: 0 10px;
}

.plan div.change {
    width: 20%;
    padding: 10px;
    text-align: center;
    font-size: 11px;
}

button {
    width: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
}

button.payment {
    background-color: hsl(245, 75%, 52%);
    color: white;
}

button.cancel {
    background-color: hsl(225, 100%, 98%);
    color: hsl(224, 23%, 55%);
}

button.payment:hover {
    transition: background-color 1s ease, color 1.5s ease;
    background-color: white;
    color: hsl(246, 98%, 52%);
}

button.cancel:hover {
    transition: background-color 1s ease, color 1.5s ease;
    background-color: hsl(246, 98%, 52%);
    color: white;
}

/* MEDIA QUERIES */
@media (min-width: 0px) and (max-width: 600px) {
    * {
        box-sizing: border-box;
    }
    
    body {
        margin: 0;
        padding: 20px;
        background-image: url(images/pattern-background-mobile.svg);
        background-repeat: no-repeat;
        background-size: cover;
    }
    
    .container {
        width: 90%;
        max-width: 300px;
        margin: 0 auto;
    }

    img.hero {
        height: 120px;
    }

    h1 {
        font-size: 20px;
    }

    .plan {
        padding: 10px;
        height: auto;
    }

    .plan div {
        padding: 10px 5px;
    }

    .plan img {
        width: 50px;
        height: 50px;
    }

    .plan div.change {
        padding: 10px;
      }

      button.cancel {
        width: 90%;
        margin: 10px auto;
        padding: 10px;
      }

}