body,
body #quiz,
body .arte-content {
  -webkit-text-size-adjust: 100% !important;
}

.arte-content {
	font-size: 16px;
}

p.autor,
p.data {
  text-align: center;
}

/* QUIZ */
#quiz {
	margin: 0;
}
#quiz h2 {
	color: #ffffff;
	font-size: 30px;
	display: block;
	float: none;
	max-width: 13em;
	text-align: center;
	margin: 50px auto 40px;
}
#quiz p {
	text-align: center;
	margin: 0;
}
#quiz > p {
  max-width: 25em;
  margin: auto;
}
#quiz > p em {
  font-size: 80%;
}
#quiz .glide {
  max-width: 650px;
  margin: 100px auto;
	cursor: auto;
}
#quiz .glide__bullets {
	display: flex;
	list-style: none;
	position: relative;
	margin: 0 auto 20px;
	justify-content: center;
	bottom: auto;
	left: auto;
	transform: none;
}
#quiz .glide__bullet {
  background-color: transparent;
  border: 2px solid #5c656c;
  box-shadow: none;
}
#quiz .glide__bullet:hover,
#quiz .glide__bullet:focus,
#quiz .glide__bullet--active {
	border: inherit;
	background-color: #5c656c;
}
#quiz .glide__slide {
	transition: all 0.4s ease;
	opacity: 0.2;
	transform: scale(0.9);
}
#quiz .glide__slide--active {
	opacity: 1;
	transform: none;
}
#quiz .glide__slide--hidden {
	opacity: 0;
}
#quiz .glide__card {
	position: relative;
	border-radius: 10px;
	padding: 20px;
	max-width: 300px;
	margin: 0 auto;
  background: #41454c url(../img/avatar.png);
	background-position: bottom;
	background-size: contain;
	background-repeat: no-repeat;
}
#quiz .description {
	position: absolute;
	left: 0;
	padding: 20px;
}
#quiz .cta {
  text-transform: uppercase;
  font-size: 14px;
  font-family: 'LatoBlack';
  margin: 320px auto 0;
	opacity: 0;
	transition: all 0.4s ease;
}
#quiz .glide .percentage {
  margin-bottom: 1em;
}
#quiz .glide__slide--active .cta {
	opacity: 1;
}
#quiz .glide__slide button {
	background: #393b41;
	border-radius: 100px;
	border: 1px solid;
	padding: 0.7em 1em;
	font-family: 'LatoRegular', sans-serif;
	font-size: 16px;
	margin: 1em 0.5em;
	outline: none;
	cursor: pointer;
}
#quiz .glide__slide button[data-type="dealer"] {
	color: #8f6baf;
	border-color: #8f6baf;
}
#quiz .glide__slide button[data-type="dealer"]:hover {
	color: #ffffff;
}
#quiz .glide__slide button[data-type="dealer"]:active,
#quiz .glide__slide button[data-type="dealer"].on {
	border-color: #8f6baf;
	background-color: #8f6baf;
	color: #ffffff;
}
#quiz .glide__slide button[data-type="user"] {
	color: #e89c4b;
	border-color: #e89c4b;
}
#quiz .glide__slide button[data-type="user"]:hover {
	color: #ffffff;
}
#quiz .glide__slide button[data-type="user"]:active,
#quiz .glide__slide button[data-type="user"].on {
	border-color: #e89c4b;
	background-color: #e89c4b;
	color: #ffffff;
}
#quiz .quiz-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
	opacity: 0;
	transition: all 0.4s ease
}
#quiz .glide__slide--active .quiz-footer {
	opacity: 1;
}
#quiz .quiz-footer .answer {
	flex: 100% 0 0;
	transition: all 0.4s ease;
	display: flex;
	flex-direction: column;
}
#quiz .quiz-footer .answer.invisible {
	opacity: 0;
}
#quiz .quiz-footer p {
  font-size: 16px;
}
#quiz .quiz-footer p[data-type="dealer"] {
	color: #8f6baf;
}
#quiz .quiz-footer p[data-type="user"] {
	color: #e89c4b;
}
#quiz .quiz-footer .next-btn,
#quiz .quiz-footer .end-btn {
	margin: 2em auto;
	display: inline-block;
	text-align: center;
	color: #ffffff;
}
#quiz .quiz-footer .next-btn:active,
#quiz .quiz-footer .end-btn:active {
	background-color: #88898d;
}

