/* ads */
.enjoyyourbreak {
	min-height:90px;
	text-align:center;
}

#awesome-trivia-container {
    max-width: 970px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
	min-height: 1000px;
}

#awesome-trivia-container h1,
#awesome-trivia-container h2 {
    text-align: center;
}

#awesome-trivia-container img {
    max-width: 100%;
    height: auto;
}

#awesome-trivia-container ul {
    list-style: none;
    padding: 0;
	max-width:728px;
	margin:0px auto;
}

#awesome-trivia-container li {
    margin-bottom: 10px;
}

.awesome-trivia-answer-button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.correct_txt {
    font-size: 24px;
    font-weight: bold;
    color: #28a745; /* Green color for success */
    margin-bottom: 20px;
    text-align: center;
}

#awesome-trivia-next-button, #awesome-trivia-start-button, #awesome-trivia-retry-button, #awesome-trivia-join-button, #start-next-button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 20px;
    background-color: #007bff; /* Bright blue for attention */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

#awesome-trivia-next-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}


.answer-text {
    flex: 1;
    text-align: left;
}

.answer-icon-container {
    width: 20px;
    text-align: right;
}

.answer-icon {
    font-size: 20px;
    margin-left: 10px;
}

.correct-icon {
    color: green;
}

.incorrect-icon {
    color: red;
}

#awesome-trivia-score {
    text-align: right;
    font-weight: bold;
}

#awesome-trivia-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#awesome-trivia-join {
    text-align: center;
}

#awesome-trivia-join input {
    padding: 10px;
    margin-bottom: 10px;
	max-width:100%;
	min-width:300px;
	border:1px solid black;
	border-radius:8px;
}

#awesome-trivia-join-button {
    padding: 10px 20px;
}

#awesome-trivia-title-screen {
    text-align: center;
}

#awesome-trivia-final-score {
    text-align: center;
	display:flex;
	flex-wrap:wrap;
	margin: 0 auto 20px auto;
}

/* Responsive Styles */
@media (max-width: 600px) {
    .awesome-trivia-answer-button {
        font-size: 24px;
    }
	.awesome-trivia-answer-button > .answer-text {
        font-size: 24px;
    }
	.awesome-trivia-answer-button > answer-icon-container {
        font-size: 24px;
    }
}

#awesome-trivia-score-bar {
	align-items: flex-start;
}
#awesome-trivia-score-bar .score-item {
	margin-right: 0;
}


/* Individual Icon Styles */
.current-score-icon {
    color: #FFD700; /* Gold color for current score */
}

.high-score-icon {
    color: #C0C0C0; /* Silver color for high score */
}

.lifetime-points-icon {
    color: #CD7F32; /* Bronze color for lifetime points */
}

/* Question Image Container */
.question-image-container {
    position: relative;
}

.question-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.question-points {
	text-align: center;
    font-style: italic;
    font-size: medium;
    margin-top: 10px;
    font-weight: bold;
}

/* Score Bar Styling */
#awesome-trivia-score-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 115, 170, 0.8); /* Semi-transparent background */
    padding: 10px;
    box-sizing: border-box;
    color: #fff;
}

#awesome-trivia-score-bar .score-item {
    display: flex;
    align-items: center;
    margin-right: 0px;
	flex: 1 1 50%;
	padding: 2px 0px;
}

#awesome-trivia-score-bar .score-icon {
    font-size: 20px;
    margin-right: 5px;
    color: #fff;
	text-align:center;
	min-width:25px;
}

#awesome-trivia-score-bar .score-text {
    font-size: 16px;
    color: #fff;
}

#awesome-trivia-score-bar .score-item:last-child {
    margin-right: 0;
}


#awesome-trivia-score-bar {
        align-items: flex-start;
    }
    #awesome-trivia-score-bar .score-item {
        margin-right: 0;
    }



/* Final Score Container */
#awesome-trivia-final-score {
  text-align: center;
  font-family: Arial, sans-serif;
  max-width: 970px;
  margin: 0 auto;
}

#awesome-trivia-final-score h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#awesome-trivia-final-score p {
  font-size: 18px;
  margin-bottom: 15px;
}

#awesome-trivia-final-score h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

#awesome-trivia-final-score ul {
  list-style: none;
  padding: 0;
}

#awesome-trivia-final-score li {
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Medal Icons using Emojis */
.first-place::before {
  content: "🥇";
  font-size: 24px;
  margin-right: 10px;
}

.second-place::before {
  content: "🥈";
  font-size: 24px;
  margin-right: 10px;
}

.third-place::before {
  content: "🥉";
  font-size: 24px;
  margin-right: 10px;
}

/* Try Again Button */
#awesome-trivia-final-score button {
  padding: 10px 20px;
  font-size: 18px;
  margin-top: 20px;
  cursor: pointer;
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 5px;
}

#awesome-trivia-final-score button:hover {
  background-color: #005f8d;
}

/* Responsive Styles */
@media (max-width: 600px) {
  #awesome-trivia-final-score h2 {
    font-size: 28px;
  }

  #awesome-trivia-final-score p,
  #awesome-trivia-final-score li,
  #awesome-trivia-final-score button {
    font-size: 16px;
  }
}

/* Medal Icons using Font Awesome */
.first-place::before {
  content: "\f091"; /* Trophy icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: gold;
  margin-right: 10px;
}

.second-place::before {
  content: "\f091";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: silver;
  margin-right: 10px;
}

.third-place::before {
  content: "\f091";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #cd7f32; /* Bronze */
  margin-right: 10px;
}

