.team1 {
  color: #cc4848 !important;
}
.team2 {
  color: #5d91ac !important;
}
.team3 {
  color: #c7a759 !important;
}
.team4 {
  color: #467b5a !important;
}
.team0overlay {
  filter: brightness(0) saturate(100%) invert(74%) sepia(14%) saturate(1037%) hue-rotate(360deg) brightness(94%) contrast(84%);
}
.team1overlay {
  filter: brightness(0) saturate(100%) invert(74%) sepia(14%) saturate(1037%) hue-rotate(360deg) brightness(94%) contrast(84%) drop-shadow(0 0 0.3rem black);
}
.team2overlay {
  filter: brightness(0) saturate(100%) invert(74%) sepia(14%) saturate(1037%) hue-rotate(360deg) brightness(94%) contrast(84%) drop-shadow(0 0 0.3rem black);
}
.team3overlay {
  filter: brightness(0) saturate(100%) invert(74%) sepia(14%) saturate(1037%) hue-rotate(360deg) brightness(94%) contrast(84%) drop-shadow(0 0 0.3rem black);
}
.team4overlay {
  filter: brightness(0) saturate(100%) invert(74%) sepia(14%) saturate(1037%) hue-rotate(360deg) brightness(94%) contrast(84%) drop-shadow(0 0 0.3rem black);
}
/*
.teampic1{background-image: url("../teams/images/team1.png");}
.teampic2{background-image: url("../teams/images/team2.png");}
.teampic3{background-image: url("../teams/images/team3.png");}
.teampic4{background-image: url("../teams/images/team4.png");}
*/
.trivia-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.trivia-popup.show-flex {
  display: flex;
}
.trivia-container {
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  margin: auto;
  position: relative;
}
.trivia-content {
  width: 100%;
  padding: 20px 15px;
  box-sizing: border-box;
  z-index: 10;
  position: relative;
  text-align: center;
}
.trivia-content .page-title {
  z-index: 10;
  top: -34px;
  position: absolute !important;
  left: 0;
  right: 0;
}
.trivia-frame {
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: 0;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.53);
}
.trivia-frame .trivia-frame-container {
  height: 100%;
  position: relative;
  background-image: url("../ui/images/copyframe_background.png");
  background-size: 97% 97%;
  background-position: center;
  background-color: #88674b;
}
.trivia-frame .trivia-frame-container .trivia-border-corners {
  position: absolute;
  background-repeat: no-repeat;
  width: 13px;
  height: 26px;
  z-index: 1;
}
.trivia-frame .trivia-frame-container .trivia-border-corners.top-left {
  top: 0;
  left: 0;
  background-image: url("../ui/images/copyframe_top_left.png");
}
.trivia-frame .trivia-frame-container .trivia-border-corners.top-right {
  top: 0;
  right: 0;
  background-image: url("../ui/images/copyframe_top_right.png");
}
.trivia-frame .trivia-frame-container .trivia-border-corners.bottom-left {
  bottom: 0;
  left: 0;
  background-image: url("../ui/images/copyframe_bottom_left.png");
}
.trivia-frame .trivia-frame-container .trivia-border-corners.bottom-right {
  bottom: 0;
  right: 0;
  background-image: url("../ui/images/copyframe_bottom_right.png");
}
.trivia-frame .trivia-frame-container .trivia-border-top {
  position: absolute;
  top: 0;
  width: 100%;
  background-image: url("../ui/images/copyframe_top.png");
  background-repeat: repeat-x;
  height: 4px;
}
.trivia-frame .trivia-frame-container .trivia-border-bottom {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-image: url("../ui/images/copyframe_bottom.png");
  background-repeat: repeat-x;
  height: 4px;
}
.trivia-frame .trivia-frame-container .trivia-border-right {
  position: absolute;
  right: 0;
  height: 100%;
  background-image: url("../ui/images/copyframe_right.png");
  background-repeat: repeat-y;
  width: 4px;
}
.trivia-frame .trivia-frame-container .trivia-border-left {
  position: absolute;
  left: 0;
  height: 100%;
  background-image: url("../ui/images/copyframe_left.png");
  background-repeat: repeat-y;
  width: 4px;
}
.trivia-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.5em;
  color: #FFC107;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.trivia-subtitle {
  font-size: 0.85em;
  margin-bottom: 15px;
}
.difficulty-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}
.difficulty-btn {
  padding: 12px 20px;
  border: solid 1px #FFC107;
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 193, 7, 0.2);
  font-family: "Oswald", sans-serif;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  text-transform: uppercase;
}
.difficulty-btn.easy {
  border-color: #4CAF50;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(76, 175, 80, 0.3);
}
.difficulty-btn.moderate {
  border-color: #FF9800;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 152, 0, 0.3);
}
.difficulty-btn.hard {
  border-color: #f44336;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5), 0 0 10px rgba(244, 67, 54, 0.3);
}
.difficulty-btn:hover {
  transform: scale(1.02);
  background-color: rgba(255, 193, 7, 0.1);
}
.difficulty-btn .points {
  font-weight: bold;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.9em;
}
.skip-btn {
  background: transparent;
  border: 1px solid #666;
  color: #999;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.85em;
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  transition: all 0.2s ease;
}
.skip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #888;
}
.trivia-timer-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}
#trivia-timer {
  font-family: "Oswald", sans-serif;
  font-size: 2.5em;
  color: #FFC107;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 20px;
  border: solid 1px #FFC107;
  min-width: 70px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
#trivia-timer.timer-warning {
  color: #f44336;
  border-color: #f44336;
  animation: pulse 0.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}
#trivia-points-display {
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border: solid 1px #FFC107;
  color: #FFC107;
  font-weight: bold;
  font-family: "Oswald", sans-serif;
}
#trivia-question-text {
  font-size: 1.1em;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
#trivia-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}
.trivia-answer-option {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #666;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  text-align: left;
}
.trivia-answer-option:hover {
  background: rgba(255, 193, 7, 0.1);
  border-color: #FFC107;
}
.trivia-answer-option input[type="radio"] {
  margin-right: 10px;
  width: 16px;
  height: 16px;
  accent-color: #FFC107;
}
.trivia-answer-option label {
  color: #fff;
  font-size: 0.95em;
  cursor: pointer;
  flex: 1;
}
.trivia-submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  cursor: pointer;
  border: solid 1px #FFC107;
  background-color: rgba(255, 193, 7, 0.03);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 193, 7, 0.3);
  padding: 0;
}
.trivia-submit-btn .btn-text {
  font-family: "Oswald", sans-serif;
  padding: 9px 34px;
  text-align: center;
  user-select: none;
  text-transform: uppercase;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  width: 100%;
}
.trivia-submit-btn:hover {
  background-color: rgba(255, 193, 7, 0.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 193, 7, 0.4);
}
.trivia-result {
  padding: 15px;
  text-align: center;
}
.trivia-result h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.4em;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
.trivia-result.correct h3 {
  color: #4CAF50;
}
.trivia-result.incorrect h3 {
  color: #f44336;
}
.trivia-result.timeout h3 {
  color: #FF9800;
}
.trivia-result p {
  color: #d4c4a8;
  margin-bottom: 15px;
}
.trivia-result .points-earned {
  font-family: "Oswald", sans-serif;
  font-size: 1.2em;
  color: #FFC107;
  margin-bottom: 15px;
}
