/* styles.css
* Escape The Ordinary Online 2020 redesign for One Stop Travel Center of Orlando LLC
* June 2020
*/

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

:root {
  --codebar-red: #c80129;
  --nav-red: #b92e3d;
  --body-blue: #1e55ad;
  --body-gray: #f4f4f4;
  --body-green: #1ba507;
  --yellow-header: #eded9a;
  --calc-blue-light: #3b5be2;
  --calc-blue-dark: #0718ad;

  --header-height: calc(100vw * 653 / 1920);
}
body {
  margin: 0px;
  padding: 0px;
  background-color: white;
  color: black;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}
body.old {
  font-family: "Londrina Solid", sans-serif; /* 'Playfair Display',serif; */
}

/*
 * page content fonts - gathered here for ease of maintenance
 */
div.welcome_text > p {
  font-family: sans-serif;
  /* font-size: 1.1em; */
  font-size: 1.54vw;
  line-height: 1.5;
}
section.calculator,
.destinations_map .headline {
  font-family: Arial, Helvetica, sans-serif;
}
/* END page content fonts */

body .hide {
  display: none !important;
}

.bold {
  font-weight: bold;
}
span.br {
  display:block;
}
li.mb {
  margin-bottom:1em;
}

#debug_div {
  min-width: 200px;
  min-height: 50px;
  background-color: rgba(255, 192, 0, 0.3);
  color: white;
  font-weight: bold;
  position: fixed;
  top: 90px;
  right: 20px;
  padding: 5px;
}

header,
.header_placeholder.old {
  height: 85px;
}
section.homepage_sec.old {
  margin-top: -85px;
}

footer {
  min-height: 5em;
  padding: 1em 5%;
  /* background: black; */
  display:grid;
  grid-template-columns: 170px auto;
  align-items: center;
}

.footer_links {
  display:grid;
  grid-template-columns: repeat(4,auto);
  justify-self: end;
  align-self: center;
}
.footer_links a {
  display:block;
  text-decoration: none;
  text-align: center;
  padding:0px 1em;
}
.footer_links a:link,
.footer_links a:visited,
.footer_links a:hover,
.footer_links a:active {
  color:var(--nav-red);
}
.footer_links a:not(:last-child) {
  border-right: 1px solid var(--nav-red);
}

header {
  display: grid;
  grid-template-areas: "brand-nav" "header-text";
  grid-template-rows: 3em auto;
  padding: 2em 5%;
  position: relative;
  z-index: 1;
  top: 0px;
  height: var(--header-height);
  background-image: url("/assets/images/header_bg_1920px.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.footer_body_text {
  color: white;
  font-size: 2em;
  text-shadow: 2px 2px gray;
}
.header_body_text {
  grid-area: header-text;
  align-self: end;
  font-size: 3vw;
  color: white;
  text-shadow: 2px 2px black;
}
.logo_nav_container {
  display: grid;
  grid-template-areas: "brand nav";
  align-items:center;
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  padding: 2em 5%;
  background-color: #edefe180;
}
footer,
body:not(.home_page) .logo_nav_container,
.logo_nav_container.full_bg {
  background-color: #edefe1;
}
.brand_name {
  font-size: 3vw;
}
.brand_name,
.blue_header {
  color: var(--body-blue);
}

/*
 * -- NAVIGATION SECTION
 */
.nav_wrapper {
  position: relative;
}
nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(4, auto);
  align-items: center;
  /* justify-self: center; */
}
nav .nav_btn,
.nav_burger,
button {
  cursor: pointer;
}
/* hamburger placeholder */
.nav_burger {
  display: none;
  padding: 5px; /* provide space to click/tap on */
}
nav .nav_btn {
  padding: 0px 7px;
  position: relative;
  text-align: center;
  font-size: 1.5em;
  line-height: 1;
  color: var(--nav-red);
}
@media (max-width:1200px) {
  nav .nav_btn {
    font-size:1.25em;
  }
}
nav .nav_btn:not(:last-child) {
  border-right: 1px solid var(--nav-red);
}
/* force nav anchor tags to take on props of container */
.nav_btn a {
  text-decoration: none;
  display:block;
  width:100%;
  height:100%;
}
.nav_btn a:link,
.nav_btn a:visited,
.nav_btn a:hover,
.nav_btn a:active {
  color:var(--nav-red);
}
.nav_btn small {
  font-size: 0.75em;
}
@media (max-width:960px) {
  .nav_btn small {
    display: none;
  }
}
nav .nav_btn:hover {
  opacity: 0.5;
}

nav.old .nav_btn {
  border-radius: 5px;
}
.nav_btn.old .sub_nav {
  border-radius: 10px;
}

