* {
  font-family: "Sofia Sans", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#background {
  background-color: #000000;
  width: 50%;
  margin: 0 auto;
  min-height: 50vh;
  position: relative;
  top: 30px;
  border: 10px solid lightgray;
  overflow: hidden;
}
.main {
  width: 40%;
  height: 30vh;
  margin-left: 40px;
  position: absolute;
  top: 40px;
  border-radius: 10px;
  color: black;
  background-color: white;

  & h1 {
    max-width: fit-content;
    height: 55px;
    margin: 0 auto;
    background-color: #dc2a48;
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    padding-inline: 20px;
    padding-block: 10px;
    margin-top: -20px;
    border-radius: 4px;
  }
}
p {
  padding: 5%;
  font-size: 1rem;
  font-weight: bold;
  text-align: left;
  line-height: 1.2;
}

/* Media Query for Mobile Phone */

@media (max-width: 587px) {
  #background {
    width: 95%;
    margin-inline: 10px;
    margin-block-start: 20px;
    position: relative;
  }

  .main {
    width: 80%;
    height: 25vh;
    margin-left: 40px;
    position: absolute;
    top: 40px;
  }

  .main h1 {
    font-size: 1.2rem;
    font-weight: bold;
    height: 45px;
    max-width: 70%;
  }

  p {
    padding: 4%;
    margin-top:10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: start;
    line-height: 1.2;
  }
}
