body {
    background-color: #f7f8fc;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    align-items: center;
    background-color: #5c4ac7;
    padding: 20px;
    color: white;
    flex-wrap: wrap;
}

a img {
    text-decoration:none;
    font-size: 0px;
    padding: 0px;
    max-width: 80%;
    border: none;
}
a .pagelink {
    text-decoration:none;
    display: flex;
    flex-direction: row;
    /* align-items: right; */
    align-self: flex-end;
}

header div {
    display: flex;
    flex-direction: column;
    align-items: left;
}

form {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

form label, form p {
    color: #393232;
    font-size: 20px;
}

form input[type="text"], form input[type="email"] {
    height: 30px;
    border-radius: 5px;
    border: 1px solid #d3d3d3;
    padding: 5px;
    font-size: 20px;
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: rgb(212, 212, 212);
    opacity: 1; /* Firefox */
  }
  
  :-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: rgb(212, 212, 212);
  }
  
  ::-ms-input-placeholder { /* Microsoft Edge */
    color: rgb(212, 212, 212);
  }

  form input[type="submit"] {
      height: 40px;
      background-color: #2eb442;
      color: white;
      border: 2px solid black;
      border-radius: 5px;
      cursor: pointer;
      align-self: flex-end;
      width: 150px;
      font-size: 20px;
  }

  .terms {
      align-self: flex-end;
      font-size: 15px;
  }

/* The Modal */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    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 */
  }
  
  /* Modal Content */
  .modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  .closeBtn {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }

  .closeBtn:hover,
  .closeBtn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

.bad {
    background-color: #ffcccc;
  }
  
  .good {
    background-color: #cce5cc;
  }

/* Media Query for Mobile Devices */
@media (max-width: 480px) {
    header {
        flex-direction: column;
    }

    header img {
        margin-right: 0;
        margin-bottom: 10px;
    }

    form {
        width: 100%;
    }

    form label, form p {
        font-size: 18px;
    }

    form input[type="text"], form input[type="email"] {
        width: 100%;
        height: 50px;
        font-size: 30px;
    }

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

    header div p {
        font-size: 30px;
    }

    header div h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }
    
}

/* Media Query for Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    form {
        width: 100%;
    }

    form input[type="text"], form input[type="email"] {
        width: 100%;
        height: 50px;
        font-size: 30px;
    }

    form label, form p {
        font-size: 38px;
    }

    header div p {
        font-size: 30px;
    }

    header div h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }
}

/* Media Query for Low Resolution Displays/Laptops */
@media (min-width: 769px) and (max-width: 1024px) {
    form {
        width: 100%;
    }

    form input[type="text"], form input[type="email"] {
        width: 100%;
        height: 50px;
        font-size: 30px;
    }

    form label, form p {
        font-size: 38px;
    }

    header div p {
        font-size: 30px;
    }

    header div h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 30px;
    }
}

#modalBtn {
    height: 40px;
    background-color: #9772d1;
    color: white;
    border: 2px solid black;
    border-radius: 5px;
    cursor: pointer;
    align-self: flex-end;
    font-size: 20px;
}