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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 5px;
    color: #555;
}

input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color : #f3f7c9; 
}

input[type="checkbox"] {
    margin-right: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    font-weight: normal;
}

button {
    display: block;
    width: 100%;
    padding: 10px;
    background: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}
button:hover {
    background: #0056b3;
}

.error {
    margin-top: 20px;
    padding: 10px;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    display: none;
}

.result {
    white-space: pre-line;
    margin-top: 20px;
    padding: 10px;
    color: #12087d;
    background: #ddf8d7;
    border: 1px solid #dff5c6;
    border-radius: 4px;
    display: none;
}

.description {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
}

/* New class for <ul> */
.description-list {
    font-size: 0.9em;
    color: #777;
    margin: 0;
    padding-left: 20px; /* Matches typical text alignment */
    list-style-type: disc; /* Optional: keeps bullet points */
}

/* Paste Button */
.input-with-paste {
    display: flex;
    width: 100%;
}

.input-with-paste input[type="text"] {
    flex: 1; /* Takes remaining space */
    min-width: 0; /* Prevents overflow */
    padding: 8px;
    background-color: #f3f7c9;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    border-right: none; /* Remove right border for seamless connection */
}

.paste-button {
    width: auto; /* Let content determine width */
    padding: 8px 12px;
    background: #e9ecef;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    white-space: nowrap;
    color: #495057;
    font-size: 0.9em;
    transition: background-color 0.2s;
    flex-shrink: 0; /* Prevent button from shrinking */
}

/* Focus states */
.input-with-paste:focus-within input[type="text"] {
    border-color: #66afe9;
    outline: 0;
    box-shadow: none; /* Remove shadow to prevent visual issues */
}

.input-with-paste:focus-within .paste-button {
    border-color: #66afe9;
}


/* Mobile responsiveness */
@media (max-width: 500px) {
    .paste-button {
        padding: 8px 10px;
        font-size: 0.8em;
    }
    
    .input-with-paste input[type="text"] {
        padding-right: 80px;
    }
}

.back-arrow {
    position: fixed;
    text-decoration: none !important;
    font-size: 2.0em;
    color: rgba(0,0,0,0.4);
    z-index: 100;
    background: rgba(255,255,255,0.7);
    padding: 5px 10px;
    border-radius: 50%;
}

/* Mobile responsiveness */
@media (max-width: 500px) {
    body {
        font-size: 18px; /* Larger base font size for mobile */
    }

    .container {
        margin: 10px;
        padding: 15px;
    }

    .radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .description {
        font-size: 0.95em; /* Slightly larger than desktop for readability */
    }

    .description-list {
        padding-left: 25px; /* Slightly more indent on mobile for clarity */
    }

    button {
        font-size: 16px; /* Adjusted for mobile */
    }
    
}