@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barriecito&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ribeye&display=swap');

 

* {
    margin: 0;
    padding: 0;
    font-family: "IBM Plex Sans", sans-serif;
}


.form-container {
  display: flex;
  gap: 0px;
  padding: 0; 
  margin: 0;
  box-sizing: border-box;
  position: relative;
  background-color: white;
  height: 100%;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1.2;
  padding: 40px 5px 10px 40px;
  position: relative;
  border-right: 1px solid rgb(200,200,200);
  box-sizing: border-box;
  overflow: auto;
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 0.8; /*1.2 and 0.8 for diff ratio*/
  padding: 40px;
  overflow:hidden;
  box-sizing: border-box;
  position: relative;
}
.title{
    display: block;
    font-size: 28px;
    font-weight: 600;
    margin:0;
    padding: 0;
    line-height: 1.1;
    color: #179C41;
}
.subtitle{
  margin-top: -10px;/*cabcek gap*/
  padding: 0;
  display: block;
  color: dimgray;
  margin-bottom: 20px;
  font-size: 16px;
}

.form-section {
  margin: 0;
  padding: 14px 0 14px 0;
  width: 95%;
  border-bottom: 1px solid rgb(240,240,240);
}

.section-title, .section-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}
.section-subtitle{
  font-size: 16px;
}
.section-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.4;
  max-width: 75%;
}

.text-input {
  width: 30%;
  padding: 12px 16px;
  border: 1px solid rgb(100,100,100);
  border-radius: 24px;
  font-size: 14px;
  background-color: white;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}
.input-long{
  width: 55%;
}
.text-input:focus {
  border-color: #00B53F;
}

.textarea-input {
  width: 85%;
  padding: 16px;
  border: 1px solid rgb(100,100,100);
  border-radius: 32px;
  font-size: 14px;
  background-color: white;
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s ease;
}


.textarea-input:focus {
  border-color: #00B53F;
}

.photo-upload-container {
  position: relative;
}

.photo-upload-box {
  width: 120px;
  height: 120px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: white;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.photo-upload-box:hover {
  border-color: #00B53F;
}

.upload-icon {
  font-size: 32px;
  color: #999;
  font-weight: 300;
  user-select: none;
}

.uploaded-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.upload-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: none;
}

.theme-grid {
  display: flex;
  gap: 16px;
  width: 99%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 20px;
}

.theme-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.theme-option {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  object-fit: cover;
  border: 1px solid rgb(244,244,244);
  border-radius: 12px;
  cursor: pointer;
  background: rgb(254,254,254);
}
.theme-label {
  margin-top: 8px;
  font-size: 16px;
  color: #333;
  text-align: center;
}
.theme-option:hover {
  border-color: #00B53F;
}

.theme-option.selected {
  border-color: #28a745;
  border-width: 3px;
}

.pages-options {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 80%;
}

.page-option {
  padding: 16px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  cursor: pointer;
  background-color: white;
  transition: border-color 0.2s ease;
}

.page-option:hover {
  border-color: #00B53F;
}

.page-option.selected {
  border-color: #28a745;
  border-width: 3px;
}

.page-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.page-description {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  line-height: 1.3;
}

.page-price {
  font-size: 18px;
  font-weight: 500;
  color: gray;
}

.submit-button {
  padding: 24px 32px;
  background-color: #3ACF69; 
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  width: 90%;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: background-color 0.2s ease;
  position: absolute;
  bottom: 10px;
  left: 20px;
  border: 1px solid rgba(0.2, 0.2, 0.2, 0.1);
  box-shadow: 3px 3px 3px rgba(0.2, 0.2, 0.2, 0.1); 
}


.submit-button:hover:not(.disabled) {
  background-color: #1AAA48; 
}

