body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: url("abstract-1780386_1920.png") no-repeat center center fixed;
  background-size: cover;
  color: #f0f0f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 2rem;
}


h1 {
  font-family: 'Pacifico', cursive;
  font-size: 3rem;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 1rem;
}




header a {
    display: inline-block;
  padding: 0.8rem 1.6rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  background: #ffffff;
  border: none;
  border-radius: 30px; 
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;

}

button:hover, nav a:hover {
  background: #357abf;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

header a:hover {
  background: #e0e0e0;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}



.semafor {
  width: 120px;
  background: #222;
  padding: 20px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.svetlo {
  width: 60px;
  height: 60px;
  background: gray; 
  border-radius: 50%;
  margin: 0 auto;
  transition: background 0.5s;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.svetlo.cervena.active { background: red; }
.svetlo.oranzova.active { background: orange; }
.svetlo.zelena.active { background: #99FF00; }

