body { padding: 0; margin: 0; }
#unity-container { position: fixed; width: 100%; height: 100%; }
#unity-canvas { width: 100%; height: 100%; }
#unity-loading-bar { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: none }
#unity-logo { width: 725px; height: 120px; background: url('wikifin_lab_logo.png') no-repeat center }
#unity-progress-bar-empty { margin-left: auto; margin-right: auto; width: 300px; height: 4px; margin-top: 50px; background-color: #5cc0ef }
#unity-progress-bar-full { width: 0%; height: 4px; margin-top: 50px; background-color: #005596 }
#unity-warning { position: absolute; left: 50%; top: 5%; transform: translate(-50%); background: white; padding: 10px; display: none }

nav
{
    position: absolute;
    z-index: 100; 
    top: 1rem;
    bottom: 1rem;
    right: 0;
    margin: auto;

    display: grid;
    gap: 1rem;
    place-content: center;
    height: fit-content;

    background: #04051b;
    border-radius: 3rem 0 0 3rem;
    padding: 1rem;
    padding-right: 0.6rem;
}

button
{
    width: 4rem;
    aspect-ratio: 1;
    border-radius: 99em;
    background: #005596;
    border: none;
    overflow: hidden;

    font-size: 2rem;
    color: #FFFFFFD7;
    text-align: center;
    
    transition: all 0.2s ease;
}

button:hover
{
    transform: scale(1.1);
}

#orientation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    font-size: 1.5rem;
    z-index: 1000;
    display: none;
    flex-direction: column;
    font-family: Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

#orientation-overlay img {
    max-width: 50%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Show overlay in portrait mode */
@media (orientation: portrait) {
    #orientation-overlay {
         display: flex;
    }
}

@media (max-width: 1024px)
{
    nav
    {
        transform-origin: right;
        transform: scale(0.6);
    }

    #unity-loading-bar
    {
      transform: translate(-50%, -50%) scale(0.6);
    }
}

@media (max-width: 700px)
{
    nav
    {
      transform: scale(0.5);
      transform-origin: right;
    }

    #unity-loading-bar
    {
      transform: translate(-50%, -50%) scale(0.5);
    }
}

@media (max-width: 500px)
{
    nav
    {
      transform: scale(0.4);
      transform-origin: right;
    }

    #unity-loading-bar
    {
      transform: translate(-50%, -50%) scale(0.4);
    }
}