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

: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%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
}

body {
  font-family: "Red Hat Display", sans-serif;
  background-color: hsl(225, 100%, 94%);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

.background-wave {
  background-image: url(./images/pattern-background-mobile.svg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 400px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.container {
  background-color: white;
  margin: 40px;
  border-radius: 15px;
  box-shadow: 3px 3px 3px hsl(223, 47%, 23%, 0.1);
  text-align: center;
}

.head img.hero {
  border-radius: 15px 15px 0 0;
  margin-bottom: 20px;
  width: 100%;
}

.head h2 {
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.head p {
  margin-bottom: 20px;
  padding: 0px 30px 0 30px;
  color: var(--desaturated-blue);
}

.card {
  background-color: var(--very-pale-blue);
  margin: 20px auto;
  padding: 20px;
  width: 90%;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card section {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card section div h4 {
  color: var(--dark-blue);
}

.card section div p {
  color: var(--desaturated-blue);
}

.card section img {
  margin-right: 20px;
}

.buttons {
  display: flex;
  flex-direction: column;
  padding: 0 30px;
}

.btn {
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-change {
  text-decoration: underline;
  color: var(--bright-blue);
  background-color: transparent;
}

.btn-primary {
  background-color: var(--bright-blue);
  color: white;
  padding: 15px 40px;
  border-radius: 5px;
  margin-bottom: 20px;
  box-shadow: 0 10px 10px hsl(245, 75%, 52%, 0.2);
}

.btn-primary:hover,
.btn-change:hover {
  opacity: 0.8;
}

.btn-secondary {
  background-color: transparent;
  color: var(--desaturated-blue);
  margin-bottom: 20px;
}

.btn-secondary:hover {
  color: var(--dark-blue);
}

.attribution {
  font-size: 11px;
}

@media (min-width: 768px) {
  .background-wave {
    background-image: url(./images/pattern-background-desktop.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 400px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
  }

  .container {
    width: 400px;
  }
}
