:root {
  --md-primary-fg-color: #ebc810;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark: #ff0000;
  --md-primary-bg-color: #000000;
  --md-accent-fg-color: #ff0000;
}

h1 {
  font-size: 72px !important;
  font-family: "Papyrus";
  text-align: center;
  margin-bottom: 0em !important;
}

h2 {
  font-size: 38px !important;
  text-align: center;
  margin-top: 0em !important;
  font-family: "Papyrus";
  font-weight: bolder !important;
}

h3 {
  text-align: center;
  font-family: "Papyrus";
}

p {
  font-size: 24px;
  font-family: "Papyrus";
}

.center-image {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 80%;
}

.centertext {
  text-align: center;
}

#countdowntimer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 20vh;
  color: #fff8e1 !important;
  font-size: 3.5rem;
  font-family: "Consolas", "Menlo", "Monaco", "monospace", sans-serif;
  font-weight: bold;
  letter-spacing: 0.08em;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 0 10px #ff9800, 0 0 20px #ff3c00, 2px 0 #ffd600, -2px 0 #ff1744,
    0 2px #fffde7, 0 -2px #ff6d00;
}

@media (max-width: 900px) {
  #countdowntimer {
    font-size: 2.2rem;
    height: 12vh;
  }
}
@media (max-width: 600px) {
  #countdowntimer {
    font-size: 1.2rem;
    height: 8vh;
  }
}

.responsiveImage {
  width: 40% !important;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.iframe-container {
  text-align: center;
  width: 100%;
}

#linktoform {
  color: red;
  text-align: center !important;
}

#linktoform:hover {
  color: #ebc810;
}

.cards {
  margin: 0 auto;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: auto;
  gap: 20px;
  padding: 30px;
}

.cards * {
  box-sizing: border-box;
}

.card:nth-child(7) {
  max-width: 400px;
  max-height: auto;
  justify-self: center !important;
}

.card-image {
  width: 100%;
  height: auto;
  display: block;
  border-top: 2px solid #333333;
  border-right: 2px solid #333333;
  border-left: 2px solid #333333;
}

.card-info {
  text-align: center;
  font-family: "Papyrus";
  font-size: 2em;
  justify-content: space-between;
  align-items: center;
  color: black;
  border-bottom: 2px solid #333333;
  border-right: 2px solid #333333;
  border-left: 2px solid #333333;
}

#artobspic,
#jasminobspic,
#teamfatobspic {
  background: #ebc810;
}

#pinkpanthers {
  background: #e75385;
}

#fallenblades {
  background: #eb4124;
}

#greenteam {
  background: rgba(0, 128, 0, 0.688);
}

#honeybadgers {
  background: rgba(128, 0, 128, 0.79);
}

#stormteam {
  background: grey;
}

#blueteam {
  background: rgba(0, 0, 255, 0.79);
}

#teamchoas {
  background: #ba0a31;
}

#applicationbttn {
  font-family: "Papyrus";
  font-size: 1rem;
  background: gray;
  color: black;
  padding: 10px;
  /* border: 2px solid #ebc810; */
  border-radius: 8px;
  word-wrap: break-word !important;
}
/* #applicationbttn:hover {
	background-color: #ebc810;
	border: 2px solid red;
	color: black;
} */

.flex-container {
  display: flex;
  flex-wrap: wrap;
}

.flex-container > * {
  flex: 1 1 250px;
  border-style: solid;
  margin: 0.25em;
  border-color: #f00000;
}

.flex-container img .flex-item {
  max-width: 35% !important;
  height: auto;
}

@media screen and (max-width: 500px) {
  #countdowntimer {
    max-width: 100% !important;
    font-size: 1.5rem !important;
  }
  h1 {
    font-size: 50px !important;
  }
  p {
    font-size: 18px;
  }
  h2 {
    font-size: 28px !important;
  }
  #applicationbttn {
    font-size: 0.6rem;
    max-width: 100% !important;
    border: 2px solid #f00000;
    border-radius: 8px;
  }

  /* .cards * {
		width: 300px;
		height: auto;
	}

	.cards div .card-image {
		max-width: 300px;
		max-height: 224px;
	} */
}

@media screen and (min-width: 700px) {
  .cards div:nth-child(7) {
    grid-column-end: span 2;
  }
  #teamfat {
    grid-column-end: span 2;
  }
}

/* Glitch effect for broken timer */
.glitch {
  color: #ff0000 !important;
  text-shadow: 2px 0 #00ffea, -2px 0 #ff00c8, 0 2px #00ffea, 0 -2px #ff00c8;
  animation: glitch 0.3s infinite;
}
@keyframes glitch {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

#apoc-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
#smoke-embers-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
}

.glitch-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000000;
}

.glitch {
  position: relative;
  font-size: 73px;
  font-weight: 700;
  line-height: 1.2;
  color: #ff0000;
  letter-spacing: 5px;
  animation: shift 4s ease-in-out infinite alternate;
  z-index: 1;
}

.glitch:before {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: -2px;
  text-shadow: -1px 0 #00ff0d;
  width: 100%;
  color: #ff0000;
  background-color: #000000;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-before 3s infinite linear alternate-reverse;
}