.nav_btn .sub_nav {
  display: none;
  position: absolute;
  top: 35px;
  left: -50%;
  background-color: white;
  font-size: 2em;
  width: 200%;
  height: 3em;
  line-height: 3em;
  font-weight: bold;
}

.nav_btn:hover .sub_nav {
  display: block;
}

.mini_nav {
  display:grid;
  grid-template-columns: auto auto;
  align-items:center;
}
.mini_nav .mini_nav_items {
  display:grid;
  grid-template-columns: repeat(3, auto);
  justify-self:end;
}
.mini_nav_items a {
  display:block;
  padding:0 1em;
  text-decoration: none;
}
.mini_nav_items a:link,
.mini_nav_items a:visited,
.mini_nav_items a:hover,
.mini_nav_items a:active {
  color:var(--nav-red);
}
.mini_nav_items a:not(:last-child) {
  border-right: 1px solid var(--nav-red);
}
/*
 * -- UTILITY CLASSES
 */
.outline_all,
.outline_all * {
  outline: 1px solid rgba(255, 192, 0, 0.95);
}

.outline_children,
.outline_children * {
  outline: 1px solid #c9f29d;
}

body.outline_section .section_content * {
  outline: 1px solid pink;
}

header.black_out {
  background-color: black;
}

.old .products_services,
.old .motiva_advantage,
.old .about_nav {
  justify-self: center;
}

.demo_btn_nav {
  justify-self: right;
}

.site_logo .mega_cap.old {
  font-size: 3em;
  display: inline-block;
  vertical-align: middle;
  line-height: 1em;
}

.site_logo img {
  max-height: 50px;
  align-self: center; /* will this work inside a grid member child? */
}

.big_red {
  padding: 0.5em 1em;
  border-radius: 5px;
  border: 0px;
  background-color: red;
  color: white;
  font-weight: bold;
}

div.demo_btn_sec {
  text-align: right;
}

button.clear_btn {
  background: transparent;
  border: 1px solid green;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  padding: 0.5em;
}

div.tall_div {
  /* cause page to always have to scroll */
  min-height: 100vh;
}

/*
 * -- BODY CONTENT CLASSES
 */

.activation_bar_content,
.welcome_text,
.calculator_content,
.general_content {
  width: 90%;
  margin: 0px auto;
  padding: 2em 0px;
}

.general_content {
  font-family:sans-serif;
}

.welcome_text {
  overflow: hidden; /* prevent floating children from collapsing container height */
}

.welcome_text_collage {
  height: 30vw;
  width: auto;
  float: right;
  margin-left: 1.5em;
}

.activation_bar,
.activation_bar_placeholder {
  /* height: 3vw; */
  background-color: var(--codebar-red);
  color: white;
  width: 100%;
}

.activation_bar.fixed {
  position: fixed;
  top: 112px;
  z-index: 2;
}
.activation_bar_content {
  padding: 0.75em 0px;
  display: grid;
  grid-template-areas: "caption input go-btn";
  grid-template-columns: auto 18em 3em;
  justify-items: stretch;
  font-size: 2vw;
  position: relative;
}

#scroll_debug {
  position: absolute;
  font-size: 0.5em;
  font-family: sans-serif;
  bottom: 0;
  left: 0;
  width: 200px;
}

.activation_bar_content .caption {
  grid-area: caption;
  justify-self: right;
  margin-right: 0.5em;
}
#pointer_airplane {
  width: auto;
  height: 1.25em;
  vertical-align: middle;
  margin-left: 0.5em;
}
/* .activation_bar_content */
#activation_code {
  grid-area: input;
  font-size: 1em;
  color: var(--codebar-red);
}
.activation_bar_content .go_button {
  grid-area: go-btn;
  background-color: transparent;
  border-radius: 10px;
  font-size: 1em;
  color: white;
  width: 2.5em;
  margin-left: 0.5em;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold"; /* force named fonts for this button */
}

/*
  * -- WELCOME TEXT SECTION
  */
.blue_header {
  font-size: 4vw;
  margin: 0px;
}
/*
 * -- SAVINGS CALCULATOR SECTION
 */
section.calculator {
  background-color: var(--body-gray);
  min-height: 10em;
}
.calc_ico {
  vertical-align: baseline;
  height: auto;
  width: 5.4vw;
}
.calculator_headline {
  font-size: 4vw;
  letter-spacing: -3px;
}
a.reset_link {
  color: #df0000;
}
.sample_savings {
  padding: 0.5em 0px;
}

.calculator_steps {
  padding: 2em 0px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 2em;
}

.calculator_steps > input {
  display: none;
}
/*
 * VISUAL SWITCH RULE SET (CANCELLED)
 */
