* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fcf3e1; /* A light, warm, honey-like color for Rosh Hashanah */
    background-size: cover;
    background-position: center;
    direction: rtl;
    color: #5a4424;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #8b0000; /* Darker red for Rosh Hashanah theme */
}

.logo {
    max-width: 100px;
    display: block;
    margin: 0 auto 20px;
}

.input-section {
    margin-bottom: 30px;
}

textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 2px solid #e0b06b; /* Gold/honey color for border */
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 15px;
    background-color: #fff9eb;
}

button {
    background-color: #a04000; /* Dark orange/brown for button */
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #803000; /* Darker orange/brown on hover */
}

.output-section {
    display: none;
    margin-top: 30px;
    background-color: #fff9eb;
    border: 2px solid #e0b06b; /* Gold/honey color for border */
    border-radius: 8px;
    padding: 20px;
}

.cipher-output {
    min-height: 100px;
    font-size: 28px;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 10px;
    letter-spacing: 3px;
    text-align: right;
    word-wrap: break-word;
    word-break: keep-all;
    white-space: pre-wrap;
    direction: rtl;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.legend {
    margin-top: 40px;
    background-color: #fff9eb;
    border: 2px solid #e0b06b; /* Gold/honey color for border */
    border-radius: 8px;
    padding: 15px;
}

.legend h3 {
    margin-bottom: 10px;
    color: #8b0000; /* Darker red for Rosh Hashanah theme */
}

.download-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content; /* Allow content to define width, making it more portrait-like */
    padding: 20px;
    background-color: #fff9eb;
    border: 2px solid #e0b06b;
    border-radius: 8px;
}

.download-container .legend-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: right;
}

.legend-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-symbol {
    width: 40px;
    height: 40px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    background-color: #fcf3e1;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
}

.legend-symbol {
    font-size: 20px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}