/* 
COLOR PALETTE
black           rgb(0 0 0)
dark red        rgb(52 1 0)
saturated red   rgb(123 0 2)
blue-grey       rgb(107 139 186)
dark blue-grey  rgb(22 39 80)
light blue grey rgb(150 222 232)
white           rgb(255 255 255)
*/


/* GLOBAL STYLES
-------------------------------------------*/
/* https://www.paulirish.com/2012/box-sizing-border-box-ftw */


html {
   box-sizing: border-box;
   font-size: 62.5%; /*setting default to 10px*/
   background-color: #000000;
}
*, *:before, *:after {
   box-sizing: inherit;
}
body {
   margin-bottom: 0;
   font-family: "Helvetica Neue", sans-serif;
   font-size: 1.6rem;
   line-height: 1.5;
   padding-top: 1vh;
}




/* HEADERS
-------------------------------------------*/
header {
    background-color: rgb(17, 16, 16);
    width: 90%;
    margin-left: 5%;
    border-radius: 30px;
    background-image: url('/images/crt-flux-phaser-paper-pal-2500.jpg');
    background-repeat: no-repeat;
    background-position:center;
    background-size:cover;
    border: .5px solid rgb(255, 255, 255);
    animation: randomMove .5s 2 cubic-bezier(0,.82,1,.33);
    margin-bottom: 4vh;
}
h1 {
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 6rem;
    margin-bottom: 0;
    margin-top: 2vh;
    letter-spacing: .5rem;
    letter-spacing: .6rem;
    animation: randomMove .5s 2 cubic-bezier(0,.82,1,.33);
}

.h1Tagline {
    text-align: center;
    color: rgb(255, 255, 255);
    font-weight: 600;
    font-size: 1.6rem;
    margin-top: 4px;
    letter-spacing: .3rem;
    padding-bottom: 2vh;
    letter-spacing: .4rem;
    animation: randomMove .5s 2 cubic-bezier(0,.82,1,.33), shiftColors 12s ease infinite, shiftColors 12s ease infinite; 
}
@media screen and (max-width:720px){
    .h1Tagline {  
        font-size: 1.3rem;
    }
}
@media screen and (max-width:620px){
    h1 {
        font-size: 5rem;
        margin-top: .5vh;
    }
    .h1Tagline {  
        display:none;
    }
    header {
    width: 90%;
    margin-left: 5%;
    border-radius: 30px;
    margin-bottom: 2vh;
}
}
@media screen and (max-width:500px){
    h1 {
        font-size: 4rem;
        margin-top: .5vh;
    }
    .h1Tagline {  
        display:none;
    }
    header {
    width: 90%;
    margin-left: 5%;
    border-radius: 30px;
    margin-bottom: 2vh;
}
}
@media screen and (max-width:450px){
    h1 {
        font-size: 2.8rem;
        margin-top: .5vh;
    }
}
@media screen and (max-width:300px){
    h1 {
        font-size: 1.8rem;
        margin-top: .5vh;
    }
    .h1Tagline {  
        display:none;
    }
    header {
    width: 90%;
    margin-left: 5%;
    border-radius: 30px;
    margin-bottom: 2vh;
}
}

@keyframes randomMove {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg) skewX(0deg);
  }
  12% {
    transform: translate3d(-8px, -4px, 0) rotate(-1.2deg) skewX(-1.5deg);
  }
  24% {
    transform: translate3d(10px, -6px, 0) rotate(1.8deg) skewX(1.2deg);
  }
  38% {
    transform: translate3d(-12px, 7px, 0) rotate(-2.1deg) skewX(-0.8deg);
  }
  56% {
    transform: translate3d(7px, 10px, 0) rotate(1.4deg) skewX(1.8deg);
  }
  74% {
    transform: translate3d(-6px, -8px, 0) rotate(-0.9deg) skewX(-1.1deg);
  }
  88% {
    transform: translate3d(5px, 4px, 0) rotate(0.7deg) skewX(0.6deg);
  }
}



/* CONTROLLER INTERFACE
-------------------------------------------*/

.controllers-flex-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .5vh;
}

.controllers-no-magnet-level {
    width: 90%;

}

input {
    width: 80%;
    margin-top: 0;
    margin-left: 10%;
    height: 15px;
    border-radius: 5px;
    background: rgb(66, 98, 145);
    outline: none;
    opacity: 0.9;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

input[type="range"]#intensity {
    writing-mode: vertical-lr;
    height: 40%;

}

.hide {
    display: none;
}

.custom-select {
    width: 90%;
    margin-left: 5%;
    margin-bottom: 4vh;
    position: relative;
}

.custom-select-trigger {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    background: rgb(29, 14, 47);
    border: 1px solid rgb(150, 222, 232);
    opacity: 0.9;
    color: white;
    font-size: 2.4rem;
    text-align: center;
    cursor: pointer;
}
@media screen and (max-width:500px){
    .custom-select-trigger {
        font-size: 1.8rem;
    }
}
@media screen and (max-width:450px){
    .custom-select-trigger {
        font-size: 1.4rem;
    }
}
@media screen and (max-width:380px){
    .custom-select-trigger {
        font-size: 1.2rem;
    }
}

.custom-select-trigger::after {
    content: '\25BE';
    margin-left: 1rem;
}

.custom-select.is-open .custom-select-trigger {
    border-radius: 10px 10px 0 0;
}

.custom-select-options {
    display: none;
    position: absolute;
    z-index: 10;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgb(150, 222, 232);
    border-top: 0;
    border-radius: 0 0 10px 10px;
    background: rgb(29, 14, 47);
}

.custom-select.is-open .custom-select-options {
    display: block;
}

