/* Job modal styling */
.modal {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 99999; /* High enough to overlay all elements */
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent scrolling of the entire modal */
    padding: 2em;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}
.modal p {
    margin: 0;
    padding: 0;
    font-weight: normal;
}

.modal-content {
    background: white;
    padding: 3em;
    min-height: 95%; 
    max-height: 95%;/* Limit height to allow scrolling */
    margin: 2em auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    overflow-y: auto; /* Enable scrolling for the content */
    width: 70%; /* Adjust for responsiveness */
    scrollbar-width: none; /* Hide scrollbar for Firefox */

}
/* Remove scrollbar for modal and modal content */
.modal::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}
.modal-content::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.modal-btn-container {
    width: 100%;
    display: flex;
    justify-content: end;
    margin: 0;
    padding: 0;
    height: fit-content;
}


.share-container {
    display: flex;
    justify-content: start;
    align-items: center;
    margin-top: 2em;
    cursor: pointer;
}

.share-text {
    margin-right: 1em;
}

.share-btn {
    color: darkgray;
    font-size: 1.5em;
    font-weight: bold;
    background-color: white;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.modal-close {
    color: darkgray;
    font-size: 1.5em;
    font-weight: bold;
    background-color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    margin-top: 20px;
}


/* Job element styling */

.job-image {
    width:30%;
    height: auto;
    border-radius: 4px;
    margin-top: 3em;
}

.job-details-container {
    /*background: red;
    width: 80%;*/
}

.app-hidden {
    display: none;
}
.appl-label {
    margin: 0;
    padding: 0;
}
#resp-h {
  margin-bottom: 0;
  margin-top: 1em;
  padding: 0;
  color: #00a64f;
  font-weight: bold;
}
#resp-container {
  list-style-type: disc;
  margin: 0 auto;
  width: 95%;
  justify-content: center;
  display: flex;
  flex-direction: column;
}
#qual-h {
  margin-bottom: 0;
  margin-top: 1em;
  padding: 0;
  color: #00a64f;
  font-weight: bold;
}

#qual-container {
    list-style-type: disc;
  margin: 0 auto;
  margin-bottom: 1em;
  width: 95%;
  justify-content: center;
  display: flex;
  flex-direction: column;
  line-height: 1em;
  padding: 0 1em 0;
}
#li-item {
    margin-left: 1em;
  /*font-weight: 400;*/
}
.upl-res-btn {
    max-width: fit-content;
    max-height: fit-content;
}
.opn-eml-btn {
    margin-left: 1em;
    max-width: fit-content;
    max-height: fit-content;
}
#app-btn {
    margin-top: 1em;
    width: 30%;
    min-width: 180px;
}
.job-app-container {
  display: none;
  margin-top: 2em;
}
#resume {
  display: none;
}
.submit-container {
  margin: 0;
  padding: 0;
  width: 100%;
  margin-bottom: 2em;
  margin-top: 1em;
  
}
.submit-container p {
    display: flex;
    justify-content: stretch;
    width: 50%;
    margin: 0;
    padding: 0;
}

#job-title {
    color: #00a64f;
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 0;
    margin-top: 2em;
    padding: 0;
}
#job-location {
    color: #00a64f;
    text-align: center;
    margin: 0;
    padding: 0;
}
#job-type {
    color: #00a64f;
    text-align: center;
    margin-top: 0;
    padding: 0;
}
#job-us-h {
   color: #00a64f;
   font-weight: bold;
   margin-bottom: 0;
   margin-top: 1em;
   padding: 0;
}
#job-us {
    margin-top: 0;
    padding: 0;

}
#job-desc-h {
    color: #00a64f;
    font-weight: bold;
    margin-bottom: 0;
    margin-top: 1em;
    padding: 0;
}
#job-desc {
    margin-top: 0;
    padding: 0;
}
#job-style {
    color: #00a64f;
}
#job-footer {
    color: #b9b9b9;
    text-align: center;
    margin-top: 2em;
}
/* End job template formatting */

/* Handle mobile */
@media screen and (max-width: 768px) {
    .modal {
        padding: 1em;
    }
    .modal-content {
        width: 90%;
        top: 0;
        position: absolute;
        min-height: 85%;
        max-height: 85%;
        padding: 1em;
        margin-bottom: 2em;
    }
    .submit-container{
        width: 100%;
        display: flex;
        flex-direction: column;
    }
    .opn-eml-btn {
        margin-left: 0;
        margin-top: 1em;
    }
}