/* Reset and general styles */
*,
*::after,
*::before {
  box-sizing: border-box;
}

@font-face {
  font-family: 'Bayer Sans';
  src: url('/static/fonts/Web Typeface/Normal/BayerSansWeb-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
    font-family: 'Bayer Sans', sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color:#183950;
}

#initial-section .wallpaper {
  display: block;
  margin: 20px auto;
  width: 1000px;
  height: auto;
  border-radius:26px;
}

.nav-menu {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  background-color: #183950;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
}

.nav-menu a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #ffffff;
  display: block;
  transition: 0.25s;
}

.nav-menu a:hover {
  color: #ffffff;
  text-shadow:0px 0px 30px #ffffff;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}

.nav-menu .closebtn {
  position: absolute;
  top: 0;
  right: 0px;
  left:auto;
  font-size: 36px;
  margin-left: 50px;
}

main-container {
    display:block;
    position: relative;
}

img {
  display: block;
  max-width: 100%;
}

.prompt-select {
  width: 32.8%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.select-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.select-container .prompt-select {
  width: 33.3%;
}

.prompt-image {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
}

main {
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.container {
  display: grid;
  place-content: center;
  position: relative;
  /*overflow: hidden;*/
  border-radius: 1rem;
  --position: 50%;
}

.image-container {
  max-width: 800px;
  max-height: 90vh;
}

.slider-image {
  width: 100%!important;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.image-before {
  position: absolute;
  inset: 0;
  width: var(--position)!important;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  /* for Firefox */
  width: 100%!important;
  height: 100%!important;
  pointer-events: auto;
}

.slider:focus-visible ~ .slider-button {
  outline: 5px solid #183950;
  outline-offset: 3px;
}

.slider-line {
  position: absolute;
  inset: 0;
  width: 0.2rem;
  height: 100%;
  background-color: #fff;
  /* z-index: 10; */
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-button {
  position: absolute;
  background-color: #fff;
  color: black;
  padding: 0.5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  top: 50%;
  left: var(--position);
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* z-index: 100; */
  box-shadow: 1px 1px 1px hsl(0, 50%, 2%, 0.5);
}

#slider-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  z-index: 1000;
  overflow: auto;
}

#slider-container .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  cursor: pointer;
}


textarea {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
}

button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #41bcff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #183950;
}

/* Disabled button styles */
button:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
  text-indent: 150%;
  white-space: nowrap;
  overflow: hidden;
}

/* Loading state styles */
button.loading {
  background-color: #666666;
  color: #ffffff;
  cursor: progress;
  position: relative;
}

button.loading::after {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  position: absolute;
  top: 27%;
  left: 48.5%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reset-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: #41bcff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 1.5rem;
}

.reset-button:hover {
    background-color: #183950;
}

.image-section, .button-section {
    width: 100%;
    display: block;
}

div.btn-container {
  /*display: table-cell;*/
  vertical-align: middle;
  text-align: center;
}

label {
  font-size: 13px;
  color: #424242;
  font-weight: 500;
}

.btn-color-mode-switch {
  display: inline-block;
  margin: 0px;
  position: relative;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner {
  margin: 0px;
  width: 140px;
  height: 30px;
  background: #E0E0E0;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: block;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:before {
  content: attr(data-on);
  position: absolute;
  font-size: 12px;
  font-weight: 500;
  top: 7px;
  right: 11px;
}

.btn-color-mode-switch > label.btn-color-mode-switch-inner:after {
  content: attr(data-off);
  width: 70px;
  height: 25px;
  background: #fff;
  border-radius: 26px;
  position: absolute;
  left: 2px;
  top: 2px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0px 0px 6px -2px #111;
  padding: 5px 0px;
}

.btn-color-mode-switch input[type="checkbox"] {
  cursor: pointer;
  width: 50px;
  height: 25px;
  opacity: 0;
  position: absolute;
  top: 0;
  z-index: 1;
  margin: 0px;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner {
  background: #183950;
  color: #fff;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:after {
  content: attr(data-on);
  left: 68px;
  background: #235477;
}

.btn-color-mode-switch input[type="checkbox"]:checked + label.btn-color-mode-switch-inner:before {
  content: attr(data-off);
  right: auto;
  left: 15px;
}

.logo-container {
  position: absolute;
  top: 20px;
  left: 50px;
  width:150px;
  height: auto;
}

.logo {
  width: 120px;
  height: auto;
}

#initial-section {
  text-align: center;
  padding: 2rem;
}

#image-link-form {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

#image-link-form input,
#image-link-form button {
  padding: 0.5rem;
  font-size: 1rem;
  margin-top: 0.5rem;
  width:100%;
}

.main-container {
  display: none;
}

#image-popup .closebtn {
  position: absolute;
  top: 10px;
  left: auto;
  right: 25px;
  color: #fff;
  font-size: 35px;
  font-weight: bold;
}

