/*
Theme Name: What Size Is It?
Author: Harmonic Design
Author URI: https://harmonicdesign.ca
Description: styles for whatsizeis.it
*/

html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*,
*:before,
*:after {
  -webkit-box-sizing: inherit;
  -moz-box-sizing: inherit;
  box-sizing: inherit;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-size: 22px;
  line-height: 1.6;
  color: #222;
  font-family: sans-serif;
  overflow-x: hidden;
  background: linear-gradient(to bottom, #2d3342, #000000);
}

img {
  max-width: 100%;
  height: auto;
}

h1 {
  margin: 0;
  padding: 0;
  color: #fff;
}

code {
  border-radius: 6px;
  background: #eee;
  padding: 4px 6px;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-thumb {
  background: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(#ff9721),
    to(#c41019)
  );
  background: linear-gradient(to bottom, #ff9721, #c41019);
  border-radius: 8px;
}
html::-webkit-scrollbar-track {
  background: #222;
}

.wrap {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

#header {
  height: 100vh;
  width: 100%;
  text-align: center;
  background: url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #fff;
  position: relative;
}

#the_object_wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

#the_object {
  display: none;
  background: rgba(115, 27, 27, 0.6);
  border: 2px solid rgb(115, 27, 27);
  position: absolute;
  margin-top: -10%;
}

.overlay {
  background: rgba(0, 0, 60, 0.75);
  background: -moz-linear-gradient(
    left,
    rgba(0, 0, 60, 0.75) 0%,
    rgba(7, 104, 121, 0.6) 100%
  );
  background: -webkit-gradient(
    left top,
    right top,
    color-stop(0%, rgba(0, 0, 60, 0.75)),
    color-stop(100%, rgba(7, 104, 121, 0.6))
  );
  background: -webkit-linear-gradient(
    left,
    rgba(0, 0, 60, 0.75) 0%,
    rgba(7, 104, 121, 0.8) 100%
  );
  background: -o-linear-gradient(
    left,
    rgba(0, 0, 60, 0.75) 0%,
    rgba(7, 104, 121, 0.6) 100%
  );
  background: -ms-linear-gradient(
    left,
    rgba(0, 0, 60, 0.75) 0%,
    rgba(7, 104, 121, 0.6) 100%
  );
  background: linear-gradient(
    to right,
    rgba(0, 0, 60, 0.75) 0%,
    rgba(7, 104, 121, 0.6) 100%
  );
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}

#header .wrap {
  padding-top: 5%;
  position: relative;
  z-index: 2;
}

#header h2 {
  margin-bottom: 42px;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 400;
}

#size_input {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-column-gap: 20px;
  margin: 0 auto;
  text-align: left;
}

#content_wrapper {
  background: #efefef;
}
#content h2 {
  padding: 42px 0 0 0;
  text-transform: uppercase;
  max-width: 60%;
  line-height: 1.4;
  margin-top: 0;
}

#content p:last-child {
  margin-bottom: 120px;
}

.hd_row label {
  display: block;
  cursor: pointer;
  position: absolute;
  left: 0;
  bottom: -40px;
}

.hd_content {
  display: grid;
  grid-gap: 20px;
  grid-template-columns: 1fr 200px 800px 200px 1fr;
}

.hd_row {
  position: relative;
}

.hdf_select_wrapper {
  position: absolute;
  width: 100%;
  z-index: 1;
}

#hd_unit.active .hdf_select_row {
  display: block;
}

.hdf_select_row.hdf_select_selected {
  border: 2px solid #fff;
  display: block;
  background: initial;
  color: inherit;
}

.active .hdf_select_selected {
  background: #474449;
}

.hdf_input {
  border: 2px solid #fff;
  padding: 12px 22px;
  font-size: 22px;
  line-height: 1.6;
  width: 100%;
  background: transparent;
  color: #fff;
}

.button {
  border: 2px solid #fff;
  padding: 12px 22px;
  font-size: 22px;
  line-height: 1.6;
  width: 100%;
  background: transparent;
  color: #fff;
  opacity: 0.3;
}

