body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}
button {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
button:hover {
    transform: scale(1.05);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}
.email-row:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease;
}
.email-body {
    animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

header {
    background-color: #333;
    color: white;
    padding: 15px 0;
}

main {
    padding: 20px;
}

#email-section {
    margin-bottom: 20px;
}

#email-display {
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: white;
    display: inline-block;
    margin: 10px 0;
}

button {
    padding: 10px 20px;
    border: none;
    background-color: #28a745;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

#inbox {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}
.email-icon {
    margin-right: 8px;
    font-size: 16px;
    vertical-align: middle;
}
.unread-email {
    font-weight: bold;
    background-color: #f8f9fa;
    cursor: pointer;
}
.read-email {
    font-weight: normal;
    color: #6c757d;
}
footer {
    margin-top: 20px;
    background-color: #333;
    color: white;
    padding: 10px 0;
}
.copy-message {
    position: fixed;
    top: 20px; /* Set message at the top */
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 1;
    animation: fadeOut 2s ease-in-out;
    z-index: 1000; /* Ensure it's above everything */
}
@keyframes fadeOut {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}
