/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

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, canvas, 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;
}
/*End of CSS Reset*/
* {
text-align: center;
}

@media (min-width:1024px) {
body {background-color: pink;}
body {font-size: 2em;}
}

@media (max-width:410px){
body {background-color: lightcoral;}
body {font-size: 0.5em;}
form {padding: 10px; width: 20px; height: 430px;}
}
form {
    font-size: 1.7em;
    border: 3px solid black;
    padding: 20px;
    width: 300px;
    margin: auto;
    background-color: #784747;
    border-radius: 15px;
    text-align: center;
}

input[required] {
    background-color: yellow;
    border: 2px solid red;
    padding: 5px;
}

input[type=submit]:hover {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 3s ease;
}

input[type=submit] {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

input[type=reset]:hover {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: background-color 3s ease;
}

input[type=reset] {
    background-color: #f44336;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

legend {
    font-weight: lighter;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-align: center;
}


form:hover {
    transition: background-color 10s ease;
    background-color: #4CAF50;
}

input:hover {
    background-color: lightblue;
    transition: background-color 3s ease;
}

input[required]:hover {
    background-color: blue;
    border: 2px solid cyan;
    transition: background-color 3s ease;
}

img {width:25%; height: 50%;}
figcaption {font-size: medium; color: aliceblue;}
h1 {
    font-weight: lighter;
    font-size: 1.1em;
    color: #4CAF50;
}
h2 {
    font-weight: lighter;
    font-size: 1.1em;
    color: #931AFD;
}
h3 {
    font-weight: lighter;
    font-size: 1.1em;
    color: #f44336;
}
footer {
    background-color: gray;
}
a {
    text-decoration: none;
    color: black;
}
a:hover {
    text-decoration: underline;
    font-weight: bolder;
}