@font-face {
    font-family: 'Booxel';
    src: URL('bookxel.ttf') format('truetype');
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black; /* Black letterbox background */
    overflow-y: auto;
}

#unity-canvas{
    width: 75vw; /* 80% of viewport width */
    height: calc(75vw * 9 / 16); /* Maintain 16:9 aspect ratio */
    max-width: 1920px;
    max-height: 1080px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevents unwanted scaling issues */
    background: #231F20;
    
    position: absolute;
    top:0;
    bottom: 0;
    left: 0;
    right: 0;
    margin:auto;
    
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);
    z-index: 10;
}


canvas {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures scaling stays within bounds */
}

#background{
    background-image: url('slimetopia.png'); 
    background-repeat: no-repeat; 
    background-attachment:fixed; 
    background-size: cover;
    background-position-y: center;
}

#SlimeTopia{
    color: #00C505;
    font-family: 'Booxel';
    text-align: center;
    font-size: 64px;
    font-variant: small-caps;
    font-weight: bold;
    letter-spacing: 5px;
    text-shadow: -3px 1px 2px rgb(0, 0, 0, 0.501960784);

    position: absolute;
    top:16px;
    left: 0;
    right: 0;
    margin:auto;
}

a{
    font-size: 20px;
    font-family: Arial;
    text-decoration: none;
}

#discord{
    color:#7289da;

    position: absolute;
    bottom: 12px;
    right: 12px;
    margin:auto;
}

#discord-image{
    position: absolute;
    bottom: 13px;
    right: 84px;

    width: 24px;
    height: 24px;
}

#download{
    color: white;

    position: absolute;
    bottom: 12px;
    right: 122px;
    margin:auto;
}

#download-image{
    position: absolute;
    bottom: 14px;
    right: 215px;

    width: 22px;
    height: 22px;
}

#changes{
    color: white;

    position: absolute;
    bottom: 12px;
    left: 42px;
    margin:auto;
}

#changes-image{
    position: absolute;
    bottom: 12px;
    left: 12px;

    width: 28px;
    height: 28px;
}

#changelog{
    width: 90%; 
    height: 90%;
    
    color: white;
    font-family: 'Booxel';
    text-align: center;
    font-size: 64px;
    font-variant: small-caps;
    font-weight: bold;
    letter-spacing: 5px;
    text-shadow: -3px 1px 5px rgb(0, 0, 0, 0.501960784);
}