/*
 *  Katana - a powerful, open-source screenshot utility
 *
 *  Copyright (C) 2018, Gage Alexander <gage@washedout.co>
 *
 *  Katana is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  any later version.
 *
 *  Katana  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 Katana. If not, see <http://www.gnu.org/licenses/>.
 */

* {
  cursor: default;
}

html {}

body {
  background: #444 url('../background.png');
  background-size: 640px;
  background-position: bottom left;
  padding: 0;
  margin: 0;
  user-select: none;
  height: 100%;
  overflow: hidden !important;
  font-family: 'Helvetica Neue', 'Lucida Grande';
  font-size: 12px;
  width: 420px !important;
  max-width: 420px !important;
  animation: fadeIn 0.7s;
  color: rgba(255, 255, 255, 0.75);
}

html,
body,
.sidebar,
.container {
  -webkit-app-region: drag;
}

img,
button,
a,
input {
  -webkit-user-drag: none;
}

a,
a:link,
a:active,
a:visited {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: all .2s;
}

a:hover {
  color: rgba(255, 255, 255, 0.6);
}

.sidebar {
  background: rgba(0, 0, 0, 0.2);
  box-shadow: 2px 0px 24px rgba(0, 0, 0, 0.2);
  position: absolute;
  left: 0px;
  top: 0px;
  width: 140px;
  height: 100%;
  text-align: center;
  padding-top: 32px;
}

.sidebar>img {
  width: 48px;
  margin-top: 18px;
  transition: all .2s;
}

.sidebar>img:hover {
  transform: scale(1.07) rotate(4deg);
}

.sidebar>ul {
  margin: 4px 0px;
  padding: 0px;
  list-style-type: none;
}

.sidebar>ul>li {
  margin: 0px;
  padding: 8px;
  padding-left: 16px;
  padding-right: 18px;
  line-height: 24px;
  text-align: right;
  text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  vertical-align: middle;
  transition: all .2s;
  background: transparent;
}

.sidebar>ul>li.active,
.sidebar>ul>li:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #fff;
}

.sidebar>ul>li.save:hover {
  background: linear-gradient(to bottom, #6eb4f7 0%, #1a82fb 100%);
}

.sidebar>ul>li>.icon {
  /*(-webkit-filter: invert(100%);*/
  position: absolute;
  left: 18px;
  font-size: 26px;
  vertical-align: middle;
  padding-right: 18px;
  text-align: left;
}

.container {
  /*background: rgba(255, 255, 255, 0.75);*/
  position: absolute;
  top: 0px;
  left: 100px;
  width: 100%;
  height: 100%;
}

.container>.view {
  display: none;
  padding: 60px;
  padding-top: 40px;
}

.container>.view>h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  /*background: rgba(255, 255, 255, 0.2);*/
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 6px;
  padding-left: 10px;
}

.container>.view h4 {
  margin-bottom: 10px;
}

.container>.view>.content {
  margin-top: -40px;
  width: 380px;
}

.container>.view>.content>h3 {
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.button-text {
  background: transparent !important;
  color: #333;
  text-decoration: underline !important;
  padding: 8px 4px;
  border: none !important;
  font-size: 12px !important;
}

.button-text:hover {
  opacity: 0.75;
}

.button-close {
  display: block;
  width: 12px;
  height: 12px;
  border: 0px;
  border-radius: 100%;
  /*background: rgba(255, 255, 255, 0.5);*/
  background: #fc625d;
  position: absolute;
  top: 8px;
  left: 6px;
  z-index: 99999;
  transition: all .2s;
}

.button-close:hover {
  background: #fc625d;
  opacity: 0.75;
}

.button-close:active,
.button-close:focus {
  outline: none;
}

.section {
  margin: 6px 0px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 12px;
}

.section.disabled {
  opacity: 0.5;
  cursor: default !important;
}

.section:last-child {
  border-bottom: none;
}

.section>.title {
  margin: 0;
}

.section>.subtitle {
  font-size: 11px;
  margin-top: 4px;
  opacity: 0.75;
}

.section.disabled .switch,
.section.disabled .slider,
.section.disabled input {
  cursor: default !important;
}

.section>.switch {
  position: absolute;
  right: 120px;
  margin-top: -36px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
  vertical-align: middle;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: .4s;
  border-radius: 12px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 2px;
  background-color: #ebebeb;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #0489B1;
}

input:checked+.slider:before {
  transform: translateX(16px);
}

#general .select {
  margin-top: 10px;
}

#general .select>span {
  display: block;
  font-weight: bold;
}

#general .select>select {
  margin-top: 6px;
}

.backdrop {
  display: none;
  background: rgba(0, 0, 0, 0.35);
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  color: #fff;
  z-index: 9999;
}

.backdrop.dark {
  padding-top: 20px;
  background: rgba(0, 0, 0, 0.75);
  z-index: 999999;
}

