/*
 * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 *
 *     http://aws.amazon.com/apache2.0/
 *
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
@import './Theme.css';

.sumerianSceneContainer {
  width: 100%;
  height: 100%;
  position: relative;
}

.sumerianScene {
  width: 100%;
  height: 100%;
}

.loadingOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--lightSquidInk);
}

.loadingContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loadingLogo {
  margin-bottom: 20px;
  width: 80px;
  fill: var(--white);
}

.loadingSceneName {
  color: var(--white);
  margin: 0 2px 20px 2px;
  font-size: 18px;
  font-family: 'Amazon Ember';
}

.loadingBar {
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background-color: var(--deepSquidInk);
}

.loadingBarFill {
  background-color: var(--light-blue);
  height: 100%;
  border-radius: 2px;
}

.sceneErrorText {
  color: var(--red);
  font-size: 14px;
  font-family: 'Amazon Ember';
}

.sceneBar {
  display: flex;
  align-items: center;
  font-size: 100%;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.sceneName {
  color: var(--white);
  margin: 0 1.5em;
  font-size: 1em;
}

.sceneActions {
  margin-left: auto;
  margin-right: 16px;
  margin-bottom: 16px;
}

.actionButton {
  position: relative;
  padding: 0;
  background: none;
  height: 54px;
  width: 54px;
  cursor:pointer;
  outline: none;
  text-decoration: none;
  border: none;
  border-radius: 30px;
  transition: all .3s ease-in-out;
  color: var(--white);
  fill: currentColor;
}

.actionButton:hover {
  background-color: var(--deepSquidInk);
  box-shadow: 0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3);
}

.actionButton:hover > .tooltip {
  display: block;
}

.actionButton:hover > svg {
  -webkit-filter: none;
  filter: none;
}

.actionButton:focus {
  outline: none;
}

.actionButton > svg {
  width: 1.8em;
  height: 1.8em;
  -webkit-filter: drop-shadow(1px 1px 1px var(--grey));
  filter: drop-shadow(1px 1px 1px var(--grey));
}

.actionIcon {
  fill: var(--white);
}

.tooltip {
  display: inline;
  position: relative;
  font-size: 12px;
  font-family: 'Amazon Ember';
  margin: 0 0 0 16px;
}

.autoShowTooltip .actionButton {
  background-color: var(--deepSquidInk);
}

.tooltip:after {
  background-color: var(--deepSquidInk);
  border-radius: 2px;
  bottom: 46px;
  color: var(--white);
  content: attr(data-text);
  text-decoration: none;
  padding: 10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  position: absolute;
  white-space: nowrap;
  opacity: 0;
  transition: all .3s ease-in-out;
}

.tooltip:before {
  border: solid;
  border-color: var(--deepSquidInk) transparent transparent transparent;
  border-width: 5px;
  bottom: 36px;
  content:"";
  left: 50%;
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  -o-transform: translateX(-50%);
  transform: translateX(-50%);
  position: absolute;
  font-size: 14px;
  opacity: 0;
  transition: all .3s ease-in-out;
}


.autoShowTooltip:after,
.tooltip:hover:after {
  opacity: 1;
  transition-delay: 1s;
}

.autoShowTooltip:before,
.tooltip:hover:before {
  opacity: 1;
  transition-delay: 1s;
}