﻿.Flex {
    display: flex;
}
.Relative {
    position: relative;
}
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}
header {
  background-color: #fff;
  padding: 40px;
  border-bottom: 1px solid #ccc;
}
body > header {
	background-image: url('../images/logo.png');
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}
main {
  padding: 20px;
}
section {
  margin-top: 20px;
}
h1 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
  color: white;
  box-shadow: 1px 1px white;
}
#body-form {
    margin: 0 auto;
    width: 850px;
	font-family: serif;
	display: none;
}
p {
  margin-bottom: 10px;
}
a {
  color: #000;
  text-decoration: none;
}
a:hover {
  color: #ccc;
  text-decoration: underline;
}

#imageProdia {
	position: relative;
	width: 750px;
}
#imageProdia img{
	width: 200px;
	position: absolute;
}
#imageProdia div {
	position: relative;
	margin-top: 10px;
	top: 5px;
	left: 220px;
	right: 10px;
	border-radius: 5px;
	padding: 5px;
	margin-right: 10px;
	box-shadow: 0px 1px 2px rgb(0 0 0 / 10%), 
				0px 2px 4px rgb(0 0 0 / 10%), 
				0px 4px 8px rgb(0 0 0 / 10%), 
				0px 8px 16px rgb(0 0 0 / 10%);
}
#imageProdia div:first-child {
	margin-top: 0px;
	position: absolute;
}
#imageSweetAI {
    /*display: flex;*/
    justify-content: center;
    margin-top: 10px;
    display: none;
}
#login-form {
	position: absolute;
	top: 10px;
	right: 10px;
}
#login-id {
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
	width: 120px;
	padding: 10px;
	border: none;
	border-radius: 5px;
	right: 0px;
	position: absolute;
	top: 10px;
	background-color: #fff;
}
#Info {
	margin-top: 30px;
}
#info div img {
    box-shadow: 5px 5px 5px rgb(125 0 0 / 25%);
    border-radius: 10px;
}
#body-generate {
    display: inline-grid;
    grid-template-columns: auto auto auto auto;
}
.item1 {
    grid-column-start: 1;
    grid-column-end: 5;
}
.item2 {
    grid-column-start: 1;
    grid-column-end: 5;
}
#body-generate_prompt, #body-generate_negative_prompt {
	width: 800px;
	min-height: 75px;
	max-height: 150px;
	overflow-y: auto;
	resize: none; /* Вимкнути зміну розміру за допомогою миші */
	border-radius: 10px;
	border: none;
	box-shadow: 0px 1px 2px rgb(0 0 0 / 10%), 
				0px 2px 4px rgb(0 0 0 / 10%), 
				0px 4px 8px rgb(0 0 0 / 10%), 
				0px 8px 16px rgb(0 0 0 / 10%);
}
#body-generate_steps {
		
}
.Button {
    background-color: #f8e8f1; /* Green */
    background-image: url('../images/sweet_go.png');
    background-position: center;
    background-size: 50px;
    background-repeat: no-repeat;
    border: none;
    border-radius: 0 10px 10px 0;
    color: white;
	text-align: center;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    cursor: pointer;
	box-shadow: 0px 1px 2px rgb(0 0 0 / 10%), 
				0px 2px 4px rgb(0 0 0 / 10%), 
				0px 4px 8px rgb(0 0 0 / 10%), 
				0px 8px 16px rgb(0 0 0 / 10%);
}
.Border-radius-ta {
    border-radius: 10px 0 0 10px !important;
}
.form-group {
    margin-top: 10px;
	font-size: 1.1em;
}
@media screen and (max-width: 800px) {
    .form-group {
	    margin-top: 10px;
		font-size: 1.5em;
    }
}

div.gallery {
  border: 1px solid #ccc;
  position: relative;
}

div.gallery:hover div.desc{
  border: 1px solid #777;
  z-index: 5;
}

div.gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

div.desc {
  padding: 15px;
  position: absolute;
  /*visibility: hidden;*/
  bottom: 3px;
  color: #fff;
  border: black;
  background: rgba(0, 0, 0, 50%);
  z-index: -1;
}
div.desc:hover {
  /*visibility: visible;
  z-index: 5;*/
}

div.downloadBN {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 5
}

div.editBN {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 5;
	cursor: pointer;
}

* {
  box-sizing: border-box;
}

.responsive {
  padding: 0 6px;
  float: left;
  width: 24.99999%;
}

@media only screen and (max-width: 700px) {
  .responsive {
    width: 49.99999%;
    margin: 6px 0;
  }
}

@media only screen and (max-width: 500px) {
  .responsive {
    width: 100%;
  }
}

.clearfix:after {
  content: "";
  display: table;
  clear: both;
}

[data-lora] {position: relative; /* Відносне позиціонування */
} 
[data-lora]::after { content: attr(data-lora); /* Виводимо текст */
position: absolute; /* Абсолютне позиціонування */
width: 300px; /* Ширина підказки */
left: 0; top: 0; /* Положення підказки */
background: #3989c9; /* Синій колір фону */
color: #fff; /* Колір тексту */
padding: 0.5em; /* Поля навколо тексту */
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Параметри тіні */
pointer-events: none; /* Підказка */
opacity: 0; /* Підказка невидима */
transition: 1s; /* Час появи підказки */
} 
[data-lora]:hover::after { opacity: 1; /* Показуємо підказку */
top: 2em; /* Положення підказки */
}

#info {
	margin: auto auto;
	width: 765px;
	/*height: 400px;*/
	text-align: center;
}
#info span {
	font-size: 18px;
	margin: 20px auto;
	display: block;
}
footer {
	margin-top: 20px;
	padding: 20px;
	background-color: #eba4a5;;
	color: #fff;
	/*height: 50px;
	position: relative;*/
}
footer div {
	margin: auto auto;
	width: 400px;
	text-align: center;
	top: 17px;
	position: relative;
}
.stat {
    margin: 0 auto;
    width: fit-content;
}
.stat li {
    float: right;
    display: block;
    list-style: none;
}
.rowResult img {
    width: 40vw;
    float: left;
}
.rowResult {
    margin: 5px;
    clear: both;
}