

/* Use full width of the viewport and a responsive layout */
* { box-sizing: border-box; }

body{
    margin: 0;
    padding: 16px;
    text-align: center;
    font-size: 1.25rem; /* similar to x-large */
    background: #fff;
}

/* Keep content readable by capping the maximum width while allowing 100% growth */
#HTML,
input[type="text"] {
    width: 100%;
    max-width: 1200px;
    margin: 5px;
    padding: 10px;
    font-size: 1.25rem;
    text-align: left;
    background-color: aliceblue;
    border-radius: 10px;
    border: 1px solid #000;
}

/* Buttons should size to content but not force a fixed page width */
button {
    display: inline-block;
    padding: 10px 18px;
    font-size: 1.25rem;
    background-color: #aaFFAA;
    border: 1px solid #000;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
}

/* Style the single-line input replacing the textarea */
input[type="text"] {
    height: 40px;
    padding: 6px 10px;
}

.title{
    font-weight: bold;
    margin: 10px 0;
    text-align: left;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

ol{
    text-align:left;
    max-width: 1200px;
    margin: 0 auto 1rem auto;
}
img {
	max-width: 100%;
	height: auto;
	max-height: 50vh; /* limit images to at most 50% of viewport height */
	display: block;
	margin: 0 auto;
    border-radius: 10px;
    border-style:solid;
    border-color:black;
    padding:10px;
}

table{
    width: 100%;
    max-width: 1200px;
    margin: 10px auto;
    border-collapse: collapse;
}

/* Small screens: reduce max-width to use more of the screen */
@media (max-width: 600px) {
    body { padding: 10px; font-size: 1rem; }
    #HTML, input[type="text"], .title, ol, img, table { max-width: 100%; }
}


