#customize-button {
display: inline-block;
margin: 10px 0;
padding: 10px 20px;
background-color: #ff5cac;
color: #fff;
border: none;
cursor: pointer;
font-size: 16px;
}
#customize-popup {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: white;
border: 1px solid #ccc;
padding: 20px;
z-index: 1000;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border-radius: 10px;
max-width: 850px;
width: 90vh;
height: calc(100vh - 200px);
overflow: hidden;
max-height: 80vh; }
#close-popup {
position: absolute;
top: 0px;
right: 5px;
cursor: pointer;
font-size: 20px;
}
#customize-content {
display: flex;
height: 100%;
}
#left-content {
background-color: #fceef5;
position: relative;
width: 50%;
display: flex;
justify-content: center;
align-items: center;
}
#book-cover {
width: 100%;
height: 100%;
background-size: 165% 77%;
background-repeat: no-repeat;
background-position: 52% 54%;
position: relative;
}
#right-content {
width: 50%;
position: relative;
display: flex;
overflow-y: scroll;
height: 100%;
border-width: 0.5;
}
#customization-options {
position: absolute;
top: 0;
left: 0;
z-index: 2000;
background: rgba(255, 255, 255, 0.8);
padding: 20px;
display: block !important;
}
#color-options {
display: flex;
flex-wrap: wrap;
gap: 20px; 
max-width: 380px;
margin-top: 10px;
margin-bottom: 10px;
}
.color-square {
width: 40px;
height: 40px;
border: 1px solid #ccc;
cursor: pointer;
border-radius: 5%;
}
#design-images {
display: flex;
flex-wrap: wrap;
margin-bottom: 10px;
}
.design-image {
width: 60px;
height: 60px;
object-fit: cover;
margin-right: 5px;
margin-bottom: 5px;
cursor: pointer;
}
#remove-images {
background-color: #dc3545;
color: white;
border: none;
padding: 8px 16px;
margin-top: 10px;
cursor: pointer;
border-radius: 5px;
margin-bottom: 15px;
}
#remove-images:hover {
background-color: #c82333;
}
#uploaded-image-overlay {
position: absolute;
top: 50%; left: 50%; transform: translate(-50%, -49%); max-width: 85%; max-height: 100%; background-size: contain; background-position: center; background-repeat: no-repeat; z-index: 2;
}
#image-crop-panel {
margin-top: 10px;
display: block;
}
#crop-container {
width: 100%;
overflow: hidden;
height: 300px;
padding-bottom: 5%;
}
#crop-image {
max-width: 100%;
}
#text-controls {
display: flex;
align-items: center;
margin-top: 10px;
}
#text-align-icons {
margin-right: 10px;
}
.align-icon img {
width: 24px;
cursor: pointer;
margin-right: 5px;
}
#text-size-controls {
margin-right: 10px;
}
#text-size-controls span {
cursor: pointer;
margin: 0 5px;
font-size: 18px;
}
#text-color {
margin-top: 5px;
}
#font-selection {
margin-top: 5px;
width: 100%;
}
#custom-text, #custom-text-bottom {
text-align: center;
width: 70%;
}
#add-to-cart-btn {
background-color: #ff5cac;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
margin-top: 20px;
font-size: 16px;
}
#add-to-cart-btn:hover {
background-color: #ff5cac;
}
.custom-text {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
font-size: 16px;
color: #000;
font-family: Arial, sans-serif;
z-index: 2;
}
#text-controls-bottom {
display: flex;
align-items: center;
margin-top: 10px;
}
#text-align-icons-bottom {
margin-right: 10px;
}
.align-icon-bottom img {
width: 24px;
cursor: pointer;
margin-right: 5px;
}
#text-size-controls-bottom {
margin-right: 10px;
}
#text-size-controls-bottom span {
cursor: pointer;
margin: 0 5px;
font-size: 18px;
}
.text-color-square-top {
width: 20px;
height: 20px;
display: inline-block;
margin-right: 5px;
cursor: pointer;
border: 0.5px solid #000;
}
#text-color-options {
margin-top: 5px;
}
.text-color-square {
width: 20px;
height: 20px;
display: inline-block;
margin-right: 5px;
cursor: pointer;
border: 0.5px solid #000;
}
#font-selection-bottom {
margin-top: 5px;
width: 100%;
}
.custom-text-bottom {
position: absolute;
left: 50%;
bottom: 22%;
transform: translateX(-50%);
font-size: 16px;
color: #000;
font-family: Arial, sans-serif;
z-index: 2;
}
#cropper-controls button {
display: inline-block;
margin-right: 10px;
padding: 0; background: none; border: none; cursor: pointer;
font-size: 22px; color: #000; }
#cropper-controls {
display: flex;
align-items: center; justify-content: flex-start; gap: 10px; } #uploaded-image-overlay {
background-size: contain;
background-position: center;
background-repeat: no-repeat;
width: 100%; height: 100%; }