html, body { height: 100%; background-color: #fff; } .submit-answer { .detail-header { background-color: #fff; border-bottom: 1px solid #DDD; } .content { padding: 32px 16px; } .cost { position: relative; font-size: 18px; color: #333; text-align: center; margin-bottom: 30px; @mixin pseudo { content: ''; position: absolute; top: 50%; transform: translateY(-50%); display: block; width: 16px; height: 11px; background: url("./line.png") no-repeat; background-size: contain; } $dis: 25%; &::before { @include pseudo; left: $dis; } &::after { @include pseudo; transform: scale(-1, 1) translateY(-50%); right: $dis; } } .answers { display: flex; flex-wrap: wrap; width: 80%; margin: 0 auto 60px; li { $size: 34px; width: $size; height: $size; margin-right: 25px; margin-bottom: 16px; line-height: $size; border-radius: 50%; border: 1px solid #09f; color: #09f; text-align: center; font-size: 18px; &:nth-of-type(5n) { margin-right: 0; } &.selected { background-color: #09f; color: #fff; } &.wrong { background-color: #E64949; border-color: #E64949; color: #fff; } &.unselect { border: 1px solid #E64949; color: #E64949; } &.correct { background-color: #2CDBAF; border-color: #2CDBAF; color: #fff; } } } .score { margin-bottom: 30px; font-size: 21px; color: #09f; text-align: center; } button { width: 343px; height: 44px; background: #09f; border-radius: 22px; -webkit-appearance: none; outline: 0; border: 0; color: #fff; font-size: 18px; } }