


hr {
	border-left: none;
	border-right: none;
	border-top: none;
	border-bottom: 1px solid #222222;
}

#user
{
  display: block;
  position: relative;
  top: 14px;
  float:right;
  margin-right:14px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#user a
{
  text-decoration: none;
  color: #232323;
  transition: color 0.3s ease;
}

#user a:hover
{
  color: #FFFFFF;
}

#user input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 3; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

#user span
{
    display: block;
    width: 16px;
    height: 16px;
    position: relative;
    margin:-3px 0 2px 10px;
    background: #222222;
    border: solid 4px #cdcdcd;
    border-radius: 8px;
    z-index: 2;
    transform-origin: 0 0;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
}


#user span:nth-last-child(2)
{
    display: block;
    width: 26px;
    height: 16px;
    position: relative;
    margin:-5px 0 -2px 5px;
    background: #222222;
    border: solid 4px #cdcdcd;
    border-bottom: none;
    border-radius: 16px 16px 4px 4px;
}




/* Head */
#user input:checked ~ span
{
  opacity: 1;
  width: 33px;
  height: 4px;
  background: #cdcdcd;
  border: none;
  border-radius: 3px;
  z-index: 2;
  margin: 5px 0 0 0;
  transform: rotate(-45deg) translate(-4px, 19px);
  background: #cdcdcd;
}


/* Body */
#user input:checked ~ span:nth-last-child(2)
{
  transform: rotate(45deg) translate(-2px, -21px);
  background: #cdcdcd;
  border: none;
}














/* Position this off the screen (will clear transform when checked)*/
#userdropdown
{
  position: absolute;
  border: 2px solid #CCC;
  top:60px;
  width: 300px;
  margin: 0 0 0 -254px;
  padding: 20px 30px;
  background: #222222;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0 0;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#userdropdown li, #userdropdown a
{
  padding: 10px 0;
  font-size: 18px;
  color: #CCC;
  text-align: center;
  font-family: arial;
}


#user input:checked ~ ul
{
  transform: none;
}




/* Edit buttons */

.edit_profile {
    width:20px;
    height:20px;
    float:left;
    margin-left:10px;
    /*padding-top: 100%;*/
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    background-image: url("https://sandbox.lvnasv.org/images/pencil.png");
}

.edit_profile input[type=checkbox] {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: -7px;
  left: -5px;
  cursor: pointer;
  opacity: 0; /* hide this */
  z-index: 3;
}


.edit_profile input[type=checkbox]:checked~.remove-check {
    display: none;
}


.editable {
    float:left;
}

.edit_profile input[type=checkbox]:checked {
    z-index:20;
    display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform: translate(165px, -100px);
  width: 30px;
  height: 30px;
    
}


.edit_profile_box {
    display: none;
    position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
    width: 400px;
    height: 200px;
    background-color:#DDDDDD;
    z-index:10;
    padding: 15px;
    border: 4px solid #222222;
    border-radius: 20px;
}


.edit_profile input[type=checkbox]:checked~.edit_profile_box {
    display: block;
}


.darkout {
    display: none;
}

.edit_profile input[type=checkbox]:checked~.darkout {
    display: block;
  position: fixed;
  top: 0;
  left: 0;
    width: 100%;
    height: 100%;
    background-color:#222222;
    z-index:6;
    opacity: 0.4;
}


.edit_profile_box > div > a {
  background-color: #222222;
  color: #CCC;
  display: block;
  padding: 11px 0;
  width: 300px;
  text-decoration: none;
  text-align: center;
  margin: 5px auto;
  font-size: 14px;
  font-family: arial;
  border-radius: 20px;
}

.edit_profile_box > div > a:hover {
  background-color: #333;
  color: #FFF;
}

.edit_profile_box > div > div {
    width: 100%;
    height: 20px;
    text-align: center;
    font-family:arial;
    font-weight:bold;
    font-size: 16px;
    color: #222222;
}

.edit_profile_box > div > div > span {
    display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 24px;
  font-weight: normal;
  transform: translate(-50%, -50%);
  color: black;
  transform: translate(172px, -96px);
}

.edit_profile_box > div > span > a {
    display: block;
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 24px;
  font-weight: normal;
  transform: translate(-50%, -50%);
  color: black;
  transform: translate(-186px, -92px);
  text-decoration: none;
}


#edit_user_display_name {
    display: none;
}

#edit_user_display_name input[type=text]{
    width: 270px;
}

#edit_user_bio textarea {
    width: 100%;
    height: 74px;
}


#delete_profilepic {
    opacity:0;
    z-index:-100;
    position:absolute;
    /*display:block;
    position: relative;
    
    width:50px;
    height:50px;
    */
}

#delete_profilepic:checked {
    opacity:0;
    z-index:-100;
    position:absolute;
    /*display:block;
    position: relative;
    
    width:50px;
    height:50px;
    */
}