.custom-select-options button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: white;
    font-size: 1.8rem;
    height: 5rem;
    text-align: center;
    cursor: pointer;
    border-bottom: 1px solid rgb(150, 222, 232);
}



.slider-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 4vh;
}

label {
    color: rgb(255 255 255);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 200;
    margin-top: 0;
    display: block;
    letter-spacing: .3rem;
}
@media screen and (max-width:620px){
    select {
        font-size: 2rem;
    }
    label {
        font-size: 1.4rem;
        font-weight: 600;
    }
    .slider-label {
        font-size: 1.4rem;
        font-weight: 600;
    }
}
@media screen and (max-width:500px){
    select {
        font-size: 1.4rem;
        height: 25px;
    }
    label {
        font-size: 1.4rem;
        letter-spacing: .1rem;
        font-weight: 600;
    }
    .slider-label {
        font-size: 1.4rem;
        font-weight: 600;
    }
}

.slider-value {
    color: rgb(255 255 255);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 200;
    margin-top: 0;
    display: block;
}
@media screen and (max-width:620px){
    .slider-value {
        font-size: 1.4rem;
        font-weight: 600;
    }
}
@media screen and (max-width:500px){
    .slider-value {
        font-size: 1.4rem;
        font-weight: 600;
    }
}
@media screen and (max-width:400px){
    .slider-value {
        display:none;
    }
}


/* --------------------------------------------------------------------paragraphs */
p {
    color: rgb(255 255 255);
    text-align: center;
    font-size: 1.8rem;
    font-weight: 200;
    margin-top: 1rem;
    display: block;
    letter-spacing: .3rem;
}
@media screen and (max-width:620px){
    p {
        font-size: 1.6rem;
        font-weight: 600;
    }
    .preset {
        margin-top: 0;
    }
}
@media screen and (max-width:500px){
    p {
        font-size: 1.4rem;
        font-weight: 600;
    }
    .preset {
        margin-top: 0;
    }
}
.about {
    font-size: 2.4rem;
    font-weight: 300;
    padding-left: 6rem;
    padding-right: 6rem;
}
@media screen and (max-width:500px){
    .about {
    font-size: 1.4rem;
    font-weight: 300;
    padding-top: 1rem;
}
}








/* --------------------------------------------------------------------------------------------LINKS */

a {
    text-decoration: none;
}




/* -------------------------------------------------------------------------------------------BUTTONS */
.button-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 5%;
    width: 90%;
    margin-left: 5%;
}
@media screen and (max-width:620px){
    .button-container {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}


button {
    background-color: rgb(29, 14, 47);
    color: rgb(255 255 255);
    font-size: 1.8rem;
    font-weight: 400;
    border-radius: 10px;
    border: 1px solid rgb(145, 145, 145);
    height: 5rem;
    width:100%;
    margin-bottom: 1vh;
    cursor: pointer;
}
@media screen and (max-width:620px){
    button {
        height: 3.5rem;
        font-size: 1.4rem;
        font-weight: 600;
    }
}
@media screen and (max-width:500px){
    button {
        height: 3rem;
        font-size: 1.3rem;
        font-weight: 600;
    }
}
@media screen and (max-width:400px){
    button {
        height: 3rem;
        font-size: 1rem;
        font-weight: 600;
    }
}
.active {
    background-color: rgb(181, 162, 206);
    color: rgb(10, 5, 16);
    border: 2px solid rgb(255, 255, 255);

}










/* -----------------------------------------------------------------------------------INDEX BUTTONS */

#controllerButton {
    background-image: url("/images/color-bars-transparent.png");
    background-repeat: no-repeat;
    background-position:center;
    background-size:cover;
    font-size: 3.5rem;
    font-weight: 100;
    line-height: 5rem;
    letter-spacing: 0.3rem;
    margin: 30px 15%;
    padding: 30px;
    width: 70%;
    height: auto;
    border: 8px double rgb(255, 255, 255);
    border-radius: 30px;
    background-color: rgb(0, 0, 0);
}
@media screen and (max-width:620px){
    #controllerButton {
        font-size: 2rem;
        line-height: 3rem;
    }
}
@media screen and (max-width:500px){
    #controllerButton {
        font-size: 2.2rem;
        line-height: 3rem;
        letter-spacing: 0.1rem;
        margin: 15%;
        padding: 10px;
    }
}

.controllerTitle {
    font-weight: 600;
}

#controllerInUseDiv {
    background-color: rgb(0, 0, 0);
    background-image: url("/images/color-bars-transparent.png");
    background-repeat: no-repeat;
    background-position:center;
    background-size:cover;
    height: 5rem;
    width:100%;
    margin-bottom: 1vh;
    color: rgb(255 255 255);
    text-align: center;
    font-size: 3.3rem;
    font-weight: 300;
    line-height: 5rem;
    letter-spacing: 0.3rem;
    margin: 30px 15%;
    padding: 30px;
    width: 70%;
    height: auto;
    border-radius: 30px;
    opacity: 70%;
}
@media screen and (max-width:620px){
    #controllerInUseDiv {
        font-size: 2rem;
        line-height: 3rem;
    }
}
@media screen and (max-width:500px){
    #controllerInUseDiv {
        font-size: 2.2rem;
        line-height: 3rem;
        letter-spacing: 0.1rem;
        margin: 15%;
        padding: 10px;
    }
}










/* ----------------------------------------------------------------------------------------------JAVASCRIPT TOGGLED CLASSES */
.hide button {
    display: none;
}
.yellow {
    color: rgb(252, 250, 113);
}
.red {
    color: rgb(255, 39, 39);
}
.shake {
    animation: randomMove .5s infinite cubic-bezier(0,.82,1,.33);
}

