body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    background-color: #0a0a0a;
    color: white;
    font-family: Arial, sans-serif;
    text-align: center;
    transition: all 0.3s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #0a0a0a;
    color: white;
    transition: all 0.3s ease;
}
.header {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #4CAF50; 
    transition: all 0.3s ease;
}

.container {
    max-width: 600px;
    padding: 20px;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    animation: fadeIn 2s ease-in-out;
    transition: all 0.3s ease;
}

p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #ccc; 
    transition: all 0.3s ease;
}

.button {
    padding: 12px 24px;
    font-size: 1.2em;
    background-color: transparent;
    border: 2px solid #4CAF50; 
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px; 
    text-decoration: none; 
}

.button:hover {
    background-color: #4CAF50; 
    color: black;
}

.button:hover ~ .overlay {
    background-color: white;
    color: black;
}

.button:hover ~ .overlay .header,
.button:hover ~ .overlay h1,
.button:hover ~ .overlay p,
.button:hover ~ .overlay .footer {
    color: black;
}

.footer {
    position: absolute;
    bottom: 20px;
    font-size: 0.9em;
    color: #888; 
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    p {
        font-size: 1em;
    }
    .button {
        font-size: 1em;
        padding: 10px 20px;
    }
    .header {
        font-size: 1.2em;
    }
    .footer {
        font-size: 0.8em;
    }
}