body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

* {
    touch-action: manipulation;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

h3{
    padding: 0;
    margin:0;
    margin-bottom:8px;
    font-weight: 200;
    text-align: center;
    line-height: 1.2;
}
h3 span{
    display: block;
    color:#aaaaaa
}

.loading {
    position: fixed;
    z-index: 50;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #f1f1f1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    -webkit-perspective: 120px;
    -moz-perspective: 120px;
    -ms-perspective: 120px;
    perspective: 120px;
    width: 100px;
    height: 100px;
}

.loader::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 25px;
    width: 50px;
    height: 50px;
    background-color: #06C;
    animation: flip 1s infinite;
}

@keyframes flip {
    0% {
        transform: rotate(0);
    }

    50% {
        transform: rotateY(180deg);
    }

    100% {
        transform: rotateY(180deg) rotateX(180deg);
    }
}

.frame {
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    padding: .5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    user-select: none;
}
.frame__title{
    color:#1a1a1a;
    margin:0;
    font-size:28px;
}


#c {
    width: 100%;
    height: 100%;
    display: block;
    top: 0;
    left: 0;
}

.controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding-left:10px;
}

.options {
    position: absolute;
    left: 10px;
    bottom:110px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.option-outer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-right: 10px;
}
.option {
    background-color: white;
    padding: 10px;
    height: 50px;
    width: 55px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 3px solid transparent;
}

.option:hover {
    border-top: 3px solid red;
}

.option.--is-active {
    border-top: 3px solid red;
    cursor: default;
}

.option img {
    max-width: 100%;
    pointer-events: none;
}

.play{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    bottom:0;
    left: 50%;
    transform: translate(-50%, 0)
}
.icon{
    cursor: pointer;
    display: none;
}
.icon.pause{
    display: none;
}
.icon.active{
    display: inline-block;
}

.tray {
    width: 100%;
    height: 97px;
    position: relative;
    overflow-x: hidden;
}

.tray h3{
    text-align: left;
}

.tray__slide {
    position: absolute;
    display: flex;
    left: 0;
    /*   transform: translateX(-50%);
  animation: wheelin 1s 2s ease-in-out forwards; */
}

.tray__swatch {
    transition: 0.1s ease-in;
    height: 50px;
    min-width: 70px;
    flex: 1;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    background-size: cover;
    background-position: center;
    position: relative;
}

.tray__swatch span{
    position: absolute;
    right: 5px;
    bottom: 2px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    pointer-events: none;
    user-select: none;    
}

.info{
    position: absolute;
    right: 20px;
    bottom: 10px;
    cursor: pointer;
}
.info div{
    position: relative;
    text-align: center;
}
.info div p{
    position: absolute;
    right: 40px;
    bottom: 0;
    width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    color: #1a1a1a;
    display: none;
}
.info:hover div p{
    display: inline-block;
}

@-webkit-keyframes popout {
    to {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}

@keyframes popout {
    to {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
}

@-webkit-keyframes wheelin {
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@keyframes wheelin {
    to {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

@media (max-width: 960px) {
    .info{
        bottom:60px;
        right: 5px;
    }
    .frame {
        left: auto;
        flex-direction:column;
    }
    .frame__title{
        font-size:21px;
    }
}

@media (max-width: 680px) {
    .play{
        bottom: 60px;
        left:0;
        right:0;
        transform:translate(0, 0);
    }

    .options {
        bottom: 110px;
    }

    .option {
        margin-bottom: 1px;
        padding: 5px;
        height: 45px;
        width: 45px;
        display: flex;
    }

    .option img {
        height: 100%;
        width: auto;
        pointer-events: none;
    }
}