:root {
  --bg-color: hsl(292, 16%, 49%);
  --card-bg: hsl(0, 100%, 100%);
  --text-color: hsl(0, 0%, 7%);
  --text-color-light: hsl(292, 16%, 49%);
  --hover-color: #a327dd;
}

body {
  min-height: 100vh;
  height: auto;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s, color 0.3s;
  font-family: "Work Sans", Arial, sans-serif;
  /*for container center */
  position: relative;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-size: 16px;
}

.backgroundImage {
  width: 100%;
}

.backgroundImage2 {
  display: none;
}

.container {
  z-index: 1; /* Place container above the image */
  background-color: var(--card-bg); /* Optional: Add background to container */
  padding: 20px; /* Optional: Add padding for better appearance */
  border-radius: 10px; /* Optional: Add rounded corners */
  width: 550px;

  /*for container center */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the container */
}

.imgH1 {
  display: flex;
  align-items: center;
}

h1 {
  font-size: 3rem;
  margin-left: 20px;
}

.questionContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.question {
  font-weight: bold;
}

.questionContainer:hover,
.questionContainer:focus {
  cursor: pointer;
  color: var(--hover-color);
}

.answer {
  color: var(--text-color-light);
  margin-bottom: 10px;
  font-size: 0.97rem;
  display: none; /* Hide answers by default */
  margin-top: 10px;
}

.questionContainer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  cursor: pointer;
}

.questionContainer img {
  width: 20px;
  height: 20px;
}

hr {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .container {
    margin-top: 10px;
  }

  .q4 {
    margin-bottom: 0;
  }
}

@media (max-width: 800px) {
  body {
    min-height: 100vh;
    height: auto;
  }
  .q4 {
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  body {
    height: auto;
  }
  .q4 {
    margin-bottom: 0;
  }
}

@media (max-width: 551px) {
  .container {
    width: 90%;
  }

  .q4 {
    margin-bottom: 0;
  }
}

@media (max-width: 501px) {
  .backgroundImage {
    margin-bottom: 0px;
  }
  .container {
    width: 90%;
  }

  .q4 {
    margin-bottom: 0;
  }

  .attribution {
    display: none;
  }
}

@media (max-width: 451px) {
  body {
    height: auto;
  }
  .backgroundImage {
    margin-bottom: 0px;
  }
}

@media (max-width: 376px) {
  * {
    font-size: 14px;
  }
  body {
    height: 800px;
  }

  .container {
    width: 90%;
    margin-top: -10px;
  }

  .backgroundImage {
    display: none;
  }

  .backgroundImage2 {
    display: block;
    width: 100%;
    margin-bottom: 200px;
  }

  .icon-star {
    width: 10%;
  }

  h1 {
    font-size: 2rem;
    margin-left: 20px;
  }

  .questionContainer {
    justify-content: space-between;
    align-items: center;
  }

  .q1 {
    font-size: 16px;
  }

  .minus {
    margin-left: 50px;
  }

  .answer {
    font-size: 1.1rem;
  }

  .q4 {
    margin-bottom: 0px;
  }
}