#ck-button label {
    float:left;
    width:4.0em;
}

#ck-button label span {
    text-align:center;
    padding:3px 0px;
    display:block;
}

#ck-button label input {
    position:absolute;
    top:-20px;
}

#ck-button input:checked + span {
    background-color:#911;
    color:#fff;
}











.edit_user_profile_pic_buttons {
    float:right;
    position:relative;
    top:-122px;
    width:230px;
}





.edit_user_profile_pic_buttons input[type=button] {
  width: 100%;
  background-color: #555555;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.edit_user_profile_pic_buttons input[type=button]:hover {
  background-color: #666666;
}














.uploadBox {
    height:120px;
    width:120px;
    border-radius: 60px;
    position:relative;
    margin-top:14px;
    
    display:flex;
    justify-content:center;
    align-items: center;  

    border:4px solid #9b9a9a;
    overflow:hidden;
    /*background-image: linear-gradient(to bottom, #2590EB 50%, #FFFFFF 50%);*/
    background-size: 100% 100%;
    /*transition: all 1s;*/
    background-color: #FFFFFF;
    /*font-size:100px;*/

}

.uploadBox:hover {
    /*background-position: 0 -100%;*/

      background-color:#2590EB;
}

.uploadBox > input[type=file] {
    height:120px;
      width:120px;
      position:absolute;
      top:0;
      left:0;
      opacity:0;
      cursor:pointer;
}


html {
	height: 100%;
	box-sizing: border-box;
}

body {
	position: relative;
	min-height: 100%;
	margin: 0;
	padding-bottom: 6rem;
	background-color: #dddddd;
}

*, *:before, *:after {
	box-sizing: inherit;
}

/* Forms */

.input_form {
    max-width: 525px;
    margin-left: auto;
    margin-right: auto;
}

input[type=text], input[type=password], input[type=email], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.input_form textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  height: 100px;
}

input[type=submit] {
  width: 100%;
  background-color: #555555;
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #666666;
}

/* ================================================== */
/* ================= Header & Footer ================ */
/* ================================================== */

#header {
    display:block;
	position: fixed;
	z-index: 1;
	top: 0;
	/*overflow: hidden;*/
	width: 100%;
	height: 120px;
	margin: 0;
	padding: 0;
	background-color: #222222;
	background-image: url("https://sandbox.lvnasv.org/images/lvnaLogo_Large_white_3626x665.svg");
	background-size: 273px 50px;
	background-position: 18px 16px;
	background-repeat: no-repeat;
}

#mobile-menu {
    display:none;
    position: fixed;
	z-index: 1;
	top: 0;
	/*overflow: hidden;*/
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0;
	background-color: #222222;
	background-image: url("https://sandbox.lvnasv.org/images/lvnaLogo_Large_white_3626x665.svg");
	background-size: 164px 30px;
	background-position: 10px 11px;
	background-repeat: no-repeat;
}

#header-line {
	margin: 73px 20px 0 20px;
	border-left: none;
	border-right: none;
	border-top: none;
	border-bottom: 1px solid #555;
}

#footer {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
	width: 100%;
	height: 60px;
	margin: 0;
	padding: 0;
	background-color: #222222;
	text-align: center;
	color: #FFF;
}

.vertical-center {
	position: absolute;
	top: 50%;
	margin: 0;
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
}

/* ================== Account Info ================== */


#username {
    position: sticky;
    float: right;
    right: 55px;
    top: 22px;
	font-family: arial;
	font-size: 18px;
	color: #CCC;
	z-index: 20;
}

#username a,
#username a:link,
#username a:visited,
#username a:active {
    text-decoration: none;
    color: #CCC;
}

#username a:hover {
    text-decoration: none;
    color: #FFF;
}


#account {
	float: right;
	margin: 0;
	padding: 14px 0 0 0;
	font-family: arial;
	font-size: 14px;
	color: #CCC;
}

#account ul {
	overflow: hidden;
	margin: 0;
	padding: 0;
	list-style-type: none;
	background-color: #222222;
}

#account ul li {
	float: left;
}

#account ul li a, .dropbtn {
	padding: 8px 16px 8px 16px;
	text-align: left;
	text-decoration: none;
	color: #CCC;
}

#account ul li.dropdown {
	display: inline-block;
}

.dropdown-content {
	position: absolute;
	z-index: 2;
	right: 10px;
	left: auto;
	display: none;
	min-width: 140px;
	border: 2px solid #CCC;
	background-color: #222222;
}

.dropdown-content a {
	display: block;
	text-align: left;
	text-decoration: none;
	color: black;
}

.dropdown-content a:hover {
	background-color: #333;
}

.dropdown:hover .dropdown-content {
	display: block;
}

/* ==================== Menu Bar ==================== */

ul.menu {
	position: absolute;
	bottom: 0;
	overflow: hidden;
	margin: 0;
	padding: 0 0 0 28px;
	list-style-type: none;
	background-color: #222222;
}

