@font-face{
  font-family: 'Oswald';
  src: url('./fonts/Oswald-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face{
  font-family: 'Lora';
  src: url('./fonts/Lora-Regular.ttf') format('truetype');
  font-weight: regular;
  font-style: normal;
  font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  font-family: 'Georgia', serif;
  background: #4f2845;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.editor-panel, .preview-panel {
    background: #D1C4A4;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

input[type="text"], textarea {
    background-color: #D1C4A4;
    width: 100%;
    padding: 12px;
    border: 2px solid #333;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

input[type="text"]:focus, textarea:focus {
    outline: none;
    border-color: #333;
}

textarea {
    background-color: #D1C4A4;
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.logo-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.logo-option {
    padding: 15px;
    border: 3px solid #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    background: #D1C4A4;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.logo-option:hover {
    border-color: #222;
    transform: translateY(-2px);
}

.logo-option.active {
    border-color: #333;
    background: #ecdcab;
}

.logo-option svg {
    max-width: 100%;
    max-height: 60px;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button {
    padding: 12px 24px;
    background: #333;
    color: #D1C4A4;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: inherit;
}

button:hover {
    background: #555;
}

button:active {
    transform: scale(0.98);
}

/* Preview Styles */
.preview-container {
    background: #D1C4A4;
    padding: 40px;
    border: 1px solid #141414;
    min-height: 500px;
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.preview-header svg {
    margin: 0 auto;
}

.preview-title {
    text-align: center;
    font-size: 36px;
    font-weight: 600;
    font-family: 'Oswald';
    margin: 20px 0;
    line-height: 1.2;
    color: #000;
}

.preview-content {
    font-size: 16px;
    font-family: 'Lora';
    line-height: 1.8;
    color: #000;
    text-align: justify;
    column-count: 1;
    text-indent: 20px;
}

.preview-content p {
    margin-bottom: 15px;
}

.logo-img,
#previewLogo img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
    }

    .preview-content {
        column-count: 1;
    }

    .preview-title {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    body {
        padding: 10px;
    }

    .editor-panel, .preview-panel {
        padding: 20px;
    }

    .preview-container {
        padding: 20px;
    }

    .preview-title {
        font-size: 24px;
    }

    .preview-content {
        font-size: 14px;
        text-indent: 15px;
    }

    .logo-selector {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .export-buttons {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}

.status-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

footer {
  width: 100%;
  margin-top: 30px;
  padding: 16px 20px;

  background-color: #333;
  color: #D1C4A4;

  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  letter-spacing: 0.05em;
}
.container {
  flex: 1;
}


@media (max-width: 640px) {
  footer {
    font-size: 13px;
    padding: 14px 10px;
  }
}
