/******************************************************************************************************************************/

html {
  width: 100%;
  height: 100%;
  /*min-height: 512px;*/
}

/******************************************************************************************************************************/
/* BG GRADIENT */
body {
    font-family: Bungee;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    min-height: 512px;
	background: linear-gradient(-45deg, var(--BG-color-gradient-1), var(--BG-color-gradient-2), var(--BG-color-gradient-3), var(--BG-color-gradient-4));
	background-size: 1000vh 1000vh;
	animation: gradient 15s ease infinite;
    color: var(--body-text-color);
    text-align: center;
    /*overflow: hidden;*/
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}


/******************************************************************************************************************************/
/* ICONES */
.icone {
    width:16px;
    height:16px;
    animation: iconAppear 0.5s linear;
    overflow:hidden;
    vertical-align: bottom;
}
.icone:hover {
    animation: iconBounce 0.5s linear alternate infinite;
    overflow:hidden;
}
/*
*/

@keyframes iconBounce {
	0% {
        width:  14px;
        height: 14px;
        padding:1px;
	}
	50% {
        width:  8px;
        height: 8px;
        padding:4px;
	}
	100% {
        width:  14px;
        height: 14px;
        padding:1px;
	}
}

@keyframes iconAppear {
	0% {
        height:0px;
	}
	50% {
        height:10px;
	}
	100% {
        height:16px;
	}
}
/******************************************************************************************************************************/
/* 3D TEXT */
.iso-text {
    width: 100vw;
    height:40vh;
    font-size: 18vmin;
    font-weight: 1000;
    letter-spacing: 2vmin;
    white-space: pre;
}

.iso-div {
    transform: rotateX(60deg) rotateZ(-45deg) translateX(-50%) translateY(-50%) translateZ(calc(var(--depth) * 0.2vmin));
    transform-origin: 0 0;
    position: absolute; 
    top: 35vh; 
    left: 50vw;
    z-index: var(--depth);
    text-shadow: 
      0 -1px 0 var(--3DText-dark-edge-color), 
      1px 0 0 var(--3DText-dark-edge-color), 
      0 1px 0 rgba(var(--3DText-dark-edge-color), 0.3);
    
    &:first-child {
      text-shadow: 
        0 -1px 0 var(--3DText-dark-edge-color), 
        1px 0 0 var(--3DText-dark-edge-color);
    }
    
    &:nth-child(2) {
      color: var(--3DText-dark-edge-color);
    }
    
    &:last-child {
      color: var(--3DText-dark-edge-color);
      text-shadow: 
        0 1px 0 var(--3DText-dark-edge-color), 
        0 -1px 0 var(--3DText-dark-edge-color), 
        1px 0 0 var(--3DText-dark-edge-color), 
        -1px 0 0 var(--3DText-dark-edge-color),
        -10px 10px 5px rgba(var(--3DText-dark-edge-color), 0.2),
        -10px 10px 55px rgba(var(--3DText-dark-edge-color), 0.3);
    }
  }
}

/******************************************************************************************************************************/

.3D_Object_Container {
    position: relative; 
    width: 100%;
    height:100vh;
    justify-content: center;
    align-items: center;
    display: flex; 
    top: -10vh; 
    left: 5vw;
}
.3D_Object, #3D_Object_main, #3D_Object_main_container {
}

model-viewer::part(default-progress-bar) {
    background-color: #00000088; /*#00edf288;*/
    color: var(--3DText-dark-edge-color);
    border: 1px solid #00000088;
    border-radius: 4px;
    
    height: 10px;
    width: 80%;
    
    margin-left:10%;
    margin-right:10%;
}

model-viewer::part(default-progress-bar) > .bar {
    opacity:1;
}

/******************************************************************************************************************************/

svg {
}

svg > g{
    /*color: rgba(var(--lines-color), 0.9); */
}