ul.menu > li {
	float: left;
}

ul.menu > li a {
	display: block;
	padding: 14px 18px 11px;
	text-align: center;
	text-decoration: none;
	font-family: arial;
	font-size: 15px;
	color: #CCC;
}

ul.menu > li a.home {
    padding: 10px 18px 8px;
}

ul.menu > li a:hover:not(.active) {
	background-color: #333;
	color: #EEE;
}

.active {
	border-bottom: 4px solid white;
}

.noneActive {
	border-bottom: 4px solid #222222;
}

.menuBuffer {
	height: 140px;
}

#body {
    width: 1200px;
    color: #545454;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 40px;
    background-color: #efefef;
    font-family: arial;
    font-size: 16px;
}

/* ================================================== */
/* ============== Home Page Slideshow =============== */
/* ================================================== */

.mySlides {
	display: none;
}

img {
	vertical-align: middle;
}

.slideshow-container {
	position: relative;
	max-width: 100%;
	margin-right: auto;
	margin-left: auto;
}

.prev, .next {
	position: absolute;
	top: 50%;
	transition: 0.6s ease;
	margin-top: -22px;
	width: auto;
	padding: 16px;
	border-radius: 0 3px 3px 0;
	font-size: 36px;
	font-weight: bold;
	text-shadow: 0 0 8px black;
	color: white;
	user-select: none;
	cursor: pointer;
}

.next {
	right: 0;
	border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
	background-color: rgba(0,0,0,0.8);
}

.slide-title {
	position: absolute;
	font-family: arial;
	bottom: 8px;
	width: 100%;
	padding: 8px 12px;
	text-align: center;
	font-size: 24px;
	text-shadow: 0 0 6px black;
	font-weight: bold;
	color: #f2f2f2;
}

.dot {
	display: inline-block;
	transition: background-color 0.6s ease;
	margin: 0 2px;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background-color: #bbb;
	cursor: pointer;
}

.active_dot, .dot:hover {
	background-color: #717171;
}

.fade {
	-webkit-animation-name: fade;
	-webkit-animation-duration: 1.5s;
	animation-name: fade;
	animation-duration: 1.5s;
}

@-webkit-keyframes fade {
	from {opacity: .4} 
	to {opacity: 1}
}

@keyframes fade {
	from {opacity: .4} 
	to {opacity: 1}
}

@media only screen and (max-width: 300px) {
	.prev, .next, .slide-title {font-size: 11px}
}


#homeWelcome {
    font-size: 22px;
    margin-top: 30px;
}


/* Villager Display */



#villager_current {
    float:left;
    display:table;
    width:600px;
    height:430px;
}

#villager_current img {
    width:100%;
    vertical-align: middle;
    margin-left:auto;
    margin-right:auto;
}

#villager_signup {
    float:right;
    width:480px;
    height:430px;
    display: table;
    border-left:1px solid #555555;
    padding-left:20px;
}




#villagerTableHeader {
    position: -webkit-sticky;
    position: sticky;
    top: 115px;
    padding: 20px 0 0;
    background: #efefef;
    display: table;
    width: 100%;
    table-layout: fixed;
    padding-bottom: 14px;
}

#villagerTableHeader > div {
    display: table-cell;
    /*border: 1px solid #555555;*/
    padding: 4px 6px;
    width: 2%;
    margin-bottom: 0;
    border-left: none;
    text-align: center;
    font-weight: bold;
    font-size: 16px;
    /*background: #DDDDDD;*/
}

div.villagerTable {
    margin-left:auto;
    margin-right:auto;
    max-width:100%;
}

div.villagerTable > table , #villagerTableHeader > table{
    width: 100%;
    border-collapse: collapse;
}

div.villagerTable img {
    max-width:60px;
    margin-left:auto;
    margin-right:auto;
}

div.villagerTable td , #villagerTableHeader td{
    text-align: center;
    font-weight:bold;
    font-size: 14px;
    border: 1px solid #555555;
    border-left: none;
    padding: 8px;
}


.villager_full_year, .villager_full_month { display: block; }
.villager_abrv_year, .villager_abrv_month { display: none; }

.villager_year_cell {
    border-top: none;
    border-bottom:none;
}



/* Profile info */



.clearfix::after { 
   content: "";
   display: block; 
   height: 0; 
   clear: both;
}

#profile {
    max-width: 480px;
}



div.profileBlock {
    float:left;
    margin-right:20px;
}


td.profileInfo {
    vertical-align:text-top;
    padding-left:20px;
    padding-top:15px;
}

td.profileInfo p {
    word-wrap: break-word;
}

h2 {
    margin-top: 0;
    margin-bottom: 0;
}

h3 {
    margin-top: 0;
    margin-bottom: 0;
}

div.profilePic {
    margin-right: 2px;
    width: 140px;
    height: 140px;
    background-size: cover;
	background-position: 0 0;
	background-repeat: no-repeat;
    text-align:center;
    border-radius: 50%;
    border: 4px solid #9b9a9a;
}