.button.active {
  opacity: 1;
  cursor: pointer;
}

.button.active:hover {
  background: #fff;
  color: #222;
}

.hdf_select_row {
  padding: 12px 22px;
  display: none;
  cursor: pointer;
  border-bottom: 1px solid #555;
  font-size: 22px;
  line-height: 1.6;
}

.hdf_select_row {
  background: #2d2d2d;
  color: #fff;
}

#back {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 22px 0;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  z-index: 9;
  display: none;
  cursor: pointer;
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
  opacity: 0;
}

#share_object {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  line-height: 40px;
  text-align: center;
  background: rgba(255, 266, 255, 0.45);
  color: #fff;
  z-index: 9;
  border-radius: 50%;
  cursor: pointer;
  text-align: center;
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
  opacity: 0;
  display: none;
}

#share_object:hover {
  background: rgba(255, 266, 255, 0.9);
}

#share_object.active {
  width: auto;
  border-radius: 12px;
  padding: 0 12px;
  background: rgba(255, 266, 255, 0.9);
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}

.share_confirmation {
  line-height: 1.4;
  color: #222;
  display: none;
  opacity: 0;
}

#share_object.active .share_confirmation {
  display: inline;
  opacity: 1;
}

#share_object img {
  height: 50%;
  width: auto;
}

.toHide {
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
  opacity: 1;
}

#footer {
  padding-bottom: 60px;
}

#hd_social_share {
  position: fixed;
  top: 15%;
  left: 0;
  background: #eee;
  padding: 12px;
  z-index: 9;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  -webkit-transition: all 500ms ease-in-out;
  -moz-transition: all 500ms ease-in-out;
  -o-transition: all 500ms ease-in-out;
  -ms-transition: all 500ms ease-in-out;
  transition: all 500ms ease-in-out;
}

#hd_social_share a {
  display: block;
  line-height: 1;
  text-decoration: none;
}

#hd_social_share a span {
  line-height: 1.6;
  display: none;
}

#hd_social_share a:hover > span {
  position: absolute;
  display: inline-block;
  width: 300px;
  left: 62px;
  margin-top: -30px;
  color: #fff;
}

#hd_social_share a:first-child {
  margin-bottom: 12px;
}

#hd_social_share svg {
  fill: #222;
  height: auto;
  width: 25px;
}

#hd_social_share .twitter {
  margin-bottom: -4px;
}

#hd_social_share a:hover > .facebook:hover {
  fill: #3c5a99;
}

#hd_social_share a:hover > .twitter:hover {
  fill: #0084b4;
}

@media (max-width: 1000px) {
  h1 {
    line-height: 1;
    font-size: 1.4em;
  }

  h2 {
    font-size: 1.6em;
    line-height: 1;
  }

  h3 {
    font-size: 1.4em;
    line-height: 1;
  }

  .hd_content {
    grid-template-columns: 100%;
  }

  .hd_content > * {
    grid-column: 1 / -1;
    padding: 0 20px;
  }

  #header {
    height: 72vh;
    background-attachment: initial;
  }

  #header .wrap {
    padding-top: 15%;
  }

  #size_input {
    grid-template-columns: 1fr 1fr;
  }

  .hd_row {
    margin-bottom: 52px;
  }

  #hd_unit {
    height: 48px;
  }

  .wrap {
    padding: 0 20px;
  }

  .hdf_input,
  .hdf_select_row,
  .button {
    font-size: 18px;
    padding: 8px;
  }

  #back {
    padding: 12px 0;
  }

  #hd_social_share {
    top: initial;
    left: initial;
    bottom: 0;
    right: 0;
    padding: 8px 10px;
    height: 44px;
    background: #ccc;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 8px;
  }

  #hd_social_share svg {
    width: 30px;
  }

  #hd_social_share a {
    display: inline-block;
  }

  #hd_social_share a:first-child,
  #hd_social_share .twitter {
    margin-bottom: 0;
  }

  #hd_social_share a:first-child {
    margin-right: 8px;
  }

  #hd_social_share a:hover > span {
    display: none;
  }
}
