:root {
  --studio-scene-color: white;
  --label-text: rgb(201, 201, 201);
}


/* ------------------- Studio header (rewrite of style.css)------------------- */
body {
  padding-top: 0px;
  max-width: 100%;
  display: block;
}

.header-btn {
  display: flex;
  justify-content: space-around;
  align-items: center;

  cursor: pointer;
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translate(-50%);

  will-change: transform, filter;
  border-radius: 60px;
  color: var(--main-text-color);
  font-family: var(--alter-font);
  font-size: 24px;
  font-weight: bold;
}
.header-btn a {
  text-decoration: none;
  color: var(--alter-text-color);
}
.header-btn-one {
  top: 60px;
  left: 50%;
  transform: translate(-50%);
  /* font-size: 24px; */
}

@media (max-width: 480px) {
  .header-btn, .header-btn-one {
    top: 180px;
  }
  .header-btn-one {
    right: 0;
  }
}





/* ------------------- Description ------------------- */
.description {
  font-family: var(--alter-font);
  font-size: 14px;
  text-align: center;
}



/* ------------------- Filters ------------------- */
.filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px 0px 20px;
}

.filter-label {
  font-family: var(--alter-font);
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* STYLE */
.custom-style-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
  /* gap: 10px; */
}

.style-option {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  width: 80px; 
  height: 80px;
  text-align: center; 
  margin: 5px;
  border-radius: 10px;
  border: 1px solid var(--start-button-color);
  position: relative;
}
.style-option img {
  object-fit: cover;
  border-radius: 8px;
  width:100%;
}
.style-option p {
  font-size: 12px;
  object-fit: cover;

  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  box-sizing: border-box;
}


/* SIZE */
.size-option p {
  margin-top: 5px;
  font-size: 12px;
  object-fit: cover;
}
.style-option[selected], .size-option[selected] {
  transform: scale(1.1);
  border: 2px solid var(--button-color);
}
.size-option {
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  width: 60px; 
  height: 60px;
  text-align: center; 
  margin: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--start-button-color);
  
  display: flex;
  align-items: center;
  justify-content: center;
}



/* UPLOAD IMAGE */
.upload-image-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 3px solid var(--start-button-color);
  border-radius: 70px;
  margin: 20px 0px 10px 0px;
  /* width: 100%; */
  height: 300px;
  position: relative;
}
.upload-image-container::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('img/upload-image.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  height: 80%;
  opacity: 0.2;
  z-index: -1;
}

#uploadImage {
  display: none;
}

.file-input {
  cursor: pointer;
  width: 90%;
  max-width: 450px;
  height: 60px;
  /* border: 3px solid var(--start-button-color); */
  border-radius: 30px;
  color: white;
  background-color: var(--start-button-color);

  display: flex;
  justify-content: center;
  align-items: center;

  box-sizing: border-box;
  /* background-color: transparent; */
  backdrop-filter: blur(8px);
  margin: 0px 10px 10px 0px;
  transition-duration: .2s;
}
.file-input:hover {
  /* border: 3px solid var(--start-hover-color); */
  color: white;
  background-color: var(--start-hover-color);
}
.file-input:active, .file-input:focus {
  transform: scale(0.95);
}

.text-input {
  width: 100%;
  max-width: 450px;
  height: 40px;
  border: 3px solid var(--start-button-color);
  border-radius: 30px;
  padding: 5px 5px 5px 15px;
  box-sizing: border-box;
  background-color: transparent;
  backdrop-filter: blur(8px);
  margin: 0px 10px 10px 0px;
}



/* TEXTAREA */
.prompt-box {
  max-width: 100%;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  height: 90px;
  max-height: 340px;
  border: 3px solid var(--start-button-color);
  border-radius: 50px;
  padding: 20px;
  margin: 10px 0px 10px 0px;
  box-sizing: border-box;
  resize: vertical;
}
textarea:active, textarea:focus, .text-input:active, .text-input:focus {
  border: 3px solid var(--button-color);
  outline: none;
}




/* ---------------------- Created image scene ---------------------- */
.img-scene {
  position: relative;
  border-radius: 10px;
  width: 300px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  /* cursor: pointer; */
}
.img-scene p {
  color: #d6d6d6;
  font-size: 30px;
  text-align: center;
  margin: 100px 20px 50px 20px;
}
.img-scene img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}


/* ---------------------- History ---------------------- */
.history {
  overflow: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  width: 95%;
  margin: 0px auto 50px auto;
  position: relative;
  height: auto;
}
/* .history:hover > :not(:hover) {
  opacity: 0.2;
} */

.history-item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;

  width: 50%;
  height: 250px;
  max-width: 200px;
  max-height: 250px;

  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 10px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: 10px;
  padding: 2rem;
  margin: 5pt;
  cursor: pointer;
  transition-duration: .2s;
}
.history-item:hover {
  border: 3px solid var(--button-color);
}

