
.quiz-wrapper .header-container > h2 {
  font-size: 3.2rem;
}
.quiz-wrapper .quiz-container{
	display: flex;
	flex-wrap: wrap;
	width: 100%;
	height: calc( 100vh - 140px );
	position: relative;
	background: #FBF5E4;
}
.quiz-wrapper .quiz-container .quiz-box {
	padding: 40px;
	width: 100%;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	display: none;
	background: #FBF5E4;
}
.quiz-wrapper .quiz-container .quiz-box.quiz-num1{
	display: block;
}
.quiz-wrapper .quiz-container .quiz-box .quiz-box-inner{
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	width: 100%;
}
.quiz-wrapper .quiz-container .quiz-box .quiz-box-inner .quiz-container{
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 3rem;
	max-width: 1000px;
	height: auto;
	min-height: 420px;
}

.quiz-wrapper .quiz-container .quiz-box .number-container {
  display: flex;
  justify-content: center;
  font-family: 'Anton', sans-serif;
}

.quiz-wrapper .quiz-container .quiz-box .number-container .number {
  background: #095C9A;
  background: #FCBC00;
  color: #FCBC00;
  color: #FBF5E4;
  font-size: 64px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 5px;
}

.quiz-wrapper .quiz-container .quiz-box .question {
  width: calc( 100% - ( 100px + 3rem ) );
  font-size: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
}

.quiz-wrapper .quiz-container .quiz-box .question h2{
	min-height: 100px;
	display: flex;
	align-items: center;
}
@media screen and (max-width: 600px) {
	.quiz-wrapper .quiz-container .quiz-box .question h2{
		font-size: 2em;
	}
}

