@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@font-face {
    font-family: gameFont;
    src: url("../resources/fonts/Game2.otf");
}

/* HTML -- Body */
html, body {
    touch-action: pan-y;
    overflow: hidden;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background-color: #8bb4ff;
    font-family: "Poppins", sans-serif;;

}

/* Loader */
#loadingDiv {
    z-index: 200;
    position: absolute;
    width: 100vw;
    height: 100vh;
    background: #8bb4ff; /* Old browsers */
    background: -moz-linear-gradient(top, #8bb4ff 0%,#ff60f2 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(top,  #8bb4ff 0%,#ff60f2 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to bottom,  #8bb4ff 0%,#ff60f2 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#FB7BA2', endColorstr='#FCE043',GradientType=0 ); /* IE6-9 */
    /* border: 25px solid rgb(255, 255, 255); */
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all; 
    touch-action: none;
}

#loadingText {
    position: absolute;
    color: white;
    display: inline-block;
    box-sizing: border-box;
    text-align: center;
    font-size: x-small;

    width: 100%;
    top: 50%;
    left: 50%;
    height: 50px;
    transform: translate(-50%, -50%);
    margin-top: 40px;
    letter-spacing: 0.3rem;
    /* animation: animText  6s ease infinite alternate; */
}

@keyframes animText {
    0% {
        letter-spacing: 0.2rem;
    }
    100% {
        letter-spacing: 0.4rem;
    }
}

.logo-robot {
    position: absolute;
    width: 100px;
    left: 50%;
    bottom: 50px;
    transform: translate(-50%);
}


.loader {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
  }
.loader::after,
.loader::before {
    content: '';  
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #FFF;
    position: absolute;
    left: 0;
    top: 0;
    animation: animloader 2s linear infinite;
}
.loader::after {
    animation-delay: 1s;
}
  
@keyframes animloader {
    0% {
      transform: scale(0);
      opacity: 1;
    }
    100% {
      transform: scale(2);
      opacity: 0;
    }
}

/* BJS Render Canvas */
#renderCanvas {
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    /* overflow: hidden; */
    /* z-index: -1; */
    /* transition: opacity 1s ease;   */
}


.hidden {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}


.info-card {
    position: absolute;
    display: flex;
    left: 50%;
    bottom: -600px;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 600px;
    padding: 50px 50px 50px 50px;
    border-radius: 10px;
    background-color: #ced2db44;
    color: rgb(43, 43, 43);
    backdrop-filter: blur(10px) opacity(1);
    -webkit-backdrop-filter: blur(10px) opacity(1);
    /* -webkit-filter: drop-shadow(0px 0px 15px #ffffff); */
    /* filter: drop-shadow(0px 0px 15px #ffffff); */
    transition: all 0.7s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    pointer-events: none; 
}

.info-card.active {
    bottom: 20px;
}

.info-card h2 {
    font-family: "Poppins", sans-serif;;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    font-weight: 500;
    user-select: none;
    -webkit-user-select: none;
}

.info-card p {
    font-family: "Poppins", sans-serif;;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 0px;
    user-select: none;
    -webkit-user-select: none;
}

.close-bt {
    position: absolute;
    left: 5px;
    top: 5px;
    width: 3em;
    height: 3em;
    border: none;
    background: none;
    border-radius: 10px;
    transform: scale(1); 
    font-family: "Poppins", sans-serif;;
    font-size: medium;
    padding: 5px;
    color: #313131;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all; 
}

.close-bt:hover {
    background-color: #bebebe60;
}
  
.close-bt:active {
    background-color: #8d8d8d60;
}
  
.close-bt:hover > .close {
    animation: close 0.2s forwards 1.25s;
}
  
@keyframes close {
    100% {
        opacity: 1;
    }
}

/* .icon {
    position: absolute;
    left: 50%;
    top: 0px;
    transform: translateX(-50%);
    background-image: url("../resources/images/icon.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-size: 80%;
    width: 150px;
    height: 150px;
} */

.intro-text {
    position: absolute;
    bottom: 20px;
    color: white;
    text-align: center;
    font-size: 1.2rem;
    width: 100%;
    padding: 10px;
    font-family: "gameFont";
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all; 
    touch-action: none;
}

.main-title {
    position: absolute;
    width: 100%;
    font-family: "gameFont";
    color: white;
    font-size: 2rem;
    text-align: center;
    padding: 10px;
    top: 20px;
    -webkit-filter: drop-shadow(0px 0px 15px rgb(139, 28, 28));
    filter: drop-shadow(0px 0px 15px rgb(139, 28, 28));
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all; 
    touch-action: none;
}

.panel-colors {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: all; 
    touch-action:auto;
}

.color-bt {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 25px;
    opacity: 0.8;
    cursor: pointer;
}

.color-active {
    -webkit-filter: drop-shadow(0px 0px 5px #fff);
    filter: drop-shadow(0px 0px 5px #fff);
}

::-webkit-scrollbar {
    width: 8px;
}
/* Track */
::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: #888; 
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

@media only screen and (max-width: 600px) {
    
    .panel-colors {
        gap: 10px;
    }
    
    .color-bt {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 20px;
    }
}
