@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;600&display=swap');

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply Poppins as the main font */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #f4f4f4;
}

header h1 {
    font-family: "Pacifico", sans-serif;
    font-size: 2rem;
    color: #006666;
    text-align: center;
    margin: 1.8rem;
    margin-bottom: 1.2rem;
}

header h2 {
    font-size: 2.4rem;
    margin: auto;
    margin-bottom: -40px;
    text-align: center;
    width: 350px;
}

/* Bigger container with more padding */
.container {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Increase the size of form elements */
.converter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Label styling */
.converter label {
    font-size: 18px;
    font-weight: 600;
}

/* Larger input field */
.number-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 18px;
}



/* Bigger button */
#convert-btn {
    background: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

#convert-btn:hover {
    background: #0056b3;
}

/* Centered and styled output */
.output {
    max-width: 500px;
    margin: 20px auto;
    padding: 30px;
    background: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #28a745;
}

.output.alert {
    background-color: #ffcccb; /* Light red */
    border: 2px solid #ff0000; /* Red border */
    color: #900; /* Darker red text */
    font-weight: bold;
}

/* Hide output initially */
/* Bigger container with more padding */
.container {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Increase the size of form elements */
.converter {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Label styling */
.converter label {
    font-size: 18px;
    font-weight: 600;
}

/* Larger input field */
.number-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #007bff;
    border-radius: 6px;
    font-size: 18px;
}

/* Bigger button */
#convert-btn {
    background: #007bff;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s ease;
}

#convert-btn:hover {
    background: #0056b3;
}

/* Centered and styled output */
.output {
    max-width: 500px;
    margin: 20px auto;
    margin-top: -50px;
    padding: 30px;
    background: white;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    color: #28a745;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border: 2px solid #28a745;
}

/* Hide output initially */
.hidden {
    display: none;
}

@media (max-width: 600px) {
    header h2 {
        font-size: 1.8rem;
        width: 260px;
    }

    .container,
    .output {
        max-width: 90%;
        padding: 20px;
    }

    .converter label {
        font-size: 16px;
    }

    .number-input {
        font-size: 16px;
        padding: 10px;
    }

    #convert-btn {
        font-size: 16px;
        padding: 10px;
    }

    .output {
        font-size: 18px;
    }
}