body {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
}

.container {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px; /* Ensure a maximum width for large screens */
}

img {
    height: 300px;
}

textarea, input {
    width: 80%;
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#shift {
    width: 30%;
}

button {
    padding: 10px 20px;
    margin: 10px;
    border: none;
    border-radius: 4px;
    background-color: #007BFF;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

#encrypt {
    background-color: #009c27;
}

#decrypt {
    background-color: #007BFF;
}

#result {
    font-weight: bold;
    color: #333;
}


/* Tablet/iPad View */
@media screen and (max-width: 1024px) {

    body {
        height: 50vh;
    }
    .container {
        max-width: 95%;
        padding: 0%;
    }
    textarea, input {
        width: 90%;
    }

    button {
        width: 100%;
        margin: 5px 0;
    }

    #shift {
        width: 30%;
    }
}

/* Mobile View */
@media screen and (max-width: 601px) {

    body {
        height: auto;
    }

    img {
        height: 200px;
    }

    #shift {
        width: 50%;
    }
}