/*
div.profilePic img {
    max-width:100%;
}*/


table.familyMembers td{
    padding: 10px 20px;
    vertical-align: top;
}

div.familyMemberPic {
    width: 110px;
    margin-bottom: 10px;
    margin-left:auto;
    margin-right:auto;
    background-size: cover;
	background-position: 0 0;
	background-repeat: no-repeat;
    text-align:center;
    /*padding-top: 100%;*/
    height: 110px;
}

div.familyMemberPicRound {
    border-radius: 50%;
    border: 4px solid #9b9a9a;
}






div.familyMemberPic img {
    max-width:100%;
}

table.familyMembers td > div {
    text-align:center;
}



/* ================================================== */
/* ================== Awards Table ================== */
/* ================================================== */




div.awardsBlock {
    float:right;
    width: 52%;
}

table.awardsTable {
    border: none;
}

table.awardsTable td {
   border: none;
   padding: 14px 10px;
   vertical-align: top;
}

table.awardsTable div {
    width: 100px;
    vertical-align: top;
}

table.awardsTable img {
    max-width: 100%;
    height: auto;
}

div.awardImg {
    text-align:center;
    width:100%;
    padding-top: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    vertical-align: text-bottom;
    position: relative;
}

/* Award Score */
div.awardImg > div {
    position:absolute;
    bottom:0;
    margin-bottom:2px;
    font-weight: bold;
    font-size:14px;
}


div.awardTitle {
    font-family: arial;
    font-size: 12px;
    font-weight: bold;
    margin-top: 8px;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}
















/* Events Page Modals (from w3schools.com example)
---------------------------------------------------- */


.eventBox {
    max-width: 560px;
    background-color: #EAEAEA;
    margin: 15px auto 0 auto;
    border: 2px solid #CDCDCD;
    padding: 10px;
}

#eventBoxKey {
    max-width: 560px;
    background-color: #C0C0C0;
    border-radius: 30px 30px 0 0;
    margin: 15px auto 0 auto;
    padding-bottom: 10px;
    border: 2px solid #ACACAC;
}

#eventKeyHeader {
    font-family: "Arial Black", Gadget, sans-serif;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    padding-bottom: 0;
    color: #000000;
}

.eventBoxModal {
    transition: 0.2s;
    cursor: pointer;
}

.eventBoxModal:hover {background-color: #DADADA;}

td.eventImage {
    width: 1%;
    white-space: nowrap;
}

td.eventType {
    width: 33%;
    white-space: nowrap;
    text-align: center;
}

td.eventImage img {
  border-radius: 15px;
  border: 4px solid #555;
  max-width: 175px;
  margin-right: 10px;
}

td.eventType img {
  border-radius: 15px;
  border: 4px solid #555;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (max-width: 640px) {
    td.eventType img {
         width: 98%;
    }
}

.eventType_lvna { background-color: #b7d0e2; }
.eventType_sunnyvale { background-color: #b1d9b8; }
.eventType_other { background-color: #c7b2cb; }

table.eventDetails,
table.eventDetails tr,
table.eventDetails tr td,a
table.eventDetails tbody tr td {
    border: none !important;
}

table.eventDetails {
    width: 100%;
}

td.eventTitle {
    font-family: arial, Gadget, sans-serif;
    font-size: 20px !important;
    text-align: center;
    font-weight: 800;
    padding-top: 0;
    padding-bottom: 20px;
    line-height: 16px;
}

td.eventDayYear {
    width: 20%;
    font-size: 14px !important;
    text-align: center;
    font-weight: bold;
}

td.eventDayYear div {
    border-style: dotted none dotted none;
    border-width: 3px;
    padding-top: 8px;
    padding-bottom: 8px;
}

td.eventDate {
    width: 60%;
    font-size: 46px !important;
    text-align: center;
    font-weight: bold;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 40px;
}

td.eventTime {
    font-size: 18px !important;
    text-align: center;
    font-weight: bold;
    padding-top: 12px;
    padding-bottom: 4px;
}

td.eventTime div {
    width:100%;
}

td.eventTime div p {
    display:inline-block;
    margin:0;
    position:relative;
    padding:0 20%;
}
td.eventTime div p:before,.eventTime p:after{
    content:"";
    position:absolute;
    left:0;
    top:50%;
    margin-top:-2px;
    width:21%;
    height:4px;
    border-top:1px solid #c4c4c4;
    border-bottom:1px solid #c4c4c4
}
td.eventTime div p:after{left:auto;right:0}

td.eventLocation {
    font-size: 16px !important;
    text-align: center;
    font-weight: bold;
    padding-top: 0;
    padding-bottom: 4px;
}

td.eventLink,
td.eventLink a {
    font-size: 14px !important;
    text-align: center;
    font-weight: bold;
    color: #4C86F0;
    padding-top: 0;
    padding-bottom: 0;
}




@media only screen and (min-width: 1105px) and (max-width: 1200px) {
    
    #body {
        width: 1105px;
        padding: 20px 30px;
    }

    table.awardsTable div {
        width: 80px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:1px;
    }
    


    #villager_signup {
        width:410px;
    }


 
}

@media only screen and (max-width: 1104px) {
    div.villagerTable img {
        width:100%;
    }
}



@media only screen and (min-width: 981px) and (max-width: 1104px) {
    
    
    #body {
        width: 980px;
        padding: 20px;
    }
    
    
    div.awardsBlock {
        width: 44%;
    }
    

    table.awardsTable td {
       padding: 10px 6px;
    }
    
    table.awardsTable div {
        width: 70px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:1px;
        font-size: 11px;
    }
    
    #villager_current {
        width:570px;
        height:430px;
    }
    
    #villager_signup {
        width:340px;
        height:430px;
    }

}



