﻿body {
    margin: 0;
    overflow: hidden;
}

#unity-canvas {
    /* importantがないとUnity側のスクリプトでグレーにされてしまう */
    background-color: black !important;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    /*ロゴと合わせて上下中央に揃えたいためちょっと下げる*/
    top: calc(50% + 80px);
    transform: translate(-50%, -50%);
    display: none;
    color: #ddd;
}

#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 5px;
    background: url('src/progress-bar-empty-dark.png') no-repeat center;
    /* 細いほうがかっこいい */
    /* heightを変えると画像の枠がずれるのでこれを使う */
    transform: scaleY(0.5);
}

#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    background: url('src/progress-bar-full-dark.png') no-repeat center;
}

#unity-cache-clear-button-wrapper {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 50px;
    top: 50px;
}

#unity-cache-clear-button {
    width: 100%;
    height: 100%;
}

#unity-cache-clear-button:active {
    position: relative;
    top: 3px;
}

#unity-cache-clear-button img {
    width: 100%;
    height: 100%;
}

#boot-failed-msg {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    color: rgb(235, 140, 140);
    width: 100%;
}

.spin {
    animation: spin 2s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#play-tech-logo {
    position: absolute;
    /*ローディングバーと合わせて上下中央に揃えたいためちょっと上げる*/
    top: calc(50% - 80px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}
