html {
  font-size: 14px;
}

/* Changes */

.views-style {
  font-family: "Wix Madefor Display", sans-serif;
}

.container {
  font-family: "Wix Madefor Display", sans-serif;
}

.container-fluid {
  max-width: 1130px;
}

.navbar-brand {
  font-weight: 800;
  background-color: #232324;
  background-image: linear-gradient(to right, #232324 0%, #005ce6 100%);
  background-size: 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 30px;
}

#logo-image {
  height: 37px;
  width: 37px;
  margin-top: -8px;
  margin-right: 5px;
  opacity: 60%;
}

.nav-item {
  margin-right: 20px;
}

#hero-graphic {
  height: 80px;
  width: 80px;
  opacity: 85%;
}

.home-h1-text {
  font-size: 63px;
  margin-top: 8px; /* was 30px before graphic added */
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 800;
  color: #3c404d;
}

.home-h1-blue {
  color: #005ce6
}

.home-p-text {
  font-size: 23px;
  margin: 0 auto;
  color: #3c404d;
  width: 70%;
}

.big-form-container {
  margin-bottom: 285px;
}

.form-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-left: 8px;
  padding-right: 8px;
  background-color: #eef1f5;
  background-image: linear-gradient(to right, #00378a 0%, #00a398 100%);
  height: 270px;
  margin-top: 35px;
  border-radius: 12px;
  justify-content: center;
}

.form-item {
  margin-top: 20px;
  margin-bottom: 0;
  margin-left: 4px;
  margin-right: 4px;
  font-size: 14px;
}

.form-icons {
  height: 24px;
  width: 24px;
  margin-bottom: 8px;
  margin-right: 4px;
  opacity: 85%;
}

.form-label {
  color: #fcfcfd;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
}

.help-text {
  color: #d3d6e4;
  font-size: 13px;
  margin-left: 7px;
  margin-top: 4px;
}

.form-text-input {
  height: 40px;
  border: none;
  width: 180px;
  border-radius: 4px;
  padding: 7px 7px;
  background-color: rgba(35,35,36,0.3);
  color: #eef1f5;
}

.form-text-input::placeholder {
  color: #eef1f5;
}

.form-date-dropdown {
  height: 40px;
  border: none;
  width: 142px;
  border-radius: 4px;
  padding: 7px 7px;
  background-color: rgba(35,35,36,0.3);
  color: #eef1f5;
  z-index: 2;
}

.date-icon-help {
  background-color: #ffffff;
  height:40px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  width: 30px;
  z-index: 1;
  margin-top: -40px;
  margin-left: 112px;
}

.form-number-dropdown {
  height: 40px;
  border: none;
  width: 112px;
  border-radius: 4px;
  padding: 7px 7px;
  background-color: rgba(35,35,36,0.3);
  color: #eef1f5;
}

.form-number-dropdown:focus {
  background-color: #3c404d;
}

.form-text-dropdown {
  height: 40px;
  border: none;
  width: 180px;
  border-radius: 4px;
  padding: 7px 7px;
  background-color: rgba(35,35,36,0.3);
  color: #eef1f5;
}

.form-text-dropdown:focus {
  background-color: #3c404d;
}

.button-container {
  height: 45px;
  margin-top: -7px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.form-button {
  height: 45px;
  margin-top: -7px;
  margin-bottom: 120px;
  border: none;
  width: 225px;
  border-radius: 8px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  font-size: 19px;
  font-weight: 700;
  background-color: #ffffff;
}

.form-button:hover {
  background-color: #ffffff;
  color: #005ce6;
  transform: scale(1.02);
  transition: all 0.1s ease;
}

.loading-widget {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-spinner {
  border: 32px solid #005ce6;
  border-top: 32px solid #232324;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-message {
  font-size: 33px;
  font-weight: 600;
  margin-top: 20px;
  text-align: center;
}

.footer-content-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 10px;
}

.footer-content {
  text-wrap: wrap;
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px 0;
  line-height: 1.2;
}

#footer-business-name {
  font-weight: 400;
}

