<Page xmlns:local="clr-namespace:ForzaUI"
	  xmlns:System="clr-namespace:System;assembly=mscorlib"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	  x:Class="ForzaUI.Scenes.Anthem.A_InitialDriveSeasonTransition"
      mc:Ignorable="d"
	  Style="{StaticResource A_Style_Page_Generic}"
      >
    <Page.Resources>
        <Style x:Key="A_Style_FZTextBlock_TransitionTitle"
               TargetType="{x:Type local:FZTextBlock}">
            <Setter Property="FontFamily" Value="Horizon_E"/>
            <Setter Property="LineAdjust" Value="0"/>
            <Setter Property="Color" Value="#E5E5E5" />
            <Setter Property="CapHeight" Value="52" />
            <Setter Property="VerticalAlignment" Value="Center" />
            <Setter Property="HorizontalAlignment" Value="Center" />
            <Setter Property="TextAlignment" Value="Center" />
            <Setter Property="MaxWidth" Value="1700" />
            <Setter Property="Opacity" Value="0" />
            <Setter Property="TrackingAdjust" Value="0.273" />
        </Style>
    </Page.Resources>
    <Grid x:Name="LayoutRoot">
        <VisualStateManager.VisualStateGroups>
            <VisualStateGroup x:Name="VisualStateGroup">
                <VisualState x:Name="PostVideoLoading">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundFader">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>

                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Spinner">
                            <EasingDoubleKeyFrame KeyTime="0:0:0.2" Value="0"/>
                            <EasingDoubleKeyFrame KeyTime="0:0:0.7" Value="1"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Hidden">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Video">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                        </DoubleAnimationUsingKeyFrames>

                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Spinner">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                        </DoubleAnimationUsingKeyFrames>

                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundFader">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.0" Value="0" />
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
            <VisualStateGroup x:Name="TitleState">
                <VisualState x:Name="Autumn">
                    <Storyboard>
                        <StringAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="TitleText">
                            <DiscreteStringKeyFrame KeyTime="0" Value="{local:Loc InGame.IDS_InitialDriveTransitionAutumn_Title2}"/>
                        </StringAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.87" Value="0"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:1.37" Value="0.9"/>
                            <DiscreteDoubleKeyFrame KeyTime="0:0:2.77" Value="0.9"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.27" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="TrackingAdjust" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.87" Value="0.273"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.27" Value="0.360"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleX" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.87" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.27" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleY" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.87" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.27" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Winter">
                    <Storyboard>
                        <StringAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="TitleText">
                            <DiscreteStringKeyFrame KeyTime="0" Value="{local:Loc InGame.IDS_InitialDriveTransitionWinter_Title2}"/>
                        </StringAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:1.37" Value="0"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:1.87" Value="0.9"/>
                            <DiscreteDoubleKeyFrame KeyTime="0:0:3.27" Value="0.9"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.77" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="TrackingAdjust" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:1.37" Value="0.08"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.77" Value="0.18"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleX" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:1.37" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.77" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleY" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:1.37" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.77" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Spring">
                    <Storyboard>
                        <StringAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="TitleText">
                            <DiscreteStringKeyFrame KeyTime="0" Value="{local:Loc InGame.IDS_InitialDriveTransitionSpring_Title2}"/>
                        </StringAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.07" Value="0"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:0.57" Value="0.9"/>
                            <DiscreteDoubleKeyFrame KeyTime="0:0:3.07" Value="0.9"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.57" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="TrackingAdjust" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.07" Value="0.17"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.57" Value="0.27"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleX" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.07" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.57" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleY" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.07" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:3.57" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
                <VisualState x:Name="Summer">
                    <Storyboard>
                        <StringAnimationUsingKeyFrames Storyboard.TargetProperty="Text" Storyboard.TargetName="TitleText">
                            <DiscreteStringKeyFrame KeyTime="0" Value="{local:Loc InGame.IDS_InitialDriveTransitionSummer_Title2}"/>
                        </StringAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.5" Value="0"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:1.0" Value="0.9"/>
                            <DiscreteDoubleKeyFrame KeyTime="0:0:3.5" Value="0.9"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:4.0" Value="0"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="TrackingAdjust" Storyboard.TargetName="TitleText">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.5" Value="0.355"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:4.0" Value="0.444"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleX" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:4.0" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="ScaleY" Storyboard.TargetName="TitleTextScaler">
                            <DiscreteDoubleKeyFrame KeyTime="0:0:0.5" Value="1"/>
                            <LinearDoubleKeyFrame KeyTime="0:0:4.0" Value="1.08"/>
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualState>
            </VisualStateGroup>
        </VisualStateManager.VisualStateGroups>

        <Grid Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
            <Decorator RenderTransformOrigin="0.5,0.5">
                <Decorator.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform x:Name="TitleTextScaler" />
                        <ScaleTransform ScaleX="1.25" ScaleY="1.0" />
                    </TransformGroup>
                </Decorator.RenderTransform>
                <local:FZTextBlock x:Name="TitleText" Style="{StaticResource A_Style_FZTextBlock_TransitionTitle}" />
            </Decorator>
        </Grid>
    </Grid>
</Page>