/* Remove default margins and padding from the body and html */
body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif; /* Optional: Set a default font */
    background-color: #222222;
}

/* Style the top bar */
h1 {
    border-bottom: 2px solid black; /* Bottom border */
    padding: 15px; /* Add padding inside the bar */
    width: 100%; /* Full width */
    margin: 0; /* Remove margin */
    box-sizing: border-box; /* Include padding and border in width */
    background-color: #FF0000; /* Blue background color */
    text-align: center; /* Center the text */
    color: white; /* White text color */
}

/* Center the rest of the content */
h2, p {
    text-align: center; /* Center text horizontally */
    margin: 0 auto; /* Center the element itself (if it has a defined width) */
    padding: 10px; /* Add some padding for spacing */
    color: white;
}

/* Optional: Limit the width of paragraphs for better readability */
p {
    max-width: 700px;
}

/* Center the text box and button */
.input-container {
    text-align: center; /* Center the contents horizontally */
    margin-top: 20px; /* Add some space above the container */
}

/* Style the text box */
input[type="text"] {
    padding: 8px;
    margin-bottom: 20px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 300px; /* Set a fixed width for the text box */
    background-color: #222222;
    color: white;
}

/* Style the button */
button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: #FF0000; /* Match the top bar's blue theme */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px; /* Add some space between the text box and button */
}

/* Add hover effect to the button */
button:hover {
    background-color: #000000; /*  Black on hover */
    color: #FF0000
}

/* Style the displayed message */
#displayMessage {
    text-align: center; /* Center the message */
    margin-top: 20px; /* Add some space above the message */
    border: 5px solid red;
    font-size: 18px; /* Optional: Increase font size */
    color: #FFFFFF; /* Optional: Set a text color */
    margin: auto;
}
/* Styles for mobile devices */
@media (max-width: 600px) {
    #heading {
        font-size: 24px;
    }

    input[type='text'] {
        width: 80%;
        font-size: 14px;
    }

    button {
        width: 80%;
        margin: 10px 0;
    }

    #displayMessage {
        font-size: 16px;
    }
}

/* Styles for desktop devices */
@media (min-width: 601px) {
    #heading {
        font-size: 36px;
    }

    input[type='text'] {
        width: 400px;
    }

    button {
        width: auto;
    }
}
