form {
    text-align: left;
    border: 2px solid rgb(70, 58, 233);
}

header {
    width: 80%;
    font-size: 36px;
    background-color: rgb(70, 58, 233);
    padding: 20px 0;
    color: white;
    margin-bottom: 20px;
}

h1 {
    font-family: 'Cinzel', serif;
    font-weight: 800;
}

h4 {
    text-align: left;
    background-color: rgb(70, 58, 233);
    color: white;
    padding: 10px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

label {
    padding: 10px;
    font-family: 'Cinzel', serif;
    font-weight: bold;
}

table {
    width: 100%;
    border: 2px solid rgb(70, 58, 233);
    margin-bottom: 20px;
    font-family: 'Cinzel', serif;
}

th {
    font-weight: bold;
    border-bottom: 2px solid rgb(70, 58, 233);
}

tr {
    border-bottom: 1px solid grey;
}

p {
    padding: 40px;
    box-shadow: 5px 5px 2px;
    font-family: 'Lalezar', cursive;
}

.container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.row {
    width: 80%;
}

.submit {
    margin: 10px;
    font-family: 'Cinzel', serif;
    background-color: rgb(70, 58, 233);
    color: white;
}

/* The Modal (background) */
.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;
    border: 1px solid #888;
    width: 25%;
    font-size: 30px;
  }
  
  /* The Close Button */
  .close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px;
  }
  
  .close:hover,
  .close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
  }

#name-entry, #dest-entry, #first-entry, #freq-entry {
    width: 98%;
    margin: 10px;
}

#trains {
    background-color: white;
}

@media screen and (max-width: 980px) {
    #name-entry, #dest-entry, #first-entry, #freq-entry {
        width: 96%;
    }
}
@media screen and (max-width: 768px) {
    #name-entry, #dest-entry, #first-entry, #freq-entry {
        width: 95%;
    }
}
@media screen and (max-width: 640px) {
    #name-entry, #dest-entry, #first-entry, #freq-entry {
        width: 92%;
    }
}

@media screen and (max-width: 543px) {
    table {
        font-size: 10px;
    }
}