#app {
    padding: 10px;
    margin: auto;
    /*background-color: gray;*/
}

#header {
    /*position: fixed;*/
    background-color: white;
    top: 0;
    left: 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.symbol-title {
    width: 100%;
    top: 0;
    left: 0;
    text-align: center;
    margin-bottom: 20px;
    transition: 1.5s;
    color: blue;
}

.cube-box {
    width: 150px;
    margin: 4px;
    padding-right: 2px;
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.2);
    outline: 1px solid gray;
    border-radius: 10px;
    transition: 0.5s;
}

.cube-box:hover {
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 2px 2px 20px white;
}

.cube-box:hover .symbol-title {
    color: red;
    text-shadow: 1px 1px 20px white;
}

.cube-box:hover .selected {
    color: red;
    text-shadow: 1px 1px 20px white;
    background-color: rgb(100, 100, 100);
}

.cube {
    width: 150px;
    height: 150px;
    margin: 5px;
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1500px); 
    transform: rotateX(-20deg) rotateY(-25deg);
    transition: transform 0.5s;
    display: inline-block;
    vertical-align: middle;
    top: 30px;
    left: 25px;
}

#cube-template {
    display: none;
}

.block {
    outline-width: 0px;
    margin: 0;
    padding: 0;
    line-height: 30px;
    font-size: 25px;
    font-weight: 700;
}

.selected {
    background-color: gray;
    transition: 1.5s;
}

.rotated {
    transform: rotateX(-20deg) rotateY(155deg);
}

.face {
    width: 90px;
    height: 90px;
    position: absolute;
    background: rgba(170, 170, 170, 1.0);
    border: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    flex-wrap: wrap;
}

.block {
    width: 30px;
    height: 30px;
    margin: 0;
    box-sizing: border-box;
    border: 1px solid lightgray;
    flex: 0 0 30px;
}

.front { 
    transform: translateZ(45px); 
}
.back { 
    transform: rotateY(180deg) translateZ(45px);
}
.left { 
    transform: rotateY(-90deg) translateZ(45px);
}
.right { 
    transform: rotateY(90deg) translateZ(45px); 
}
.top { 
    transform: rotateX(90deg) translateZ(45px); 
}
.bottom { 
    transform: rotateX(-90deg) translateZ(45px); 
}