@media only screen and (max-width: 980px) {
    
    div.profileBlock {
        float: none;
        margin-right:0;
    }
    
    div.awardsBlock {
        float: none;
        width:100%;
    }
    
    table.awardsTable {
       margin-left:auto;
       margin-right:auto;
    }
    
    #profile {
        max-width: 100%;
    }
}



@media only screen and (min-width: 851px) and (max-width: 980px) {
    
    
    #body {
        width: 850px;
        padding: 20px;
    }
    
    div.profilePic {
        width: 240px;
        height: 240px;
    }

    table.familyMembers td{
        padding: 20px 40px;
    }
    
    div.familyMemberPic {
        width: 160px;
        height: 160px;
        margin-bottom: 12px;
    }
    
    table.awardsTable td {
       padding: 15px 15px;
    }
    
    table.awardsTable div {
        width: 120px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:4px;
        font-size: 13px;
    }
    

    
    #villager_current {
        width:460px;
        height:430px;
    }

    #villager_signup {
        width:320px;
        height:430px;
    }
    

    
}


@media only screen and (max-width: 850px) {
    #body {
        width: 100%;
    }
    
    #villager_signup {
        padding: 15px 0;
    }
    
    
    
    
    
#villager_current {
    float:none;
    width: 100%;
    height:auto;
    max-width:600px;
    margin: 15px auto;
}

#villager_signup {
    float:none;
    width:100%;
    max-width:600px;
    height:auto;
    margin: 15px auto;
    border:none;
    padding:none;
}
    
    
    
}

@media only screen and (min-width: 375px) and (max-width: 850px) {
    #body {
        padding: 16px;
    }
}

@media only screen and (min-width: 740px) and (max-width: 850px) {


    div.profilePic {
        width: 240px;
        height: 240px;
    }

    table.familyMembers td{
        padding: 20px 28px;
    }
    
    div.familyMemberPic {
        width: 160px;
        height: 160px;
        margin-bottom: 12px;
    }

    table.awardsTable td {
       padding: 10px 15px;
    }
    
    table.awardsTable div {
        width: 110px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:4px;
        font-size: 13px;
    }
    
}


@media only screen and (max-width: 740px) {

    div.villagerTable td , #villagerTableHeader td{
        padding: 1px;
    }
    
    .villager_full_year, .villager_full_month { display: none; }
    .villager_abrv_year, .villager_abrv_month { display: block; }
    
}


@media only screen and (min-width: 660px) and (max-width: 740px) {



    div.profilePic {
        width: 240px;
        height: 240px;
    }

    table.familyMembers td{
        padding: 20px 28px;
    }
    
    div.familyMemberPic {
        width: 145px;
        height: 145px;
        margin-bottom: 12px;
    }




    table.awardsTable td {
       padding: 10px 12px;
    }
    
    
    table.awardsTable div {
        width: 100px;
    }
    
}

@media only screen and (min-width: 600px) and (max-width: 659px) {



    div.profilePic {
        width: 220px;
        height: 220px;
    }

    table.familyMembers td{
        padding: 20px 28px;
    }
    
    div.familyMemberPic {
        width: 130px;
        height: 130px;
        margin-bottom: 12px;
    }


    table.awardsTable td {
       padding: 10px 10px;
    }
    
    
    table.awardsTable div {
        width: 90px;
    }
    
}





