@charset "utf-8";

/* set up the fonts */
body{
	font-family:Verdana, sans-serif;
}
h1,h2,h3,h4{
	font-family:Georgia, serif;
}

/*style a few links */
.box a{
	color:#212020;
	text-decoration:none;
}
.box a:hover{
	text-decoration:underline;
}

/* position the content */
.wrapper{
	margin:0 auto;
	padding:0 100px;
}

/* style the header and footer */
#footer, #header{
	float:left;
	clear:both;
	padding: 10px;
	text-align:center;
	width:100%;
}

/* create the floating boxes */
.box {
   float: left;
   margin: 6px;
   padding: 10px;
   width: 285px;
   height: 480px;
   border: 1px solid grey;
} 
/* style the box content */ 
.box img{
	width: 280px; /* alternatively set the image width in your HTML */
}
.box h3, .box p{
	text-align:center;
}
@media screen and (max-width: 960px) {
    .wrapper { width: 640px; }
}
.wrapper {
    margin: 0 auto;
    width: 960px;
    padding: 0 10px;
}

#content {
    float: left;
    width: 100%;
    background-color: #1dafdb;
}

.box {
    background-color: white;
}
@media screen and (max-width: 960px){
    .wrapper {
        width: 640px;
    }
}
@media screen and (max-width: 640px){
    .wrapper{
        width: 320px;
     }
    h1, h2, h3, h4, p{
        word-wrap: break-word;
     }
    #header{
         padding: 0;
      }
}

/* mobile phones - stack boxes vertically and fit the screen */
@media screen and (max-width: 480px){
    .wrapper{
        width: 100%;
        padding: 0;
    }
    #content {
        padding: 0 8px;
        box-sizing: border-box;
    }
    .box {
        float: none;
        width: 100%;
        height: auto;
        margin: 8px 0;
        box-sizing: border-box;
    }
    .box img {
        width: 100%;
        height: auto;
    }
    .box h3 {
        font-size: 1.1em;
        word-wrap: break-word;
    }
    h1 {
        font-size: 1.4em;
        word-wrap: break-word;
    }
    h4 {
        font-size: 0.95em;
        word-wrap: break-word;
    }
    #header {
        padding: 8px 4px;
    }
    #footer {
        padding: 10px 4px;
        font-size: 0.85em;
    }
}