.not_used .calculator_steps input:checked + label .badge_block {
  background-color: var(--body-green);
}

.calculator_step_cell {
  display: grid;
  grid-template-areas: "badge" "."; /* the icon_caption area name is giving Firefox browser grief */
  grid-template-rows: 3em auto;
  justify-items: center;
  row-gap: 1em;
}
.calculator_step_cell.old {
  cursor: pointer;
}

.step_detail_wrapper {
  display: grid;
  grid-template-areas: "icon" "caption";
  grid-template-rows: minmax(12vw, 1fr) 1em;
  align-items: center;
  justify-items: center;
  row-gap: 1em;
}

.calculator_steps button {
  color: white;
  background-color: var(--codebar-red);
  border-color: var(--codebar-red);
  border-width: 1px;
  font-size: 1.25rem;
  font-weight: bold;
  cursor: pointer;
  display: block;
  width: 50%;
  margin: 0.5em auto;
  user-select: none;
  line-height: 1.5;
  border-radius: 0.25rem;
}

.step_detail_wrapper.show_result {
  position: relative; /* non-empty CSS rule */
}
.done .step_detail_wrapper {
  grid-template-areas: "databox";
  grid-template-rows: auto;
  row-gap: none;
}
.show_result > .icon_caption {
  position: relative; /* non-empty CSS rule */
}
.done .step_detail_wrapper > :not(.data_box) {
  display: none;
}
.show_result > .data_box {
  position: relative; /* non-empty CSS rule */
}
.done .step_detail_wrapper > .data_box {
  display: block;
}
.data_box {
  grid-area: databox;
  display: none;
  text-align: center;
}
.badge_block {
  grid-area: badge;
  margin: auto;
  text-align: center;
  height: 1.5em;
  width: 1.5em;
  border-radius: 50%;
  background-color: var(--codebar-red);
  color: white;
  font-size: 2em;
}
.badge_block span {
  display: block;
  line-height: 1.5;
}
.icon_block {
  grid-area: icon;
  position: relative;
}
.icon_block img.old {
  display: block;
  height: auto;
  width: 50%;
  margin: auto;
}

.icon_block img {
  display: block;
  height: 11vw;
  width: auto;
  margin: auto;
}

.caption_block {
  grid-area: caption;
  font-size: 0.8em;
}

/*
 * -- STATE COLORS METHOD/TECHNIQUE
 * .not-done = image + caption = gray, step number bg = gray
 * (no class) = image + caption = dark gray, step number bg = red
 * .done = hidden image because results replace it, step number bg = green
 * (these are classes to apply to the div.calculator_step_cell element)
 */

/* .calculator_step_cell */
.done .badge_block {
  background-color: var(--body-green);
}
/* .calculator_step_cell */
.not-done .badge_block {
  background-color: lightgray;
}
/* .calculator_step_cell */
.not-done .caption_block {
  color: gray;
}
.not-done .icon_block .gray_img,
.icon_block .dark_gray_img {
  display: block;
}
.icon_block .gray_img,
.not-done .icon_block .dark_gray_img {
  display: none;
}

.green_caption {
  color: var(--body-green);
}
.med_blue_text,
.big_blue_text,
.huge_blue_text {
  font-weight: bold;
  line-height: 1;
  letter-spacing: -2pt;
}
.med_blue_text {
  color: var(--calc-blue-light);
  font-size: 2em;
}
.big_blue_text,
.huge_blue_text {
  color: var(--calc-blue-dark);
  font-size: 3em;
}
.huge_blue_text {
  font-size: 4em;
}
.not-done #orig_city,
.not-done #dest_city,
.done #orig_city,
.done #dest_city {
  display: none;
}
/* select tags for user selection */
#orig_city,
#dest_city {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translate(0, -50%);
}
/* text output element */
.data_box #depart_city,
.data_box #destination_city,
.data_box #est_savings {
  padding-top: 0.5em;
}

/*
 * -- DESTINATIONS MAP
 */
section.destinations_map {
  position: relative;
  background-color: rgba(0, 0, 0, 0.4);
  color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 1em 5%;
  min-height: 10em;
}

.destinations_map .yellow_header {
  color: var(--yellow-header);
  font-size: 120%;
}

.destinations_map .headline {
  font-size: 4vw;
  margin: 0px;
  text-align: center;
  line-height: 1;
  letter-spacing: -3px;
}

div.map_destinations_list {
  font-size: 1.2em;
  line-height: 1.5;
  margin-top: 1em;
}
div.six_columns {
  columns: 6;
}

