:root {
  --theme-colour-red: 255, 0, 0; /* Red */
  --theme-colour-red-dimmed: 91, 0, 0; /* Dark red */
  --theme-colour-green: 0, 255, 0; /* Green */
  --theme-colour-green-dimmed: 0, 90, 0; /* Dark green */
}

body {
  background-color: rgb(114, 52, 59);
  background-image: url("background.png"); /* Path to the background image */
  background-size: 105%; /* Changes how zoomed in the background image is */
  overflow-x: hidden; /* Prevent horizontal scrolling */
  margin: 0;
  padding: 0;
}

/* Default styling */
.header img {
  width: 75%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.video iframe {
  /*Default stylng*/
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 16.66vmax;
  height: 29.63vmax;
  border: 5px solid white;
}

/* Mobile styling */
@media screen and (max-width: 480px) {
  .header img {
    max-width: 350px;
    margin-top: 10px;
  }
  .video iframe {
    margin-top: 10px;
    min-width: 35vmax;
    min-height: 62.23vmax;
  }
}

/* Tablet/Laptop styling */
@media screen and (min-width: 481px) and (max-width: 1024px) {
  .header img {
    max-width: 600px;
    margin-top: 20px;
  }
  .video iframe {
    margin-top: 30px;
    min-width: 35vmax;
    min-height: 62.23vmax;
  }
}

/* Desktop styling */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
  .header img {
    max-width: 500px;
  }
}

/* Big Screen styling */
@media screen and (min-width: 1201px) {
  .header img {
    max-width: 500px;
    margin-top: 20px;
  }
  .video iframe {
    margin-top: 25px;
  }
}

/* 1440p+ Screen styling */
@media screen and (min-width: 2000px) {
  .header img {
    max-width: 750px;
    margin-top: 20px;
  }
  .video iframe {
    margin-top: 35px;
  }
}

/* UW Screen styling */
@media screen and (min-width: 3000px) {
  .header img {
    max-width: 800x;
    margin-top: 10px;
  }
  .video iframe {
    margin-top: 45px;
    max-width: 14.81vmax;
    max-height: 26.34vmax;
  }
}

/* 4K Screen styling */
@media screen and (min-width: 3500px) {
  .header img {
    max-width: 1250px;
    margin-top: 30px;
  }
  .video iframe {
    margin-top: 70px;
    min-width: 20vmax;
    min-height: 35.56vmax;
  }
}

@keyframes light-up-theme-red {
  0%,
  100% {
    background: rgba(var(--theme-colour-red));
    box-shadow: 0px 0px 20px 3px rgba(var(--theme-colour-red));
  }
  50% {
    background: rgba(var(--theme-colour-red-dimmed));
    box-shadow: 0px 0px 4px rgba(var(--theme-colour-red-dimmed));
  }
}

@keyframes light-up-theme-green {
  0%,
  100% {
    background: rgba(var(--theme-colour-green-dimmed));
    box-shadow: 0px 0px 4px rgba(var(--theme-colour-green-dimmed));
  }
  50% {
    background: rgba(var(--theme-colour-green));
    box-shadow: 0px 0px 20px 3px rgba(var(--theme-colour-green));
  }
}

.lights {
  text-align: left; /* Keep lights in a single line */
  white-space: nowrap; /* Prevent wrapping */
  overflow: hidden; /* Crop any content that exceeds the viewport width */
  padding-top: 20px;
  padding-bottom: 20px;
  width: 100%;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.25);
}

.light {
  display: inline-block;
  border-radius: 50%;
  height: 25px;
  width: 15px;
  animation-iteration-count: infinite;
  position: relative;
  margin: 0 36px; /* Adds spacing between lights */
}

.light:first-of-type {
  margin-left: -65px; /* Move the first light off the left side */
}

.light::before {
  content: "";
  position: absolute;
  border: 1px solid #222;
  width: 10px;
  height: 10px;
  background: #222;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  left: 50%;
  transform: translateX(-50%);
  top: -8px;
}

.light::after {
  content: "";
  top: -24px;
  left: 60%;
  position: absolute;
  width: 90px;
  height: 28px;
  border-bottom: 3px solid #222;
  border-radius: 50%;
}

.light:last-of-type::after {
  border: none;
}

.light.bulb-red {
  background: var(--theme-colour-red);
  animation-name: light-up-theme-red;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
}

.light.bulb-green {
  background: var(--theme-colour-green);
  animation-name: light-up-theme-green;
  animation-duration: 1.5s;
  animation-timing-function: ease-in-out;
}

.snowflake {
  color: #fff;
  font-size: 1em;
  text-shadow: 0 0 5px #000;
  position: fixed;
  top: -10%;
  z-index: -1;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  animation-name: snowflakes-shake;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
}

.snowflake .inner {
  animation-iteration-count: infinite;
  animation-play-state: running;
  animation-duration: 10s;
  animation-name: snowflakes-fall;
  animation-timing-function: linear;
}

@keyframes snowflakes-fall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(110vh);
  }
}

@keyframes snowflakes-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(80px);
  }
}

.snowflake:nth-of-type(0) {
  left: 1%;
  animation-delay: 0s;
}

.snowflake:nth-of-type(0) .inner {
  animation-delay: 0s;
}

.snowflake:first-of-type {
  left: 10%;
  animation-delay: 1s;
}

.snowflake:first-of-type .inner,
.snowflake:nth-of-type(8) .inner {
  animation-delay: 1s;
}

.snowflake:nth-of-type(2) {
  left: 20%;
  animation-delay: 0.5s;
}

.snowflake:nth-of-type(2) .inner,
.snowflake:nth-of-type(6) .inner {
  animation-delay: 6s;
}

.snowflake:nth-of-type(3) {
  left: 30%;
  animation-delay: 2s;
}

.snowflake:nth-of-type(11) .inner,
.snowflake:nth-of-type(3) .inner {
  animation-delay: 4s;
}

.snowflake:nth-of-type(4) {
  left: 40%;
  animation-delay: 2s;
}

.snowflake:nth-of-type(10) .inner,
.snowflake:nth-of-type(4) .inner {
  animation-delay: 2s;
}

.snowflake:nth-of-type(5) {
  left: 50%;
  animation-delay: 3s;
}

.snowflake:nth-of-type(5) .inner {
  animation-delay: 8s;
}

.snowflake:nth-of-type(6) {
  left: 60%;
  animation-delay: 2s;
}

.snowflake:nth-of-type(7) {
  left: 70%;
  animation-delay: 1s;
}

.snowflake:nth-of-type(7) .inner {
  animation-delay: 2.5s;
}

.snowflake:nth-of-type(8) {
  left: 80%;
  animation-delay: 0s;
}

.snowflake:nth-of-type(9) {
  left: 90%;
  animation-delay: 1.5s;
}

.snowflake:nth-of-type(9) .inner {
  animation-delay: 3s;
}

.snowflake:nth-of-type(10) {
  left: 25%;
  animation-delay: 0s;
}

.snowflake:nth-of-type(11) {
  left: 65%;
  animation-delay: 2.5s;
}