.history-item img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  box-sizing: content-box;
  z-index: -1;
}

.history-item-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  height: 250px;
  max-width: 200px;
  max-height: 250px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 10px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: 10px;
  padding: 2rem;
  margin: 5pt;

}

@media (max-width: 480px) {
  .history-item, .history-item-placeholder {
    max-width: 100px;
    max-height: 150px;
  }
}






/* ------------------- Studio container OLD STYLES ------------------- */

header{grid-area: header;}
aside{grid-area: sidebar;}
article{grid-area: main;}
section{grid-area: history;}
#footer-bottom{grid-area: footer;}


.studio-container {
  display: grid;
  gap: 5px;
  grid-template-columns: max(20%, 300px) auto;
  grid-template-rows: 60px auto auto 30px;
  grid-template-areas: 
    "sidebar header header"
    "sidebar main main"
    "sidebar history history"
    "footer footer footer";
}



@media (max-width: 480px) {
  .studio-container {
    height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: 60px auto auto auto 30px;
    grid-template-areas: 
      "header"
      "sidebar"
      "main"
      "history"
      "footer";
  }
}









header {
  right: 5%;
  left: auto;
  transform: translateX(0%);
  max-width: 15%;
  min-width: 190px;
  justify-content: center;
  white-space: nowrap;
}

header img {
  height: 1em;
}
header img:hover {
  filter: drop-shadow(1px 1px 3px var(--start-hover-color));
}

header a:hover {
  color: var(--start-hover-color);
}






/* ------------------- Sidebar ------------------- */

aside {
  background-color: white;
  /* border: 1px solid #8b7dfc;
  box-shadow: 0 4px 8px rgba(64, 43, 132, 0.1); */
  border-right: 1px solid var(--button-color);
  border-bottom: 1px solid var(--button-color);
  box-shadow: 0px 0px 5px rgba(64, 43, 132, 0.1);
  z-index: 30;
  background-size: cover; 
  width: 100%;
  min-height: auto;
}

.sidebar-img-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

@media (max-width: 480px) {
  .sidebar-img-container {
    flex-direction: row;
    justify-content: flex-start;
  }
}

.sidebar-img img {
  max-width: 200px; /* Установка ширины картинки */
  max-height: 200px; /* Установка ширины картинки */
  margin-top: 20pt;
  mix-blend-mode: darken;
  width: 100%; /* Make the image responsive to the container size */
  height: auto; /* Сохранение пропорций картинки */
}




/* INPUTS */
.input-section{
  margin-top: 20pt;
  display: flex;
  flex-wrap: wrap;

}

.options {
  flex-grow: 1;
  flex-basis: 200;
  max-width: 100%;
  padding: 10px;
}
.options label {
  display: block;
  margin-bottom: 3px;
  font-size: 14px;
  color: var(--label-text);
}

select {
  max-width: 100%;
  min-width: 180px;
  height: 30px;
  border: 1px solid var(--button-color);
  border-radius: 5px;
  padding: 5px;
  margin: 0px 0px 10px 0px;
}
select:focus {
  border: 1px solid var(--start-button-color);
}

/* CHECKBOX for cover */
.check-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  border-top: 1px solid var(--button-color);
  max-width: 100%;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  font-size: 10pt;
}
.inline {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
}
.inline {
  margin: 10px 0px 0px 0px;
}
.inline input {
  margin-right: 10px;
  color: var(--label-text);
}

/* ---------------------------- proceed button ------------------------- */

.button-container{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 100%;
  /* padding: 10px; */
  /* margin: 10px 0px 10px 0px; */
}



/* ------------------- Book like card ------------------- */


article {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 0px 5px 0px;
  overflow-x: auto;
  height: fit-content;

}

.preview {
  background-image: url(../img/preview-bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  font-family: var(--alter-font);
}

.book-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin: 50px 0px;
}
.page-left{
  display: none;
  position: relative;
  border-radius: 10px;
  width: 300px;
  height: 450px;
  /* display: flex; */
  align-items: center;
  justify-content: center;
  background-color: #eeeeee;
  cursor: pointer;
}
/* .cover-back {
  width: 80%;
  height: 80%;
  border: 0px solid grey;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
} */
.page-right{
  position: relative;
  border-radius: 10px;
  width: 300px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f9f9f9;
  cursor: pointer;
}
.page-left p, .page-right p {
  color: #d6d6d6;
  font-size: 30px;
  text-align: center;
  margin: 100px 20px 50px 20px;
}
.page-left img, .page-right img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}






.book {
  position: relative;
  border-radius: 10px;
  width: 300px;
  height: 400px;

  -webkit-transform: preserve-3d;
  -ms-transform: preserve-3d;
  transform: preserve-3d;
  -webkit-perspective: 2000px;
  perspective: 2000px;
  display: -webkit-box;
  display: -ms-flexbox;

  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  color: #000;
}
 
