/* styles.css */

/* Main Section */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px;
 
    box-sizing: border-box;
}

/* Email Validator Section */
.email-validator {
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 40px 30px;
    width: 100%;
    max-width: 1240px;
    text-align: center;
    margin: 20px auto;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


/* Headings */
.email-validator h1 {
    color: #000000;
    font-size: 2.0em;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}



.email-validator p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555;
    line-height: 1.6;
}

/* Input Field */
.email-input {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.email-input:focus {
    border-color: #0073e6;
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.5);
    outline: none;
}

/* Button */
.validate-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: #fff;
    font-size: 1.2em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.validate-button:hover {
    background: linear-gradient(135deg, #005bb5, #003d80);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.validate-button:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

/* Success and Error Messages */
.success, .error {
    margin-top: 25px;
    font-size: 1.1em;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
    text-align: center;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    box-shadow: 0 4px 8px rgba(0, 255, 0, 0.2);
}

.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.2);
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */

/* Tablet View */
@media (max-width: 768px) {
    .email-validator {
        padding: 30px 20px;
        max-width: 90%;
    }

    .email-validator h1 {
        font-size: 2em;
    }

    .email-validator p {
        font-size: 1em;
    }

    .email-input,
    .validate-button {
        font-size: 1em;
        padding: 12px;
    }
}

/* Mobile View */
@media (max-width: 480px) {
    .email-validator {
        padding: 20px 15px;
        max-width: 95%;
        text-align: center;
    }

    .email-validator h1 {
        font-size: 1.8em;
    }

    .email-validator p {
        font-size: 0.9em;
    }

    .email-input,
    .validate-button {
        font-size: 0.9em;
        padding: 10px;
    }

    .success, .error {
        font-size: 0.9em;
        padding: 10px;
    }
}
