html {
  line-height: 1.15;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  transition: 0.3s;
  font-size: 32px;
}

*.unselectable {
  -moz-user-select: -moz-none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.trang-khao-sat {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100vw;
  gap: 45px;
  padding: 135px 0;
  overflow: hidden;
}

.title-bubble,
.main-frame,
.question-bubble,
.answer-frame {
  display: flex;
  flex-shrink: 0;
  border-radius: 70px;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 1);
}

.answer-frame {
  align-items: flex-end;
  background-color: transparent;
}

.title-bubble {
  width: 65vmax;
  gap: 10px;
  padding: 28px 10vw;
}

.title {
  font-family: "Reddit Sans";
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  line-height: 150%;
  color: rgba(0, 0, 0, 1);
}

:root {
  --inner-border-radius: 20px;
  --ibr: var(--inner-border-radius);
}

.main-frame {
  width: 65vmax;
  gap: 35px;
  padding: 50px 50px 50px 50px;
  background-color: rgba(230, 230, 230, 1);
  flex-direction: column;
}

.question-bubble {
  width: 100%;
  gap: 10px;
  padding: 20px 30px 40px;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  border-radius: 20px;
  flex-direction: column;
}

.question-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.question-content,
.yes-button-content,
.no-button-content,
.next-button-content {
  font-family: "Reddit Sans";
  line-height: 150%;
  color: rgba(0, 0, 0, 1);
  text-decoration: none;
  height: auto;
}

.next-button-content {
  width: 100%;
  padding: 10px 30px;
  position: absolute;
}

.question-content {
  width: 100%;
  text-align: left;
  padding-left: 15px;
  font-weight: 400;
}

.answer-frame {
  height: 45px;
  gap: 16px;
  padding-right: 70px;
}

.yes-button-content,
.no-button-content {
  width: 100%;
  margin: 10px;
}

.no-button:hover,
.yes-button:hover {
  background-color: #e9ffe4;
  box-shadow: 0px 0px 0px 0px #d4d4d4;
}

.no-button.selected,
.yes-button.selected {
  background-color: #d1ffc7;
  box-shadow: 0px 0px 0px 0px #d4d4d4;
}

.yes-button,
.no-button,
.next-button,
.end-button {
  width: 160px;
  height: 70px;
  display: flex;
  position: relative;
  box-shadow: 0px 2px 0px 2px #d4d4d4;
  align-items: flex-start;
  flex-shrink: 1;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 1);
  cursor: pointer;
}

.next-button {
  width: 300px;
}

.end-button {
  width: 510px;
}

.next-button:hover {
  background-color: #cdcdcd;
  box-shadow: 0px 0px 0px 0px #d4d4d4;
}

.end-button:hover {
  background-color: #ccffcc;
  box-shadow: 0px 0px 0px 0px #d4d4d4;
}

@media only screen and (max-width: 961px) {

  * {
    font-size: 24px;
  }

  .title {
    font-size: 40px;
  }

  .main-frame {
    width: 90vmin;
    padding: var(--ibr) var(--ibr) var(--ibr) var(--ibr);
  }

  .title-bubble {
    width: 90vmin;
  }

  .question-bubble {
    width: 100%;
    gap: 10px;
    padding: 20px 20px 30px;
    border-radius: calc(70px - var(--ibr));
  }

  .answer-frame {
    width: 100%;
    height: 35px;
    gap: 25px;
    padding-right: 0;
  }

  .yes-button,
  .no-button,
  .next-button,
  .end-button {
    width: 100px;
    height: 55px;
    border-radius: calc(70px - var(--ibr));
  }

  .next-button {
    width: 225px;
  }

  .end-button {
    width: 340px;
  }
}