<?xml version="1.0" encoding="UTF-8"?>
<ContentPage Title="THEGAME" BackgroundColor="{DynamicResource BlackColor}"        
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="TheGameExtreme.view.HomePage">
    <StackLayout BackgroundColor="Transparent">
        <Grid>
            
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="*"/>
            </Grid.RowDefinitions>

            <Label Text="THE GAME"  TextColor="{DynamicResource WhiteColor}"
                   Grid.Row="0" Grid.Column="1" 
                   HorizontalTextAlignment="Center"  
                   FontSize="35"                   
                   VerticalTextAlignment="Center"
                   FontFamily=""/>

            <ImageButton Source="EngrenageV1.jpeg"
                    Grid.Row="0" Grid.Column="2" 
                    VerticalOptions="CenterAndExpand" 
                    HorizontalOptions="End" 
                    HeightRequest="60" 
                    WidthRequest="68"                         
                    Clicked="OpenSetting"
                         BackgroundColor="{DynamicResource BlackColor}"/>
            
            <Button Text="Jeu en local" FontSize="18" Grid.Row="1" Grid.Column="1" 
                    HorizontalOptions="Center" 
                    WidthRequest="230" 
                    HeightRequest="57" 
                    VerticalOptions="Center"
                    Clicked="OpenGame"
                    CornerRadius="10"
                    Margin="15"
                    BackgroundColor="{DynamicResource SkyBlueColor}"/>


            <Button Text="Multijoueur" FontSize="18" Grid.Row="2" Grid.Column="1" 
                    HorizontalOptions="Center" 
                    VerticalOptions="Center"
                    HeightRequest="57" 
                    WidthRequest="230"
                    Clicked="OpenMultiPlayerMode"
                    CornerRadius="10"
                    Margin="15"
                    BackgroundColor="{DynamicResource SkyBlueColor}"/>

            <Button Text="Connexion en ligne" FontSize="16" Grid.Row="3" Grid.Column="1"
                    HorizontalOptions="Center" 
                    VerticalOptions="Center"                    
                    WidthRequest="230"
                    HeightRequest="57"
                    CornerRadius="10"
                    Margin="15"
                    BackgroundColor="{DynamicResource SkyBlueColor}"/>

            <ImageButton Source="imagesRules.png" Grid.Column="0"
                         Grid.Row="0"
                         HeightRequest="60"
                         WidthRequest="45"
                         VerticalOptions="CenterAndExpand"
                         HorizontalOptions="Start"
                         Margin="20"
                         Clicked="Rules_Clicked"
                         BackgroundColor="{DynamicResource BlackColor}"/>

        </Grid>  
    </StackLayout>
</ContentPage>