.results-page-nav {
  display: flex;
}

#results-page-button {
  margin-left: auto;
  background-color: #d0d4e2;
  color: #585a6f;
  font-size: 16px;
  height: 43px;
  width: 145px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
}

#results-page-button:hover, #results-page-bottom-button:hover {
  background-color: #ffffff;
}

.results-page-title-text {
  font-size: 45px;
  font-weight: 800;
  color: #3c404d;
  margin-bottom: 30px;
}

.results-page-criteria-reminder {
  font-size: 18px;
  font-weight: 600;
  color: #3c404d;
  text-wrap: wrap;
  margin-top: 0;
  margin-bottom: 0;
  padding: 5px 10px;
  line-height: 1.2;
}

.criteria-text-thin {
  font-weight: 400;
}

.scroll-notification {
  background-color: rgb(60, 64, 77);
  color: #fff;
  padding: 10px;
  text-align: center;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-radius: 0;
  display: block;
  margin: 0;
  box-sizing: border-box;
}

.table {
  margin-top: 28px;
  border-collapse: collapse;
  margin-bottom: 90px;
  border-bottom: none;
}

.table th {
  border-top: none;
  border-bottom: 2px solid #3c404d;
  padding: 16px;
}

.table td {
  border-top: 1px solid #cad0d5;
  padding: 16px;
  border-left: none;
  border-right: none;
  vertical-align: middle;
  border-bottom: none;
}

.table th:nth-child(1) { width: 10%; }  /* Photo */
.table th:nth-child(2) { width: 15%; }  /* Hotel Name */
.table th:nth-child(3) { width: 10%; }  /* Review Score */
.table th:nth-child(4) { width: 12%; }  /* Address */
.table th:nth-child(5) { width: 12%; }  /* City */
.table th:nth-child(6) { width: 16%; }  /* Total Price */
.table th:nth-child(7) { width: 20%; }   /* Distance From Destination */
.table th:nth-child(8) { width: 5%; }   /* Booking Link */

.table td:nth-child(2) {
  width: 15%; /* Hotel Name */
  min-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.table-photo {
  max-width: 120px;
  max-height: 120px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 2px;
  margin-left: 0;
}

.table-photo:hover {
  transform: scale(2) translateX(22px);
  transition: all 0.1s ease;
  z-index: 1000;
  position: relative;
}

#booking-link-button {
  padding: 0;
  position: relative;
}

#booking-link-button a {
  display: inline-block;
  background-color: #005ce6;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

#booking-link-button a:hover {
  background-color: #004bb5;
}

#booking-link-button:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text {
  visibility: hidden;
  width: 280px;
  background-color: black;
  color: #fff;
  text-align: start;
  border-radius: 5px;
  padding: 20px;
  position: absolute;
  z-index: 1001;
  top: 50%;
  left: -290px;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-weight: 600;
  font-size: 14px;
}

.tooltip-text small {
  font-weight: 500;
  color: #eef1f5;
}

#results-page-bottom-button {
  background-color: #d0d4e2;
  color: #585a6f;
  font-size: 14px;
  height: 33px;
  width: 110px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.footer-td {
  text-align: left;
  border: none;
}

tfoot tr {
  border-top: 1px solid #cad0d5;
  border-bottom: none;
}

tfoot td {
  border: none;
}

.table tfoot td#results-page-bottom-button-container {
  border: none;
}

#error-title {
  margin-top: 50px;
  font-size: 55px;
  font-weight: 800;
  margin-bottom: 50px;
}

#error-message-line-1 {
  line-height: 1.2;
  font-size: 33px;
  margin-bottom: 30px;
  font-weight: 700;
}

#error-message-line-2 {
  line-height: 1.2;
  font-size: 23px;
  margin-bottom: 45px;
}

#error-button {
  background-color: #005ce6;
  margin-bottom: 350px;
  font-weight: 700;
  font-size: 17px;
  height: 50px;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
}

