/*
 * https://github.com/morethanwords/tweb
 * Copyright (C) 2019-2021 Eduard Kuzmenko
 * https://github.com/morethanwords/tweb/blob/master/LICENSE
 */

.quiz-hint {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
  padding: 0 .5rem;
	transition: transform .2s ease;

	body.animation-level-0 & {
		transition: none;
	}

  &.from-top {
    top: .5rem;
    transform: translate3d(0, calc(-100% - var(--push-quiz, 10px)), 0);
  }

  &.from-bottom {
    bottom: .5rem;
    transform: translate3d(0, calc(100% + var(--push-quiz, 10px)), 0);
  }

	&.active {
		transform: translate3d(0, 0, 0);
	}

	&-container {
		background: rgba(0, 0, 0, .7);
    backdrop-filter: var(--menu-backdrop-filter);
    text-align: center;
    padding: 10px 18px 12px 50px;
    min-height: 48px;
    border-radius: 12px;
    line-height: var(--line-height-15);
    color: white;
    font-size: var(--font-size-15);
    max-width: unquote("min(100%, 400px)");
    overflow: hidden;
		text-align: start;
		position: relative;
		display: flex;
		align-items: center;
		flex-wrap: wrap;
    word-break: break-word;

    &.has-right-text {
      justify-content: space-between;
      flex: 1 1 auto;
    }

		@include respond-to(handhelds) {
			padding: 10px 18px 12px 54px;
			margin: 0 10px;
			font-size: 14px;
		}

		a {
			color: white;
      text-decoration: underline;
			// border-bottom: 1px solid white;
		}

    &.has-title .quiz-hint-icon {
      top: .625rem;
    }
	}

  &-icon {
    position: absolute;
    left: 15px;
    font-size: 1.5rem;
    top: .75rem;
  }

  &-title {
    font-size: var(--font-size-16);
    font-weight: var(--font-weight-bold);
    margin-bottom: .125rem;
  }
}
