:root {
  --main-medium: #429993;
  --main-medium-hover: #3F8C8C;
  --main-light: #B2DFDB;
  --main-dark: #25616f;
  --light-gray: #eff4f6;
  --medium-gray: #d5e3e7;
  --dark-gray: #53565a;
  --dark-gray-hover: #4F5053;
  --main-accent: #f5835b;
}

body {
  margin: 0em;
  overflow: hidden;
}

.header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #fff;
  padding: 0em 3em;
  width: 100%;
  box-sizing: border-box;
  background: rgb(213,227,231);
  background: linear-gradient(90deg, rgba(213,227,231,1) 38%, rgba(255,255,255,1) 75%);
}

.cathexis-logo {
  /*max-width: 42.5vw;*/
  max-width: 10%;
}

.logo-container {
  padding: 4em 2em .5em 2em;
  justify-content: center;
  display: flex;
  background: linear-gradient(0deg, rgba(239, 244, 246, 1) 0%, rgba(255, 255, 255, 1) 64%);
}

.creative-brain {
  /*width: 57.5vw;*/
  /* margin-left: 23%; */
  width: 40%;
}

.megacontainer {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.megacontainer * {
  box-sizing: border-box;
}

.container {
  display: flex;
  flex-direction: row;
  flex: 1; 
  height: 100%;
}

.left-side {
  width: 33%;
  background-color: var(--light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  box-shadow: -1px 0 5px -2px var(--dark-gray);
}

.input-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  width: 100%;
  margin-top: .5em;
}

.input-container > input {
  width: 100%;
}

.checkbox-container {
  padding-left: .5em;
}

.checkbox-container input[type="checkbox"] {
  opacity: 0;
  position: fixed;
  width: 0;
  margin-left: 2px;
}

.checkbox-container label {
  display: inline-block;
  background-color: #fff;
  padding: 10px 7px;
  font-family: sans-serif, Arial;
  font-size: 16px;
  font-weight: 600;
  height: 100%;
  color: var(--dark-gray);
  border: 2px solid var(--medium-gray);
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

.checkbox-container input[type="checkbox"]:focus+label {
  border: 2px solid var(--medium-gray);
}

.checkbox-container label:hover {
  background-color: var(--main-light);
  border-color: var(--main-medium);
}

.checkbox-container input[type="checkbox"]:checked+label {
  background-color: var(--main-light);
  border-color: var(--main-medium);
  color: #333;
}

.cathexis-logo {
  width: 100%;
}

h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

p {
  font-size: 18px;
  margin-bottom: 20px;
}

/* img {
  width: 200px;
  height: auto;
  cursor: pointer;
} */

.form-group {
  font-size: 16px;
  height: 100%;
  width: 100%;
  margin-bottom: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white; /* Text color for better visibility on green background */
  padding: 0em 2em; 
}

.form-group * {
  /* padding: 5px; Add padding to all elements inside .form-group */
}

.prompt-input {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--medium-gray);
  border-radius: 3px;
  font-size: 16px;
}

.generate-button {
  background-color: var(--main-medium);
  color: white;
  padding: 20px 20px;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  letter-spacing: 1.5px;
  width: 100%;
  cursor: pointer;
  margin-top: 6px;
}

.generate-button:hover {
  background-color: var(--main-medium-hover);
}

.loading-icon {
  display: none;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically */
}

.iframe-container {
  height: 80vh;
  margin-top: 20px;
  display: flex;
  cursor: pointer;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.image-container {
  width: 50%; /* Each image should take half the width */
  margin: 10px; /* Padding between images (not working yet) */
  box-sizing: border-box; /* Include padding in width calculation */
  cursor: pointer;
}

.right-side {
  text-align: center;
  display: flex;
  background-color: var(--medium-gray);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 67%;
  padding: 1vh;
  padding-bottom: 4em;
  height: 100%; /* Set the height to 100% */
  margin-left: 33%;
}

.download-button {
  padding: 18px 20px;
  border: none;
  border-radius: 5px;
  background-color: var(--dark-gray); /* Cathexis Dark Gray Color*/
  color: white;
  font-size: 18px;
  letter-spacing: 1.5px;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  /* display: none; */
}

.download-button p {
  margin: 0px;
  margin-right: 6px;
}

.download-button:hover {
  background-color: var(--dark-gray-hover);
}

.iframe-container {
  height: 100%;
  margin-top: 1vh;
  width: 100%;
  cursor: pointer;
  /*background-color: blue;*/
}

#imageFrame {
  cursor: pointer;
  background-color: red;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  /*background-color: red; /* This background color is just for visualization/debugging purposes :) */
}

.generated-image {
  width: 100%; /* Adjust the width as needed */
  height: 100%; /* Maintain aspect ratio */
  display: block; /* Ensure proper layout */
  margin-bottom: 10px; /* Add margin between images */
  cursor: pointer;
}

/* css loader */

.loader {
  visibility: hidden; 
  height: 4px;
  width: 100%;
  background: linear-gradient(var(--main-accent) 0 0), linear-gradient(var(--main-accent) 0 0), var(--medium-gray);
  background-size: 60% 100%;
  background-repeat: no-repeat;
  animation: loader 3.5999999999999996s infinite;
  margin-top: 6px;
  border-radius: 5px;
}

@keyframes loader {
  0% {
    background-position: -150% 0,-150% 0;
  }
  66% {
    background-position: 250% 0,-150% 0;
  }
  100% {
    background-position: 250% 0, 250% 0;
  }
}
