/* Morse Code Translator - Single Column Layout */

/* Ensure proper centering and layout */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.tool-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Tool header centering */
.tool-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Main tool container */
.tool-container.main-tool-bordered {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    padding: 2rem;
    background: #fff;
    border: 2px solid #e53935;
    border-radius: 12px;
    width: 100%;
    box-sizing: border-box;
}

.tool-input {
    margin-bottom: 1.5rem;
}

.tool-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

#inputText {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 120px;
    box-sizing: border-box;
}

#inputText:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

.conversion-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5em;
    align-items: center;
    margin: 1.5em 0;
}

.conversion-options .tool-button {
    padding: 0.8rem 1.5rem;
    border: 2px solid #8b5cf6;
    background: white;
    color: #8b5cf6;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.conversion-options .tool-button:hover {
    background: #8b5cf6;
    color: white;
}

.result-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.result-container h3 {
    color: #e53935;
    margin-bottom: 1rem;
    text-align: center;
}

#morse-result {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    min-height: 80px;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    word-break: break-word;
}

.result-container .tool-button {
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin: 0 0.5rem;
    border: none;
    transition: all 0.2s;
}

/* SEO section */
.seo-section {
    max-width: 900px;
    margin: 2.5rem auto;
    text-align: center;
    width: 100%;
}

/* Related Tools Section */
.related-tools-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 800px;
}

.related-tool {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
    padding: 1.2em 1em;
    width: 170px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.related-tool:hover {
    box-shadow: 0 4px 16px rgba(229, 57, 53, 0.3);
    transform: translateY(-3px) scale(1.03);
    color: #e53935;
    border-color: #e53935;
}

.related-tool .icon {
    font-size: 2.1em;
    margin-bottom: 0.3em;
    display: block;
}

.related-tool h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: inherit;
}

.related-tool p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .tool-container.main-tool-bordered {
        margin: 1rem;
        padding: 1.5rem;
    }

    .conversion-options {
        flex-direction: column;
        align-items: center;
    }

    .conversion-options .tool-button {
        width: 100%;
        max-width: 300px;
    }

    .related-tools-grid {
        flex-direction: column;
        gap: 1em;
    }

    .related-tool {
        width: 100%;
    }
} 