* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: white;
  }
  
  .container {
    width: 100%;
    max-width: 375px;
    margin: 0 auto;
    padding: 15px;
  }
  .container h3{
    font-size:14px;
  }
  
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    height:40px;
  }
  
  .header-info {
    display: flex;
    font-size: 14px;
    gap: 15px;
    
  }
  
  .settings-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    margin-top:0px;
  }
  
  .mobile-menu {
    display: none;
    flex-direction: column;
    background-color: #444;
    position: absolute;
    /* height:40rem; */
    /* overflow-x:scroll; */
    top: 60px;
    right: 10px;
    width: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 999;
  }

  .mobile-menu a {
    padding: 12px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #555;
  }

  .mobile-menu a:hover {
    background-color: #555;
  }

  /* Show menu when active */
  .mobile-menu.active {
    display: flex;
  }
  /* Popup Menu */
  .popup-menu {
    display: none;
    position: fixed;
    bottom: 56px; /* just above footer */
    left: 60%;
    transform: translateX(-50%);
    background: #1e1e2a;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: 1001;
    flex-direction: row;
    gap: 40px;
    animation: fadeIn 0.3s ease;
  }

  .popup-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
  }

  .popup-item:hover {
    color: white;
    transform: scale(1.05);
  }

  .popup-item span {
    font-size: 10px;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }


  .idea-section,
  .aspect-ratio,
  .style-selection {
    /* margin-top: 20px; */
    margin-top: 24px;
  }
  
  textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    font-size: 14px;
    height:15vh;
  }
  
  button {
    font-family: Arial, sans-serif;
    padding: 12px;
    margin-top: 10px;
    background-color: #007aff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 14px;
  }
  
  button:disabled {
    background-color: #888;
  }
  
  .create-btn {
    width: 90%;
    background: #444;
    color: #fff;
    border: none;
    padding: 14px 0;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
  }

  .create-btn:hover {
    background: #555;
  }
  .aspect-ratio-options{
    display: flex;
    margin-top: 0px;
    padding-bottom: 8px;
    gap: 10px;
  }

  .style-options {
    display: flex;
    justify-content: space-between;
    margin-top: 0px;
    padding-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .ratio-item{
    width: 25%;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    transition: transform 0.3s ease;
  }
  .style-item {
    width: 45%;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 10px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
 /* Existing CSS ... */

.ratio-item.active,
.style-item.active {
  /* background-color: #007aff; Highlight selected item */
  transform: scale(1.05); /* Scale up on hover */
  border: 2px solid #005bb5; /* Optional: Change border color */
}

.ratio-item.active p,
.style-item.active p {
  color: white;
  font-size: 14px; /* Ensure text stays visible when active */
}

  
  .ratio-item img{
    width: 25px;
    height: auto;
    border-radius: 2px;
  }
  .style-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
  }
  
  .ratio-item p,
  .style-item p {
    margin-top: 10px;
    font-size: 14px;
    color: white;
  }
  
    .index-create {
    margin-top: 20px;
    text-align: center;
  }
  footer{
    height: 55px;
  }
  .mobile-footer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1e2a;
    width: 100%;
    max-width: 400px;
    padding: 10px 0;
    border-radius: 0px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 1000;
  }

 
  .mobile-footer .nav-item {
    color: rgb(122, 122, 122, 1); /* light green tone */
    font-size: 20px;
    text-decoration: none;
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap:5px;
  }

  .mobile-footer .nav-item.active {
    color: white;
    transform: scale(1.15);
  }
  .nav-item  p{
    font-size:10px;
  }

  
  @media (max-width: 400px) {
    .container {
      padding: 10px;
    }
  
    .header-info {
      /* flex-direction: column; */
      text-align: center;
    }
  
    .ratio-item,
    .style-item {
      margin-top: 10px;
    }
  }
  /* body, html {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: black;
    color: white;
    height: 100vh;
    overflow: hidden;
  } */
  
  #onboarding {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    position: absolute;
  }
  
  .slide {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
    width: 100%;
    justify-content: center;
  }
  
  .slide.active {
    display: flex;
  }
  
  .slide img {
    width: 80%;
    max-width: 300px;
    /* height: auto; */
    height: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
  }
  
  .slide h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .slide p {
    font-size:14px;
    margin-bottom: 20px;
    color: #aaa;
    padding: 0 20px;
  }
  
  .actions {
    display: flex;
    justify-content: space-between;
    width: 90%;
    max-width: 300px;
  }
  
  .actions button {
    padding: 12px 24px;
    font-size: 14px;
    background: #007aff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
  }
  
  .skip-btn {
    background: transparent !important;
    color: #ccc;
  }
  
  .next-btn, .get-started-btn {
    background: #cc77ff;
    color: white;
    box-shadow: 0 0 10px #cc77ff80;
  }
  
  .dots {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
    background: #444;
    border-radius: 50%;
  }
  
  .dot.active {
    background: #fff;
  }
/* Loader styles */
.loader {
  border: 6px solid #333;
  border-top: 6px solid #7a3fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  display: none;
  margin: 20px auto;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: #0f0f1a; */
  position: relative;
  flex-direction: column;
  gap: 15px;
}
/* Overlay that blurs the whole page */
.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);
  display: none; 
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Show the overlay */
.blur-overlay.active {
  display: flex;
}

.effects-grid {
  display: flex;
  /* justify-content: center; */
  flex-wrap: wrap;
  gap: 20px;
}

/* Card container */
.effect-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 10px;
  background-color: #333;
  border: 1px solid #444;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 160px;
  text-align: center;
  transition: transform 0.2s;
  cursor: pointer;
  overflow: hidden;
}

/* Hover lift */
.effect-card:hover {
  transform: translateY(-3px);
}

/* Video styling */
.effect-video {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* Name overlay on video */
.effect-name {
  /* position: absolute;
  bottom: 0;
  left: 0; */
  width: 100%;
  padding: 5px 0;
  font-weight: 600;
  font-size: 13px;
  color: #fff;
  /* background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0)); */
  /* background: #1a1a1a; */
  text-shadow: 0 1px 2px rgba(0,0,0,0.7);
  border-radius: 0 0 8px 8px;
}

/* Remove old button style */
.use-btn {
  font-size: 14px;
  display: none;
}

.create-card {
  width: 150px;
  height: 150px;
  background-color: #2d2d2d; /* dark grey */
  color: #ccc;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.create-card:hover {
  background-color: #3a3a3a;
  transform: scale(1.05);
}

.create-card .plus {
  font-size: 24px;
  font-weight: 500;
  color: #fff;
}

.create-card p {
  font-size: 12px;
  margin: 0;
  color: #aaa;
}

.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* --- Modal Box --- */
.error-modal-content {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 16px;
  width: 80%;
  max-width: 360px;
  text-align: center;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  animation: fadeInUp 0.3s ease;
}

/* --- Error Text --- */
#errorMessage {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 0px;
  word-wrap: break-word;
}

/* --- OK Button --- */
#errorOkBtn {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 25%;
  transition: background 0.2s ease;
}

#errorOkBtn:hover {
  background: #008cff;
}

@keyframes fadeInUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


@media (max-width: 360px) {
  .effect-card {
    width: 140px;
  }
  .effect-video {
    height: 100px;
  }
}
