/* CSS Reset */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f0f8ff;
    color: #333;
    font-family: 'Arial', sans-serif;
    text-align: center;
}

body {
    display: block; /* Changed to block for simpler top alignment */
    width: 100%;
    padding-top: 20px; /* Added padding at the top */
}

#container {
    width: 100%; /* Full width */
    text-align: center; /* Center content horizontally */
}

#content {
    border-radius: 15px;
    background-color: white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    padding: 20px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px; /* Additional margin at the top */
    width: 80%;
    max-width: 1000px;
}

#banner {
    width: 53%; /* Banner width relative to its container */
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Prevent banner from exceeding the width of its container */
    object-fit: contain; /* Ensure the entire banner is visible */
    margin-bottom: 20px; /* Space below the banner */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

h1 {
    color: #2e8b57;
    margin-bottom: 20px;
}

button {
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    margin: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #367c39;
}

p {
    font-size: 20px;
    margin: 20px 0;
}

#result {
    margin-top: 30px;
    font-weight: bold;
    color: #d2691e;
}

/* Media Query for Large Screens (e.g., 4K) */
@media (min-width: 1920px) {
    #content {
        max-width: 1400px; /* Max-width for large screens */
    }

    h1, p, button {
        font-size: larger; /* Increase font sizes */
    }
}

/* Media Query for Smaller Screens */
@media (max-width: 600px) {
    #content {
        width: 95%;
        padding: 10px;
    }

    h1, p, button {
        font-size: 16px;
    }

    #banner {
        max-width: 100%;
    }
}