.cover {
  top: 0;
  position: absolute;
  background-color: #eeeeee;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform-origin: 0;
  -ms-transform-origin: 0;
  transform-origin: 0;
  -webkit-box-shadow: 1px 1px 5px #dfdfff;
  box-shadow: 1px 1px 5px #dfdfff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}
.book img, .cover img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}
.book-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f9f9f9;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}
.cover-placeholder {
  width: 100%;
  height: 100%;
  background-color: #f3f3f3;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
}
/* .book:hover .cover {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: rotatey(-80deg);
  -ms-transform: rotatey(-80deg);
  transform: rotatey(-180deg);
} */
.book p, .cover p {
  color: #d6d6d6;
  font-size: 30px;
  text-align: center;
  margin: 100px 20px 50px 20px;
}




/* ------------------- Pages ------------------- */

.article-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  background-color: var(--studio-scene-color);

}
.article-container h2 {
  color: var(--label-text);
  align-self: flex-start;
  padding: 0px 0px 0px 20px;
}

.pages-line {
  width: 100vw;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0px 0px 0px 20px;
}

.pages-container{
  max-width: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 20px 0px 0px 0px;
  border-top: 1px solid white;
  background-color: var(--studio-scene-color);
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 480px) {
  .pages-container {
    max-width: 480px;
  }
}

.pages {
  overflow: auto;
  display: flex;
  scroll-snap-type: x mandatory;
  width: 90%;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  height: auto;
}

.pages-item {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 55px;
  min-width: 50px;
  height: 80px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 10px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: 10px;
  padding: 2rem;
  margin: 5pt;
}

.pages-item img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  box-sizing: content-box;
}

.pages:hover > :not(:hover) {
  opacity: 0.2;
}

.pages-item-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 50px;
  max-width: 55px;
  height: 80px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 5px 10px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  border-radius: 10px;
  padding: 2rem;
  margin: 5pt;
  width: 100%;
  overflow: hidden;
  color: rgb(201, 201, 201);
  font-size: 18px;
  font-weight: 400;
}
.pages-item-placeholder img{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    box-sizing: content-box;
}





/* ------------------- Text params ------------------- */

.color-box {
  width: 20px;
  height: 20px;
  display: inline-block;
  cursor: pointer;
}

#bookPanel {
  display: none; /* Используем flexbox */
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  position: absolute;
  font-size: 24px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.5); /* Default semi-transparent */
  text-align: center;
  padding: 10px;
  border-radius: 5px;
  width: 70%;
  height: 70%;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.book-text-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: var(--studio-scene-color);
  padding: 20px 0px;
}
.book-text-options {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  margin: 10px 0px;
}
.book-text-options label{
  align-self: left;
  padding-bottom: 5px;
}

.text-options {
  flex: 1; 
  box-sizing: border-box; 
  padding: 20px;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px dashed var(--button-color);
  border-radius: 10px;
  background-color: var(--scene-bg-color);

  margin: 0px 15px;
  max-width: 300px;
  text-align: center;
}



/* ------------------- Share ------------------- */

.share-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  padding: 50px 0px 50px 0px;
  width: 100%;
  background-color: white;
}
.share-inline-container {
  flex: 1;
  box-sizing: border-box;
  padding: 20px;
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--scene-bg-color);
  border: 1px solid var(--button-color);

  margin: 0px 15px;
  max-width: 300px;
  border-radius: 10px;
  text-align: center;
}


/* ------------------- Stores modal ------------------- */

.stores-modal-bg {
    display: none;
    position: fixed; /* Оставаться на месте при прокрутке */
    z-index: 1001; /* Сидеть на верху */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включить прокрутку, если нужно */
    background-color: rgba(0,0,0,0.4);
}
.stores-modal-content {
    background-color: var(--scene-bg-color);
    margin: 5% auto; /* 5% сверху и по центру */
    border: 1px solid var(--basic-bg-color);
    width: 80%;
    max-width: 900px;
    border-radius: 20px;
    display: flex; /* Use flexbox for centering */
    flex-direction: column; /* Arrange children in a column */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    text-align: left;
    padding: 20px;
}
.stores-assets {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}
.stores-imgs { /* needed to overlay position the download button */
  width:20%;
  margin:20px;
  position: relative;
}
.stores-imgs img {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .stores-imgs {
    width: 40%;
  }
}
/* -------------------------------- Stores & markets list -------------------------------- */

.stores {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
}
.stores-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  margin: 10px;
  color: var(--main-text-color);
}
.stores-container a {
  text-decoration: none;
}
@media (max-width: 480px) {
  .stores {
    flex-direction: column;
  }
}






/* ------------------- Footer ------------------- */

#footer-bottom{
  margin: 80px 0 50px 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

