
* {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
    -khtml-user-select: none; /* Konqueror HTML */
    -moz-user-select: none; /* Old versions of Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; 
}

body {
    background-color: #fff;
    margin:0;
    padding: 0;
    width: 100vw;
    height: auto;
    overflow-x: hidden;
    position: relative;
    top:0;
    left:0;
    font-family: "Open Sans", "Lucida Grande", Arial, sans-serif;
}

.button {
    background-color: #000;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    cursor: pointer;
}

#interactive-container {

    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    left: 0;
    background-image:url('../assets/bg.png');
    font-size: 0;
    overflow: hidden;

}

#interactive-canvas {

    width: 100vw;
    height: auto;
    cursor: crosshair;

}

#interactive-tools {

    position: absolute;
    font-size: 9px;
    top:0;
    left:0;
    width: 80px;
    cursor: pointer;

    transition: opacity 0.5s;

}

#info-portrait {
    
    display: block;

}

.spinner {
    border: 16px solid #222222;
    border-radius: 50%;
    border-top: 16px solid #ffffff;
    width: 120px;
    height: 120px;
    z-index: 999999;
    position: absolute;
    top:50%;
    left:50%;

    animation: spinner-animation 2s linear infinite;
}

@keyframes spinner-animation {

    0% { transform:  translate(-50%,-50%) rotate(0deg) ; }
    100% { transform:  translate(-50%,-50%) rotate(360deg) ; }
    
}

.swatch {

    position: relative;
    width: 40px;
    height: 40px;
    border: solid 1px black;
    float: left;
    background-color: white;
    cursor: pointer;
    float: left;

}

.fullsize {

    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    
}

.info-panel {
    position: absolute;
    top:50%;
    left:50%;
    width: 400px;
    max-width: 80%;
    transform: translate(-50%,-50%);
    border: solid 16px rgba(0,0,0,0);
    border-radius: 32px;
    background-color: white;
}

.brush-text {
    font-size: 12px;
}

.info-panel>* {

    padding: 1em;
    font-size: 9pt;
    text-align: center;

}

.darken-bg {

    background-color: rgba(0,0,0,0.9);

}

.hidden {

    display: none;

}

@media screen and (max-width: 800px) {

    /* mobile view */

    #interactive-container {
        height: auto;
    }

    #interactive-tools {
        width: 20vh;
        font-size: 2.1vh;
    }
    .swatch {
        width: 8vh;
        height: 8vh;
    }
        
    .brush-text {
        font-size: 3vh;
    }

}

@media screen and (min-width: 500px) {

    #info-portrait {

        display: none !important;

    }

}

@media (min-aspect-ratio: 1/1) {

    #info-portrait {

        display: none !important;

    }

}