/* 
Copyright 2022 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License 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.
*/

@tailwind base;
@tailwind components;
@tailwind utilities;

html, body {
  min-height:100%;
  height: 100%;
  scroll-behavior: smooth;
}

.embed-dashboard-main {
  width: 100%;
  height: 100%;
  vertical-align: top;
  z-index: 1;
}

.dashboard-nav-items {
  opacity: 100;
  transition: opacity 2s;
  overflow: hidden;
  overflow-y: auto !important;
  max-height: 85vh;
}
.dashboard-nav-items.collapse {
  opacity: 0;
  transition: opacity 0.5s;
  overflow: hidden;
}

.custom-button {
  background-color: white;
  border: none;
  width: 40px;
  height: 40px;
  margin: 5px;
  padding: 0;
}

.custom-button:hover,
.custom-button:focus,
.custom-button:active {
  background: #efefef;
  border-color: #efefef;
}

.custom-button > svg {
  fill: var(--primary-color);
  width: 20px;
}

ul.nav-list {
  list-style-type: none;
  padding-left: 0px;
}

.nav-item {
  padding: 10px 10px 10px 40px;
  color: rgb(38, 45, 51);
  border-radius: 0 20px 20px 0;
  font-size: 0.875rem;
}

.nav-item:hover {
  background-color: #f5f6f7;
}

a.active > .nav-item {
  color: rgb(26, 115, 232);
  background-color: rgb(232, 241, 252);
}

.nav-list > li > a {
  text-decoration: none;
  color: inherit;
}

.main-container {
  width: calc(100% - 280px);
  margin: 0;
  align-self: baseline;
}

body {
  margin: 0;
}

#fullpage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100vw;
  height: 100%;
}

.topbar {
  /* Blue/900 */
  background: #174ea6;
  /* height: 50px; */
  min-height: 50px;
  gap: 16px;
  width: 100%;
  color: white;
  /* Elevation Light/5 */
  box-shadow: 0px 8px 12px 6px rgba(60, 64, 67, 0.15),
    0px 4px 4px rgba(60, 64, 67, 0.3);
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 16px;
  z-index: 1;
}

.home_title {
  font-size: 32px;
}

.sections {
  font-size: 16px;
}

.dropdown {
  position: relative;
}

.dropdown > ul {
  list-style: none;
}

.dropdown > button {
  font-family: inherit;
  background-color: inherit;
  color: inherit;
  padding: 0;
  font-size: 100%;
  border: 0;
}

.dropdown .dropdown__title {
  display: inline-flex;
  align-items: center;
}

.dropdown .dropdown__title:after {
  content: "";
  border: 0.35rem solid transparent;
  border-top-color: rgba(255, 255, 255, 0.45);
  margin-left: 0.25em;
  transform: translateY(0.15em);
}

.dropdown .dropdown__menu {
  position: absolute;
  min-width: 15ch;
  left: 50%;
  top: calc(100% - 0.25rem);
  transition: 280ms all 120ms ease-out;
  transform: rotateX(-90deg) translateX(-50%);
  transform-origin: top center;
  visibility: hidden;
  opacity: 0.3;
  padding: 0.5em 0;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 0.15em 0.25em rgba(0, 0, 0, 0.25);
}

.dropdown .dropdown__menu a {
  color: black;
  display: block;
  padding: 0.5em;
  opacity: 0;
  transition: 280ms all 120ms ease-out;
  text-decoration: none;
  /* font-size: 12; */
}

.dropdown .dropdown__menu a:hover {
  background-color: #174ea633;
}

.dropdown .dropdown__menu a:focus {
  outline: none;
  background-color: #174ea633;
}

.dropdown:after {
  content: "";
  border: 0.5rem solid transparent;
  border-bottom-color: #fff;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  transition: 280ms all 120ms ease-out;
  opacity: 0;
  will-change: opacity;
}

.dropdown:hover .dropdown__title,
.dropdown:focus-within .dropdown__title {
  border-top-color: pink;
}

.dropdown:hover .dropdown__menu,
.dropdown:focus-within .dropdown__menu {
  opacity: 1;
  transform: rotateX(0) translateX(-50%);
  visibility: visible;
}

.dropdown:hover .dropdown__menu a,
.dropdown:focus-within .dropdown__menu a {
  opacity: 1;
}

.dropdown:hover:after,
.dropdown:focus-within:after {
  opacity: 1;
}
