/*
 * This file is part of AdBlock  <https://getadblock.com/>,
 * Copyright (C) 2013-present  Adblock, Inc.
 *
 * AdBlock is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * AdBlock is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with AdBlock.  If not, see <http://www.gnu.org/licenses/>.
 */

:host {
  all: initial;

  --text-color: #333333;
  --button-color: white;
  --button-background: #2284f7;
  --button-background-hover: #e40d0d;
  --icon-color: #666666;
  --icon-color-hover: #333333;
  --icon-border-color: #e6e6e6;
  --premium-accent: #ffca00;
  --link-color: #2284f7;
  --main-icon-background-color: #f4f4f4;
  --thumb-background-color: #c4c4c4;
}

* {
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
}

.material-icons {
  font-family: "Material Icons";
  cursor: pointer;
  font-weight: normal;
  font-style: normal;
  font-size: 24px; /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  vertical-align: middle;
  color: var(--icon-color);

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;

  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: "liga";
}

.material-icons.md-20 {
  font-size: 20px;
}

/* RTL language */

[dir="rtl"] {
  left: auto;
  right: 75px;
}

#overlayIcon {
  height: 32px;
  width: 32px;
  float: right;
  cursor: pointer;
  background-color: inherit;
}

#iconlogo {
  position: relative;
  left: 5px;
  top: 32px;
  display: inline-block;
  background-color: inherit;
}

.header-section {
  display: flex;
  align-items: center;
}

.header-logo {
  height: 20px;
  width: auto;
}

.header-logo-text {
  color: #999999;
  font-size: 12px;
  line-height: 140%;
  padding-left: 6px;
}

#header-icons {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--icon-border-color);
  padding-bottom: 8px;
  align-items: center;
}

#header-icons .material-icons {
  color: var(--icon-color);
}
#header-icons .material-icons:hover {
  color: var(--icon-color-hover);
}

#header-icons .material-icons:focus {
  outline: #2284f7 auto 5px;
  opacity: 1;
}

#settingsIcon {
  margin-right: 8px;
}

.hoverOverIcon {
  position: fixed;
  bottom: var(--icon-bottom-position);
  right: -300px;
  animation: slideInFromRight 1s forwards;
  animation-delay: 1s;
}

.grow {
  display: none;
  opacity: 0;
  width: 288px;
  height: 205px;
  padding: 8px 16px 24px 16px;
}

.hoverOverIcon:hover .grow {
  display: block;
  animation-duration: 300ms;
  animation-name: showMore;
  animation-timing-function: linear;
  animation-fill-mode: both;
}

.showMoreIcon {
  display: block;
  animation-duration: 1500ms;
  animation-name: showMore;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-delay: 1s;
}

@keyframes slideInFromRight {
  100% {
    right: var(--icon-right-position);
  }
}

@keyframes showMore {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.speech-bubble {
  position: relative;
  background-color: var(--main-icon-background-color);
  box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.25);
  border-radius: 6px;
  bottom: -20px;
  right: -14px;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 90%;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  border-top-color: var(--main-icon-background-color);
  border-bottom: 0;
  margin-left: -5px;
  margin-bottom: -12px;
}

#speech-bubble-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 143px;
}

.titleRow {
  display: flex;
  font-weight: bold;
  height: 22px;
  color: var(--text-color);
  margin: 12px 0 8px 0;
}

#titlePrefixText {
  display: inline-flex;
  align-items: center;
  background-color: var(--premium-accent);
  border-radius: 2px;
  font-size: 10px;
  padding: 0px 4px;
  margin-right: 5px;
  height: 18px;
}

.msgBody {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#msgText {
  font-size: 13px;
  line-height: 140%;
  color: var(--text-color);
  width: 100%;
  min-height: 83px;
  margin-right: 10px;
  overflow: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--thumb-background-color) var(--scrollbarBG);
}

#msgText::-webkit-scrollbar {
  width: 8px;
}

#msgText::-webkit-scrollbar-track {
  background-color: var(--main-icon-background-color);
}

#msgText::-webkit-scrollbar-thumb {
  background-color: var(--thumb-background-color);
  border-radius: 6px;
}

#footer {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 21px;
  margin-bottom: 30px;
}

#btnLearnMore {
  font-weight: bold;
  font-size: 12px;
  line-height: 17px;
  height: 32px;
  min-width: 100%;
  border-radius: 6px;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--button-color);
  background-color: var(--button-background);
}

#btnLearnMore:hover {
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
}
