/* static/styles.css */

/* General Page Styles */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #121212;
    color: #f0f0f0;
    text-align: center;
    padding: 0;
    margin: 0;
  }
  
  /* Center Main Container */
  .main-container {
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    z-index: 2;
  }
  
  /* Ad Boxes */
  .ad-left, .ad-right {
    position: fixed;
    top: 0;
    width: 120px;
    height: 100vh;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1;
  }
  
  .ad-left {
    left: 0;
  }
  
  .ad-right {
    right: 0;
  }
  
  .ad-box {
    background: #333;
    color: white;
    font-size: 0.9rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    width: 100px;
    height: 600px; /* Tall vertical ad */
    box-shadow: 0 0 12px rgba(255, 69, 0, 0.2);
  }
  
  /* Top Ad Banner */
  .top-ad {
    margin-bottom: 2rem;
  }
  
  .top-ad .ad-box {
    width: 728px;
    height: 90px;
    margin: 0 auto;
  }
  
.ad-box iframe {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  border: none;
  overflow: hidden;
  display: block;
}



  /* Main Content Container */
  .container {
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 16px;
    max-width: 640px;
    margin: auto;
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.1);
    transition: transform 0.3s ease;
  }
  
  .container:hover {
    transform: scale(1.01);
  }
  

/* Modal popup styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 15% auto;
  padding: 2rem;
  border: 1px solid #ff4500;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  color: white;
  text-align: center;
  box-shadow: 0 0 20px rgba(255,69,0,0.3);
  animation: fadeIn 0.4s ease;
}

.close-btn {
  float: right;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ff4500;
  margin-top: -1rem;
  margin-right: -1rem;
}


  
  /* Input Styles */
  input {
    padding: 0.75rem;
    width: 65%;
    font-size: 1rem;
    background-color: #1a1a1a;
    color: #fff;
    border: 2px solid #ff4500;
    border-radius: 8px;
    outline: none;
    transition: 0.3s ease;
  }
  
  input:focus {
    border-color: #ff8717;
    box-shadow: 0 0 12px #ff8717aa;
  }
  
  /* Button Styles */
  button {
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    background-color: #ff4500;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  
  button:hover {
    background-color: #ff6a2d;
    transform: scale(1.05);
    box-shadow: 0 0 10px #ff6a2d88;
  }
  
  /* Image Styles */
  img {
    max-width: 100%;
    margin-top: 1rem;
    border-radius: 10px;
    animation: fadeIn 0.6s ease-in-out forwards;
  }
  
  /* Error Message */
  #error {
    color: #ff5555;
    margin-top: 1rem;
    font-weight: bold;
  }
  
  /* Results Box */
  #results > div {
    background: #262626;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.1);
  }
  
  /* Loader Spinner */
  #loader {
    margin: 20px auto;
    border: 6px solid #1e1e1e;
    border-top: 6px solid #ff4500;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  
  /* Animations */
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
/* Navigation Bar */
.navbar {
    background-color: #1a1a1a;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(255, 69, 0, 0.2);
    margin-top: 0; /* no extra gap */
  }
  
  .nav-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }
  
  .nav-link {
    color: #ff8717;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
  }
  
  .nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #ff8717aa;
  }
  