#svg_background{
    float: left;
    position: absolute;
    left: -100vw;
    top: -50vh;
    width:100vw;
    height:100vh;
    z-index:-1000;
    transform: rotateX(60deg) rotateZ(-45deg);
    background: no-repeat #FFFFFF00;
    overflow:hidden;
}

.face-inner {
    stroke-dasharray: 1000;
    stroke-dashoffset: 5000;
    animation: dash 50s linear alternate infinite; /**/
    stroke: rgba(var(--3DText-color-face),0);
    color: var(--body-text-color);
    /*stroke: var(--3DText-color-face);
    color:  var(--body-text-color);*/
    
    position:absolute;
    }
    
.face-outer {
    stroke-dasharray: 2000;
    stroke-dashoffset: 5000;
    animation: dash 15s linear alternate infinite; 
}
    
@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
    0%   { stroke: var(--lines-color); } 
    10%  { stroke: var(--lines-color); }
    20%  { stroke: var(--lines-color); }
    30%  { stroke: var(--lines-color); }
    40%  { stroke: var(--lines-color); }
    50%  { stroke: var(--lines-color); }
    60%  { stroke: var(--lines-color); }
    70%  { stroke: var(--lines-color); }
    80%  { stroke: var(--lines-color); }
    90%  { stroke: var(--lines-color); }
    100% { stroke: var(--lines-color); }
}
/******************************************************************************************************************************/

/* TEXT CENTRAL DEFILANT */
#matrixContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}
.matrix_text, .text {
    position: absolute; 
    top: 33vh; 
    left: 5vw;
    height: 20vh;
    width: 100vw;
    transform: rotateX(60deg) rotateZ(-45deg) ;
    text-align: center;
    font-weight: 100;
    font-size: 4vmin;
    color: var(--body-text-color);
    z-index:40;
}

.dud {
    color: var(--3DText-color-side-1);
}
/*******************************************************************************************************************************/
.loader {
    position: absolute; 
    top: 33vh; 
    left: 0vw;
    height: 20vh;
    width: 100vw;
    float:left;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    z-index:100000;
    transform: rotateX(60deg) rotateZ(-45deg);
}

.loader_text {
    font-family: Bungee;
    font-weight:400;
    float:left;
    align-items: center;
    justify-content: center;
    text-align:center;
    font-size: 4vmin;
    color: var(--body-text-color);
}

.spinner {
    animation: loaderRotator var(--my-loader-duration) linear infinite;
    width:50px;
    height:50px;
}


@keyframes loaderRotator {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(270deg); }
}

.path {
    stroke-dasharray: var(--my-loader-offset);
    stroke-dashoffset: 0;
    transform-origin: center;
    animation:
    loaderDash var(--my-loader-duration) ease-in-out infinite, 
    loaderColors calc(var(--my-loader-duration)*4) ease-in-out infinite;
}


@keyframes loaderColors {
	0% { stroke: var(--3DText-color-face); }
	25% { stroke: var(--3DText-color-side-1); }
	50% { stroke: var(--3DText-color-side-2); }
	75% { stroke: var(--3DText-color-side-1); }
    100% { stroke: var(--3DText-color-side-3); }
}

@keyframes loaderDash {
    0% { stroke-dashoffset: var(--my-loader-offset); }
    50% {
        stroke-dashoffset: calc(var(--my-loader-offset)/4);
        transform:rotate(135deg);
    }
    100% {
        stroke-dashoffset: var(--my-loader-offset);
        transform:rotate(450deg);
    }
}
/******************************************************************************************************************************/

