body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111018;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.container {
    flex: 1;
    width: 90%;
    max-width: 800px;
    background-color: #3f3f3f;
    border: 1px solid #888;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#supportBar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #172530;
    color: #d0d0d0;
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 10px;
}

#supportBar a {
    text-decoration: none;
    color: #d0d0d0;
    font-weight: bold;
}

#supportBar a:hover {
    color: #f0f0f0;
}

.support-link-wrapper {
    flex: 1;
    text-align: center;
}


.theme-switch-wrapper {
    display: inline-block;
    vertical-align: middle;
    margin-left: 20px;
}

#toggleIcon {
    max-height: 30px;
    cursor: pointer;
}


.logo-container {
    display: flex; /* Use flexbox for the logo container only */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    height: 100px; /* Set a specific height for the logo container */
    margin-bottom: 20px; /* Optional: Add spacing from other content */
}

/* --------------- LOGO ---------------- */


#logo {
    max-width: 400px; /* Keep this for setting the maximum size of the logo */
}


/* --------------- PRIVACY AND ETHICS BAR ---------------- */
#privacyEthicsLink {
    text-align: center;
    padding: 10px 0;
    background-color: #172530;
    color: #d0d0d0;
    font-size: 14px;
    width: 100%;
    margin-top: auto;
    position: sticky;
    bottom: 0;
}

#privacyEthicsLink a {
    text-decoration: none;
    color: #d0d0d0;
    font-weight: bold;
}

#privacyEthicsLink a:hover {
    color: #d0d0d0;
}

#hamburgerMenu {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
}

#hamburgerIcon {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

#menuDropdown {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 250px;
    background-color: #172530;
    border: 1px solid #888;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

#menuDropdown.show {
    display: block;
}

#menuDropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#menuDropdown li {
    padding: 10px 20px;
    border: 1px solid #888;
    color: white;
}

#menuDropdown li:last-child {
    border-bottom: none;
}

#menuDropdown li:nth-child(5) {
    color: white;
    font-style: italic;
}

#menuDropdown a {
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
}

#menuDropdown img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

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

.thumbnail-container {
    display: inline-block;
    margin: 5px;
}

.thumbnail-container img {
    width: 200px;
    border: 1px solid #888;
    border-radius: 4px;
    transition: transform 0.2s;
}

.thumbnail-container img:hover {
    transform: scale(1.1);
}


.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    flex-direction: column;
}

.overlay-image {
    max-width: 90%;
    max-height: 80%;
    border: 2px solid #b0b0b0;
    border-radius: 10px;
}

.overlay-close {
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.overlay {
    /* you already have flex + column; make sure it's column so the toolbar sits above the image */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .overlay-controls {
    position: static;              /* no overlay/absolute positioning */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 0 16px 0;            /* space between toolbar and image */
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    z-index: 1;                    /* sits above the background, below the close X */
    backdrop-filter: blur(2px);
  }
  
  .overlay-controls a,
  .overlay-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    outline: none;
  }
  
  .overlay-controls a:active,
  .overlay-controls button:active {
    transform: scale(0.98);
  }
  
  .overlay-controls img {
    width: 24px;
    height: 24px;
    filter: invert(100%);
    pointer-events: none; /* ensure the button gets the click */
  }

#deleteImage {
    background: none;
    border: none;
    padding: 0;
}


textarea#prompt {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #5b3363;
    border-radius: 5px;
    background-color: #111018;
    color: white;
    resize: vertical; /* optional, allows user resizing */
    font-family: inherit; /* keep font consistent */
}

#generate-btn {
    display: inline-block;
    margin-top: 10px;
  }


#progress-bar {
  margin-top: 10px;
  height: 24px;
  width: 100%;
}

#prompt-field button,
#prompt-field progress {
  width: 60%;
  max-width: 300px;
}

#progress-container {
    margin: 20px 0;
    text-align: center;
}

footer {
    background-color: #172530;
    color: #d0d0d0;
    padding: 10px;
    text-align: center;
    width: 100%;
}

footer a {
    color: #ffdff7;
    text-decoration: none;
}

footer a:hover {
    color: #f0f0f0;
}

button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #6e6e6e;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: #8a8a8a;
}


input[type="text"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    font-size: 16px;
    border: 1px solid #5b3363;
    border-radius: 5px;
    background-color: #111018;
    color: #cccccc;
}

input[type="text"]::placeholder {
    color: #a3b1c2;
}

.scale-options {
    margin-bottom: 10px;
    text-align: center;
    color: #ffdff7;
}

label {
    margin-right: 15px;
}

progress {
    width: 100%;
    height: 20px;
    margin: 10px 0;
    background-color: #3f3f3f;
    border: 1px solid #888;
    border-radius: 5px;
}



/* ======= POPUP ========== */
.skyr-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  .skyr-popup.visible {
    display: flex;
  }
  
  .skyr-popup-inner {
    background: #111;
    color: #f5f5f5;
    padding: 1.5rem;
    max-width: 480px;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0,0,0,0.6);
    position: relative;
    font-size: 0.95rem;
  }
  
  .skyr-popup-close {
    position: absolute;
    top: 0.3rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: #bbb;
    font-size: 1.4rem;
    cursor: pointer;
  }
  
  .skyr-popup-inner a {
    color: #4db8ff;
    text-decoration: underline;
  }
  .skyr-popup-inner a:hover {
    text-decoration: none;
  }
  


/* Mobile Adjustments */
@media (max-width: 480px) {
    .overlay-controls {
      gap: 12px;
      padding: 8px 12px;
      margin-bottom: 12px;
    }
    .overlay-controls a,
    .overlay-controls button {
      width: 50px;
      height: 50px;
    }
    .overlay-controls img {
      width: 22px;
      height: 22px;
    }
  }