body {
   font-family: Arial, Helvetica, sans-serif;
   margin : 0;
   padding: 0;
   background: #34495e;
}

.box {
   width: 350px;
   padding: 40px;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   background: #191919;
   text-allign: center;
}

.box input[type = "text"], .box input[type = "password"]{
   border: 0;
   background: none;
   display: block;
   margin: 20px auto;
   text-align: center;
   border: 2px solid #3498db;
   padding: 14px 10px;
   width: 200px;
   outline: none;
   color: white;
   border-radius: 20px;
   transition: 0.25s;
}

.box input[type = "text"]:focus,.box input[type = "password"]:focus{
   width: 240px;
   border-color: #2ecc71;
}

.box input[type = "text"]:hover,.box input[type = "password"]:hover{
   width: 240px;
   border-color: #2ecc71;
}

.box h1{
   color: white;
   text-transform: uppercase;
   font-weight: 500;
   text-align: center;
}

.box input[type = "submit"], input[type = "button"]
{
   border: 0;
   color: white;
   background: #143822;
   display: block;
   margin: 20px auto;
   text-align: center;
   border: 2px solid #3498db;
   padding: 14px 10px;
   font-weight: 400;
   font-size: 16px;
   width: 160px;
   outline: none;
   border-radius: 20px;
   transition: 0.25s;
   cursor: pointer;
}

.box input[type = "submit"]:hover, input[type = "button"]:hover
{
   background: #2ecc71;
}

label
{
   display: inline-block;
}

/* Center the image and position the close button */
.imgcontainer {
   text-align: center;
   margin: 24px 0 12px 0;
   position: relative;
}

img.avatar {
   width: 40%;
   border-radius: 50%;
}

.container {
   padding: 16px;
}

span.psw {
   float: right;
   padding-top: 16px;
}

/* The Modal (background) */
.modal {
   display: none; /* Hidden by default */
   position: fixed; /* Stay in place */
   z-index: 1; /* Sit on top */
   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.4); /* Black w/ opacity */
   padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
   background-color: #fefefe;
   margin: 0% auto 5% auto; /* 5% from the top, 15% from the bottom and centered */
   border: 1px solid #888;
   width: 30%; /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.close {
   position: absolute;
   right: 25px;
   top: 0;
   color: #000;
   font-size: 35px;
   font-weight: bold;
}

.close:hover,
.close:focus {
   color: red;
   cursor: pointer;
}

/* Add Zoom Animation */
.animate {
   -webkit-animation: animatezoom 0.6s;
   animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
   from {-webkit-transform: scale(0)}
   to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
   from {transform: scale(0)}
   to {transform: scale(1)}
}

/* Change styles for span and cancel button on extra small screens */
@media screen and (max-width: 300px) {
   span.psw {
      display: block;
      float: none;
   }

}
