#overlay {
  position: fixed; /* Sit on top of the page content */
  display: none; /* Hidden by default */
  width: 100%; /* Full width (cover the whole page) */
  height: 100%; /* Full height (cover the whole page) */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5); /* Black background with opacity */
  z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
  cursor: pointer; /* Add a pointer on hover */
}

#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  border-top: 16px solid blue;
  border-right: 16px solid green;
  border-bottom: 16px solid red;
  border-left: 16px solid pink;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Add animation to "page content" */
.animate-bottom {
  position: relative;
  -webkit-animation-name: animatebottom;
  -webkit-animation-duration: 1s;
  animation-name: animatebottom;
  animation-duration: 1s
}

@-webkit-keyframes animatebottom {
  from { bottom:-100px; opacity:0 } 
  to { bottom:0px; opacity:1 }
}

@keyframes animatebottom { 
  from{ bottom:-100px; opacity:0 } 
  to{ bottom:0; opacity:1 }
}

#voter-wrapper {
  margin:20px auto;
  padding: 20px;
}

#row1 {
  padding: 10px 20px;
}

#row1 .btn {
  padding: 12px;
}

.panel-nav .btn {
  padding: 20px !important;
  width: 150px;
}

.candidate-wrapper {
//  float: left;
  position:relative;
  height: 350px;
  width: 300px;
  background-color: #f5f5f5;
  text-align:center;
  border: 1px solid #CCC;
  margin: 10px;
  display:inline-block;
}

.candidate-wrapper a {
  word-wrap: break-word;
  white-space:normal;
}

.candidate-button-wrapper {
	position: absolute;
	bottom: 0;
	width: 100%;
}

img.candidate {
  height: 180px;
  padding: 10px;
}

.btn-pos {
  text-transform: uppercase;
}

