body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 1200px;
}

h1 {
    text-align: center;
}

.template-selection {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.template-selection label {
    margin: 0 10px;
    cursor: pointer;
}


.template-selection {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.template-selection label {
    margin: 0 10px;
}

.template-card {
    padding: 10px 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.template-card:hover {
    background-color: #f0f0f0;
}

.template-selection input[type="radio"] {
    display: none;
}

.template-selection input[type="radio"]:checked+.template-card {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.editor-preview-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.editor-section,
.preview-section {
    width: 48%;
}

.input-section {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.input-section label {
    flex: 1;
}

.input-section input[type="text"],
.input-section textarea,
.input-section input[type="number"] {
    flex: 2;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    margin-left: 10px;
}

.input-section input[type="color"] {
    margin-left: 10px;
    padding: 0;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: 1px solid #ccc;
    position: relative;
    overflow: hidden;
}

.input-section input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border-radius: 50%;
}

.input-section input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#shelf-talker-preview {
    border: 1px solid #ccc;
    padding: 20px;
    min-height: 300px;
    background: #fff;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.template-basic {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.template-basic h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.template-basic p {
    font-size: 16px;
    margin-bottom: 10px;
}

.template-basic h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

@media (max-width: 768px) {

    .editor-section,
    .preview-section {
        width: 100%;
        margin-bottom: 20px;
    }

    .editor-preview-container {
        flex-direction: column;
        align-items: center;
    }

    #shelf-talker-preview {
        max-width: 100%;
    }
}



.template-basic {
    position: relative;
    padding: 20px;
    overflow: hidden;
    background-color: #ffffff;
    text-align: center;
}

.template-basic h2#preview-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 10px;
}

.template-basic p#preview-description {
    font-size: 18px;
    margin-bottom: 20px;
}

.template-basic h3#preview-price {
    font-size: 48px;
    font-weight: bold;
    color: #ff0000;
    margin-bottom: 20px;
}

.template-basic p#preview-additional {
    font-size: 14px;
    font-style: italic;
    color: #555555;
    margin-top: 20px;
}

.template-basic::before,
.template-basic::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.template-basic::before {
    width: 100px;
    height: 100px;
    top: -50px;
    left: -50px;
}

.template-basic::after {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
}



.template-classic {
    position: relative;
    padding: 30px;
    border: 1px solid #000;
    border-radius: 4px;
    background-color: #ffffff;
    text-align: left;
    font-family: 'Times New Roman', Times, serif;
}

.template-classic h2#preview-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
    text-align: center;
}

.template-classic p#preview-description {
    font-size: 16px;
    margin-bottom: 20px;
    color: #000;
    line-height: 1.5;
    text-align: justify;
}

.template-classic h3#preview-price {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin-bottom: 20px;
    text-align: right;
}

.template-classic p#preview-additional {
    font-size: 14px;
    font-style: italic;
    color: #000;
    margin-top: 20px;
    text-align: left;
}




.template-modern {
    position: relative;
    padding: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.template-modern h2#preview-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    text-transform: uppercase;
}

.template-modern p#preview-description {
    font-size: 16px;
    margin-bottom: 25px;
    color: #666;
    line-height: 1.5;
}

.template-modern h3#preview-price {
    font-size: 40px;
    font-weight: 700;
    color: #ff5722;
    margin-bottom: 25px;
}

.template-modern p#preview-additional {
    font-size: 14px;
    font-style: normal;
    color: #888;
    margin-top: 25px;
    text-align: right;
}

.template-modern::before,
.template-modern::after {
    content: '';
    position: absolute;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.template-modern::before {
    width: 100px;
    height: 100px;
    top: -50px;
    left: -50px;
    transform: rotate(45deg);
}

.template-modern::after {
    width: 150px;
    height: 150px;
    bottom: -75px;
    right: -75px;
    transform: rotate(45deg);
}

.template-modern::before,
.template-modern::after,
.template-modern::nth-child(3)::before,
.template-modern::nth-child(3)::after {
    border: 2px solid rgba(0, 0, 0, 0.1);
    ;
}

.template-modern::nth-child(3)::before {
    width: 80px;
    height: 80px;
    top: 20px;
    left: 20px;
    transform: rotate(0deg);
}

.template-modern::nth-child(3)::after {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    transform: rotate(0deg);
}