#image-popup .closebtn:hover,
#image-popup .closebtn:focus {
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

#image-popup {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

#image-popup .popup-content {
  position: relative;
  margin: auto;
  margin-top:3%;
  width: fit-content;
  max-width: 800px;
}

#image-popup .image-container {
  max-width: 800px;
  max-height: 564.64px;
  overflow: hidden;
  position: relative;
}

#image-popup .slider-image {
  width: 100%!important;
  height: 100%;
  max-height: 564.64px;
  object-fit: cover;
  object-position: left;
}

#image-popup .image-before {
  position: absolute;
  inset: 0;
  width: var(--position)!important;
}


#image-popup .slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
  /* for Firefox */
  width: 100%;
  height: 100%;
}

#image-popup .slider-line {
  position: absolute;
  inset: 0;
  width: 0.2rem;
  height: 100%;
  background-color: #fff;
  /* z-index: 10; */
  left: var(--position);
  transform: translateX(-50%);
  pointer-events: none;
}

#image-popup .slider-button {
  position: absolute;
  top: 50%;
  left: var(--position, 50%);
  transform: translate(-50%, -50%);
  z-index: 1;
  background-color: #fff;
  color: black;
  padding: 0.5rem;
  border-radius: 100vw;
  display: grid;
  place-items: center;
  pointer-events: none;
  box-shadow: 1px 1px 1px hsl(0, 50%, 2%, 0.5);
}

.image-info {
  padding: 10px;
  margin-left: 23%;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  color: white;
}

.image-info p {
  margin: 5px 0;
  color: white;
}

.text-container {
  margin-bottom: 10px;
  margin-left: 2%;
}

/*documentation content*µ
/* General Styles */
#documentation-content {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 2%;
  box-sizing: border-box;
  z-index: 1000;
  overflow: auto;
  background-color: #f8f8f8;
  font-family: 'Open Sans', sans-serif;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 36px;
  color: #333;
}

h2 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
}

p {
  line-height: 1.5;
  margin-bottom: 10px;
  color: #555;
  margin-top: 0;
}

#fidelity-slider .body{
	font-family: Helvetica, sans-serif;
	color: #999;
	-webkit-font-smoothing: antialiased;
	}

#fidelity-slider .wrap{
	position: relative;
	width: 90%;
	max-width: 400px;
	margin: 100px auto;
}

#fidelity-slider .value {
	position: relative;
  text-align: center;
  font-size: 18px;
	margin-top: 20px;
  width: 100%; 
  height: 100px;
  line-height: 1.5em;
}

#fidelity-slider .value::after{
	margin-left: 5px;
	}

input[type="range"] {
  display: block;
  -webkit-appearance: none;
	-moz-appearance: none;
	background: #999;
	border-radius: 5px;
  width: 100%;
  height: 1px;
  outline: 0;
}
#fidelity-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  background-color: #000;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  cursor: pointer;
  transition: .3s ease-in-out;
}
  
#fidelity-slider input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(1);
}

/* Step Styles */
.step-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.step {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  padding: 20px;
}

.step-content {
  display: flex;
  flex-direction: column;
}

.step-content p:last-child {
  margin-bottom: 0;
}

.small-image-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.small-img-container {
  max-width: 150px;
  max-height: 150px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.small-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.compose-row,
.imagine-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.large-img-container {
  max-width: 300px;
  max-height: 300px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.very-large-img-container {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.large-img {
  max-height: 250px;
  object-fit: contain;
}

.very-large-img {
  max-height: 350px;
  object-fit: contain;
}

.small-icon {
  max-height: 40px;
  max-width: 100px;
  object-fit: contain;
  border-radius: 1rem;
  vertical-align: middle; /* Aligns the image with the middle of the text */
  display: inline; /* Ensures the image is treated like inline text */
}

.image-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.image-container img {
  max-width: 100%;
  /*height: auto;*/   
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.caption {
  font-style: italic;
  color: #777;
  font-size: small;
  text-align: center;
  margin-top: 10px;
}

.prompt-example {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.prompt-example div {
  font-style: italic;
  color: #777;
  font-size: small;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 8px;
}

.arrow-img {
  width: 50px;
  height: auto;
  transform: scale(2.5);
}

.plus-img {
  width: 50px;
  height: auto;
  transform: scale(0.8);
}

.arrow-img2 {
  width: 50px;
  height: auto;
  transform: scale(2.5);
  rotate:90deg;
  align-self: center;
  margin-top: -20px;
}
.refined-prompt {
  max-width: 500px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .content-wrapper {
      padding: 10px;
  }

  h1 {
      font-size: 28px;
  }

  .prompt-example {
      flex-direction: column;
      align-items: flex-start;
  }

  .refined-prompt {
      max-width: 100%;
  }
}

/*table styles*/
table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th, td {
  width: 25%;
  text-align: center;
  vertical-align: middle;
  padding-bottom: 16px;
  color: #555;
}