<?xml version="1.0" encoding="utf-8" ?>
<ContentPage
    BackgroundColor="{DynamicResource BlackColor}"
    xmlns="http://xamarin.com/schemas/2014/forms"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:d="http://xamarin.com/schemas/2014/forms/design"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:resources="clr-namespace:TheGameExtreme.Resx"             
    x:Class="TheGameExtreme.view.RulesGame"
    mc:Ignorable="d">

    

        <Grid Margin="20,20,20,20">
            <Grid.RowDefinitions>
                <RowDefinition Height="2*"/>
                <RowDefinition Height="10*"/>
                

        </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="2*"/>
                <ColumnDefinition Width="10*"/>
                <ColumnDefinition Width="2*"/>
            </Grid.ColumnDefinitions>

            <Label
                Text="{x:Static resources:AppResources.StrTitleRules}"
                VerticalOptions="Center"
                HorizontalOptions="Center"                
                Grid.Column="1"
                Grid.Row="0"
                FontSize="35"
                TextColor="{DynamicResource WhiteColor}"/>

        <Button Text="Jouer"
                    Grid.Row="0"
                    Grid.Column="2"
                    BackgroundColor="{DynamicResource SkyBlueColor}"
                    VerticalOptions="Center"
                    HorizontalOptions="Center"
                    CornerRadius="10"
                    Clicked="ClickToPlay"/>

        <ImageButton Source="HomeIcon.png"
                     Grid.Column="0"
                     Grid.Row="0"                    
                     VerticalOptions="Start" 
                     HorizontalOptions="StartAndExpand" 
                     HeightRequest="50" 
                     WidthRequest="60"                    
                     Clicked="BackToHome"
                     BackgroundColor="Transparent"/>


        <ScrollView Grid.Row="1"
                    Grid.Column="0"
                    Grid.ColumnSpan="3"
                    Margin="20,0,20,0">

            <Label
                Text="{x:Static resources:AppResources.StrRules}"
                FontSize="16"
                TextColor="{DynamicResource WhiteColor}"/>
        </ScrollView>
    </Grid>       
              
</ContentPage>