/* Import a fancy Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

h1 {
    font-size: 32px;
    text-align: center;
    color: #444;
}

p {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.homepage-container {
    text-align: center;
}

.home-button {
    padding: 12px 25px;
    font-size: 18px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.home-button:hover {
    background-color: #45a049;
}

/* For converter page */
h2 {
    text-align: center;
    color: #444;
    font-size: 26px;
    background: linear-gradient(90deg, #FF416C, #FF4B2B, #1FA2FF);
    -webkit-background-clip: text;
    color: transparent;
    animation: gradient 5s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

h3 {
    text-align: center;
    color: #444;
}

.form-container {
    max-width: 500px;
    width: 100%;
    margin: 15px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.input-section {
    margin-bottom: 15px;
}

.input-section input, .input-section textarea {
    width: 50%;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #45a049;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    cursor: pointer;
}

#copyButton {
    display: block;
    margin-top: 10px;
    background-color: #007BFF;
    width: 100%;
    padding: 10px;
}

#copyButton:hover {
    background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .form-container {
        padding: 10px;
        margin: 0;
    }

    .input-section input, button, #generatedHtml {
        font-size: 14px;
        width: 100%;
        margin: 8px 0;
    }

    #generatedHtml {
        height: 120px;
    }

    #copyButton {
        width: 100%;
    }
}
