#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
#unity-progress-bar-empty {
    width: 141px;
    height: 18px;
    margin-top: 10px;
    margin-left: 6.5px;
    background: url("progress-bar-empty-dark.png") no-repeat center;
}
#unity-progress-bar-full {
    width: 0%;
    height: 18px;
    margin-top: 10px;
    background: url("progress-bar-full-dark.png") no-repeat center;
}
#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none;
}

:root {
    --primary-color: #4caf50;
    --secondary-color: #f5a623;
    --text-color: #333333;
    --background-color: #ffffff;
    --header-height: 80px;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

main, .game-container, .ipad-frame, .unity-container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

#unity-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.unity-container {
    position: absolute;
    top: 0;
    left: 0;
}

#mobile-fallback-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Quicksand", sans-serif;
    text-align: center;
    color: #333;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
}


@media (max-width: 768px) {
    html,
    body {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .game-container {
        flex: 1 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ipad-frame {
        margin: 0 auto;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .unity-container {
        top: 2%;
        left: 2%;
        right: 2%;
        bottom: 2%;
        width: 96%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #mobile-fallback-message {
        width: 90%;
        max-width: 600px;
        font-size: 16px;
    }
}

@media (min-height: 900px) {
    html,
    body {
        height: 100%;
        margin: 0;
    }
    body {
        display: flex;
        flex-direction: column;
    }

    main {
        flex: 1 0 auto;
    }
}