.submit-button.disabled {
  background-color: #D5E2D9;
  cursor: not-allowed;
}
.loading-gradient {
   background: linear-gradient(90deg, #3ACF69 25%, #179C41 50%, #3ACF69 75%);
   background-size: 200% 100%;
   animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
   0% {
       background-position: -200% 0;
   }
   100% {
       background-position: 200% 0;
   }
}

.form-hide{
  display: none !important;
}

.form-tags {
  display: flex;
  overflow-x: auto;
  gap: 5px;
  padding: 0;
  margin: 0;
  white-space: nowrap;
}
.tag {
  border: 1px solid gray;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 12px;
  background: white;
  color: #1a1a1a;
}
.tag.selected {
  background: #b0f0c0;
}

.tooltip-container {
    position: relative;
    display: block;
    margin: 10px 0;
    max-width: 30%;
}

.hover-text {
    font-size: 14px;
    color: #3ACF69;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.tooltip-window {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 15px;
    background: #F8F8F8;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgb(220,220,220);
    max-width: 400px;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

.tooltip-container.active .tooltip-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-title {
    font-size: 14px;
    font-weight: 500;
    color: black;
    margin-bottom: 4px;
}

.tooltip-text {
    font-size: 14px;
    font-weight: 400;
    color: black;
    line-height: 1.4;
    margin-bottom: 10px;
}


/* checkout */
.create-container{
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(200,200,200,0.95);
}
.creaat-win{
  left: 50vw;
  top: 5vh;
  position: fixed;
  transform: translate(-50%, 0%);
  width: 85vw;
  height: 90vh;
  background-color: white;
  border-radius: 20px;
  border: 1px solid rgb(200,200,200);
  box-shadow: 3px 3px 3px rgba(200,200,200,0.2);
  padding: 20px;
  box-sizing: border-box;
  z-index: 10000;
  margin: auto;
  overflow-y: scroll;
  display: flex;
  flex-wrap: wrap;  
}
.create-x{
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 20px;
  cursor: pointer;
  color: gray;
  font-size: 24px;
  z-index: 2000;
}
.create-left, .create-right{
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  border-radius: 10px;
}
.create-left{
  flex: 0 0 50%;
  display: block;
  border-right: 1px solid rgb(240,240,240);
}
.create-right{
  flex: 0 0 50%;
  display: block;
}

.summary{
  font-size: 16px;
  width: 95%;
  margin: 10px 0;
  text-align: left;
  display: block;
}

.pay-button{
  padding: 24px 32px;
  background-color: #3ACF69; 
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  width: 80%;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 0;
  transition: background-color 0.2s ease;
  border: 1px solid rgba(0.2, 0.2, 0.2, 0.1);
  box-shadow: 3px 3px 3px rgba(0.2, 0.2, 0.2, 0.1); 

}
.pay-button:hover:not(.disabled) {
  background-color: #1AAA48; 
}

.pay-button.disabled {
  background-color: #D5E2D9;
  cursor: not-allowed;
}
.story-button{
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 24px;
  width: auto;
  display: inline-flex;
  background-color: white; 
  border: 1px solid black;
  cursor: pointer;
  margin: 20px 0;

}

.avatars-c{
  width: auto;
  height: auto;
}
.avatars-c img{
  width: 60%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
  padding: 0;
}

.examples {
  margin: 20px 0;
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: flex-start;
  padding: 16px;
}

.example {
  width: 35%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.example-text{
  text-align: left;
  margin: 0;
  margin-bottom: 10px;
  font-size: 14px;
  padding: 0;
  width: 100%;
}

.example-cover {
  position: relative;
}

.e-cover {
  width: 100%;
  border-radius: 16px;
}

.profile {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid black;
  position: absolute;
  top: calc(100% - 100px);
  right: -10px;
  background: white;
  object-fit: cover;
}













@media (max-width: 768px) {

  html, body {
    height: auto;
    overflow: auto;
  }
  .subtitle{
    margin-top: 8px;
  }
  .form-container {
    display: block;
    padding: 20px;
    height: auto;
  }
  
  .container::before {
    display: none;
  }
  
  .theme-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .theme-item {
    width: 70%;
    height: auto;
  }
  .theme-option{
    width: 100%;
    height: auto;
  }
  .left-column {
    padding: 0px;
    border:none;
    display: block;
    height: auto;
  }
  .section-description {
    font-size: 14px;
    max-width: 95%;
  }
  .right-column {
    padding: 0px;
    display: block;
    height: auto;
  }
  .form-section{
    width: 100%;
    padding: 20px 0;
    border-bottom: 1px solid rgb(230,230,230);
  } 
  .text-input {
    width: 70%;

  }
  .input-long{
    width: 95%;
  }

  .pages-options {
    display: block;
    width: 100%;
  }
  .page-option {
    width: 80%;
    margin-bottom: 10px;
  }  
  .textarea-input {
    width: 98%;
  }
  .submit-button{
    width: 100%;
    position: relative;
    display: block;
    margin: 20px auto;
    top: auto;
    left: auto;
  }
  .book {
    width: 100%;
    height: auto;
  }
  .summary{
    font-size: 16px;
    width: 95%;
    margin: 10px 0;
  }
  .tooltip-container {
      max-width: 90%;
  }  
  .tooltip-window {
    top: 0;
    left: 0;
    width: 95%;
    margin: 0;
    border: 1px solid black;
    max-width: 95%;
  }
  .creaat-win{
    width: 98vw;
    height: 94vh;
    display: block;
    padding: 10px;
  }
  .pay-button{
    position: relative;
    bottom: auto;
    width: 90%;
  }
  .create-left, .create-right{
    padding: 5px;
  }  
  .create-left{
    border-right: None;
    border-bottom: 1px solid rgb(200,200,200);
    margin-bottom: 10px;    
  }  
  .examples {
    gap: 30px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 16px;
  }

  .example {
    width: 65%;
    margin-right: 16px;
  }
}