@font-face {
    font-family: "Marydale";
    src: url("fonts/marydale.eot?") format("eot"), url("fonts/marydale.woff") format("woff"), url("fonts/marydale.ttf") format("truetype"), url("fonts/marydale.svg#Marydale") format("svg");
    font-weight: normal;
    font-style: normal;
}

p,
button {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'arial';
    font-size: 20px;
    font-weight: normal;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#pageContainer {
    position: relative;
    width: 735px;
    height: 396px;
    background-color: rgba(158, 155, 92, 1);
    margin: auto;
    overflow: hidden;
    opacity: 0;
}

/*---------- preloader --------------*/
#preLoader {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(158, 155, 92, 1);
    left: 0;
    top: 0;
    z-index: 1000;
    opacity: 1;
}

#loader {
    position: relative;
    width: 48px;
    height: 48px;
    left: 50%;
    top: 50%;
    margin-left: -24px;
    margin-top: -24px;
}

.cube-folding {
    width: 50px;
    height: 50px;
    display: inline-block;
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    font-size: 0;
}

.cube-folding span {
    position: relative;
    width: 25px;
    height: 25px;
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    display: inline-block;
}

.cube-folding span::before {
    content: '';
    background-color: white;
    position: absolute;
    left: 0;
    top: 0;
    display: block;
    width: 25px;
    height: 25px;
    -moz-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    -webkit-transform-origin: 100% 100%;
    transform-origin: 100% 100%;
    -moz-animation: folding 2.5s infinite linear both;
    -webkit-animation: folding 2.5s infinite linear both;
    animation: folding 2.5s infinite linear both;
}

.cube-folding .leaf2 {
    -moz-transform: rotateZ(90deg) scale(1.1);
    -ms-transform: rotateZ(90deg) scale(1.1);
    -webkit-transform: rotateZ(90deg) scale(1.1);
    transform: rotateZ(90deg) scale(1.1);
}

.cube-folding .leaf2::before {
    -moz-animation-delay: 0.3s;
    -webkit-animation-delay: 0.3s;
    animation-delay: 0.3s;
    background-color: #f2f2f2;
}

.cube-folding .leaf3 {
    -moz-transform: rotateZ(270deg) scale(1.1);
    -ms-transform: rotateZ(270deg) scale(1.1);
    -webkit-transform: rotateZ(270deg) scale(1.1);
    transform: rotateZ(270deg) scale(1.1);
}

.cube-folding .leaf3::before {
    -moz-animation-delay: 0.9s;
    -webkit-animation-delay: 0.9s;
    animation-delay: 0.9s;
    background-color: #f2f2f2;
}

.cube-folding .leaf4 {
    -moz-transform: rotateZ(180deg) scale(1.1);
    -ms-transform: rotateZ(180deg) scale(1.1);
    -webkit-transform: rotateZ(180deg) scale(1.1);
    transform: rotateZ(180deg) scale(1.1);
}

.cube-folding .leaf4::before {
    -moz-animation-delay: 0.6s;
    -webkit-animation-delay: 0.6s;
    animation-delay: 0.6s;
    background-color: #e6e6e6;
}