@media only screen and (min-width: 560px) and (max-width: 599px) {
    


    div.profilePic {
        width: 190px;
        height: 190px;
    }

    table.familyMembers td{
        padding: 20px 20px;
    }
    
    div.familyMemberPic {
        width: 130px;
        height: 130px;
        margin-bottom: 12px;
    }




    table.awardsTable td {
       padding: 10px 10px;
    }
    
    
    table.awardsTable div {
        width: 82px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:1px;
        font-size: 12px;
    }
    


    
    .eventBox {
        max-width: 100%;
    }
    
    td.eventImage {
        padding-right: 0;
    }
    
    td.eventImage img{
        max-width: 160px;
    }

    td.eventTitle {
        font-size: 18px !important;
        line-height: 16px;
        padding-bottom: 14px;
    }
    
    td.eventDayYear {
        width: 9%;
        font-size: 15px !important;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    td.eventDate {
        width: 82%;
        font-size: 40px !important;
        line-height: 36px;
        margin: 0;
        padding: 0;
    }
    
    td.eventTime {
        font-size: 16px !important;
    }

    td.eventTime div p {
        padding:0 26%;
    }
    td.eventTime div p:before,.eventTime p:after{
        width:24%;
    }
    
    td.eventLocation {
        font-size: 14px !important;
    }
    
    td.eventLink,
    td.eventLink a {
        font-size: 12px !important;
    }
}



/* Mobile Menu */
@media only screen and (max-width: 559px) {
    
.input_form {
    width: 100%;
}
    
#username {
    right: 100px;
    top: 18px;
	font-size: 18px;
}


#mobile-menu {
    display:block;
}

#header {
    display:none;
}
div.menuBuffer {
	height: 60px;
}

ul.menu {
	position: absolute;
	bottom: 0;
	overflow: hidden;
	margin: 0;
	padding: 0 0 0 28px;
	list-style-type: none;
	background-color: #222222;
}

ul.menu > li {
	float: left;
}

ul.menu > li a {
	display: block;
	padding: 14px 18px 11px;
	text-align: center;
	text-decoration: none;
	font-family: arial;
	font-size: 15px;
	color: #CCC;
}

ul.menu > li a.home {
    padding: 10px 18px 8px;
}

ul.menu > li a:hover:not(.active) {
	background-color: #333;
	color: #EEE;
}

.active {
	border-bottom: 4px solid white;
}

.noneActive {
	border-bottom: 4px solid #222222;
}

.menuBuffer {
	height: 140px;
}










#user
{
  display: block;
  position: relative;
  top: 14px;
  float:right;
  margin-right:14px;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}

#user a
{
  text-decoration: none;
  color: #232323;
  transition: color 0.3s ease;
}

#user a:hover
{
  color: #FFFFFF;
}

#user input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 3; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

#user span
{
    display: block;
    width: 16px;
    height: 16px;
    position: relative;
    margin:-3px 0 2px 10px;
    background: #222222;
    border: solid 4px #cdcdcd;
    border-radius: 8px;
    z-index: 2;
    transform-origin: 0 0;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
                opacity 0.55s ease;
}

#user span:nth-last-child(2)
{
    display: block;
    width: 26px;
    height: 16px;
    position: relative;
    margin:-5px 0 -2px 5px;
    background: #222222;
    border: solid 4px #cdcdcd;
    border-bottom: none;
    border-radius: 16px 16px 4px 4px;
}




/* Head */
#user input:checked ~ span
{
  opacity: 1;
  width: 33px;
  height: 4px;
  background: #cdcdcd;
  border: none;
  border-radius: 3px;
  z-index: 2;
  margin: 5px 0 0 0;
  transform: rotate(-45deg) translate(-4px, 19px);
  background: #cdcdcd;
}

/* Body */
#user input:checked ~ span:nth-last-child(2)
{
  transform: rotate(45deg) translate(-2px, -21px);
  background: #cdcdcd;
  border: none;
}



/* Position this off the screen (will clear transform when checked)*/
#userdropdown
{
  position: absolute;
  top:31px;
  width: 300px;
  margin: 0 0 0 -208px;
  padding: 20px 30px;
  border: none;
  background: #222222;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0 0;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#userdropdown li, #userdropdown a
{
  padding: 10px 0;
  font-size: 18px;
  color: #CCC;
  text-align: center;
  font-family: arial;
}


#user input:checked ~ ul
{
  transform: none;
}






























#hamburger
{
  display: block;
  position: relative;
  top: 14px;
  float:right;
  margin-right:-5px;
  z-index: 6;
  -webkit-user-select: none;
  user-select: none;
}

#hamburger a
{
  text-decoration: none;
  color: #232323;
  transition: color 0.3s ease;
}

#hamburger a:hover
{
  color: #FFFFFF;
}

#hamburger input
{
  display: block;
  width: 40px;
  height: 32px;
  position: absolute;
  top: -7px;
  left: -5px;
  
  cursor: pointer;
  
  opacity: 0; /* hide this */
  z-index: 7; /* and place it over the hamburger */
  
  -webkit-touch-callout: none;
}

#hamburger span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  background: #cdcdcd;
  border-radius: 3px;
  z-index: 6;
  transform-origin: 4px 0;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}
 
/* Top Line */
#hamburger input:checked ~ span
{
  opacity: 1;
  transform: rotate(-45deg) translate(-12px, 14px);
  background: #cdcdcd;
}
/* Middle Line */
#hamburger input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}
/* Bottom Line */
#hamburger input:checked ~ span:nth-last-child(2)
{
  transform: rotate(45deg) translate(-9px, -15px);
}

