html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

html, body {
    height: 100%;
}

canvas {
    display: block;
}

body {
    margin: 0;
}

#unity-container {
    position: relative; /* VERY important */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #231F20;
}

#loading-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#unity-loading-bar {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#unity-logo {
    text-align: center;
}

    #unity-logo img {
        max-width: 80%;
    }

#unity-progress-bar-empty {
    width: 80%;
    height: 24px;
    margin: 10px 20px 20px 10px;
    text-align: left;
    border: 1px solid white;
    padding: 2px;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: white;
}

.light #unity-progress-bar-empty {
    border-color: black;
}

.light #unity-progress-bar-full {
    background: black;
}

#version-number-text {
    position: absolute;
    bottom: 10px;
    color: white;
    background-size: contain;
    z-index: 9999;
}

/* Corner Button Menu */
#menu-options {
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
}

/* Corner Button Main Button */
.menu-button {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    background-size: contain;
    z-index: 9998;
}

#tap-to-start-button-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#tap-to-start-button {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    color: white;
    font-size: 2rem;
    border: none;
    z-index: 9999;
    display: block;
    cursor: pointer;
}

/* Main Buttons */
#unity-menu-button {
    bottom: 10px;
    background: url('menuData/menu-button.png?') no-repeat center;
}

#unity-fullscreen-button {
    bottom: 10px;
    background: url('menuData/fullscreen-button.png') no-repeat center;
}

#close-menu-button {
    bottom: 10px;
    background: url('menuData/close-button.png') no-repeat center;
}

.menu-button.small-button {
    width: 28px;
    height: 28px;
    right: 8px;
}

/* Inner Menu Buttons */
#rating-button {
    background: url('menuData/rate-button.png?') no-repeat center;
}

.menu-button.small-button.custom-button {
    background: url('') no-repeat center;
}

#menu-fs-button {
    background: url('menuData/fullscreen-button.png') no-repeat center;
}

/* Rating Screen */


#ratingModal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#rateTitleText {
    background-color: rgba(0,0,0,0.35);
    border-radius: 5px;
}

.rating-selection-button {
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 5px;
    margin-left: 5px;
    margin-right: 5px;
    color: black;
    transition: color 0.2s;
}

    .rating-selection-button.selected {
        color: grey;
    }

#averageRating {
    padding-top: 5px;
}

#ratingWindow {
    background: #1eaed3;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.star {
    font-size: 40px;
    color: rgba(0,0,0,0.35);
    cursor: pointer;
    transition: color 0.2s;
}

    .star.hover,
    .star.selected {
        color: gold;
    }
