body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
                 Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: white;
    margin: 20px auto;
    padding: 20px;
    border-radius: 16px;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.card p {
    color: #666;
    line-height: 1.6;
}

.card ul,
.card ol {
    margin-left: 40px;
}

.card li {
    margin-bottom: 10px;
}

.input-section {
    background-color: white;
    margin: 20px auto;
    padding: 20px;
    border-radius: 16px;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.input-section label {
    font-size: 18px;
    margin-right: 10px;
}

.input-section input[type="number"] {
    width: 200px;
    padding: 8px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
}

.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    overflow-x: auto; 
    white-space: nowrap; 
}

.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px; 
}

.slider label {
    margin-bottom: 5px;
    font-size: 14px; 
    color: #333;
}

.slider input[type="range"] {
    width: 100px; 
}

.slider input[type="range"]:focus {
    outline: none;
    box-shadow: 0 0 5px #007aff;
}

.input-section button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #1568D5;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.input-section button:hover {
    background-color: #005bb5;
}

.input-section button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.result-section {
    background-color: white;
    margin: 20px auto;
    padding: 20px;
    border-radius: 16px;
    max-width: 800px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.result-section h2,
.result-section h3 {
    text-align: center;
}

.result-section textarea {
    width: 100%;
    height: 150px;
    font-size: 16px;
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 8px;
    resize: vertical;
    box-sizing: border-box;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
.button-group button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #1568D5;
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.button-group button:hover {
    background-color: #185abc;
    transform: scale(1.05);
}

.button-group button:disabled {
    background-color: #bbb;
    cursor: not-allowed;
}

#download-txt-btn,
#download-fasta-btn {
    background-color: #ff6f00;
    color: #333;
}

#download-txt-btn:hover,
#download-fasta-btn:hover {
    background-color: #cc5800;
}

#base-composition {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    border-collapse: collapse;
}

#base-composition th,
#base-composition td {
    border: 1px solid #ccc;
    padding: 10px 15px;
    text-align: center;
}

#base-composition th {
    background-color: #f8f8f8;
    font-weight: bold;
}

#base-composition td {
    color: #333;
}

@media screen and (max-width: 600px) {
    .input-section input[type="number"] {
        width: 100%;
        max-width: 300px;
    }

    .button-group {
        flex-direction: column;
    }

    #base-composition th,
    #base-composition td {
        padding: 8px 10px;
    }

    
    .slider-container {
        flex-wrap: nowrap; 
    }

    .slider input[type="range"] {
        width: 60px; 
    }

    .slider label {
        font-size: 12px; 
    }

    .slider {
        min-width: 60px; 
    }
}
.lab {
    font-size: 1.4em;
    font-weight: bold;
    text-align: center;
    display: block;
    margin: 20px 0;
}