/* --- YOUR ORIGINAL CSS --- */
body { 
  margin: 0; 
  font-family: "Khmer Moul", Arial; 
  
}

.navbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgb(249, 169, 169);
  color: whitesmoke;
  padding: 10px 20px;
}
.logo{
  font-weight: bold;
  font-size: 30px;
  text-align: center;
}
.menu{
  list-style: none;
  display:flex;
  gap: 25px;
}
.menu li a{
  color: whitesmoke;
  text-decoration: none;
}
.hambuger{
  display: flex;
  font-size: 25px;
  cursor: pointer;
}

.section {
  padding: 10px;
  text-align: center;
}

.cards{
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px;
}
.card{
  background: rgb(249, 169, 169);
  padding: 20px;
  border-radius: 15px;
  width: 250px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  transition: 0.3s;
}
.card:hover{
  transform: translateY(-5px) scale(1.05);
}

 .khnew h1{
  text-align: center;
}
.khnew h4{
  text-align: center;
}

/* Mobile respone */
@media (max-width: 768px) {
  .menu{
    display: none;
    flex-direction: column;
    background: rgb(249, 169, 169);
    position: absolute;
    top: 50px;
    right: 0;
    width: 150px;
    border-radius:10px;
  }
  .menu.active{
    display:flex;
  }
  .hambuger {
    display: block;
  }
}

.popup {
  position: fixed; width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; justify-content: center; align-items: center;
  z-index: 100;
}

.popup-box {
  background: linear-gradient(135deg, #00047D, #C9002C);
  padding: 30px; border-radius: 15px; text-align: center; color: white;
  animation: zoomIn 0.5s ease;
}

input { 
  padding: 10px; 
  margin-top: 10px; 
  border-radius: 10px; 
  border: none; 
  width: 200px; 
  text-align: center; 
  color:rgb(0, 0, 0);
  inline-size: 150px;
}
input:hover{
   transform: scale(1.1);
  box-shadow: 0 0 15px rgb(255, 255, 255);
}
button { 
  margin-top: 10px; 
  padding: 10px 25px; 
  border-radius: 30px; 
  border: none; 
  background:linear-gradient(45deg, rgb(3, 120, 245),red); 
  color: white; 
  cursor: pointer; 
  transition: 0.3s; 
}
button:hover { 
  transform: scale(0.5);
  box-shadow: 0 0 15px rgb(255, 255, 255); 
}

.main {
  display: none; height: 100vh;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4);
  justify-content: center; align-items: center;
  position: relative;
  z-index: 2; 
}

#message {
  color: white; 
  font-size: 45px; 
  font-weight: bold; 
  text-align: center;
  text-shadow: 0 0 10px rgb(195, 195, 195), 0 0 20px red;
  animation: fadeIn 2s ease;
  z-index: 10;
  padding: 10px 10px;
}

/* FIREWORK CANVAS - ABOVE BACKGROUND, BELOW FLOWERS */
#fireworks {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 5; 
}

.flower { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.flower span { position: absolute; top: -50px; font-size: 24px; animation: fall linear infinite; }

@keyframes fall { to { transform: translateY(100vh); } }
@keyframes zoomIn { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }



/* Popup background */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup box */
.popup-box {
  background: linear-gradient(#FAFAFA,#C9002C,#00047D);
  padding: 30px 50px;
  border-radius: 12px;
  text-align: center;
  animation: fadeIn 0.5s ease;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Hide popup */
.hide {
  display: none;
}

/* Main content */
.content {
  padding: 50px;
  text-align: center;
}
