body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 40px;
    padding: 0;
}

h1 {
    color: #2c3e50;
}

textarea, input[type="text"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

textarea:focus, input[type="text"]:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

input[type="submit"] {
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

input[type="submit"]:hover {
    background-color: #2980b9;
}

.result {
    background-color: #ecf0f1;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
}

button {
    padding: 10px 20px;
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

button:hover {
    background-color: #27ae60;
}

.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.success {
    background-color: #d4edda;
    color: #155724;
}

.danger {
    background-color: #f8d7da;
    color: #721c24;
}

label {
    font-weight: bold;
}

.instructions {
    background-color: #ecf0f1;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.instructions h2 {
    color: #2980b9;
}

.instructions p {
    margin: 10px 0;
}

.encryption-decryption-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.encryption-section, .decryption-section {
    width: 48%;
    margin-bottom: 20px;
}

.keygen-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
}

.keygen-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .encryption-section, .decryption-section {
        width: 100%;
    }
}
