/*GLOBAL AND MOBILE*/

header {
    background-image: url(images/apply.jpg);
}

h2 {
    margin: 60px auto;
    width: 100%;
    text-align: center;
}

#main h3 {
    width: 80%;
    margin: 0 auto;
}

main {
    padding-top: 40px;
    background-color: rgba(0, 0, 0, 0.8);
    width:90%;
    margin: 0 auto;
    margin-bottom: 100px;
    max-width: 1000px;
}

#two {
    display: flex;
    flex-direction: column;
    width: 100%;
}
    
#two td {
    width: 100%;
}

#form {
    display: flex;
    flex-direction: column;
    align-content: center;
    margin: 0 auto;
    width: 100%;
    max-width: 900px;
}

table {
    margin: 0 auto;
    width:90%;
    max-width: 800px;
}


label {
    display: block;
    width: 100%;
    margin: 0 auto;
    margin-top: 50px;
}

input, textarea {
    display:block;
    color: #000000;
    background-color: rgba(155, 155, 155, 0.8);
    height: 50px;
    font-size: 1.3em;
    padding: 10px;
    outline-color: #ffffff;
    width: 100%;
}

textarea[name=Reference] {
    height: 200px;
}

a.button {
    text-decoration: none;
    display: block;
    width:300px;
    margin: 30px auto;
    color: #ffffff;
    background-color: (0, 0, 0, 0.7);
    outline-style: solid;
    outline-width: thin;
    outline-color: #ffffff;
    cursor: pointer;
    padding: 10px;
    text-align: center;
}

a.button:hover {
    background-color: rgba(93, 191, 77, 0.8);
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 30000;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
    z-index: 30000;
}

.popup {
    width: 90%;
    margin: auto;
    align-self: center center;
    padding: 50px;
    background: rgb(189, 223, 179);
    border-radius: 5px;
    position: relative;
    transition: all 5s ease-in-out;
    text-align: center;
    z-index: 30000;
    max-width:500px;
}

.popup h2 {
    margin: 0 auto;
    color: #000000;
    text-align: center;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
    z-index: 30001;
}

.popup .close:hover {
    color: #06D85F;
}

.popup .content p {
    color: #000000;
    max-height: 30%;
    overflow: auto;
    z-index: 30001;
}



@media screen and (min-width:767px){    

    #two {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    #two td {
        width: 40%;
    }
  
}

