@font-face {
  font-family: OpenSans;
  src: url(../fonts/open-sans.ttf);
}

*{
  box-sizing: border-box;
  user-select: none;
}

body{
  padding: 0;
  margin: 0;  
  font-family: OpenSans, sans-serif;
  transition: background 0.1s ease;
}


svg{
  fill: var(--fill, black);
}

.btn-trigger{
  padding: 5px 10px;
  background: #ddd;
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
  font-size: 12px;
  white-space: nowrap;
  margin: 0 0 0 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-trigger:hover{
  background: #ccc;
}

.btn-trigger.focus{
  background: rgb(212, 219, 255);
  color: rgb(0, 51, 255);
  --fill: rgb(0, 51, 255);
}



.btn-trigger[data-icon] span{
  margin: 0 0 0 5px;
}

.btn-trigger[data-icon] svg{  
  width: 16px;
  height: 16px;
}


.cont-page{
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom, white, #7588ff);
}

@media only screen and (min-width: 2200px), (min-height: 1100px){
  .cont-page{
    padding: 20px;
  }

  .page{
    border-radius: 20px;
  }
}

/*
      :::::::::     :::      ::::::::  ::::::::::
     :+:    :+:  :+: :+:   :+:    :+: :+:
    +:+    +:+ +:+   +:+  +:+        +:+
   +#++:++#+ +#++:++#++: :#:        +#++:++#
  +#+       +#+     +#+ +#+   +#+# +#+
 #+#       #+#     #+# #+#    #+# #+#
###       ###     ###  ########  ##########
*/

.page{
  width: 100%;
  max-width: 2200px;
  height: 100%;
  max-height: 1100px;
  display: flex;  
  /* overflow: hidden; */
  position: relative;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 0;
  flex-flow: column;
  align-items: center;
  overflow-y: auto;
}

.page-content{
  display: flex;
  flex-flow: column;
  width: 100%;
  max-width: 1000px;
  padding: 0 10px 30px 10px;
}

h1{
  color: rgb(53, 80, 255);
}

h1 .api-version{
  font-size: 14px;
}

/*
      :::    ::: ::::::::::     :::     :::::::::  :::::::::: :::::::::
     :+:    :+: :+:          :+: :+:   :+:    :+: :+:        :+:    :+:
    +:+    +:+ +:+         +:+   +:+  +:+    +:+ +:+        +:+    +:+
   +#++:++#++ +#++:++#   +#++:++#++: +#+    +:+ +#++:++#   +#++:++#:
  +#+    +#+ +#+        +#+     +#+ +#+    +#+ +#+        +#+    +#+
 #+#    #+# #+#        #+#     #+# #+#    #+# #+#        #+#    #+#
###    ### ########## ###     ### #########  ########## ###    ###
*/

header{
  position: sticky;
  width: 100%;
  top: 0;
  left: 0;
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  height: 50px;
  background: white;
  z-index: 10;
}

header .content{
  width: 100%;
  max-width: 1000px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
}

header .logo{  
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px 0 0;
  z-index: 1;
}

.logo img{  
  width: 25vw;;
  max-width: 120px;
  margin: 0 5px 0 0;
}

.logo span{
  flex-shrink: 0;
  white-space: nowrap;
}

ul li{
  margin: 0 0 10px 0;
}
details{
  margin: 20px 0;
}

details summary{
  cursor: pointer;
  padding: 3px 10px;
  border-radius: 7px;  
  width: fit-content;
  transition: background 0.2s ease;
  background: #ddd;
}

details summary:hover{
  background: #ccc;
}

hr{
  
  width: 100%;
}

/*
    :::       ::: ::::::::::: :::::::::   ::::::::  :::::::::: ::::::::::: ::::::::
   :+:       :+:     :+:     :+:    :+: :+:    :+: :+:            :+:    :+:    :+:
  +:+       +:+     +:+     +:+    +:+ +:+        +:+            +:+    +:+
 +#+  +:+  +#+     +#+     +#+    +:+ :#:        +#++:++#       +#+    +#++:++#++
+#+ +#+#+ +#+     +#+     +#+    +#+ +#+   +#+# +#+            +#+           +#+
#+#+# #+#+#      #+#     #+#    #+# #+#    #+# #+#            #+#    #+#    #+#
###   ###   ########### #########   ########  ##########     ###     ########
*/

.cont-widgets{
  display: flex;
  flex-flow: column;
  align-items: center;
  width: 100%;
  margin: 20px 0 0 0;
}

.cont-widgets .widget{
  width: 100%;
  display: flex;
  flex-flow: column;
  align-items: center;
  border: 1px solid rgb(149, 171, 255);
  border-radius: 20px;
  padding: 0 15px 20px 15px;
  margin: 0 0 20px 0;
}

.cont-widgets .widget-title{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% + 30px);  
  margin: 0 0 20px 0;
  background: rgb(246 239 255);
  border-radius: 20px 20px 0 0;
  padding: 10px;
}