.quiz-wrapper .quiz-container .quiz-progress-bar-wrapper{
	margin-top: 2rem;
	width: 100%;
	height: 20px;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.quiz-wrapper .quiz-container .quiz-progress-bar-wrapper .quiz-progress-bar{
	background: #fff;
	flex-grow: 1;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
}
.quiz-wrapper .quiz-container .quiz-progress-bar-wrapper .quiz-progress-bar .quiz-progress-bar-finished{
	background: #095C9A;
	width: 20px;
	height: 100%;
}
.quiz-wrapper .quiz-container .quiz-progress-bar-wrapper span{
	padding-top: 1.6px;
	color: #095C9A;
	font-weight: 400;
	font-family: "Anton", sans-serif;
}
















.quiz-wrapper .quiz-container .quiz-box .answers {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-wrapper .quiz-container .quiz-box .answers label {
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 1.5;
}
@media screen and (max-width: 600px) {
	.quiz-wrapper .quiz-container .quiz-box .answers label {
		font-size: 18px;
	}
}

.quiz-wrapper .quiz-container .quiz-box .answers input[type="radio"] {
	cursor: pointer;
	display: grid;
	place-content: center;
	appearance: none;
	margin: 0 1rem 0 0;
	background: transparent;
	width: 32px;
	height: 32px;
	border: 5px solid #085C9A;
	border-radius: 50%;
	transform: translateY(-0.075em);
	-webkit-transition: background-color 100ms linear;
	-ms-transition: background-color 100ms linear;
	transition: background-color 100ms linear;
	flex-shrink: 0;

}
.quiz-wrapper .quiz-container .quiz-box .answers input[type="radio"]:checked {
	background: #FCBC00;
}

.quiz-wrapper .quiz-container .quiz-box .answer-image-container {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.quiz-wrapper
  .quiz-container
  .quiz-box
  .answer-image-container
  .number-container
  .number {
  width: 180px;
  height: 180px;
}
.quiz-wrapper .quiz-container .quiz-box .answer-image-container .point-counter {
  background: black;
  padding: 5px 10px;
  margin-top: 20px;
  font-size: 20px;
}

.page-template-quiz-result .result-wrapper {
	display: flex;
	background: #FBF5E4;
	flex-wrap: wrap;
	width: 100%;
	min-height: calc( 100vh - 140px );
	position: relative;
	padding: 60px 20px;
	justify-content: center;
	align-items: center;
}
.page-template-quiz-result .result-wrapper .content-wrapper{
	display: flex;
	flex-direction: column;
	gap: 3rem;
	max-width: 800px;
	height: auto;

}
.page-template-quiz-result .result-wrapper .content-wrapper .top-container{
	width: 100%;
}

.page-template-quiz-result .result-wrapper .content-wrapper h1 {
	margin-bottom: 1.5rem;
}

.page-template-quiz-result .result-wrapper .content-wrapper .result-container {
	width: 100%;
	display: flex;
	gap: 3rem;
}
@media screen and (max-width: 600px) {
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container {
		gap: 2rem;
	}
}

.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content.right {
	width: 25%;
	font-size: 14px;
	text-align: right;
}
.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content.left{
	width: 75%;
	font-size: 20px;
	line-height: 1.6;
}
@media screen and (max-width: 600px) {
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content.left{
		font-size: 18px;
		line-height: 1.5;
	}
}

.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}
.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .button{
	font-size: 24px;
}
.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .share-container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	justify-content: center;
	font-family: "Anton", sans-serif;
	background: #FCBC00;
	color: #095C9A;
	border-radius: 10px;
	padding: 1.5rem 2rem;
	font-size: 26px;
	position: relative;
	align-items: center;
}
.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .share-container > p {
	width: 100%;
	text-align: center;
}
.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .share-container .share-icon-container{
	display: flex;
	justify-content: space-between;
	gap:1rem;
	font-size: 28px;
	padding: 0 .5rem;

}
.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .share-container::before{
	content: "";
	position: absolute;
	bottom: -26px;
	left: 60%;
	height: 30px;
	border-left: 60px solid #FCBC00;
	background: #FCBC00;
	-webkit-border-bottom-left-radius: 80px 50px;
	-moz-border-radius-bottomleft: 80px 50px;
	border-bottom-left-radius: 80px 50px;
	-webkit-transform: translate(0, -2px);
	-moz-transform: translate(0, -2px);
	-ms-transform: translate(0, -2px);
	-o-transform: translate(0, -2px);
	transform: translate(0, -2px);
}
.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .share-container::after {
	content: "";
	position: absolute;
	bottom: -32px;
	left: 60%;
	width: 60px;
	height: 30px;
	background: #FBF5E4;
	-webkit-border-bottom-left-radius: 40px 50px;
	-moz-border-radius-bottomleft: 40px 50px;
	border-bottom-left-radius: 40px 50px;
	-webkit-transform: translate(30px, -2px);
	-moz-transform: translate(30px, -2px);
	-ms-transform: translate(30px, -2px);
	-o-transform: translate(30px, -2px);
	transform: translate(30px, -2px);
}
@media screen and (max-width: 600px) {
	
	.quiz-wrapper .quiz-container .quiz-box .question,
 	.quiz-wrapper .quiz-container .quiz-box .number-container{
		width: 100%;
		gap: 2rem;
  	}
	 
	.quiz-wrapper .quiz-container .quiz-box {
		height: auto;
	}
	
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container {
		flex-direction: column;
	}
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content,
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content.left,
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content.right {
		width: 100%;
		max-width: 100%;
	}
	.page-template-quiz-result .result-wrapper .content-wrapper .result-container .result-content.right{
		text-align: center;
	}
	
	.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container .share-container {
		width: 100%;
		margin-bottom: 2rem;
	}
	
	.page-template-quiz-result .result-wrapper .content-wrapper .bottom-container {
		justify-content: center;
	}
	
}





/** 
 * Smooth animeringar för quiz
 */

/* Progress bar animering */
.quiz-wrapper .quiz-container .quiz-progress-bar-wrapper .quiz-progress-bar .quiz-progress-bar-finished {
  background: #095C9A;
  height: 100%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade in/out för frågor */
.quiz-wrapper .quiz-container .quiz-box {
  padding: 60px 20px;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  background: #FBF5E4;
}

.quiz-wrapper .quiz-container .quiz-box.active {
  opacity: 1;
  visibility: visible;
  display: block !important;
}

.quiz-wrapper .quiz-container .quiz-box.quiz-num1 {
  opacity: 1;
  visibility: visible;
  display: block;
}

/* Slide-in effekt för frågor */
.quiz-wrapper .quiz-container .quiz-box .quiz-box-inner {
  transform: translateX(50px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.quiz-wrapper .quiz-container .quiz-box.active .quiz-box-inner {
  transform: translateX(0);
  opacity: 1;
}

/* Nummer-animation */
.quiz-wrapper .quiz-container .quiz-box .number-container .number {
  background: #FCBC00;
  color: #FBF5E4;
  font-size: 64px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 5px;
  transition: transform 0.3s ease;
}

/* .quiz-wrapper .quiz-container .quiz-box.active .number-container .number {
  animation: numberBounce 0.6s ease;
} */

@keyframes numberBounce {
  0% {
	transform: scale(0);
  }
  60% {
	transform: scale(1.1);
  }
  100% {
	transform: scale(1);
  }
}

/* Hover-effekt för svarsalternativ */
.quiz-wrapper .quiz-container .quiz-box .answers label {
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
  padding: 10px;
  border-radius: 8px;
  margin: 0 -10px;
}

.quiz-wrapper .quiz-container .quiz-box .answers label:hover {
  transform: translateX(10px);
  background-color: rgba(252, 188, 0, 0.1);
}

/* Radio button animation */
.quiz-wrapper .quiz-container .quiz-box .answers input[type="radio"] {
  cursor: pointer;
  display: grid;
  place-content: center;
  appearance: none;
  margin: 0 1rem 0 0;
  background: transparent;
  width: 32px;
  height: 32px;
  border: 5px solid #085C9A;
  border-radius: 50%;
  transform: translateY(-0.075em);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  position: relative;
}

.quiz-wrapper .quiz-container .quiz-box .answers input[type="radio"]:checked {
  background: #FCBC00;
  transform: translateY(-0.075em) scale(1.1);
}

/* Svars-animation när man väljer */
.quiz-wrapper .quiz-container .quiz-box .answers label.selected {
  animation: answerPulse 0.3s ease;
}

@keyframes answerPulse {
  0% {
	background-color: transparent;
  }
  50% {
	background-color: rgba(252, 188, 0, 0.3);
  }
  100% {
	background-color: transparent;
  }
}




/* Fixa höjdproblemet på mobil */
@media screen and (max-width: 600px) {
	
	/* Anpassa container-höjden för mobil */
	.quiz-wrapper .quiz-container {
		height: auto;
		min-height: 100vh;
		min-height: -webkit-fill-available; /* För iOS Safari */
	}
	
	.quiz-wrapper .quiz-container .quiz-box {
		height: auto;
		min-height: 100vh;
		min-height: -webkit-fill-available;
		position: relative; /* Ändra från absolute på mobil */
		overflow-y: auto; /* Tillåt scrollning om innehållet är högt */
	}
		
	.quiz-wrapper .quiz-container .quiz-box .quiz-box-inner .quiz-container {
		min-height: auto;
		gap: 2rem;
	}

}

/* Landscape-läge på mobil */
@media screen and (max-height: 500px) and (orientation: landscape) {
	.quiz-wrapper .quiz-container,
	.quiz-wrapper .quiz-container .quiz-box {
		min-height: 100vh;
		overflow-y: auto;
	}
	
	.quiz-wrapper .quiz-container .quiz-box .quiz-box-inner {
		align-items: flex-start;
		padding-top: 10px;
	}
}