* {box-sizing: border-box}
/* Full-width input fields */
input[type=text], input[type=password] {
  width: 100%;
  padding: 15px;
  margin: 5px 0 22px 0;
  display: inline-block;
  border: 1px solid #ccc; 
  background: #fff; 
}

/* Add a background color when the inputs get focus */
input[type=text]:focus, input[type=password]:focus {
  background-color: #ddd;
  outline: none;
}


/* Float cancel and signup buttons and add an equal width */
.cancelbtn, .signupbtn {
  float: none;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-radius: 4px;
  color: #fff;
}

.cancelbtn {
  background-color: #f44336; /* Red */
  padding: 14px 20px;
}

.signupbtn {
  background-color: #31ACFF;
  padding: 14px 20px;
}

button:hover {
  cursor: pointer;
  opacity:1;
}


/* Add padding to container elements */
.acct-container {
  padding: 16px 16px 0; 
}

.signup-modal {
  display: none; /* hidden by default */
  position: fixed;
  inset: 0;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  background-color: rgba(0,0,0,0.4);
}

/* JS toggle */
.signup-modal.is-open {
  display: flex;
}

.signup-form-content {
  background: #fff;
  width: 90%;
  max-width: 400px;
  border-radius: 8px;
  padding: 24px 24px 16px;
  border: 1px solid #888;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  margin: 0;                     /* no leftover margins */
}

/* Style the horizontal ruler */
hr {
  border: 1px solid #f1f1f1;
  margin-bottom: 25px;
}

/* The Close Button (x) */
.close {
  position: absolute;
  left: 800px;
  top: 45px;
  font-size: 50px;
  font-weight: bold;
  color: #000;
}

.close:hover,
.close:focus {
  color: #f44336;
  cursor: pointer;
}

.clearfix {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Change styles for cancel button and signup button on extra small screens */
@media screen and (max-width: 300px) {
  .cancelbtn, .signupbtn {
    flex: 1 0 auto; 
    width: 100%; 
  }
}

@media screen and (max-width: 300px) {
   .clearfix { 
     flex-direction: column; 
  }
}
