* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  --primary-text-blue: hsl(238, 29%, 16%);
  --prirmary-text-red: hsl(14, 88%, 65%);
  --prirmary-bg-gradient-violet: hsl(273, 75%, 66%);
  --prirmary-bg-gradient-blue: hsl(240, 73%, 65%);

  --neutral-text-dark-blue: hsl(237, 12%, 33%);
  --neutral-text-blue: hsl(240, 6%, 50%);
  --neutral-dividers-blue: hsl(240, 5%, 91%);
  --dark-grayish-blue: hsl(240, 6%, 50%);
  --white: hsl(0, 0%, 100%);
}

/* main body */

html {
  height: 100%;

  background: no-repeat
    linear-gradient(
      to bottom,
      var(--prirmary-bg-gradient-violet),
      var(--prirmary-bg-gradient-blue)
    );

  overflow-y: scroll;
}

body {
  background: no-repeat
    linear-gradient(
      to bottom,
      var(--prirmary-bg-gradient-violet),
      var(--prirmary-bg-gradient-blue)
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-family: "Kumbh Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
  overflow-y: scroll;
  min-height: 100%;
}

main {
  position: relative;
  width: 57.5rem;
  height: 31.9rem;
  display: flex;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: 1.4rem;
  box-shadow: 0.6rem 1.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.right-coln {
  position: relative;
  grid-column: 2/3;
  gap: 3rem;
  padding: 3.5rem 0;
  justify-content: flex-start;
  align-items: center;
}

.container {
  gap: 6rem;
}

.left-coln {
  grid-column: 1/2;
}

/* pictures */

.one {
  position: absolute;
  top: 4.5rem;
  left: -5rem;
  width: 29rem;
  z-index: 3;
}

.three {
  position: absolute;
  top: 39%;
  left: -13%;
  z-index: 999;
}

.two {
  position: absolute;
  top: -69%;
  left: -144%;
  z-index: 2;
}

.display-mobile {
  display: none;
}

.overflow-hidden {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* buttons */

.button-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-arrow {
  grid-column: 2/3;
  border: none;
  background-color: var(--white);

  padding-right: 1rem;
  transition: all 0.2s ease;
}

.btn-arrow:hover,
.btn-arrow:active {
  cursor: pointer;
  color: var(--prirmary-text-red);
}

.icon-btn-down,
.icon-btn-up {
  font-size: 0.8rem;
  color: var(--prirmary-text-red);

  padding-top: 0.3rem;
}

.btn-hide {
  display: none;
}

.button-heading.active .question {
  font-weight: 700;
}

.button-heading.active + .answer {
  display: block;
  height: 3rem;
  opacity: 1;
}

/* .question */

.question {
  grid-column: 1/2;
  margin: 1rem;
  background-color: var(--white);
  border: none;
  color: var(--neutral-text-dark-blue);
  font-family: inherit;
  font-size: 1rem;
  transition: 500ms ease-in-out;
}

.list {
  list-style: none;
}

.question:hover,
.question:active {
  cursor: pointer;
  color: var(--prirmary-text-red);
  transition: 15ms ease-in;
}

.question3.active + .answer {
  height: 4rem;
}

/* .answer */

.answer {
  padding-left: 1rem;
  padding-right: 5rem;
  display: none;
  animation-name: slideOut;
  animation-duration: 300mss;
  animation-fill-mode: forwards;
  transition: all 0.2s ease;
}


/* .attribution */


.attribution{
 padding-top: 3rem;
}



/* mobile layout */

@media (max-width: 600px) {
  main {
    margin-top: 110px;
    display: flex;
    flex-direction: row;
    width: 90%;
    height: 80vh;
    justify-content: center;
    align-items: center;
  }

  .primary-heading {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-right: 3rem;
    font-size: 40px;
  }

  .right-coln {
    padding-top: 10rem;
    position: relative;
  }

  .one {
    z-index: 9;
    margin-left: -10px;
  }


  .display-mobile {
    display: block;
    position: absolute;
    margin-top: -23.5rem;
    margin-left: 2.5rem;
  }

  .three {
    display: none;
  }

  .attribution {
    margin-top: 10px;
  }

  .bg-pattern-mobile {
    margin-top: -85px;
  }
}