@-moz-keyframes folding {
    0%,
    10% {
        -moz-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        -moz-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        -moz-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@-webkit-keyframes folding {
    0%,
    10% {
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

@keyframes folding {
    0%,
    10% {
        -moz-transform: perspective(140px) rotateX(-180deg);
        -ms-transform: perspective(140px) rotateX(-180deg);
        -webkit-transform: perspective(140px) rotateX(-180deg);
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }
    25%,
    75% {
        -moz-transform: perspective(140px) rotateX(0deg);
        -ms-transform: perspective(140px) rotateX(0deg);
        -webkit-transform: perspective(140px) rotateX(0deg);
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }
    90%,
    100% {
        -moz-transform: perspective(140px) rotateY(180deg);
        -ms-transform: perspective(140px) rotateY(180deg);
        -webkit-transform: perspective(140px) rotateY(180deg);
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

.cube-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-top: -50px;
    margin-left: -50px;
    width: 100px;
    height: 100px;
    text-align: center;
}

.cube-wrapper:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -20px;
    margin: auto;
    width: 90px;
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    -webkit-filter: blur(2px);
    filter: blur(2px);
    -moz-border-radius: 100%;
    -webkit-border-radius: 100%;
    border-radius: 100%;
    z-index: 1;
    -moz-animation: shadow 0.5s ease infinite alternate;
    -webkit-animation: shadow 0.5s ease infinite alternate;
    animation: shadow 0.5s ease infinite alternate;
}

.cube-wrapper .loading {
    font-size: 12px;
    letter-spacing: 0.1em;
    display: block;
    color: white;
    position: relative;
    top: 25px;
    z-index: 2;
    font-family: Arial, Helvetica, sans-serif;
    -moz-animation: text 0.5s ease infinite alternate;
    -webkit-animation: text 0.5s ease infinite alternate;
    animation: text 0.5s ease infinite alternate;
}

@-moz-keyframes text {
    100% {
        top: 35px;
    }
}

@-webkit-keyframes text {
    100% {
        top: 35px;
    }
}

@keyframes text {
    100% {
        top: 35px;
    }
}

@-moz-keyframes shadow {
    100% {
        bottom: -18px;
        width: 100px;
    }
}

@-webkit-keyframes shadow {
    100% {
        bottom: -18px;
        width: 100px;
    }
}

@keyframes shadow {
    100% {
        bottom: -18px;
        width: 100px;
    }
}

/*---------- preloader --------------*/

#intro_popup {
    position: absolute;
    width: 290px;
    height: 100%;
    background-color: rgba(158, 155, 92, 1);
    box-shadow: 0px 0px 0px 7px #1C1E17 inset;
    z-index: 2;
    display: block;
}

#intro_title {
    position: relative;
    width: 150px;
    height: auto;
    margin: 30px 0 0 20px;
}

#intro_title p {
    float: left;
    width: 100%;
    text-align: center;
    color: #EDEDB4;
    font-weight: bold;
    font-family: "Marydale";
    font-size: 25px;
    line-height: 34px;
    margin-top: 7px;
    letter-spacing: 0px;
    text-shadow: 2px -2px #000;
}

#intro_img {
    float: left;
    width: 100px;
    height: 142px;
    margin: -14px 0px 0px 0px;
}

#intro_content {
    float: left;
    width: 100%;
    height: auto;
    margin: 7px 0px 0px 0px;
}

#intro_content p {
    float: left;
    color: #000000;
    font-size: 14px;
    padding: 0px 25px;
    line-height: 19px;
}

#intro_content p>span {
    color: #EDEDB4;
}

#board {
    position: absolute;
    width: auto;
    font-family: "Marydale";
    font-size: 27px;
    text-align: center;
    right: 32px;
    top: 31px;
    color: #EDEDB4;
    line-height: 33px;
    text-shadow: -2px 3px #000000;
}

.selectBtn {
    position: absolute;
    width: 65px;
    height: 94px;
    background-color: rgba(255, 255, 255, 0);
    border: none;
    cursor: pointer;
    outline: none;
}

#romeo {
    left: 533px;
    top: 151px;
    transform: rotate(4deg);
}

#juliet {
    left: 615px;
    top: 158px;
    transform: rotate(4deg);
}

.showChar {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    display: none;
}

.infoBox {
    position: relative;
    width: 175px;
    height: 100%;
    background-color: rgba(158, 155, 92, 1);
    box-shadow: 0px 0px 0px 7px #1C1E17 inset;
}

.infoBox p {
    float: left;
    width: 100%;
    font-family: "Marydale";
    font-size: 20px;
    text-align: center;
    color: #EDEDB4;
    text-shadow: 1px 2px #000000;
    margin-top: 12px;
}

#romeoImg {
    position: absolute;
    width: 116px;
    height: 346px;
    background-image: url(../assets/images/romeo_undies.png);
    background-repeat: no-repeat;
    top: 30px;
    left: 384px;
}

#julietImg {
    position: absolute;
    width: 155px;
    height: 324px;
    background-image: url(../assets/images/TyJulietCostume.png);
    background-repeat: no-repeat;
    top: 50px;
    left: 364px;
}

.dragTitle {
    position: absolute;
    float: left;
    width: auto;
    height: auto;
}

.dragTitle p {
    float: left;
    font-family: "Marydale";
    font-size: 14px;
    font-weight: bold;
    color: #000000;
}

#dragTitle_1 {
    top: 87px;
    left: 118px;
}

#dragTitle_2 {
    top: 179px;
    left: 35px;
}

#dragTitle_3 {
    top: 267px;
    left: 117px;
}

#dragTitle_4 {
    top: 323px;
    left: 40px;
}

#dragTitle_5 {
    top: 105px;
    left: 72px;
}

#dragTitle_6 {
    top: 207px;
    left: 18px;
}

#dragTitle_7 {
    top: 278px;
    left: 110px;
}

#dragTitle_8 {
    top: 350px;
    left: 27px;
}

#dragTitle_9 {
    top: 360px;
    left: 112px;
}