.destinations_map .parallax {
  background-image: url("/assets/images/newmap2560x1419.jpg"); /* was: hiresworldmap2560x1600.jpg */
  background-size: inherit;
}
@media (min-width: 2560px) {
  .destinations_map .parallax {
    background-size: cover;
  }
}

/* left over from cloned source site */
section.umbrella {
  background-image: url("/assets/images/umbrella.jpg");
  background-size: cover;
  min-height: 46vw; /* based on proportion of image */
  padding-top: 1.5em;
  color: white;
  padding: 0px 1.5em 1.5em;
}

.section_content.two_column {
  display: grid;
  grid-template-columns: 51% auto;
}

.homepage_sec h1 {
  font-size: 4vw; /* adjust header font size based on browser width */
  margin: 1em 0px 0.5em;
}

span.green_letters {
  color: #c9f29d;
}

/*
 * -- COOL STUFF FROM THE BOOTSTRAP CSS
 */
.custom-select {
  display: inline-block;
  width: 100%;
  height: calc(1.5em + 0.75rem + 2px);
  padding: 0.375rem 1.75rem 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  vertical-align: middle;
  background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e")
    no-repeat right 0.75rem center/8px 10px;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/*
 * == REPONSIVE RULES ==
 */

@media (max-width: 1800px) {
  section.umbrella {
    background-image: url("/assets/images/umbrella1800.jpg");
  }
}
@media (max-width: 1200px) {
  section.umbrella {
    background-image: url("/assets/images/umbrella1200.jpg");
  }
}
@media (max-width: 960px) {
  section.umbrella {
    background-image: url("/assets/images/umbrella960.jpg");
  }
}

/* speculative media queries to help resolve specific render issues */
@media (max-width: 900px) {
  header,
  .header_placeholder {
    height: 95px;
  }
  section:first-of-type {
    margin-top: -95px;
  }
  #debug_div {
    top: 100px;
  }
  .nav_wrapper {
    justify-self: center;
  }
  .dont_use nav {
    max-width: 280px;
  }
  .dont_use nav .nav_btn {
    height: 60px;
  }
  .nav_btn .sub_nav {
    top: 60px;
  }
  .nav_btn.about_nav {
    padding-top: 1em;
  }
  .demo_btn_nav {
    max-width: 115px;
  }
  div.six_columns {
    columns: 4;
  }
  
}

/* speculative media query to shift "left_col" content to center of page and cease squeezing */
@media (max-width: 750px) {
  .section_content.two_column {
    grid-template-columns: auto;
  }
  .left_col,
  .right_col {
    max-width: 360px;
    margin: 0px auto 10px;
  }
  .homepage_sec h1 {
    text-align: center;
    font-size: 1.75em;
  }
  div.six_columns {
    columns: 3;
  }
  
}

@media (max-width: 650px) {
  header,
  .header_placeholder {
    height: 85px;
    max-height: 85px;
  }
  header {
    align-content: center;
    grid-template-columns: repeat(3, auto);
  }
  .logo_nav_container {
    z-index:3;
  }
  nav,
  .nav_burger {
    display: block;
  }
  nav .nav_btn:hover, nav .nav_btn .sub_nav:hover {
    opacity:1;
  }
  nav.outline_orange {
    outline: 1px solid orange;
  }
  nav {
    position: absolute;
    top: 59px;
    right: -25px;
    width: 12em;
  }
  .nav_wrapper {
    position: relative;
    justify-self: right;
    grid-area: nav;
  }
  .demo_btn_nav {
    grid-area: b;
    justify-self: center;
  }
  .nav_wrapper.responsive nav,
  .nav_wrapper.responsive nav .nav_btn,
  .nav_wrapper.responsive nav .nav_btn .sub_nav,
  .nav_wrapper.responsive .nav_btn.about_nav {
    display: block;
  }
  nav .nav_btn,
  .nav_btn.about_nav {
    display: none;
    border-radius: 0px;
    height: 2em;
    padding: 5px;
    border-top: 1px solid lightgray;
  }
  .nav_btn,
  .nav_btn .sub_nav {
    background-color: white;
    color: black;
  }
  .nav_btn .sub_nav {
    border-radius: 0px;
    padding: 9px 0px 5px;
    width: inherit;
    font-size: inherit;
    position: relative;
    height: 2em;
    top: inherit;
    left: inherit;
    line-height: inherit;
  }
  .nav_btn.products_services {
    height: 4em;
  }
  nav .nav_btn:hover,
  nav .nav_btn .sub_nav:hover {
    background-color: lightgray;
  }
  div.six_columns {
    columns: 2;
  }
  
}

@media (max-width: 470px) {
  .demo_btn_nav {
    display: none;
  }
  div.six_columns {
    columns: 1;
  }  
}
