@font-face {
    font-family: 'Montserrat';
    src: url('Fonts/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: normal; 
    font-style: normal;
}


* {
    box-sizing: border-box;
}
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 0;
    margin: 0;
    position: relative;
}

#layout {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    justify-items: center;   /* Center horizontally */
    align-items: center;     /* Center vertically */
}

#layout > div {
    overflow: hidden;
}

#left, #right {
    display: flex;
    height: 100%;
    justify-content: center;
}

#left {
    align-items: flex-start;
}

#right {
    align-items: flex-end;
}

#left img, #right img {
    width: 70%;
    max-width: 45vh;
}

/* Original media query */
@media (max-aspect-ratio: 3/3) {
    #left img, #right img {
        display: none;
    }
}

#background {
    background-image: url("H2F_Stop_Sharing_Ladescreen_BG.png");
    background-position: center;
    background-size: cover;
    position: absolute;
    width: 100%;
    height: 100%;
}

div#gameContainer {
    box-shadow: 0 0 100px 0px #000000dd;
    background-image: url("H2F_Stop_Sharing_CI_BG_Start.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    width: 100%;
    height: 100%;

    /* Ensure canvas is vertically centered */
    display: flex;
    justify-content: center;
    align-items: center;
    animation: blurAnimation 2.5s forwards;
}

div#gameContainer canvas {
    position: absolute;
}

div#gameContainer canvas[data-pixel-art="true"] {
    position: absolute;
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-crisp-edges;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}

/* Adjusted loading bar and progress circle */
div#roundProgressBar {
    position: absolute;
    top: 50%;  /* Center vertically */
    left: 50%;  /* Center horizontally */
    transform: translate(-50%, -50%);  /* Perfect centering */
    width: 35%;
    height: 35%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url(../H2F_StopSharingGame_Loading-circle.gif);
    z-index: 2; /* Ensure it's visible */
}

#loadingContainer {
    position: absolute;
    top: 60%;  /* Position just below the center */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#roundProgressBar {
    width: 30%;
}

#loadingText {
    position: absolute;
    color: #FF501960;
    text-align: center;
    font-size: 20px;
    font-family: "Montserrat", monospace;
    font-weight: 500;
}

@keyframes blurAnimation {
    0% {
        filter: blur(12px);
    }
    100% {
        filter: blur(0);
    }
}

.end-animation {
    animation: none !important;
    filter: blur(0) !important;
}

.unselectable {
    -webkit-user-select: none;  /* Safari, Chrome, older versions of Android */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* Internet Explorer and Edge */
    user-select: none;          /* Standard browsers */
}
