<Page x:Class="ForzaUI.Scenes.Anthem.A_FestivalEntryScene"
      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" 
      xmlns:local="clr-namespace:ForzaUI"
      mc:Ignorable="d"
      Style="{StaticResource A_Style_Page_Generic}">

    <Page.Resources>
        <Style x:Key="A_Style_FZTextBlock_Normal" TargetType="{x:Type local:FZTextBlock}" BasedOn="{StaticResource A_Style_FZTextBlock_HorizonB}">
            <Setter Property="Color" Value="{StaticResource A_Color_White}"/>
            <Setter Property="FontSize"
                    Value="68" />
        </Style>
        
        <Style x:Key="A_Style_FZRun_BOLD" TargetType="{x:Type local:FZRun}">
            <Setter Property="FontFamily" Value="Horizon_A"/>
        </Style>

        <Style x:Key="A_Style_ContentControl_Slide"
               TargetType="{x:Type ContentControl}"
               BasedOn="{StaticResource A_Style_ContentControl_AnimatedTagSlideFromLeft}">
            <Setter Property="Opacity"
                    Value="1" />
            <Setter Property="local:UIPageTransitionManager.TransitionIndex"
                    Value="0" />
            <Style.Resources>
                <local:UIStoryboard x:Key="transition_in">
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="Tag"
                                                   Storyboard.TargetName="{x:Null}">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0"
                                                Value="0.15" />
                        <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                              Value="0.0">
                            <EasingDoubleKeyFrame.EasingFunction>
                                <CubicEase EasingMode="EaseOut" />
                            </EasingDoubleKeyFrame.EasingFunction>
                        </EasingDoubleKeyFrame>
                        <EasingDoubleKeyFrame KeyTime="0:0:4.1"
                                              Value="0.0" />
                        <EasingDoubleKeyFrame KeyTime="0:0:4.4"
                                              Value="1.0" />
                    </DoubleAnimationUsingKeyFrames>
                    <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)"
                                                   Storyboard.TargetName="{x:Null}">
                        <DiscreteDoubleKeyFrame KeyTime="0:0:0.0"
                                                Value="0.0" />
                        <EasingDoubleKeyFrame KeyTime="0:0:0.3"
                                              Value="1.0" />
                        <EasingDoubleKeyFrame KeyTime="0:0:4.1"
                                              Value="1.0" />
                        <EasingDoubleKeyFrame KeyTime="0:0:4.4"
                                              Value="0.0" />
                    </DoubleAnimationUsingKeyFrames>
                </local:UIStoryboard>
                <local:UIStoryboard x:Key="transition_out_forward">
                </local:UIStoryboard>
                <local:UIStoryboard x:Key="transition_out_back">
                </local:UIStoryboard>
            </Style.Resources>
        </Style>

        <Color x:Key="A_Color_DropShadow">#4D000000</Color>
        
        <DropShadowEffect x:Key="A_DropShadowEffect_Default"
                            Color="{StaticResource A_Color_DropShadow}"
                            BlurRadius="0"
                            ShadowDepth="3" />
    </Page.Resources>

    <local:UIPageTransitionManager.TransitionManager>
        <local:UIPageTransitionManager Preset="{StaticResource A_UIPageTransitionManagerPreset_NoAudio}" />
    </local:UIPageTransitionManager.TransitionManager>

    <Border Style="{StaticResource A_Style_FrameworkElement_LayoutRoot}">
        <Decorator Effect="{StaticResource A_DropShadowEffect_Default}">
            <ContentControl Style="{StaticResource A_Style_ContentControl_Slide}">
                <Grid>
                    <local:FZMaterial Preset="{StaticResource A_FZMaterialPresetScreenShadow_ARUI}" />
                    <StackPanel HorizontalAlignment="Left"
                                VerticalAlignment="Top"
                                Margin="85,662,0,0">
                        <local:FZTextBlock VerticalAlignment="Bottom"
                                           Style="{StaticResource A_Style_FZTextBlock_Normal}"
                                           local:TextBlockInlineMarkup.ResourceBaseName="A_Style_FZRun_"
                                           local:TextBlockInlineMarkup.Markup="{Binding PlayerPresentsText, Converter={StaticResource A_StringToUpper}}" />
                        <Decorator Height="10" />
                        <StackPanel Orientation="Horizontal">
                            <local:FZTextBlock Text="{Binding FestivalNameShort}"
                                               Style="{StaticResource A_Style_FZTextBlock_Normal}" />
                            <Decorator Width="16" />
                            <local:FZTextBlock VerticalAlignment="Top"
                                               Text="{Binding LevelTextNumeric}"
                                               Style="{StaticResource A_Style_FZTextBlock_Normal}" />
                        </StackPanel>

                    </StackPanel>
                </Grid>
            </ContentControl>
        </Decorator>
    </Border>
</Page>