/* Position this off the screen (will clear transform when checked)*/
#menu
{
  position: relative;
  width: 300px;
  margin: 6px 0 0 -250px;
  padding: 20px 30px;
  background: #222222;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  transform-origin: 0 0;
  transform: translate(100%, 0);
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li, #menu a
{
  padding: 10px 0;
  font-size: 18px;
  color: #CCC;
  text-align: center;
  font-family: arial;
}


#hamburger input:checked ~ ul
{
  transform: none;
}










}







@media only screen and (min-width: 480px) and (max-width: 559px) {
    
    
    div.profilePic {
        width: 140px;
        height: 140px;
    }

    table.familyMembers td{
        padding: 20px 14px;
    }
    
    div.familyMemberPic {
        width: 110px;
        height: 110px;
        margin-bottom: 12px;
    }
    
    td.profileInfo > p {
        font-size: 14px;
    }
    


    table.awardsTable td {
       padding: 10px 4px;
    }
    
    
    table.awardsTable div {
        width: 78px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:0;
        padding-bottom:1px;
        font-size: 12px;
    }

    
    
    .eventBox {
        max-width: 100%;
    }
    
    td.eventImage {
        padding-right: 0;
    }
    
    td.eventImage img{
        max-width: 132px;
    }

    td.eventTitle {
        font-size: 16px !important;
        line-height: 14px;
        padding-bottom: 14px;
    }
    
    td.eventDayYear {
        width: 9%;
        font-size: 14px !important;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    td.eventDate {
        width: 82%;
        font-size: 36px !important;
        line-height: 28px;
        margin: 0;
        padding: 0;
    }
    
    td.eventTime {
        font-size: 14px !important;
    }

    td.eventTime div p {
        padding:0 22%;
    }
    td.eventTime div p:before,.eventTime p:after{
        width:20%;
    }
    
    td.eventLocation {
        font-size: 12px !important;
    }
    
    td.eventLink,
    td.eventLink a {
        font-size: 12px !important;
    }
}

@media only screen and (min-width: 415px) and (max-width: 479px) {
    



    div.profilePic {
        width: 140px;
        height: 140px;
    }

    table.familyMembers td{
        padding: 20px 14px;
    }
    
    div.familyMemberPic {
        width: 94px;
        height: 94px;
        margin-bottom: 12px;
    }
    
    td.profileInfo > p {
        font-size: 12px;
    }
    
    td.profileInfo > h2 {
        font-size: 16px;
    }





    table.awardsTable td {
       padding: 10px 4px;
    }
    
    table.awardsTable div {
        width: 66px;
    }
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:1px;
        font-size: 10px;
    }
    
    
    .eventBox {
        max-width: 100%;
    }
    
    td.eventImage {
        padding-right: 0;
    }
    
    td.eventImage img{
        max-width: 100px;
    }

    td.eventTitle {
        font-size: 14px !important;
        line-height: 12px;
        padding-bottom: 10px;
    }
    
    td.eventDayYear {
        width: 7%;
        font-size: 12px !important;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    td.eventDate {
        width: 86%;
        font-size: 30px !important;
        line-height: 18px;
        margin: 0;
        padding: 0;
    }
    
    td.eventTime {
        font-size: 12px !important;
    }

    td.eventTime div p {
        padding:0 22%;
    }
    td.eventTime div p:before,.eventTime p:after{
        width:20%;
    }
    
    td.eventLocation {
        font-size: 11px !important;
    }
    
    td.eventLink,
    td.eventLink a {
        font-size: 10px !important;
    }
}

@media only screen and (max-width: 460px) {
    #username { display: none; }
    
    .villagerTable span {
        font-size: 10px;
    }
}

@media only screen and (max-width: 400px) {

    .edit_profile_box {
        width: 300px;
        height: 200px;
        padding: 15px 10px;
    }
    
    .edit_profile_box > div > a {
      width: 260px;
    }
    
    .edit_profile_box > div > div > span {
      transform: translate(-50%, -50%);
      transform: translate(122px, -96px);
    }
    
    .edit_profile_box > div > span > a {
      transform: translate(-50%, -50%);
      transform: translate(-136px, -92px);
    }
    
    .edit_profile input[type=checkbox]:checked {
      transform: translate(-50%, -50%);
      transform: translate(115px, -100px);
    }
    
    .edit_user_profile_pic_buttons {
        width:140px;
    }
    
    #edit_user_display_name input[type=text]{
        width: 178px;
    }


}

