
#video-container {
  height: 500px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}

#video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.card-building {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  color: #3f3f3f !important;
}

.card-building p {
  font-size: 20px;
}

.card-building {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  position: absolute;
  text-align: center;
  margin-bottom: 10px;
  height: auto;
  bottom: 40px;
  left: 35%;
  width: 30%;
  margin-right: auto;
  margin-left: auto;
  background-color: rgba(238, 233, 233, 0.8);
}

#video-container-button {
  position: absolute;
  text-align: center;
  z-index: 2;
  bottom: 0;
  left: 45%;
  letter-spacing: 3px;
  font-size: 20px;
  border: 1px solid black;
  background-color: rgba(238, 233, 233, 0.8);
  padding: 6px 20px;
}
.card-building_1 {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;

  text-align: center;
  padding-left: 25px !important;
  width: 89%;
}
.card-building_1 > button {
  border-width: 0.5px solid black;
  font-size: 20px;
  letter-spacing: 3px;
  background-color: white;
}
.card-building_1 > button:hover,
.card-building_1 > button:active {
  border: 1px solid rgba(238, 233, 233, 0.8);

  background-color: rgba(238, 233, 233, 0.8);
}

#video-container-button:hover {
  border: 1px solid rgba(238, 233, 233, 0.8);
}
#main_content_sm {
  display: none;
}

.career_facilities {
  border-top: 1px solid #7e57c2;
  padding-top: 120px;
  padding-bottom: 60px;
}

.career_facilities_header {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  text-align: center;
  color: #3f3f3f !important;
  width: 80%;
}

.career_facilities_header h1 {
  color: #3f3f3f !important;
}

.career_facilities_header p {
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 300;
  line-height: 1.4em;
  font-size: 22px;
  color: #666;
}

.facilities {
  margin-top: 150px !important;
  margin-bottom: 8% !important;
}

.facilities_row {
  display: flex;
  width: 75%;
 style:flip;
 repeat:once;
 duration:1000ms;
 delay:500ms;
 intensity:50%;
 starting_opacity:0%;
 animation-timing-function:ease-in-out;

}

.facilities_row_col1 {
  width: 47.25%;
  margin-right: 5.5%;
  text-align: center;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

.facilities_row_col1 h2 {
  font-weight: 600;
  font-size: 28px;
}

.facilities_row_col1 p {
  font-weight: 300;
  font-size: 21px;
  color: #0a0202 !important;
  line-height: 1.3em;
  font-family: 'Lato', Helvetica, Arial, Lucida, sans-serif;
}
.facilities_row_col2 {
  width: 47.25%;
  text-align: center;
}
.facilities_row_col1 img {
  width: 100%;
  height: auto;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 25%;
}

.facilities_row_col2 img {
  max-width: 100%;
  height: auto;
  text-align: center;
  border: 1px solid rgba(238, 233, 233, 0.8);
}

#Come-Join-Us {
  padding: 4% 0;
  height: 100%;
  width: 100%;
  background-color: transparent;
  background-image: url(../assets/careers/CoastalSunbelt-Compressed-85-of-91-scaled.jpg);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  border-top: 1px solid #fff;
}

.overlay-card {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 30%;
  background-color: rgba(238, 233, 233, 0.7);
  margin-right: auto;
  margin-left: auto;
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
}
.overlay-card-div {
  padding-top: 20% !important;
  padding-bottom: 20% !important;
}
.overlay-card a {
  letter-spacing: 2px;
  font-size: 20px;
  font-weight: 500;
  padding: 0.3em 1em;
  background-color: rgba(238, 233, 233, 0.7);
  border: 1px solid black;
  color: black;
  text-decoration: none;
}
.overlay-card a:hover,
.overlay-card a:active {
  border: none;
  cursor: pointer;
  color: black;
}
.line hr {
  margin-left: auto;
  margin-right: auto;
  width: 20%;
  border-color: #ff6900;

  border-width: 4px;
}
@media (max-width: 980px) {
  .card-building {
    text-align: center;
    margin-bottom: 10px;

    bottom: 140px;
    left: 20%;
    width: 60%;
    margin-right: auto;
    margin-left: auto;
  }
  #video-container-button {
    bottom: 70px;
    left: 45%;
  }
  .facilities {
    margin-top: 30px !important;
    margin-bottom: 2% !important;
  }
}

@media only screen and (max-width: 770px) {
  .overlay-card {
    width: 64%;
  }

  #main_content_sm {
    display: block;
  }
  #main_content {
    display: none;
  }
}

@media only screen and (max-width: 980px) {
  .facilities_row {
    flex-direction: column;
    width: 75%;
    text-align: center;
    padding: 30px 0;
  }
  .facilities_row_col1 {
    width: 75%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 50px;
  }
  .facilities_row_col2 {
    width: 100%;
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }
  .overlay-card {
    width: 48%;
  }
}
