/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Set the background color and font family for the whole page */
body {
  background: linear-gradient(to right, #1e3c72, #2a5298);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Enable smooth scrolling for the page */
html {
  scroll-behavior: smooth;
}

/* Button styles */
button {
  background-color: #4caf50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

/* Button hover styles */
button:hover {
  transform: scale(1.05);
  background-color: #388e3c;
}

/* Card styles */
.card {
  background-color: #1E1E1E;
  color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
  margin: 5px;
  padding: 10px;
}

/* Button styles for the waiting queue */
.btn {
  border-radius: 10px;
  padding: 8px 16px;
  background-color: #FFFFFF;
  color: #1E1E1E;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
}

/* Heading styles */
h1,
h3,
h5 {
  color: #FFFFFF;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  margin: 10px 0;
}

/* Specific heading styles */
h1 {
  font-size: 36px;
  margin-top: 0px;
}

h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

h5 {
  font-size: 16px;
  margin-bottom: 20px;
}

/* Simulation output styles */
#showEntry,
#showCritical,
#showExit,
#waiting-process {
  font-size: 28px;
  font-weight: bold;
}

#ent-code,
#crit-code,
#exit-code {
  font-size: 12px;
}

/* Styles for the waiting queue card */
.card-title {
  font-size: 20px;
}

#waiting-process {
  font-size: 18px;
}

/* Animate waiting queue card */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 231, 105, 0.5);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(105, 216, 231, 0.25);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(105, 210, 231, 0);
  }
}

/* Apply animation to waiting queue card */
.card {
  animation: pulse 5s ease-in-out infinite;
}

/* Style for primary button */
.btn-primary {
  background-color: #4caf50;
  border-color: #4caf50;
  color: #fff;
  text-shadow: none;
  margin: 5px;
}

/* style for the secondary button */
.btn-secondary{
  background-color: #4caf50;
  border-color: #4caf50;
  color: #fff;
  text-shadow: none;
}

/* style for the title */
.futuristic-title {
  font-size:  36px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 5px;
  /* text-shadow: 0 0 10px rgba(79, 193, 221, 0.61), 0 0 20px #fff, 0 0 30px #fff, 0 0 40px rgba(79, 193, 221, 0.61); */
  text-shadow: 0 0 10px rgba(141, 221, 152, 0.61), 0 0 20px #fff, 0 0 30px #fff, 0 0 40px rgba(141, 221, 152, 0.61), 0 0 70px rgba(141, 221, 152, 0.61), 0 0 80px rgba(141, 221, 152, 0.61), 0 0 100px rgba(141, 221, 152, 0.61);
  animation: neon;
}

/* Neon effect animation */
@keyframes neon {
0% {
  /* text-shadow: 0 0 10px rgba(79, 193, 221, 0.61), 0 0 20px #fff, 0 0 30px #fff, 0 0 40px rgba(79, 193, 221, 0.61); */
  text-shadow: 0 0 10px rgba(141, 221, 152, 0.61), 0 0 20px #fff, 0 0 30px #fff, 0 0 40px rgba(141, 221, 152, 0.61), 0 0 70px rgba(141, 221, 152, 0.61), 0 0 80px rgba(141, 221, 152, 0.61), 0 0 100px rgba(141, 221, 152, 0.61);
}
100% {
  /* text-shadow: 0 0 20px rgba(79, 193, 221, 0.61), 0 0 30px #fff, 0 0 40px #fff, 0 0 50px rgba(79, 193, 221, 0.61); */
  text-shadow: 0 0 20px rgba(141, 221, 152, 0.61), 0 0 30px #fff, 0 0 40px #fff, 0 0 50px rgba(141, 221, 152, 0.61), 0 0 80px rgba(141, 221, 152, 0.61), 0 0 90px rgba(141, 221, 152, 0.61), 0 0 110px rgba(141, 221, 152, 0.61);
}
}

/* Styles for showing entry, exit, and critical flags */
#showEntry, #showCritical, #showExit {
  color: #4caf50;
}

#showEntry:before {
  content: "False";
}

#showExit:before {
  content: "False";
}

#showEntry:after {
  content: "";
  display: inline-block;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  margin: 0 5px;
  animation: blinker 1s linear infinite;
}

#showExit:after {
  content: "";
  display: inline-block;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  margin: 0 5px;
  animation: blinker 1s linear infinite;
}

/* Blinker animation for entry and exit flags */
@keyframes blinker {
  50% {
    background-color: #4caf50;
  }
}

/* Pulse animation for critical flag */
#showCritical {
  animation: pulse 1s linear infinite;
}

/* Fullscreen video background */
#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#turn_flags{
  font-size: 18px;
}

/* style for the showing turn and flags variables */
.turn {
background-color: #1E1E1E;
color: #FFFFFF;
border-radius: 10px;
box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
margin: 5px;
padding: 10px;
animation: pulse 5s ease-in-out infinite;
}