.glitch:after {
  content: attr(data-glitch);
  position: absolute;
  top: 0;
  left: 2px;
  text-shadow: 1px 0 #f500ff;
  width: 100%;
  color: #ff0000;
  background-color: #000000;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
  animation: noise-after 2s infinite linear alternate-reverse;
}

@keyframes noise-before {
  0% {
    clip: rect(61px, 9999px, 52px, 0);
  }

  5% {
    clip: rect(33px, 9999px, 144px, 0);
  }

  10% {
    clip: rect(121px, 9999px, 115px, 0);
  }

  15% {
    clip: rect(144px, 9999px, 162px, 0);
  }

  20% {
    clip: rect(62px, 9999px, 180px, 0);
  }

  25% {
    clip: rect(34px, 9999px, 42px, 0);
  }

  30% {
    clip: rect(147px, 9999px, 179px, 0);
  }

  35% {
    clip: rect(99px, 9999px, 63px, 0);
  }

  40% {
    clip: rect(188px, 9999px, 122px, 0);
  }

  45% {
    clip: rect(154px, 9999px, 14px, 0);
  }

  50% {
    clip: rect(63px, 9999px, 37px, 0);
  }

  55% {
    clip: rect(161px, 9999px, 147px, 0);
  }

  60% {
    clip: rect(109px, 9999px, 175px, 0);
  }

  65% {
    clip: rect(157px, 9999px, 88px, 0);
  }

  70% {
    clip: rect(173px, 9999px, 131px, 0);
  }

  75% {
    clip: rect(62px, 9999px, 70px, 0);
  }

  80% {
    clip: rect(24px, 9999px, 153px, 0);
  }

  85% {
    clip: rect(138px, 9999px, 40px, 0);
  }

  90% {
    clip: rect(79px, 9999px, 136px, 0);
  }

  95% {
    clip: rect(25px, 9999px, 34px, 0);
  }

  100% {
    clip: rect(173px, 9999px, 166px, 0);
  }
}

@keyframes noise-after {
  0% {
    clip: rect(26px, 9999px, 33px, 0);
  }

  5% {
    clip: rect(140px, 9999px, 198px, 0);
  }

  10% {
    clip: rect(184px, 9999px, 89px, 0);
  }

  15% {
    clip: rect(121px, 9999px, 6px, 0);
  }

  20% {
    clip: rect(181px, 9999px, 99px, 0);
  }

  25% {
    clip: rect(154px, 9999px, 133px, 0);
  }

  30% {
    clip: rect(134px, 9999px, 169px, 0);
  }

  35% {
    clip: rect(26px, 9999px, 187px, 0);
  }

  40% {
    clip: rect(147px, 9999px, 137px, 0);
  }

  45% {
    clip: rect(31px, 9999px, 52px, 0);
  }

  50% {
    clip: rect(191px, 9999px, 109px, 0);
  }

  55% {
    clip: rect(74px, 9999px, 54px, 0);
  }

  60% {
    clip: rect(145px, 9999px, 75px, 0);
  }

  65% {
    clip: rect(153px, 9999px, 198px, 0);
  }

  70% {
    clip: rect(99px, 9999px, 136px, 0);
  }

  75% {
    clip: rect(118px, 9999px, 192px, 0);
  }

  80% {
    clip: rect(1px, 9999px, 83px, 0);
  }

  85% {
    clip: rect(145px, 9999px, 98px, 0);
  }

  90% {
    clip: rect(121px, 9999px, 154px, 0);
  }

  95% {
    clip: rect(156px, 9999px, 44px, 0);
  }

  100% {
    clip: rect(67px, 9999px, 122px, 0);
  }
}

@keyframes shift {
  0%,
  40%,
  44%,
  58%,
  61%,
  65%,
  69%,
  73%,
  100% {
    transform: skewX(0deg);
  }

  41% {
    transform: skewX(10deg);
  }

  42% {
    transform: skewX(-10deg);
  }

  59% {
    transform: skewX(40deg) skewY(10deg);
  }

  60% {
    transform: skewX(-40deg) skewY(-10deg);
  }

  63% {
    transform: skewX(10deg) skewY(-5deg);
  }

  70% {
    transform: skewX(-50deg) skewY(-20deg);
  }

  71% {
    transform: skewX(10deg) skewY(-10deg);
  }
}

/* For winners css */
.winner-labels {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 2vw;
  margin-bottom: 1em;
}
.winner-labels span {
  display: block;
  font-family: "Papyrus", "Consolas", "Menlo", "Monaco", "monospace", sans-serif;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 0.2em 0.6em;
  border-radius: 0.5em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.winner-2nd {
  color: #C0C0C0;
  background: rgba(40, 40, 40, 0.7);
}
.winner-1st {
  color: #FFD700;
  background: rgba(40, 40, 40, 0.7);
}
.winner-3rd {
  color: #CD7F32;
  background: rgba(40, 40, 40, 0.7);
}
@media (max-width: 700px) {
  .winner-labels {
    gap: 1vw;
  }
  .winner-labels span {
    font-size: 1.05rem;
    padding: 0.15em 0.3em;
  }
}