*, *:before, *:after {
  box-sizing: border-box;
}

.search-form {
  *zoom: 1;
}
.search-form:before, .search-form:after {
  content: " ";
  display: table;
}
.search-form:after {
  clear: both;
}

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}
body {
  height: 100%;
}
body {
  color: #9C0015;
  font-size: 9pt;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  background-image: url("../img/404.png");
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
}

h1 {
  font-size: 30px;
  margin: 5px 0;
  /*letter-spacing: 2px;*/
}

p {
  font-size: 18px;
  /*margin: 13px 0;*/
  margin: 0;
  /*letter-spacing: 1px;*/
}

a {
  color: #003399;
  text-decoration: none;
}
a:hover {
  color: #002266;
  text-decoration: none;
}
.wrap {
  display: table;
  height: 100%;
  margin: 0 auto;
}
.container {
  /*padding: 410px 0 0 294px;*/
  padding: 0 15px;
  /*white-space: nowrap;*/
  display: table-cell;
  vertical-align: middle;
}
.search-form {
  /*margin: 13px 0;*/
}
.search-form span {
  font-size: 18px;
  /*letter-spacing: 1px;*/
  /*margin: 0 0 13px;*/
  /*float: left;*/
}
.search-form .google-search {
  /*float: left;*/
  padding: 13px 0 10px;
  /*margin: 13px 0;*/
  width: 260px;
  display: block;
}
@media (min-width: 980px) {
  h1 {
    font-size: 35px;
    margin: 13px 0;
  }
  p {
    font-size: 22px;
  }
  .search-form span {
    font-size: 22px;
    letter-spacing: 1px;
    margin-right: 10px;
    margin-top: 4px;
    float: left;
  }
  .search-form .google-search {
    float: left;
    padding: 0;
    margin: 0;
    width: 260px;
    display: block;
  }

}

@media (min-width: 1280px) {
  h1 {
    font-size: 65px;
    margin: 13px 0;
    letter-spacing: 2px;
  }
  p {
    font-size: 36px;
    margin: 13px 0;
    letter-spacing: 1px;
  }
  .search-form span {
    font-size: 36px;
    letter-spacing: 1px;
    margin-right: 10px;
    margin-top: 0;
    float: left;
  }
  .search-form .google-search {
    margin-top: 2px;
  }
}

.gsc-control-cse {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.gsc-search-button {
  box-sizing: content-box;
}

.gsc-input-box {
  background: #FCE9BC !important;
}

td.gsc-input {
  padding-right: 5px !important;
}

input.gsc-input {
  background: transparent !important;
}
@media (min-width: 1280px) {
  .gsc-input-box {
    height: 34px !important;
    width: 250px !important;
  }
  input.gsc-search-button {
    padding: 10px 27px !important;
    margin-top: 3px !important;
  }
}








/* --- Sidebar Form Styles --- */
.static-search-form {
    display: flex;
    max-width: 300px;
    margin: 3px auto;
}

.static-search-form input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #F3C543; /* Gold Border */
    border-right: none;
    border-radius: 2px 0 0 2px;
    outline: none;
    background-color: #fce9bc;
}

.static-search-form button {
    background-color: #f9ea60; /* Light Yellow */
    border: 1px solid #f3c543;
    cursor: pointer;
    padding: 0 10px;
    border-radius: 0 2px 2px 0;
    display: flex;
    align-items: center;
}

.static-search-form button svg {
    fill: #333;
}

/* --- Modal Popup Styles --- */
#search-modal {
    position: fixed;
    z-index: 10000; /* Sit on top of everything */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    cursor: pointer;
}

.modal-box {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 80%;
    margin: 5% auto; /* Centers the box */
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 4px;
    padding: 10px;
}

.modal-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #f9ea60;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    font-size: 20px;
}