@media (min-width: 768px) {
	#quiz .glide__track {
		overflow: visible;
	}
}

/* DISTRIBUTION */
#distribution {
  margin-bottom: 100px;
}
#distribution h3 {
	color: #ffffff;
	/* font-size: 30px; */
	display: block;
	float: none;
	max-width: 13em;
	text-align: center;
	/* margin: 50px auto 40px; */
  margin: 50px auto -100px;
}

@media (max-width: 480px) {
  #distribution h3 {
    margin: 50px auto 0px;
  }
}

#distribution .chart {
	height: 200px;
}
#distribution .chart .c3-shapes path {
  opacity: 0.8 !important;
}
#distribution .variation-container {
  display: flex;
  flex-direction: column;
  margin-top: -100px;
}
#distribution .variation-container header * {
  font-family: 'Flama', sans-serif;
}
#distribution header {
  display: inline-block;
  padding: 20px;
  background-color: rgba(143, 107, 175, 0.15);
  color: #8f6baf;
  margin: 0 auto;
  border-radius: 10px;
  font-size: 24px;
  width: 6em;
}
#distribution header p {
  font-weight: bold;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}
#distribution header p.variation {
  font-size: 28px;
}
#distribution header p.absolute {
  font-size: 12px;
}

#distribution .charts-container {
  position: relative;
}
#distribution #chart-dealer {
  margin-top: -1.8%;
}
#distribution .status {
  max-width: 28em;
text-align: center;
min-height: 3em;
line-height: 1.5;
}
#distribution input[type=range] {
  -webkit-appearance: none;
  margin: 0;
  position: absolute;
  z-index: 99;
  width: 101.2%;
  margin-left: -0.6%;
  top: 49.6%;
}
#distribution input[type=range]:focus {
  outline: none;
}
#distribution input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  animate: 0.2s;
  background: #ffffff;
}
#distribution input[type=range]::-webkit-slider-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -12px;
}
#distribution input[type=range]:focus::-webkit-slider-runnable-track {
  background: #dddddd;
}
#distribution input[type=range]::-moz-range-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  animate: 0.2s;
  background: #ffffff;
}
#distribution input[type=range]::-moz-range-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
#distribution input[type=range]::-ms-track {
  width: 100%;
  height: 2px;
  cursor: pointer;
  animate: 0.2s;
  background: transparent;
  border-color: transparent;
  border-width: 16px 0;
  color: transparent;
}
#distribution input[type=range]::-ms-fill-lower {
  background: #ffffff;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
#distribution input[type=range]::-ms-fill-upper {
  background: #ffffff;
  border: 0.2px solid #010101;
  border-radius: 2.6px;
  box-shadow: 1px 1px 1px #000000, 0px 0px 1px #0d0d0d;
}
#distribution input[type=range]::-ms-thumb {
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
#distribution input[type=range]:focus::-ms-fill-lower {
  background: #ffffff;
}
#distribution input[type=range]:focus::-ms-fill-upper {
  background: #367ebd;
}


#distribution .quantity-question {
  position: relative;
}
#distribution input[type=number]::-webkit-inner-spin-button,
#distribution input[type=number]::-webkit-outer-spin-button
{
  -webkit-appearance: none;
  margin: 0;
}
#distribution input[type=number]
{
  -moz-appearance: textfield;
}
#distribution .quantity-question input {
  width: 2.5em;
  height: 42px;
  line-height: 1.65;
  float: left;
  display: block;
  padding: 0;
  margin: 0;
  padding-left: 0.5em;
  border: 1px solid #eee;
}
#distribution .quantity-question input:focus {
  outline: 0;
}
#distribution .quantity-nav {
  float: left;
  position: relative;
  height: 42px;
}
#distribution .quantity-button {
  position: relative;
  cursor: pointer;
  border-left: 1px solid #eee;
  width: 20px;
  text-align: center;
  color: #333;
  font-size: 13px;
  font-family: "Trebuchet MS", Helvetica, sans-serif !important;
  line-height: 1.7;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}
