*{
  margin: 0;
  padding: 0;
}

body{
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: #00004d;
  line-height: 1.5;
  box-sizing: border-box;
  padding-top: calc(50vh - 6em);
}

body, main::before{
  background: url('../img/color.jpeg') 0 / cover fixed;
}

main {
  position: relative;
  margin: 0 auto;
  background: hsla(0, 0%, 100%, .25) border-box;
  /* height: 40vh; */
  overflow: hidden;
  border-radius: .3em;
  box-shadow: 0 0 0 1px hsla(0, 0%, 100%, .3) inset,
              0 0.5em 1em rgba(0, 0, 0, 0.6);
  text-shadow: 0 1px 1px hsla(0, 0%, 100%, .3);
  
  /* display: flex; */
  /* flex-direction: column; */
  /* justify-content: center; */
  /* align-items: center; */
  text-align: center;
  padding: 1em;
  /* flex: 1; */
  /* max-width: 23em; */
  /* min-width: 75em; */
}

main::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  margin: -30px;
  z-index: -1;
  -webkit-filter: blur(20px);
  filter: blur(20px);
}

main h1{
  font-size: 30px;
  line-height: 1.2;
}

main p{
  font-size: 17px;
}

button.btn-space{
  margin-left: 1em;
}

/* @media(max-width: 768px) {
  main h1{
    font-size: 40px;
  }
} */

/* Full-width input fields */
input[type=text], input[type=password], textarea {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  box-sizing: border-box;
  resize: vertical;
}

/* Set a style for all buttons */
button, input[type=button], input[type=submit]{
  background: #808040;
  color: white;
  /* font-size: 15px; */
  /* padding: 14px 20px; */
  padding: .3em .8em;
  line-height: 1.5;
  text-shadow: 0 -.05em .05em #335166;
  font-size: 105%;
  margin: 8px 0;
  /* border: none; */
  border: 1px solid #446d88;
  box-shadow: 0 .05em .25em gray;
  border-radius: .2em;
  cursor: pointer;
}

/*button#one:active{
	background:#003;
}
*/
/*button#one:focus{
	background:#003;
}*/

button:hover, input[type=button]:hover{
  opacity: 0.8;
}

/* Extra styles for the cancel button */
.cancelbtn{
  width: auto;
  padding: 10px 18px;
  background-color: #800000;
}

/* 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.passwd{
  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 with opacity */
  padding-top: 60px;
}

/* Modal Content/Box */
.modal-content{
  background-color: #fefefe;
  margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
  border: 1px solid #888;
  width: 40%; /* Could be more or less depending on the 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)}
}

footer{
  background: linear-gradient(#808040, #00004d);
  color: white;
  display: block;
  padding: .5em calc(50%-200px);
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
}

/* Change style for span and cancel button on extra small screen */
@media screen and (max-width: 300px){
  span.passwd{
    display: block;
    float: none;
  }
  .cancelbtn{
    width: 100%;
  }
  .modal-content{
    width: 80%;
  }
}

@media(max-width: 768px) {
  .modal-content{
    width: 80%;
  }
}