/* here the rules for small windows */
@media (max-width: 681px) { 
    h1{
      font-size: 30px;
    }
    h2,h3{
      font-size: 25px;
    }
    h4,h5,h6{
      font-size: 20px;
    }
    p, ul, ol{
        font-family: arial;
        font-size: 12px;
        font-weight: 400;
        line-height: 1.05;
    }
}
/* here the rules for windows between 500px and 900px */
@media (min-width: 680px) {
    h1{
      font-size: 40px;
    }
    h2,h3{
      font-size: 30px;
    }
    h4,h5,h6{
      font-size: 20px;
    }
    p, ul, ol{
        font-family: arial;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.25;
    }
}
/******************************************************************************************************************************/
/**********************************************************************************/
/******************************************************************************************************************************/
:scope{
    --theme-button-height: 10px;
    --theme-button-width: var(--theme-button-height);
    --theme-button-color: var(--3DText-color-face);
    --theme-name-width: calc(var(--theme-button-width)*7);
    --theme-name-color: var(--3DText-color-side-1);
}

@keyframes themePopOut {
    0% {
        display:none;
        width: 0px;
    }
    
    100% {
        display:block;
        width: var(--theme-name-width);
    }
}

@keyframes themePopIn  {
    0% {
        display:block;
        width: var(--theme-name-width);
    }
       
    100% {
        display:none;
        width: 0px;
    }
}


        
        
#themer{
    /*transform: rotateX(60deg) rotateZ(-45deg);*/
    height: calc(var(--theme-button-height) + 4px);
    position:absolute;
    bottom:3vh;
    left:1vw;
    min-width: calc(var(--theme-button-height)*1);
    padding: 0;
    padding-left:calc(var(--theme-button-height)/2);
    padding-right:calc(var(--theme-button-width)/2);
    border-radius: calc(var(--theme-button-width));
    /*border: 1px solid black;*/
    /*box-shadow: 10px 10px 10px black;*/
    display: flex;
    justify-content:left;
    align-items: center;
    background: #00000044;
    
    div{
      margin: calc(var(--theme-button-height)/4);
      cursor: pointer;
      margin-left: 0;
      margin-right: 0;
    }
    
    #nextThemeButton, #prevThemeButton{
        width: calc(var(--theme-button-height)/2); 
        height: calc(var(--theme-button-height)/2);
        border: calc(var(--theme-button-width)*0) solid transparent;
        background: var(--theme-button-color);
    }
    
    #nextThemeButton{  
        border-top: calc(var(--theme-button-width)/4) solid var(--theme-button-color);
        border-bottom: calc(var(--theme-button-width)/4) solid var(--theme-button-color);
        border-left: calc(var(--theme-button-width)*0) solid var(--theme-button-color);
        border-radius: 0 calc(var(--theme-button-width)) calc(var(--theme-button-width)) 0;
        margin-left: calc(var(--theme-button-width)/5);
        
    }
    
    #prevThemeButton{
        border-top: calc(var(--theme-button-width)/4) solid var(--theme-button-color);
        border-bottom: calc(var(--theme-button-width)/4) solid var(--theme-button-color);
        border-right: calc(var(--theme-button-width)*0) solid var(--theme-button-color);
        border-radius: calc(var(--theme-button-width)) 0 0 calc(var(--theme-button-width));
        margin-right: calc(var(--theme-button-width)/5);
    }
    
    #themeName{
        /* #position, */
        display: block;
        overflow:hidden;
        width: var(--theme-name-width);
        height: calc(var(--theme-button-height)-2);
        border: 1px solid white;
        border-radius:  calc(var(--theme-button-height)/2);
        background: var(--theme-name-color);
        margin-left: calc(var(--theme-button-width)/2);
        font-family:arial;
        font-size:8px;
        text-transform: capitalize;
    }
    
   #themeName.theme-hide, #duration.theme-display {
        width: calc(var(--theme-button-height)*5);
        height:calc(var(--theme-button-height)-0px);
        box-sizing: border-box;
        background: var(--theme-name-face);
        }
    
   #themeName.theme-display {
        animation-duration: 3s;
        animation-name: themePopOut;
        animation-direction: normal;
        display: block;
    }
        
   #themeName.theme-hide {
        animation-duration: 2s;
        animation-name: themePopIn;
        animation-direction: normal;
        display: none;
    }
    
    
}
    
    
/******************************************************************************************************************************/
/******************************************************************************************************************************/
/******************************************************************************************************************************/