* {
  margin: 0;
  padding: 0;
}

/*Nav*/

nav {
  width: 100%;
  height: 60px;
  background: #11122b;
}
nav p {
 font-family: 'Monoton', cursive;
  color: #fff;
  font-size: 1.2rem;
  line-height: 55px;
  float: left;
  padding: 0 20px;
  letter-spacing: 3px;
  margin-right: 900px;
}
nav p:hover {
  color: #fff;
}

nav ul {
  float: left;
}
nav ul li {
  float: left;
  list-style: none;
  position: relative;
}

nav ul li a{
  text-decoration: none;
  display: block;
  font-family: arial;
  padding:22px 14px;
  color: #11122b;
  font-size: 12px;
  
}

/* DropDown */
nav ul li ul {
  display: none;
  position: absolute;
  background:  #11122b;
  padding: 8px;
  border-radius: 0 0 4px 4px;
}

nav ul li:hover ul {
  display: block;
}
nav ul li ul li {
  width: 100px;
  border-radius: 4px;
}
nav ul li a {
  
  color: #fff;
  font-weight: bold;
}

nav ul li a:hover {
  color: wheat;
}
nav ul li ul li a{
  padding: 8px 14px;
 }

nav ul li ul li a:hover {
  background: #11122b;
  
}

#arrow {
  font-weight: bolder;
  /* font-size: 1rem; */
}

/*Nav ends here*/

button{
    /*margin-top: 2px;*/
    background: #11122b;
    /*padding: 3px 5px;*/
    margin-right: 5px;
}
button a{
  text-decoration: none;
  font-size: 12px;
  outline: none;
  color: #11122b;
}


/*select dropdown*/
select {
outline: none;
font-size: 14px;
letter-spacing: 1px;
color: #000;
padding: 5px;
width: 100%;
border: 1px solid #000;
box-sizing: border-box;
margin-bottom: 12px;
font-size: 16px;
}

.vote{
margin: 0px auto;
}
.vote {
max-width: 350px;
margin: 0 auto;
padding: 10px;
box-sizing: border-box;
}

.vote label {
font-family: cursive;
}
/* Political Parties Page */

.wrapper h2, .history {
  text-align: center;
  margin-top: 25px;
  color: #11122b;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-size: 16px;
}
.btn {
background: #11122b;
margin-left: 10px;
display: inline;
}


table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

table tr {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: .35em;
}

table th,
table td {
  padding: .625em;
  text-align: center;
}

table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}



.logo {
  border: 1px solid #11122b;
  width: 10%;
  border-radius: 50%;
}
button {
  padding: 10px 15px;
  background: #11122b;
   outline: none;
  border: 1px solid #11122b;
  border-radius: 2px;
  color: #fff;
}
button a {
  color: #fff;
}
/* Modal Form */
.register {
margin: 50px auto;
display: block;
width: 180px;
height: 58px;
border: 1px solid white;
background-color: #11122b;
color: white;
font-family: san-serif;
font-weight: bold;
border-radius: 5px;
transition: background-color 1000ms, color 1000ms;
}
.regsiter:hover {
background-color: rgba(255, 255, 255, 1);
color: #222;
cursor: pointer;
transition: background-color 1000ms, color 1000ms;
}
.registerlink{
text-decoration: none;
display: inline-block;
padding: 5px;
color: white;
transition: color 1000ms;
}

.modal-container{
width: 100%;
height: 100%;
position: fixed;
pointer-events: none;
opacity:0;
transition: all 500ms ease;
}
.modal-container:target{
opacity: 1;
pointer-events:auto;
}
.modal-container > div{
transform: translate(0px, 0px);
transition: all 500ms ease;
}
.modal-container:target > div{
transform: translate(0px, 0px);
}
.modal {
width: 300px;
height: 300px;
margin: auto;
color: #fff;
position: absolute;
top:0px; bottom:0px;
right:0px; left: 0px;
background: #11122b;
border: 1px solid #fff;
border-radius: 5px;
padding: 20px;
box-shadow: 0px 0px 50px 5px black;
}

.modal-heading{
width: 100%;
display: block;
height: 30px;
margin-top: 20px;
color: #fff;
padding: 2px;
box-sizing: border-box;
text-align: center;
font-size: 16px;
font-family: big john;
}
input {
margin-bottom: 10px;
padding: 10px;
width: 100%;
box-sizing: border-box;
border-radius: 5px;
height: 40px;
border: 0px;
font-family: georgia;
text-align: center;
}
.btnRegister{
background: #11122b;
color: white;
font-size: 15pt;
margin-top: 10px;
}
.close {
color: #fff;
position: absolute;
border: 1px solid #333;
padding: 7px 9px 11px 9px;
background: #000;
text-decoration: none;
top: -20px;
right: -20px;
border-radius: 50%;
transition: background 500ms;
}

.close:hover {
background: #444;
cursor: pointer;
}
/* pagination */
.center {
  text-align: center;
}

.pagination {
  display: inline-block;
}

.pagination a {
  color: black;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
  transition: background-color .3s;
  border: 1px solid #ddd;
  margin: 0 4px;
}

.pagination a.active {
  background-color: #11122b;
  color: white;
  border: 1px solid #11122b;
}

.pagination a:hover:not(.active) {background-color: #ddd;}

.login-in{
  max-width: 350px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 50px;
  box-sizing: border-box;
  color: #000000;
  font-size: 14px;
  font-family: 'Raleway', sans-serif;
}


input[type=submit] {
width: 100%;
font-weight: bold;
background: #11122b;
border: none;
margin: 1.5em 0 1.5em;
outline: none;
letter-spacing: 1px;
font-size: 15px;
padding: 14px 0;
color: #fff;
cursor: pointer;
border: 1px solid #fff;
}

/* Modal Form ends here */
/* media query */
@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: left;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}
@media(max-width: 768px) {
  
  nav {
  width: 100%;
  height: 100px;
  background: #11122b;
}
  ul li{
      display: block;
      text-align: left;
  }

  input[type=submit] {
      width: 100%;
  }
  
}

@media(max-width: 768px) {
  
  ul {
      width: 100%;
      display: block;
  }
  ul li{
      display: block;
      text-align: left;
  }

@media 
only screen and (max-width: 760px),
(min-device-width: 768px) and (max-device-width: 1024px)  {

/* Force table to not be like tables anymore */
table, thead, tbody, th, td, tr { 
  display: block; 
  text-align: left;
}
/*
table {
  width: 80%;
  table-layout: fixed;
}

/* Hide table headers (but not display: none;, for accessibility) */
thead tr { 
  position: absolute;
  top: -9999px;
  left: -9999px;
}

tr { border: 1px solid #ccc; }