body {
    font-family: 'Merriweather', 'Georgia', serif;
    background-color: #f0f0f0;
    color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.container {
    background: #fff;
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: auto; /* Keep content from overlapping the footer */
}

h1 {
    margin-bottom: 20px;
    color: #000;
    font-weight: 700;
    font-size: 24px;
    font-family: 'Merriweather', 'Georgia', serif;
    transition: color 0.3s ease;
}

form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
}

input {
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 16px;
    background-color: #fff;
    color: #000;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Merriweather', 'Georgia', serif;
    transition: all 0.3s ease;
}

input:focus {
    border-color: #000;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.button-primary {
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    font-size: 16px;
    font-family: 'Merriweather', 'Georgia', serif;
    transition: background-color 0.3s, transform 0.3s ease;
}

.button-primary:hover {
    background-color: #333;
    transform: scale(1.05);
}

.qr-reader {
    width: 100%;
    margin: 20px 0;
}

.contacts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contacts-list li {
    background-color: #fff;
    margin: 10px 0;
    padding: 12px;
    border: 1px solid #000;
    border-radius: 6px;
    text-align: left;
    cursor: grab;
    transition: background-color 0.3s, box-shadow 0.3s;
    font-family: 'Merriweather', 'Georgia', serif;
}

.contacts-list li:hover {
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container:hover {
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
}

/* Footer styles */
footer {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 10px 0;
    width: 100%;
    background-color: #f9f9f9;
    border-top: 1px solid #ddd;
    position: relative;
    bottom: 0;
}
