body { min-height: 100%;background-color: whitesmoke;}

header {color: blue; font-family: 'Itim', cursive;} 
.head1 { font-size: 35pt; text-align: left; line-height: 25px;}
.head2 { font-size: 30pt; text-align: left; line-height: 25px; }

/* ทำตัวหนังสือเงา https://www.w3schools.com/css/css3_shadows.asp */
h1 {color: blue; text-shadow: 2px 2px 4px #000000; line-height: 5px;}
h2,h3 {color: blue; text-shadow: 2px 2px 4px #000000; line-height: 5px;}
h4,h5,h6 {color: blue; text-shadow: 2px 2px 4px #000000; line-height: 5px;}

table.table1 {background-color: whitesmoke ; border: 2px outset black; 
  border-collapse: collapse;margin-left: auto;margin-right: auto; margin-top: auto; margin-bottom: auto;}

th { font-family: 'Charm', cursive; color: black; font-size: 25px; vertical-align: bottom;} 

tr.tr1 { border: 2px solid black; }

td { font-family: 'Itim', cursive; font-size: 25pt; color: black; border: 2px outset black; border-collapse: collapse; }
.toright { text-align: right; }
.toblank { color: #0000ff; border: 0px; }
.tocenter { color: #0000ff; text-align: center; }

footer {background-color: whitesmoke; font-family: 'Charm', cursive; font-size: 15pt; color: black; }

img.shaked:hover {animation: shake 0.5s;animation-iteration-count: infinite;
}
@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}



/*
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Sample</title>
    <link rel="icon" href="img/ico/namecard.ico" type="image/x-icon">
    <link rel="stylesheet" href="googleapps.css">  
    <link rel="preconnect" href="https://fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css2?family=Itim&display=swap" rel="stylesheet">
    <link rel="preconnect" href="https://fonts.gstatic.com"> 
    <link href="https://fonts.googleapis.com/css2?family=Charm&display=swap" rel="stylesheet">
</head>
<body>
<header class="head1">Header.head1</header>
<header class="head2">Header.head2</header>
<h1>H1</h1>
<h3>H3</h3>
<h4>H4</h4>
<table>
    <th>TH</th>
    <tr>
        <td>TD</td><td class="toright">TR1</td><td class="toright">toright</td><td class="toblank">toblank</td>
    </tr>
</table>
<table class="table1" style="width: 50%;">
    <th>TH</th>
    <tr>
        <td>TD</td><td class="toright">TR1</td><td class="toright">toright</td><td class="toblank">toblank</td>
    </tr>
</table>
<img class="shaked" src="pipopyouyod.jpg" alt="" height="50px">
<footer>FOOTER</footer>
</body>
</html>
*/