body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: #9f5a5a;
    margin: 0;
    font-family: Arial, sans-serif;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }

 .phone-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .device-select {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }

  .phone {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 40px;
    background: linear-gradient(145deg, #111, #222);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 -5px 20px rgba(255,255,255,0.05);
    overflow: hidden;
    transition: all 0.3s ease;
  }

  /* iPhone Frame */
  .iphone .screen {
    border-radius: 35px;
    margin-top: 5%;
    margin-bottom: 5%;
    overflow: hidden;
  }

  .iphone .notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 6%;
    background: #111;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.7);
    z-index: 2;
  }

  .iphone .home-bar {
    position: absolute;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 5px;
    background: #333;
    border-radius: 50px;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.2);
    z-index: 2;
  }

  /* Android Frame */
  .android .screen {
    border-radius: 25px;
    margin-top: 4%;
    margin-bottom: 4%;
    overflow: hidden;
  }

  .android .status-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6%;
    background: linear-gradient(to bottom, #222, #111);
    box-shadow: inset 0 2px 5px rgba(255,255,255,0.1);
    z-index: 2;
  }

  /* Tablet Frame */
  .tablet .screen {
    border-radius: 25px;
    margin-top: 3%;
    margin-bottom: 3%;
    overflow: hidden;
  }

  @keyframes screenGlow {
  0% {
    background-position: 0% 50%;
    box-shadow: inset 0 0 15px rgba(255, 106, 0, 0.5);
  }
  25% {
    background-position: 50% 100%;
    box-shadow: inset 0 0 25px rgba(51, 204, 255, 0.5);
  }
  50% {
    background-position: 100% 50%;
    box-shadow: inset 0 0 20px rgba(153, 102, 255, 0.5);
  }
  75% {
    background-position: 50% 0%;
    box-shadow: inset 0 0 25px rgba(255, 102, 153, 0.5);
  }
  100% {
    background-position: 0% 50%;
    box-shadow: inset 0 0 15px rgba(255, 106, 0, 0.5);
  }
}

.screen {
  flex: 1;
  border-radius: 20px;
  border: 2px solid #333;
  overflow: auto;

  /* animated gradient setup */
  background: linear-gradient(270deg,
    #ff6a00, #ffcc00, #33ccff, #9966ff, #ff6699, #ff6a00);
  background-size: 1200% 1200%;

  animation: screenGlow 12s ease infinite;
}




  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }

  .controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }




  .controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .editor {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    min-width: 400px;
    max-width: 800px;
  }

  .editor-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 2px solid #444;
    border-radius: 8px;
    background: #222;
    color: #ddd;
    padding: 5px;
  }

  .editor-section label {
    font-weight: bold;
    color: #4ade80;
  }

  textarea {
    width: 100%;
    min-height: 400px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px;
    font-family: monospace;
    font-size: 14px;
    resize: vertical;
  }

  button, label.file-label {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #4ade80;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    transition: background 0.3s;
  }

  button:hover, label.file-label:hover {
    background: #22c55e;
  }

  input[type="file"] {
    display: none;
  }

  @media (max-width: 900px){
    body {
      flex-direction: column;
      align-items: center;
    }
    .phone-container, .editor {
      width: 95%;
    }
  }

 /* Sticky site navbar with style */
.site-navbar {
  position: sticky;      /* stay at top when scrolling */
  top: 0;
  left: 0;
  width: 100%;
  background: #111;      /* base dark color */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  border-bottom: 2px solid #4ade80;
  flex-wrap: wrap;
}

/* Logo style */
.site-navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #4ade80;   /* green accent to match your theme */
}

/* Nav links container */
.site-navbar .nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

/* Nav links */
.site-navbar .nav-links li a {
  text-decoration: none;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: linear-gradient(90deg, #222, #111);
}

/* Hover effect: multi-color gradient + glow */
.site-navbar .nav-links li a:hover {
  background: linear-gradient(90deg, #4ade80, #22c55e, #33ccff, #ff6699);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7),
              0 0 12px rgba(51, 204, 255, 0.5);
}

/* Responsive for mobile */
@media (max-width: 768px){
  .site-navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-navbar .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 10px;
    margin-top: 10px;
  }
} 