/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f8bbd0, #e1bee7, #bbdefb);
    background-attachment: fixed;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg.jpg') no-repeat center center/cover;
    opacity: 0.1;
    z-index: -1;
}

.container {
    max-width: 800px;
    width: 95%;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #e91e63;
    margin-bottom: 30px;
    font-size: 28px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.form-container {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 8px;
    color: #7b1fa2;
}

input[type="text"], 
select, 
textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input[type="text"]:focus, 
select:focus, 
textarea:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 2px rgba(233, 30, 99, 0.2);
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* 贺卡模板选择 */
.card-templates {
    margin-top: 10px;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
}

.template {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s;
    height: 80px;
    position: relative;
}

.template:hover {
    transform: translateY(-5px);
    border-color: #e91e63;
}

.template.selected {
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.3);
}

.template img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 按钮样式 */
button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-create {
    background-color: #e91e63;
    color: white;
    margin-top: 10px;
}

.btn-create:hover {
    background-color: #c2185b;
    transform: translateY(-2px);
}

.btn-flip {
    background-color: #9c27b0;
    color: white;
}

.btn-flip:hover {
    background-color: #7b1fa2;
}

.btn-share {
    background-color: #2196f3;
    color: white;
}

.btn-share:hover {
    background-color: #1976d2;
}

.btn-back {
    background-color: #757575;
    color: white;
}

.btn-back:hover {
    background-color: #616161;
}

.btn-copy {
    background-color: #4caf50;
    color: white;
    padding: 8px 16px;
}

.btn-copy:hover {
    background-color: #388e3c;
}

/* 贺卡预览 */
.card-preview {
    text-align: center;
}

.card-container {
    perspective: 1500px;
    margin: 30px auto;
    width: 100%;
    max-width: 450px;
    height: 60vh;
    max-height: 500px;
}

.card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-front, 
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-front {
    background-color: #fff;
}

.card-back {
    background: linear-gradient(135deg, #fff5f8 0%, #fff 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.card-back::before {
    content: '❀';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: rgba(233, 30, 99, 0.2);
    transform: rotate(-15deg);
}

.card-back::after {
    content: '❀';
    position: absolute;
    bottom: 10px;
    left: 15px;
    font-size: 24px;
    color: rgba(233, 30, 99, 0.2);
    transform: rotate(15deg);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fff;
}
.card.flipped {
    transform: rotateY(180deg);
}
.card-content {
    padding: clamp(15px, 4%, 25px);
    text-align: center;
    min-height: 150px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(10px, 2vh, 15px);
}

.card-recipient {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #d81b60;
    font-weight: 600;
    margin-bottom: 0.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.card-greeting {
    font-size: clamp(1rem, 3vw, 1.3rem);
    line-height: 1.5;
    color: #455a64;
    padding: 0.6em;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin: 0.3em 0;
}

.card-sender {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #5d4037;
    font-style: italic;
    margin-top: 0.3em;
}
.card-recipient {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 22px;
}
.card-greeting {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #333;
}
.card-sender {
    font-style: italic;
    color: #9c27b0;
    text-align: right;
    margin-top: 20px;
}
/* 卡片动作按钮 */
.card-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
.share-link {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.share-link p {
    color: #7b1fa2;
    margin-bottom: 15px;
    font-weight: bold;
}
.link-container {
    display: flex;
    gap: 10px;
}
#share-url {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f5f5f5;
    cursor: text;
}
/* 动画效果 */
@keyframes cardFlip {
    from {
        transform: rotateY(0);
    }
    to {
        transform: rotateY(180deg);
    }
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        margin: 10px;
    }
    .form-container {
        gap: 15px;
    }
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .template {
        height: 70px;
    }
    .card-container {
        width: 100%;
        height: 50vh;
        margin: 15px auto;
    }
}
@media (max-width: 480px) {
    .container {
        padding: 10px;
        margin: 5px;
    }
    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .form-group {
        margin-bottom: 10px;
    }
    input[type="text"],
    select,
    textarea {
        padding: 8px;
        font-size: 14px;
    }
    .template {
        height: 60px;
    }
    .card-container {
        height: 45vh;
    }
    .card-content {
        padding: 10px;
    }
    .card-recipient {
        font-size: 18px;
    }
    .card-greeting {
        font-size: 14px;
    }
    .card-sender {
        font-size: 12px;
    }
    button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}
@media (max-width: 360px) {
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, auto);
    }
    .template {
        height: 70px;
    }
}
@media (max-width: 480px) {
    h1 {
        font-size: 22px;
    }
    .container {
        padding: 12px;
        width: 95%;
        margin: 10px auto;
    }
    .card-container {
        width: 100%;
        max-width: 320px;
        height: 400px;
        margin: 15px auto;
    }
    .template {
        height: 60px;
    }
    .template-grid {
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
    }
    input[type="text"], 
    select, 
    textarea {
        padding: 10px;
        font-size: 14px;
        width: 100%;
    }
    button {
        padding: 10px 18px;
        font-size: 14px;
        width: 100%;
        margin: 5px 0;
    }
    .form-group {
        margin-bottom: 12px;
        width: 100%;
    }
    .card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .link-container {
        flex-direction: column;
        gap: 8px;
    }
    #share-url {
        width: 100%;
    }
    .btn-copy {
        width: 100%;
    }
}