* {
    margin:0;
}

body {
    background: url('../img/bg.png');
    background-repeat: no-repeat;
    color:#545454;
    background-color: #29292b;
    position:absolute;
    background-position: center 0;
    top:0;
    height:100%;
    width:100%;
    background-attachment: fixed;
    background-position: center center;
    display:flex;
    align-items:center;
    justify-content:center;
}

@font-face {
  font-family: 'Questrial';
  font-style: normal;
  font-weight: 400;
  src: local('Questrial'), local('Questrial-Regular'), url('../fonts/questrial.woff') format('woff');
}

@-webkit-keyframes fade-animation {

    from {
        background-color: #545454;
        opacity: 0;
    }
    to {
        background-color: #545454;
        opacity: 1.0;
    }
}

#main-container {
    height:max(100%, 1024px);
    width:max(768px, 100%);
    -webkit-transform-origin:50% 50%;
    -webkit-transform-style: preserve-3d;
    -webkit-transform:translate3d(0px,0px,0px);
    position:absolute;
}

div.fade-main-container {
    background: url('../img/background.png') repeat;
    position:absolute;
    background-position: center center;
    background-size: contain;
    top:0;
    height:100%;
    width:100%;
    -webkit-animation-name: fade-animation;
    -webkit-animation-duration: 3s;
    -webkit-animation-iteration-count: 1;
    -webkit-animation-timing-function: ease-in;
    -webkit-transform:translate3d(0px,0px,0px);
}

div.table {
    height:1024px;
    width:768px;
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
}

div.face {
    display: block;
    -webkit-backface-visibility: hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    position:absolute;
    height:550px;
    width:550px;
}

div.ext-site, div.top-inner {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:550px;
    height:50px;
    display: block;
    position:absolute;
}

div.ext-inner, div.ext-top-inner {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:550px;
    height:25px;
    display: block;
    position:absolute;
}

div.top-top-inner {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:500px;
    height:65px;
    display: block;
    position:absolute;
}

div.bottom-c {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:500px;
    height:15px;
    display: block;
    position:absolute;
}

.bottom-d {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:500px;
    height:5px;
    display: block;
    position:absolute;
}

div.cube-face {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0,0,0);
    width:110px;
    height:110px;
    position:absolute;
    z-index:10003;
}

div.cube-cote {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:88px;
    height:60px;
    position:absolute;
}

div.cube-edge {
    -webkit-backface-visibility:hidden;
    -webkit-transform:translate3d(0px,0px,0px);
    width:16px;
    height:60px;
    position:absolute;
}

.face-content {
    margin-top:50px;
    font-size:30px;
    position:relative;
    -webkit-transform-style: preserve-3d;
    text-align:center;
}

.face-content h1 {
    font-size:50px;
    font-family: "Questrial", Arial, serif; font-weight: 400;
    font-style:bold;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.2);
    margin-left:5px;
}

.face-content p {
    margin-top:40px;
    font-size:17px;
    font-family: "Questrial", Arial, serif; font-weight: 100;
    font-style:bold;
    text-shadow: -1px -1px 0px rgba(0,0,0,0.1);
}

.face-content img {
    position:absolute;
    bottom:30px;
    right:100px;
}

.face-content button {
    -webkit-appearance:none;
    font-size:30px;
    line-height:30px;
    font-style:bold;
    font-family: "Questrial", Arial, serif; font-weight: 100;
    text-shadow: -1px -1px 0px rgba(0,0,0,0.1);
    width:50px;
    height:50px;
    padding:0;
    border:none;
    margin:30px auto 50px auto;
    z-index:2000;
    -webkit-box-shadow: inset 1px 1px 2px rgba(0,0,0,0.5), -1px -1px 2px rgba(0,0,0,0.5);
    background-color: rgba(84, 84, 84, 0.2);
    -webkit-transition: -webkit-box-shadow 0.2s ease-in;
    border-radius:100px;
    color:#545454;
}