#error-button:hover {
  background-color: #004bb5;
}

#smiley {
  font-size: 50px;
}

/* ___________ */

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background-color: #eef1f5;
}

/* Changes */

@media screen and (min-width: 992px) {
  .scroll-notification {
    display: none;
  }
}

@media screen and (max-width: 1200px) {
  .form-container {
    height: 460px;
  }
  
  .form-button {
    margin-top: 15px;
  }
  
  .form-container {
    padding: 25px;
  }
  
  footer .container {
    margin-bottom: 50px;
  }
  
  .footer-td {
    margin-bottom: 50px;
  }
  
  .table {
    margin-bottom: 120px;
  }

  .table-responsive {
    overflow-x: auto;
    max-width: 100%;
    display: block;
  }

  .table-responsive table {
    width: auto;
    min-width: 800px;
  }

  .table-responsive th,
  .table-responsive td {
    padding: 8px;
    text-align: left;
  }

  .table td:nth-child(2) {
    min-width: 115px;
    white-space: normal;
  }

  .tooltip-text {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s linear;
  }

  #booking-link-button.active .tooltip-text {
    visibility: visible;
    opacity: 1;
  }
}

@media screen and (max-width: 1024px) {
  .form-container {
    height: 420px;
  }
  
  .home-h1-text {
    font-size: 58px;
  }
  
  .home-p-text {
    font-size: 20px;
    width: 90%;
  }
  
  #results-page-button {
    height: 30px;
    width: 110px;
    font-size: 13px;
    margin-bottom: 15px;
  }
  
  #results-page-bottom-button {
    height: 30px;
    width: 90px;
    font-size: 13px;
    margin-bottom: 8px;
  }
}

@media screen and (max-width: 768px) {
  .form-container {
    height: 570px;
  }
  
  .home-h1-text {
    font-size: 45px;
  }
  
  .home-p-text {
    font-size: 20px;
  }

  #results-page-bottom-button {
    margin-bottom: 25px;
  }

  #error-title {
    font-size: 45px;
  }

  #error-message-line-1 {
    font-size: 25px;
  }

  #error-message-line-2 {
    font-size: 18px;
  }
}

@media screen and (max-width: 480px) {
  #hero-graphic {
    height: 60px;
    width: 60px;
  }
  
  .home-h1-text {
    font-size: 42px;
  }
  
  .form-container {
    height: 700px;
  }
  
  .footer-content {
    font-size: 13px;
  }
  
  .results-page-title-text {
    font-size: 42px
  }
  
  .loading-message {
    font-size: 25px;
  }
}

@media screen and (max-width: 426px) {
  #hero-graphic {
    height: 50px;
    width: 50px;
  }
  
  .form-container {
    height: 920px;
  }
  
  .home-h1-text {
    font-size: 38px;
  }
  
  .home-p-text {
    font-size: 18px;
  }
  
  .results-page-title-text {
    font-size: 38px
  }
  
  .results-page-criteria-reminder {
    font-size: 16px;
  }

  #error-title {
    font-size: 38px;
  }

  #error-message-line-1 {
    font-size: 23px;
  }

  #error-message-line-2 {
    font-size: 16px;
  }
  
  .tooltip-text {
    width: 200px;
    left: -210px;
  }
}

@media screen and (max-width: 320px) {
  .form-container {
    height: 1110px;
    padding-bottom: 40px;
  }
  
  .home-h1-text {
    font-size: 33px;
  }
  
  .home-p-text {
    font-size: 16px;
  }
  
  .form-item {
    width: 90%;
  }
  
  .form-button {
    margin-top: 20px;
  }
  
  .footer-content {
    font-size: 10px;
  }
  
  .results-page-title-text {
    font-size: 33px
  }

  #error-title {
    font-size: 33px;
  }

  #error-message-line-1 {
    font-size: 18px;
  }

  #error-message-line-2 {
    font-size: 14px;
  }
}