/* 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;
}

/* MY STYLE RULES START HERE */

body{
    background-color: #f8f3f2;

}
button{
    font-family: "Kanit", sans-serif;
    font-size: 2rem;
    font-weight: 600;
    background-color: #223d3c;
    border: 6px solid white;
    color: white;
    border-radius: 10px;
    margin: .5em;
    padding: 1rem;
}
nav:first-child{
    position: relative;
    display: inline-block;
}
div div{
    display: none;
    position: absolute;
    background-color: #f1f1f1;
}
div div a{
    display: block;
    font-family: "Kanit", sans-serif;
    font-size: 1.8em;
    text-decoration: none;
    text-align: center;
    color: black;
    padding: 12px 16px;
    min-width: 300px;
}
div div a:visited{
    background-color: #f1f1f1;
}
div div a:hover{
    background-color: #ddd;
}
div div a:focus{
    background-color: #f1f1f1;
}
div div a:active{
    background-color: #ddd;
}
nav:first-child:hover div div{
    display: block;
}
button:hover{
   background-color: #375857;
   color: white;
}
main a{
    display: block;
    font-family: "Kanit", sans-serif;
    font-size: 1.5em;
    text-decoration: none;
    text-align: center;
    background-color: #223d3c;
    color: white;
    width: 80%;
    margin: 0 auto;
    margin-bottom: .5em;
    padding: .3em;
    border-bottom: 2px solid white;
}
main a:visited{
    color: white;
}
main a:hover{
    background-color: white;
    color: #375857;
    border: 5px solid #375857;
}
main a:focus{
    background-color: white;
    color: #375857;
}
main a:active{
    background-color: white;
    color: #375857;
}
h1{
    font-family: "Kanit", sans-serif;
    font-size: 3.0rem;
    text-align: center;
    text-shadow: 2px 2px gray;
    background-color: #223d3c;
    color: white;
    width: 80%;
    padding: 10px;
    margin: 10px auto 0 auto;
    border-bottom: 8px solid white;
    border-top: 5px solid white;
}
p{
    clear: right;
    font-family: "Convergence", sans-serif;
    box-sizing: border-box;
    font-size: 1.6rem;
    line-height: 120%;
    text-indent: 25px;
    background-color: white;
    color: #223d3c;
    border: 6px solid #223d3c;
    border-radius: 13px;
    padding: 30px 40px;
    margin: 3em 30px 30px 1em;
}
ul{
    list-style-type: none;
    text-align: center;
    width: 50%;
    min-width: 300px;
    margin: 0 auto;
}
li{
    font-family: "Convergence", sans-serif;
    list-style-position: inside;
    font-size: 1.3rem;
    background-color: #223d3c;
    color: white;
    padding: 10px;
    height: 3em;
    border-radius: 13px;
    border: 6px solid white;
}
img{
    float: left;
    display: flow-root;
    box-sizing: border-box;
    width: 30%;
    min-width: 290px;
    height: auto;
    padding: 6px;
    margin: 7em 1.2em .5em 4.3em;
    border: 6px solid #223d3c;
    border-radius: 30px;
 }
 