:root {
    --form-element-spacing-vertical: 0.25rem;
    --form-element-spacing-horizontal: 0.5rem;
    --font-size: 1.1rem;
    --font-family: 'Playfair Display', serif;
    --size-lg: 1600px;
}

.container {
    max-width: var(--size-lg);
}

body {
    background: #fafafa;
}

main.container {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

.logo {
    width: 2rem;
    height: 2rem;
    margin-right: 0.25rem;
    display: inline-block;
}

h1 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    /* margin-bottom: 1.5rem; */
    margin-bottom: 0.5rem;
    justify-content: center;
}

.subtitle {
    font-size: 0.85rem;
    color: var(--muted-color);
    font-family: var(--font-family);
    margin-bottom: 2.5rem;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    gap: 1rem;
    padding: 2rem;
    min-height: 100vh;
}

.sidebar {
    background: var(--card-background-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar h2 {
    margin-bottom: 1.5rem;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1.5rem;
}

.sidebar label {
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-family);
}

.sidebar select,
.sidebar input[type="color"],
.sidebar textarea {
    width: 100%;
    margin-top: 0.5rem;
}

.sidebar input[type="color"] {
    margin-top: 0.5rem;
    padding: 0;
    height: 2rem;
    width: 2rem;
    display: block;
}

.sidebar input[type="color"]:hover {
    cursor: pointer;
}

.sidebar input[type="range"] {
    margin-top: 0.5rem;
    width: 100%;
}

.sidebar button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.preview {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fafafa;
    border-radius: 8px;
    min-height: 500px;
    box-shadow: var(--card-box-shadow);
    width: 100%;
    height: 100%;
    min-height: 400px;
}

#previewContainer {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    aspect-ratio: auto;
    max-width: 100%;
    max-height: 100%;
}

#fullSizeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-content {
    text-align: center;
    padding: 0;
    word-wrap: break-word;
    max-width: 90%;
}

.ads-section {
    /* background: var(--card-background-color); */
    /* padding: 1.5rem; */
    border-radius: 8px;
    height: fit-content;
}

.ads-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 1.5rem;
}

.ads-section article {
    background: var(--background-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 0;
}

.ads-section article.subscribe-iframe-container {
    padding: 0;
}

.ads-section article.subscribe-iframe-container iframe {
    border-radius: 8px;
}

.ads-section article:last-child {
    margin-bottom: 0;
}

.ads-section article h3 {
    margin-bottom: 1rem;
    font-family: var(--font-family);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-section article img.ads-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.25rem;
    display: inline-block;
}

.ads-section article p {
    margin-bottom: 1.5rem;
    color: var(--muted-color);
    font-family: var(--font-family);
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: 300px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .ads-section {
        display: none;
    }

    .preview {
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .preview {
        min-height: 300px;
        /* padding: 1rem; */
    }

    .sidebar {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .preview {
        min-height: 250px;
    }

    main.container {
        padding: 0;
        margin: 0;
    }
}

body>footer {
    text-align: center;
    padding: 0;
    margin-bottom: 1rem;
}

body>footer p {
    font-size: 0.8rem;
    color: var(--muted-color);
    font-family: var(--font-family);
    margin-bottom: 0;
}
