
body {
    margin: 0 auto;
    overflow: hidden;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}


#word_connect_game{
    margin : 0 auto;

    
}

canvas{
    width : 100%;
    height : 100%;
}

#word_connect_game_pbar{
    display: none;
}

#word_connect_game_loader{
    position: absolute;
    visibility: hidden;
    top: 50%;
    left: 50%;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
}

#word_connect_orientation{
    display: none;
}

#word_connect_orientation{
    position: absolute;
    top: 50%;
    left: 50%;
    -moz-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: translateX(-50%) translateY(-50%);
    transform: translateX(-50%) translateY(-50%);
    
}


/* This media query enables the game to run 100% in mobile devices */
@media only screen and (hover: none) and (pointer: coarse){
    #game_container{
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
    }
}


.full_height_desktop_body{
    margin: 0 !important;



}


/*.full_height_desktop_game_container{

    margin : 0;

    background-color : rgb(123, 104, 238);
    width: 100% !important;
    height: 100% !important;

}*/
.full_height_desktop_game_container {
    margin: 0;
    background-image: url('background.jpg'); /* Укажите путь к вашему изображению */
    background-size: cover; /* Растягивает изображение на весь экран */
    background-position: center; /* Центрирует изображение */
    background-repeat: no-repeat; /* Избегает повторения изображения */
    width: 100% !important;
    height: 100% !important;
}


#game_loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(53, 92, 148); /* Тёмный фон */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000; /* Убедитесь, что лоадер выше всех элементов */
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#game_loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