#distribution .quantity-button.quantity-up {
  position: absolute;
  height: 50%;
  top: 0;
  border-bottom: 1px solid #eee;
}
#distribution .quantity-button.quantity-down {
  position: absolute;
  bottom: 0;
  height: 50%;
}
#distribution .overlay {
  position: absolute;
  top: 0;
  background-color: #393b41;
  width: 110%;
  height: 100%;
  left: -5%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s;
}
#distribution .overlay button {
  background: transparent;
  color: #4089AF;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  font-weight: bold;
  margin: 0.25rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 8px 12px;
  text-decoration: none !important;
  transition: all .4s;
  text-transform: uppercase;
  border: 1px solid #4089AF;
  user-select: none;
}
#distribution .overlay button:disabled {
  color: #cccccc;
  border: 1px solid #cccccc;
  cursor: default;
}
#distribution .overlay button:not(:disabled):hover {
  background-color: #4089AF;
  color: #ffffff;
}
#distribution .quantity-title {
  display: inline-block;
  width: 1.5em;
  text-align: right;
  padding-right: 0.2em;
}

#distribution .quantity-title:empty::before {
  content: '…';
  opacity: .33;
}


@media (min-width: 991px) {
  #distribution .chart {
  	height: 300px;
  }
  #distribution .variation-container {
    margin-top: -200px;
  }
}



/* CHARTS */
.arte-column-l[data-contains="box"] {
  background-color: transparent !important;
}
.arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"],
.arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"]:first-child {
  margin-top: auto !important;
}
.arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"].hidden {
  display: none !important;
}
.arte-column-l[data-contains="box"] .chart-navigation {
  display: flex;
  flex-direction: column;
  margin-top: -50px;
}
.arte-column-l[data-contains="box"] button {
  background: transparent;
  color: #c3c3c3;
  font-size: 0.8rem;
  line-height: 1.2;
  white-space: nowrap;
  margin: 0.25rem;
  cursor: pointer;
  border-radius: 5px;
  padding: 8px 12px;
  text-decoration: none !important;
  transition: all .4s;
  text-transform: uppercase;
  border: 1px solid #c3c3c3;
  user-select: none;
  outline: transparent;
}
.arte-column-l[data-contains="box"] button.active {
  background-color: #c3c3c3;
  color: #393b41;
}
.arte-content [data-contains]:not([data-contains="gallery"]) h4 {
  display: block;
  margin: 48px auto 16px;
  font-size: 12px;
}
.chart-navigation h4 {
  color: #ffffff !important;
  padding-left: 5px;
  padding-bottom: 10px;
  margin-top: 20px !important;
}
.chart-navigation div {
  padding-bottom: 20px;
}

@media (min-width: 768px) {
  .arte-column-l[data-contains="box"] .chart-navigation {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
  }
  .chart-navigation div {
    margin: 0;
  }
}

/* Tamanhos para os uvas na mão */
.arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"] {
  height: 0;
  padding-bottom: 140%;
  margin: 48px 0;
}
@media (min-width: 520px) {
  .arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"] {
    padding-bottom: 110%;
  }
}
@media (min-width: 680px) {
  .arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"] {
    padding-bottom: 80%;
  }
}
@media (min-width: 689px) {
  .arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"] {
    padding-bottom: 85%;
  }
}
@media (min-width: 1200px) {
  .arte-column-l[data-contains="box"] .arte-column-l[data-contains="graphic"] {
    padding-bottom: 60%;
  }
}


/* TEXT HIGHLIGHTS */

strong.dealer {
  /* color: #8f6baf !important; */
  color: #ae7cda !important;
}

strong.user {
	color: #e89c4b !important;
}

/* PHOTOS */

.arte-photo {
  margin: 96px auto;

}

.arte-photo img {
  -webkit-filter: saturate(33%);
          filter: saturate(33%);
  opacity: .8;
  border-radius: 8px;
}

.arte-photo figcaption {
  padding: 8px;
  font-size: 75%;
  opacity: .5;
}


/* TIP */

@keyframes slide {
  0% {
    transform: translateX( 0 );
  }
  25% {
    transform: translateX( -33% );
  }
  50% {
    transform: translateX( 33% );
  }
  75% {
    transform: translateX( 0 );
  }
  100% {
    transform: translateX( 0 );
  }
}

.range–tip img {
  width: 32px;
  opacity: .8;
  animation: slide 2.5s infinite;
}

.range–tip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate( -50%, -125% );
  transition: opacity .4s;
  pointer-events: none;
}

/* OVERRIDES */

.titulo-principal {
  letter-spacing: -.02em;
}

.arte-content [data-contains]:not([data-contains="gallery"]) p {
  color: rgba(255,255,255,.66);
}

.arte-content [data-contains]:not([data-contains="gallery"]) p strong {
  color: rgba(255,255,255,1);
}