.backdrop>.content {
  margin: 35px auto;
  background: rgba(255, 255, 255, 1);
  border-radius: 6px;
  padding: 0px;
  padding: 10px;
  width: 300px;
  text-align: center;
  color: #333;
}

.backdrop>.content>.icon {
  font-size: 72px;
  color: #34A545;
  display: block;
}

#history .history-container>ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  height: 300px;
  width: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-top: 14px;
}

#history .history-container .screenshot {
  list-style-type: none;
  vertical-align: middle;
  padding: 4px;
  padding-left: 0px;
  width: 800px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid #444;
}

#history .history-container .screenshot:last-child {
  border-bottom: none;
}

#history .history-container .screenshot>p {
  text-align: left;
  margin-bottom: 0px;
  margin-top: 2px;
}

#history .history-container .screenshot .icon {
  font-size: 16px;
  margin-right: 4px;
}

#history .history-container .screenshot .thumbnail {
  padding: 4px;
  width: 36px;
  height: 36px;
  float: left;
  margin-right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  white-space: nowrap;
}

#history .history-container .screenshot .thumbnail>img {
  height: 36px; width: 36px;
  vertical-align: middle;
}

#uploadPath {
  margin-bottom: 20px;
}

#servicePrompt {}

#servicePrompt input {
  width: 200px;
}

#servicePrompt>.content {
  text-align: left;
  padding: 28px;
  margin-top: 22px;
}

#servicePrompt>.content p {
  padding: 0px;
  margin: 0px;
}

#servicePrompt>.content .title {
  font-size: 14px;
  margin-bottom: 8px;
}

#servicePrompt>.content .label {
  font-size: 12px;
  font-weight: bold;
}

#servicePrompt>.content .sublabel {
  opacity: 0.5;
}

.button-save {
  background: #50AC50 !important;
  color: #eee !important;
}

.right {
  margin-top: 20px;
  margin-right: -10px;
  margin-bottom: -20px;
  text-align: right;
}

.control {
  background-color: rgba(255, 255, 255, 0.8);
  color: #000;
  padding: 5px 8px;
  border-radius: 4px !important;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  vertical-align: middle;
  transition: all .2s;
  border: 2.5px solid transparent;
  -webkit-appearance: none;
}

.control.active {
  border-color: #0489B1;
}

.control:focus,
.control:active {
  outline: none;
}

select.control {
  height: 29px;
  width: 140px;
}

select.control {
  padding-top: 3px;
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.shortcutInput {
  width: 200px;
  margin-bottom: 12px;
}

div.title {
  display: inline-block;
  font-size: 22px;
  font-family: 'Rounded Bold', 'Helvetica Neue', sans-serif;
  margin-top: 12px;
  margin-left: 14px;
  margin-bottom: 16px;
}

.button {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 0%, rgba(238, 238, 238, 1) 100%);
  color: #000;
  padding: 6px 8px;
  border: none;
  outline: none !important;
  border-radius: 4px !important;
  box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2);
  font-size: 12px;
  font-weight: 400 !important;
  vertical-align: middle;
  transition: all .2s;
  width: 100px;
  margin: 8px 0px;
  text-decoration: none;
  opacity: 0.8;
}

.button:hover {
  opacity: 1 !important;
  color: #000;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.3);
}

.button>.icon {
  margin-right: 4px;
}

.button.primary {
  width: 120px;
  background: linear-gradient(to bottom, #439df7 0%, #207FDD 100%);
  color: #fff !important;
  border: 1px solid #207FDD;
  margin-top: 20px;
}

.button.small {
  padding: 4px 6px;
  font-size: 10px;
  width: 110px;
}

.button.small>span {
  font-size: 14px !important;
}

.progress {
  display: none;
  margin: 0 auto;
  width: 200px;
  font-size: 11px;
}

.progress>.octicon {
  font-size: 12px;
  margin-right: 2px;
}

.icon-spin {
  display: inline-block;
  -webkit-animation: icon-spin 1s infinite linear;
  animation: icon-spin 1s infinite linear;
  float: right;
  color: #333;
  margin-right: 169px;
  margin-top: -36px;
  font-size: 16px;
  z-index: 99;
}

@keyframes icon-spin {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(359deg);
    transform: rotate(359deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hidden {
  display: none;
}

span.helper {
  display: inline-block;
  height: 100%;
  vertical-align: middle;
}

.spinner {
  width: 40px;
  height: 40px;

  position: relative;
  margin: 100px auto;
}

.double-bounce1, .double-bounce2 {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #fff;
  opacity: 0.6;
  position: absolute;
  top: 0;
  left: 0;
  
  -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
  animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
  -webkit-animation-delay: -1.0s;
  animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
  0%, 100% { -webkit-transform: scale(0.0) }
  50% { -webkit-transform: scale(1.0) }
}

@keyframes sk-bounce {
  0%, 100% { 
    transform: scale(0.0);
    -webkit-transform: scale(0.0);
  } 50% { 
    transform: scale(1.0);
    -webkit-transform: scale(1.0);
  }
}