@media only screen and (min-width: 375px) and (max-width: 414px) {
    
    
    
    
    div.profilePic {
        width: 120px;
        height: 120px;
    }

    table.familyMembers td{
        padding: 20px 10px;
    }
    
    div.familyMemberPic {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }
    
    td.profileInfo > p {
        font-size: 12px;
    }
    
    td.profileInfo > h2 {
        font-size: 16px;
    }
    
    
    
    
    table.awardsTable td {
       padding: 10px 4px;
    }
    
    table.awardsTable div {
        width: 60px;
    }
    
    
    /* Award Score */
    div.awardImg > div {
        margin-bottom:1px;
        font-size: 10px;
    }
    


    
    .eventBox {
        max-width: 100%;
    }
    
    td.eventImage {
        padding-right: 0;
    }
    
    td.eventImage img{
        max-width: 88px;
    }

    td.eventTitle {
        font-size: 12px !important;
        line-height: 10px;
        padding-bottom: 10px;
    }
    
    td.eventDayYear {
        width: 5%;
        font-size: 10px !important;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    td.eventDate {
        width: 90%;
        font-size: 26px !important;
        line-height: 22px;
        margin: 0;
        padding: 0;
    }
    
    td.eventTime {
        font-size: 12px !important;
    }

    td.eventTime div p {
        padding:0 18%;
    }
    td.eventTime div p:before,.eventTime p:after{
        width:16%;
    }
    
    td.eventLocation {
        font-size: 11px !important;
    }
    
    td.eventLink,
    td.eventLink a {
        font-size: 10px !important;
    }
}

@media only screen and (max-width: 374px) {

    #body {
        padding: 10px;
    }

    
    div.profilePic {
        width: 120px;
        height: 120px;
    }

    table.familyMembers td{
        padding: 20px 10px;
    }
    
    div.familyMemberPic {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }
    
    td.profileInfo > p {
        font-size: 12px;
    }
    
    td.profileInfo > h2 {
        font-size: 16px;
    }
    
    
    table.awardsTable td {
       padding: 10px 2px;
    }
    
    table.awardsTable div {
        width: 54px;
    }

    /* Award Score */
    div.awardImg > div {
        margin-bottom:1px;
        font-size: 8px;
    }
    
    .eventBox {
        max-width: 100%;
    }
    
    td.eventImage {
        padding-right: 0;
    }
    
    td.eventImage img{
        max-width: 60px;
    }

    td.eventTitle {
        font-size: 12px !important;
        line-height: 10px;
        padding-bottom: 6px;
    }
    
    td.eventDayYear {
        width: 5%;
        font-size: 10px !important;
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
    }
    
    td.eventDate {
        width: 90%;
        font-size: 20px !important;
        line-height: 18px;
        margin: 0;
        padding: 0;
    }
    
    td.eventTime {
        font-size: 11px !important;
    }

    td.eventTime div p {
        padding:0 15%;
    }
    td.eventTime div p:before,.eventTime p:after{
        width:10%;
    }
    
    td.eventLocation {
        font-size: 10px !important;
    }
    
    td.eventLink,
    td.eventLink a {
        font-size: 10px !important;
    }
    
    #villagerTableHeader > div { font-size: 12px; }
}


/* The Modal (background) */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */
.eventCaption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #ccc;
  padding: 10px 0;
  height: 150px;
}

/* Add Animation */
.modal-content, #caption {  
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@-webkit-keyframes zoom {
  from {-webkit-transform:scale(0)} 
  to {-webkit-transform:scale(1)}
}

@keyframes zoom {
  from {transform:scale(0)} 
  to {transform:scale(1)}
}

/* The Close Button */
.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .modal-content {
    width: 85%;
  }
}













/* ######################################## */
/* ANCIENT STUFF THAT PROBABLY ISN'T NEEDED */
/* ######################################## */

/*


* {
  margin: 0px;
  padding: 0px;
}
body {
  font-size: 120%;
  background: #F8F8FF;
}

.header {
  width: 30%;
  margin: 50px auto 0px;
  color: white;
  background: #5F9EA0;
  text-align: center;
  border: 1px solid #B0C4DE;
  border-bottom: none;
  border-radius: 10px 10px 0px 0px;
  padding: 20px;
}
form, .content {
  width: 30%;
  margin: 0px auto;
  padding: 20px;
  border: 1px solid #B0C4DE;
  background: white;
  border-radius: 0px 0px 10px 10px;
}
.input-group {
  margin: 10px 0px 10px 0px;
}
.input-group label {
  display: block;
  text-align: left;
  margin: 3px;
}
.input-group input {
  height: 30px;
  width: 93%;
  padding: 5px 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid gray;
}
.btn {
  padding: 10px;
  font-size: 15px;
  color: white;
  background: #5F9EA0;
  border: none;
  border-radius: 5px;
}
.error {
  width: 92%; 
  margin: 0px auto; 
  padding: 10px; 
  border: 1px solid #a94442; 
  color: #a94442; 
  background: #f2dede; 
  border-radius: 5px; 
  text-align: left;
}
.success {
  color: #3c763d; 
  background: #dff0d8; 
  border: 1px solid #3c763d;
  margin-bottom: 20px;
}

*/