.cont-widgets .widget-title .cont-triggers{
  display: flex;
  align-items: center;
}

.cont-params{
  width: 100%;
  display: flex;
  margin: 0 0 20px 0;
}

span.code{
  white-space: nowrap;
  padding: 2px 2px;
  background: #ddd;
  font-family: monospace;
  font-size: 14px;
  user-select: text;
}

span.code.selected{
  background: rgb(212, 219, 255);
  color: rgb(0, 51, 255);
}

.cont-params span.code:not(.attr){
  cursor: pointer;
}

.cont-params span.code:not(.attr):hover{
   outline: 1px solid black;
}

.share-code{
  display: flex;
  align-items: center;
}

.share-code span.code{
  background: rgb(212, 219, 255);
  color: rgb(0, 51, 255);
  white-space: wrap;
  display: block;
  padding: 10px;
  border-radius: 7px;
  margin: 0 10px 0 0;
}

span.code.attr{
  font-weight: bold;
  user-select: text;
}

@media only screen and (max-width: 600px){
  span.code{
    font-size: 10px;
  }

  .share-code span.code{
    word-break: break-all;
  }
}

/*
          :::     :::        :::::::::: ::::::::: :::::::::::
       :+: :+:   :+:        :+:        :+:    :+:    :+:
     +:+   +:+  +:+        +:+        +:+    +:+    +:+
   +#++:++#++: +#+        +#++:++#   +#++:++#:     +#+
  +#+     +#+ +#+        +#+        +#+    +#+    +#+
 #+#     #+# #+#        #+#        #+#    #+#    #+#
###     ### ########## ########## ###    ###    ###
*/

.modal.custom-alert{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;  
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px;
  z-index: 10;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease 0s 1 both;
}

.modal.custom-alert.ok-copy{  
  background-image: linear-gradient(to bottom, rgba(56, 255, 96, 0.7), rgba(43, 255, 75, 0.3), transparent 30%);
}

.modal.custom-alert.error-copy,
.modal.custom-alert.error-download
{  
  background-image: linear-gradient(to bottom, rgba(255, 56, 56, 0.7), rgba(255, 43, 43, 0.3), transparent 30%);
}

.modal.custom-alert.ok-download{  
  background-image: linear-gradient(to bottom, rgba(255, 235, 56, 0.7), rgba(255, 234, 43, 0.3), transparent 30%);
}
  
.modal.custom-alert .content{
  background: white;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0 40px 0;
  max-width: 350px;
  font-weight: bold;
  box-shadow: 0 25px 10px -6px rgba(0, 0, 0, 0.2);
  animation: fadeIn-toDown 0.3s ease 0.1s 1 both;
}
  
.modal.custom-alert.ok-copy .content{
  background: rgb(239, 255, 217);
  color: black;
}

.modal.custom-alert.ok-download .content{
  background: rgb(255, 255, 217);
  color: black;
}
  
.modal.custom-alert.error-copy .content,
.modal.custom-alert.error-download .content
{
  background: rgb(255, 209, 209);
  color: black;
}

/*
      :::::::::: :::    :::
     :+:        :+:    :+:
    +:+         +:+  +:+
   :#::+::#     +#++:+
  +#+         +#+  +#+
 #+#        #+#    #+#
###        ###    ###
*/


@keyframes fadeIn-toDown {
  0%{opacity: 0; visibility: hidden; transform: translateY(-30%)}
  100%{opacity: 1; visibility: visible; transform: translateY(0%)}
}

@keyframes fadeOut-toUp {
  0%{opacity: 1; visibility: visible; transform: translateY(0%)}
  100%{opacity: 0; visibility: hidden; transform: translateY(-30%)}
}


@keyframes fadeIn {
  0%{opacity: 0; visibility: hidden;}
  100%{opacity: 1; visibility: visible;}
}

@keyframes fadeOut {
  0%{opacity: 1; visibility: visible;}
  100%{opacity: 0; visibility: hidden;}
}
