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

body {
  background-image: linear-gradient(pink, lightblue, yellow);
  font-family: "Space Grotesk", sans-serif;
}

.caketitle {
  font-size: 1.5em;
  font-weight: 700;
  
}

.cakeinfo {
  font-size: 1em;
  line-height: 1.7;
  font-weight: 300;
  color: gray;
}

a {
  text-decoration: none;
  color: inherit;
}

.wrap {
  display: flex;
  justify: space-between;
  align-items: stretch;
  width: 100%;
  gap: 24px;
  padding: 24px;
  flex-wrap: wrap;
}

.main {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  position: relative;
  padding: 24px;
  background: #fff;
}

.submain {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 12px;
  margin-bottom: 36px;
}

.cakeimage {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: 50% 20%;
}

.title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.caketitle {
  font-size: 25px;
}

.cakeinfo {
  color: dark grey;
  float: right;
  
}

.button {
  display: block;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-top: auto;
  padding: 16px;
  background: transparent;
  box-shadow: 0px 0px 0px 1px black inset;
  transition: background 0.4s ease;
}

.button:hover {
  background-color: lightblue;
}

footer {
  padding:30px;
}

/* RESPONSIVE QUERIES */

@media (min-width: 320px) {
  .title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
  }
  .cakeinfo {
    margin-top: 6px;
  }
}

@media (min-width: 460px) {
  .title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
  }
  .cakeinfo {
    margin-top: 6px;
  }
}

@media (min-width: 640px) {
  .main {
    flex-basis: calc(50% - 12px);
  }
  .title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
  }
  .cakeinfo {
    margin-top: 6px;
  }
}

@media (min-width: 840px) {
  .title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
  }
  .cakeinfo {
    margin-top: 6px;
  }
}

@media (min-width: 1024px) {
  .main {
    flex-basis: calc(33.3% - 16px);
  }
  .title {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
  }
  .cakeinfo {
    margin-top: 6px;
  }
}

@media (min-width: 1100px) {
  .main {
    flex-basis: calc(25% - 18px);
  }
}
