

/* ------------------- Studio container ------------------- */

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";
  }
}



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

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 a:hover {
  filter: drop-shadow(1px 1px 3px #8b7dfc);
}






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

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

.sidebar-henry 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; /* Сохранение пропорций картинки */
}

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

}
.input-section label{
  font-size: 12px;
  color: var(--button-color);
  display: block;
  margin-top: 10px;
}

.options {
  flex-grow: 1;
  flex-basis: 200;
  max-width: 100%;
  padding: 10px;
}

select {
  max-width: 100%;
  height: 30px;
  border: 1px solid #c5c5ff;
  border-radius: 5px;
  padding: 5px;
  margin: 10px 0px 10px 0px;
}

.prompt-box {
  margin: 10px 0px 10px 0px;
  max-width: 100%;
  width: 100%;
  padding: 10px;
  border-top: 1px solid #c5c5ff;
  border-bottom: 1px solid #c5c5ff;
  box-sizing: border-box;
}

textarea {
  width: 100%;
  max-height: 240px;
  border: 1px solid #c5c5ff;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0px 10px 0px;
  box-sizing: border-box;
  resize: vertical;
}


.custom-style-options {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-evenly;
  align-items: flex-start;
}

.style-option, .art-option, .gaming-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(--button-color);
  position: relative;
}
.style-option img, .art-option img, .gaming-option img {
  object-fit: cover;
  border-radius: 8px;
  width:100%;
}
.style-option p, .art-option p, .gaming-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-option p {
  margin-top: 5px;
  font-size: 12px;
  object-fit: cover;
}
.style-option[selected], .size-option[selected], .art-option[selected], .gaming-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(--button-color);
  
  display: flex;
  align-items: center;
  justify-content: center;
}




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

.button-container{
  flex-grow: 1;
  flex-basis: 200;
  max-width: 100%;
  padding: 10px;
  align-items: stretch;
}





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


article{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 50px 0px 5px 0px;
}

.book-container{
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin: 50px 0px;
}


.book {
  position: relative;
  border-radius: 10px;
  width: 340px; /* 220px */
  height: 460px; /* 300px */
  background-color: whitesmoke;
  -webkit-box-shadow: 1px 1px 5px #c5c5ff;
  box-shadow: 1px 1px 5px #c5c5ff;
  -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(-80deg);
} */

.book-hover:hover .cover {
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
  -webkit-transform: rotatey(-80deg);
  -ms-transform: rotatey(-80deg);
  transform: rotatey(-80deg);
}

.book p, .cover p {
  color: #d6d6d6;
  font-size: 30px;
  text-align: center;
  margin: 100px 20px 50px 20px;
}



.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(--scene-bg-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 dotted #c5c5ff;
  border-radius: 10px;

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


.share-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
  padding: 50px 0px 50px 0px;
  width: 100%;
  background-color: var(--scene-bg-color);
}
.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: white;

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


.nft-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);
}
.nft-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;
}
.nft-assets {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
}
.nft-imgs { /* needed to overlay position the download button */
  width:20%;
  margin:20px;
  position: relative;
}
.nft-imgs img {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .nft-imgs {
    width: 40%;
  }
}
/* -------------------------------- NFT markets -------------------------------- */

.nft-markets {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: 100%;
}
.market-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);
}
.market-container a {
  text-decoration: none;
}
@media (max-width: 480px) {
  .nft-markets {
    flex-direction: column;
  }
}






/* ------------------- History ------------------- */

section {
  width: 100%;
  min-height: 200pt;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  /* overflow-y: auto; */
}

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

.history-item {
  display: flex;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 55px;
  justify-content: center;
  align-items: center;
  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;
}

.history-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;
}

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

.history-item-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  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;
  width: 100%;
}



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

