    body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: url('https://imgur.com/Tgkapiu.png');
  background-repeat: repeat;
  background-size: 100px 100px;
  opacity: 0.10;
  transform: rotate(-45deg);
  z-index: -1;
  pointer-events: none;
}
    
    body { font-family: 'Poppins', sans-serif; text-align: center; margin-top: 30px; background-color: #F5F5DC;}
    .barra { display: flex; 
             justify-content: center; 
             margin: 20px auto; 
             width: 90%; 
             max-width: 800px; 
             border: 2px solid #000000; 
             position: relative; }
             
    .cella { flex: 1; 
             border: 1px solid #000000; 
             padding: 10px; 
             text-align: center; 
             font-size: 18px; 
             transition: background-color 0.5s;
             font-weight: bold;  }

    .ago { position: absolute; 
           top: -30px; 
           width: 0; 
           height: 0; 
           border-left: 15px solid transparent; 
           border-right: 15px solid transparent; 
           border-top: 30px solid red; }

    button { margin: 10px; 
             padding: 8px 16px; 
             font-size: 16px; 
             cursor: pointer; 
            }

    .menu-box {
      margin: 20px auto;
      display: inline-block;
      background: #F5F5DC;
      border: 2px solid #000000;
      border-radius: 8px;
      padding: 15px 20px;
      text-align: center;
      box-shadow: 0 4px 8px rgba(0,0,0,0.2);
      font-weight: bold;  
    }
    .menu-box h3 { margin-top: 0; margin-bottom: 10px; font-weight: bold;   }
    input[type="number"] { padding: 5px; font-size: 16px; width: 80px; }

.logo-container {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 100;
}

.logo-container img {
  height: 120px;
  width: auto;
}

#Mainbtn {
  background-color: #F5F5DC;
  color: black;
  font-weight: bold;
  border-radius: 12px; 
}

.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* sfondo scuro trasparente */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-box {
  background: #F5F5DC;
  border-radius: 12px;
  padding: 20px 30px;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease;
}

.popup-box h2 {
  margin-top: 0;
  color: #000000;
}

.popup-box button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: #ddddc5;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
}

.popup-box button:hover {
  background-color: #99d0f5;
}

@keyframes fadeIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
