body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

/* Fix the mobile "sticky hover" bug from bootstrap */
.btn:hover {
    color: var(--bs-btn-color);
    background-color: var(--bs-btn-bg);
    border-color: var(--bs-btn-border-color);
}

.btn:active,
.btn-active {
    color: var(--bs-btn-active-color) !important;
    background-color: var(--bs-btn-active-bg) !important;
    border-color: var(--bs-btn-active-color) !important;
}

@media (hover: hover) {
  /* when hover is supported */
    .btn:hover {
        color: var(--bs-btn-hover-color);
        background-color: var(--bs-btn-hover-bg);
        border-color: var(--bs-btn-hover-border-color);
    }
}
/********************************************************/

.bg-img {
    background: no-repeat center center fixed;
    background-size: contain;
    background-color: black;
    height: 100%;
    align-items: center;
    position: relative;
    justify-content: space-evenly;
    display: flex;
    flex-direction: column;
}

.logo {
    width: 75%;
    height: auto;
}

.my-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    width: 75%;
    max-width: 500px;
    text-align: center;
}

.light {
    width: 4em;
    height: 4em;
    border-radius: 50%;
    border: 0.15em solid black;
}

.light.off {
  background-color: transparent !important;
  transition: background-color .15s ease-in-out;
}

#light-r {
    background-color: red;
}
#light-g {
    background-color: green;
}
#light-b {
    background-color: blue;
}

.counter {
    width: 50%;
    /* height: 20px; */
    margin: auto;
    margin-top: 0.75em;
    border-radius: 20%;
    background: rgb(163, 163, 163);
    border: 1px solid black;
}

/*********************************/
/* Splash screen */

.splash {
    z-index: 100;
    background: black;
    position: fixed;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.splash .my-box {
    width: 65%;
    animation: 0.8s ease-in 0s 4 alternate splashloop;
}

@keyframes splashloop {
    0% {
        opacity: 100%;
        scale: 100%;
    }
    100% {
        opacity: 30%;
        scale: 90%;
        /* translate: 0 10%; */
    }
}

/*********************************/
/* Screen off effect */

.screen {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: black;
}

.inner {
  height: 100%;
  width: 100%;
  background: #888888;
  overflow: hidden;
}

.screen.off .inner {
  animation: screenoff 0.3s linear forwards;
}

@keyframes screenoff {
  0% {
    height: 100vh;
  }
  10% {
    /* background: white; */
  }
  50% {
    height: 40px;
    border-radius: 0%;
  }
  70% {
    height: 20px;
    border-radius: 20%;
  }
  80% {
    height: 10px;
    width: 100%;
  }
  90% {
    width: 50%;
    height: 5px;
  }
  95% {
    height: 2px;
  }
  97% {
    width: 100%;
  }
  100% {
    height: 1px;
    width: 0;
    background: white;
  }
}
