/* 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 w/ opacity */
    background-color: #005587;
}

/* Modal Content/Box */
.modal-content {
    background-color: #005587;
    margin: 2% auto; /* 15% from the top and centered */
    padding: 20px 40px;
    border: 1px solid #888;
    width: 97%; /* Could be more or less, depending on screen size */
}

/* Modal Heading Color/Position */
.modal h1 {
    color: #fff;
    margin-left: -5px;
}

/* Modal Paragraph Color/Size */
.modal p {
    color: #fff;
    font-size: 2em;
}

/* Modal form labels */
.modal .form_label {
    color: #fff;
    padding-top: 12px;
    margin-bottom: 5px;
}

/* Modal form legend Ethnicity label */
.modal legend {
    font-size: 1.82em;
    margin-left: 1px;
    color: #fff;
}

.modal div.form_responses{
    width: 80%;
}

/* Modal form Ethnicity Choices */
.modal div.form_response input + label {
    color: #fff;
    margin-left: 5px;
}

/* Modal Text Area Rounded */
.modal div.form_page input[type=password], div.form_page input[type=text], div.form_page input[type=email], div.form_page input[type=tel], div.form_page input:not([type]), div.form_page select, div.form_page textarea {
    border-radius: 10px;
    width: 68%;
    height: 35px;
}

/* Modal Subscribe/Submit Button */
.modal button {
    height: 39px;
    width: 148px;
    border-radius: 19.5px;
    background-color: #FFD100;
    font-size: 16px;
    color: #005587;
    padding: .6em;
}

.modal legend {
    font-size: 1.82em;
    margin-left: 1px;
    color: #fff;
    text-transform: none;
}

/* The Close Button */
.close {
    color: #fff;
    float: right;
    font-size: 45px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Anna Added CSS to control sizes of input fields based on screen size */
@media only screen and (min-width: 900px) {
    div.form_responses {
        width: 50%;
    } 
    .modal-content {
        /* margin: 0; */
        padding: 20px 20%;
    }    
}
  
/* Formattting for bottom of page */
.interested-in-learn {
    height: 23px;
    width: 886px;
    color: #FFFFFF;
    font-size: 19px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 23px;
    padding: 0 20px;
}
.your-email-address {
    height: 23px;
    width: 750px;
    color: #FFFFFF;
    font-size: 15px;
    letter-spacing: 0;
    line-height: 18px;
    padding: 0 20px;
}
.button-parragraph {
    padding: 0 20px;
    margin-bottom:0px
}
.button-rectangle {
    height: 39px;
    width: 148px;
    border-radius: 19.5px;
    background-color: #FFD100;
    font-size: 15px;
    line-height: 18px;
}

@media only screen and (max-width: 600px) {    
    .interested-in-learn {
        height: 40px;
        width: 550px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: bold;
        letter-spacing: 0;
        padding: 0 20px;
    }
    .your-email-address {
        height: 40px;
        width: 500px;
        color: #FFFFFF;
        font-size: 15px;
        letter-spacing: 0;
        padding: 0 20px;
    } 
    .button-rectangle {
        height: 39px;
        width: 148px;
        border-radius: 19.5px;
        background-color: #FFD100;
        font-size: 22px;
        line-height: 18px;
    }
    /* Modal Text Area Rounded */
    .modal div.form_page input[type=password], div.form_page input[type=text], div.form_page input[type=email], div.form_page input[type=tel], div.form_page input:not([type]), div.form_page select, div.form_page textarea {
    border-radius: 10px;
    width: 90%;
    height: 35px;
    }
}

/* Most of the Smartphones Mobiles (Portrait) */
@media (min-width: 320px) and (max-width: 480px) {	
    .interested-in-learn {
        height: 60px;
        width: 350px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: bold;
        letter-spacing: 0;
        padding: 0 20px;
    }
    .your-email-address {
        height: 40px;
        width: 350px;
        color: #FFFFFF;
        font-size: 15px;
        letter-spacing: 0;
        padding: 0 20px;
    }
    .button-rectangle {
        height: 39px;
        width: 148px;
        border-radius: 19.5px;
        background-color: #FFD100;
        font-size: 22px;
        line-height: 18px;
    }
    /* Modal Text Area Rounded */
    .modal div.form_page input[type=password], div.form_page input[type=text], div.form_page input[type=email], div.form_page input[type=tel], div.form_page input:not([type]), div.form_page select, div.form_page textarea {
        border-radius: 10px;
        width: 100%;
        height: 35px;
    }
}

/* Tablets, Ipads (portrait) */
@media (min-width: 768px) and (max-width: 1024px) {
    .interested-in-learn {
        height: 23px;
        width: 750px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: bold;
        letter-spacing: 0;
        padding: 0 20px;
    }
    .your-email-address {
        height: 23px;
        width: 750px;
        color: #FFFFFF;
        font-size: 15px;
        letter-spacing: 0;
        padding: 0 20px;
    }  
  }

  /* iPhone 5 */
  @media screen and (device-aspect-ratio: 40/71) {
    .interested-in-learn {
        height: 60px;
        width: 300px;
        color: #FFFFFF;
        font-size: 19px;
        font-weight: bold;
        letter-spacing: 0;
        padding: 0 20px;
    }
    .your-email-address {
        height: 50px;
        width: 300px;
        color: #FFFFFF;
        font-size: 15px;
        letter-spacing: 0;
        padding: 0 20px;
    }
    .button-rectangle {
        height: 39px;
        width: 148px;
        border-radius: 19.5px;
        background-color: #FFD100;
        font-size: 20px;
        line-height: 18px;
    }
  }
