/* Base styles for mobile and desktop */
body {
    font-size: 1rem;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.5;
}

/* Center h3 titles */
h3 {
    text-align: center;
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
}

/* Text box styling with 1rem padding on sides */
textarea {
    font-size: 1rem;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: calc(100% - 2rem); /* Account for padding */
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

/* Form elements */
label {
    font-size: 1rem;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="submit"], button {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
}

input[type="submit"]:hover, button:hover {
    background-color: #005a8b;
}

/* Paragraph text */
p {
    font-size: 1rem;
    margin: 1rem 0;
}

/* Form container */
form {
    margin-bottom: 2rem;
}

/* Copy button styling */
#copy-button {
    display: block;
    margin: 1rem auto 0 auto;
}

/* Success popup styling */
.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
    max-width: 300px;
}

.popup.show {
    transform: translateX(0);
    opacity: 1;
}

.popup-content {
    display: flex;
    align-items: center;
}

.popup-text {
    font-size: 1rem;
    font-weight: bold;
}

/* Responsive adjustments for better mobile experience */
@media screen and (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    textarea {
        min-height: 150px;
    }
    
    input[type="submit"], button {
        width: 100%;
        margin-top: 1rem;
    }
}
