@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@620&display=swap');

body, html {
    padding: 0px;
    margin: 0px;

    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 10px;
    margin: 10px;

    z-index: 0;

    box-sizing: border-box;
    background-color: #ededed;
}

#unity-container::before {
    content: '';

    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;

    background: linear-gradient(315deg, #A8FFFF 0%, #B8EDE9 63%, #9AFCC0 100%);
    border-radius: 15px;
    box-sizing: border-box;

    z-index: -1;
    padding: 5px;

    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out; /* pour Chrome/Safari */
}

#unity-canvas {
    background: #231F20;
    border: 3px solid #bebebe;
    border-radius: 10px;
    width: 960px;
    height: 600px;
}

#unity-canvas:fullscreen {
    border: none;
    border-radius: 0px;
}

@media screen and (max-width: 960px) {
    #unity-container {
        padding: 5px;
        margin: 7px;
    }

    #unity-canvas {
        width: calc(100% - 6px);
        height: auto;
    }
}

#unity-loading-bar {
    position: absolute;
    top: 10px;

    width: 80%;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

}

#unity-logo {
    width: 35vw;
    height: 35vw;
    background: url('./unity-logo-dark.png') no-repeat center;
    background-size: contain;
}

#unity-progress-bar-text {
    font-family: "Baloo 2", sans-serif;
    font-weight: 620;
    margin: 10px;
    color: white;
    width: 80%;
}

#unity-progress-bar-label {
    float: left;
    margin: 0px 15px;
}

#unity-progress-bar-percent {
    float: right;
    margin: 0px 15px;
}


#unity-progress-bar-empty {
    width: 85%;
    height: 15px;

    margin-bottom: 10px;
    border: 4px solid white;
    border-radius: 18px;
    background-color: transparent;
    overflow: hidden;
}

#unity-progress-bar-full {
    height: 100%;

    background: linear-gradient(to right, #00ff55, #00ff90);
    border-radius: 8px;
}

#unity-footer {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: end;
}

#unity-webgl-logo {
    width: 204px;
    height: 38px;
    margin: 5px;
    background: url('./webgl-logo.png') no-repeat center;
}

#unity-build-title {
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px;
}

#unity-fullscreen-button {
    cursor: pointer;
    width: 38px;
    height: 38px;
    background-color: #d1d1d1;
    border-radius: 5px;
    margin: 5px;
}

#unity-fullscreen-button::before {
    content: '';
    display: block;
    background: url('./fullscreen-button.svg') no-repeat center;

    width: 35px;
    height: 35px;

    margin: 1.5px;
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}