.fourth-place::before {
  content: "\f02b"; /* Ribbon icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #8c8c8c; /* Gray */
  margin-right: 10px;
}

.fifth-place::before {
  content: "\f0a3"; /* Certificate icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: #bfbfbf; /* Light gray */
  margin-right: 10px;
}

#answer-list {
    position: relative;
}

.arrow-down-container {
    position: relative;
    list-style-type: none; /* Remove bullet point from this special list item */
    text-align: center;
}

.arrow-down {
    position: absolute;
    width: 75px;
    height: 75px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Start off-screen */
    bottom: 15px; /* End 15px above the bottom of the #answer-list */
    
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}

.animate-arrow {
    transform: translateX(-50%) translateY(0); /* Move into view */
    opacity: 1; /* Fade in */
}

#awesome-question-text {
	visibility: hidden;
	opacity: 0; 
	transition: opacity 0s ease-in-out;
}

/* title reveal */
@keyframes exciting-reveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.reveal-text span {
    display: inline;
    opacity: 0;
    animation: exciting-reveal 0.4s forwards;
	white-space: pre-wrap;  /* Respect word wrapping and spaces */
}


/*join form */
#awesome-trivia-join-bg {
	min-height:600px;
	display: flex;
	align-items: center;
	justify-content: center;
}

#awesome-trivia-join {
	background-color:white;
	opacity:0.9;
	padding:30px 10px;
}


/* featured trivia list */
/* Style for the section heading */
#featured-trivias h3 {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  display: inline-block;
  margin: 0 auto;
}

/* Flexbox layout for trivia items */
.trivia-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin-top: 20px;
}

.trivia-item {
  flex: 1 1 calc(33.33% - 20px); /* Adjust to fit 3 items per row */
  box-sizing: border-box;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.trivia-item:hover {
  transform: translateY(-5px);
}

/* Ensure the images are responsive */
.trivia-item img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
}

/* Style for the trivia title */
.trivia-item h4 {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

/* Style for the buttons, aligning them at the bottom */
#featured-trivias {
	margin: 30px 0px;
    width: 100%;
}
.trivia-item button {
  margin-top: auto;
  padding: 10px 20px;
  font-size: 16px;
  color: #fff;
  background-color: #3498db;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.trivia-item button:hover {
  background-color: #2980b9;
}

/* Responsive layout for smaller screens */
@media screen and (max-width: 768px) {
  .trivia-item {
    flex: 1 1 100%; /* Stack items on smaller screens */
  }
}

#awesome-trivia-msg {
	text-align:center;
}

.beeside {
	flex: 1; /* This makes each div take up equal space */
    width: 50%; /* Ensure each div is 50% */
    box-sizing: border-box; /* To include padding and border in the width */
    padding: 10px; /* Optional padding */
	align-self: center;
	justify-self: middle;
}

@media (max-width: 600px) {
	.beeside {
		width:100%;
		flex:auto;
	}
}

#start-next-button {
	background-color: red !important;
    padding: 20px !important;
}

.awesome-register {
	text-align: center;
    background-color: black;
    color: white;
    border-radius: 6px;
    padding: 10px;
    font-size: large;
}

.outcome-statistics {
    max-width: 600px;
    margin: 20px auto;
}

.outcome-bar {
    margin-bottom: 20px;
}

.outcome-title {
    font-size: 16px;
    margin-bottom: 5px;
}

.progress-bar {
    background-color: #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    height: 25px;
}

.progress-fill {
    background-color: #4caf50;
    height: 100%;
    width: 0%;
    transition: width 1s ease-in-out;
}


.terms-message {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

.terms-message a {
    color: #007bff;
    text-decoration: none;
}

.terms-message a:hover {
    text-decoration: underline;
}

#awesome-trivia-facebook-button {
    background-color: #4267B2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
	max-width:300px;
    margin-top: 10px;
}

#awesome-trivia-facebook-button:hover {
    background-color: #365899;
}




/* Final Score Container */
.final-score-container {
    text-align: center;
    padding: 20px;
}

/* Trophy Image */
.trophy-image {
    width: 150px;
    height: auto;
    margin: 20px auto;
}

/* Score Bar Container */
.score-bar-container {
    position: relative;
    width: 80%;
    max-width: 400px;
    margin: 20px auto;
}

/* Score Percentage Text */
.score-percentage {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Score Bar Background */
.score-bar-background {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
    height: 25px;
}

/* Score Bar Fill */
.score-bar-fill {
    width: 0%;
    height: 100%;
    background-color: #4caf50;
    border-radius: 25px;
}

/* Beeside Class (Adjust as needed) */
.beeside {
    margin-bottom: 30px;
}

/* Featured Trivias */
#featured-trivias {
    margin-top: 30px;
}

.trivia-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.trivia-item {
    width: 200px;
    margin: 15px;
    text-align: center;
}

.trivia-item img {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.trivia-item h4 {
    margin-top: 10px;
    cursor: pointer;
}

.start-trivia-button {
    margin-top: 10px;
    padding: 10px 20px;
    cursor: pointer;
}

/* Optional: Adjust button styles */
.start-trivia-button {
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}

.start-trivia-button:hover {
    background-color: #0056b3;
}
