<container w="1920" h="1080" visible="0" y="-1080">
  <state name="modeselect" visible="1" y="0" />
  <state name="welcome" visible="0" y="-1080" />
  <state name="episodes" visible="0" y="-1080" />
  
  
  <!-- <image  parentAlign="center"  y="150" filename="data/gfx/logo.png"  /> -->
  <image  x="295"  y="370" filename="data/gfx/logo_grey4.png"  />
  
  <container x="1100" y="225" w="640" h="840" >
    <state name="options"  y="1150" easing="back_inout"/>
    <state name="modeselect" y="250"  easing="back_inout"/>
		
    <button x="130" y="70" w="380" h="180" on_click="pushState();setState('episodes')" focused="1" >
      <container name="default" w="380" h="180" >
        <image filename="data/gui/but_main_d.png"  />
        <text centerParent="1" font="clearsans_medium.ttf" font_size="75" color="3d3d3d" align="center" text="Play Quest"/>
      </container>
      <container name="active" w="380" h="180" >
        <affine_animation x="0" y="0" w="372" h="203" filename="data/themes/christmas/backgrounds/back1/animations/ab0.anim.xml" autoremove="0">
          <image9 x='-30' y='-20' w="430" h="230" filename="data/gui/highlight_button.png" corner="50"/>
        </affine_animation>
        <image filename="data/gui/but_main_a.png" x="-5" y="-5" w="390" h="190"  />
        <text centerParent="1" font="clearsans_medium.ttf" font_size="75" color="3d3d3d" align="center" text="Play Quest"/>
      </container>
      <container name="pressed" w="380" h="180" x="5" y="5" >
        <image filename="data/gui/but_main_a.png"  x="-5" y="-5" w="390" h="190"  />
        <text centerParent="1" font="clearsans_medium.ttf" font_size="75" color="3d3d3d" align="center" text="Play Quest"/>
      </container>
    </button>

    <button x="160" y="240" w="322" h="153" on_click="pushState();setState('select_challenge_size')" name="playEndlessButton">
      <container name="default" w="322" h="153">
        <image filename="data/gui/but_main_sm_d.png"  />
        <text centerParent="1" font="clearsans_medium.ttf" font_size="50" align="center" color="3d3d3d" text="Challenge"/>        
      </container>
      <container name="active" w="322" h="153" >
        <affine_animation x="0" y="0" w="372" h="203" filename="data/themes/christmas/backgrounds/back1/animations/ab0.anim.xml" autoremove="0">
          <image9 x='-30' y='-20' w="372" h="203" filename="data/gui/highlight_button.png" corner="50"/>
        </affine_animation>
        <image filename="data/gui/but_main_sm_a.png" x="-5" y="-5"  w="332" h="163"  />
        <text centerParent="1" font="clearsans_medium.ttf" font_size="50" align="center" color="3d3d3d" text="Challenge"/>          
      </container>
      <container name="pressed" w="322" h="153" x="5" y="5">
        <image filename="data/gui/but_main_sm_a.png" x="-5" y="-5"  w="332" h="163" />
        <text centerParent="1" font="clearsans_medium.ttf" font_size="50" align="center" color="3d3d3d" text="Challenge"/>                  
      </container>
      
      <image name="saveMark" w="10" h="10" visible="0" color="ffffff"/>
      
    </button>
	
  </container>

  <container x="1100" y="620" w="640" h="840" >

    <state name="options"  y="1150" easing="back_inout"/>
    <state name="modeselect" y="645"  easing="back_inout"/>
			 
    <button x="125" y="0" w="182" h="153" on_click="showLeaderboard" name="showLeaderboardButton">
      <container name="default" w="180" h="100">
        <image filename="data/gui/but_main_minimal_d.png"  />
        <image filename="data/gui/gc.png"  />    
      </container>
      <container name="active" w="180" h="100" >
        <affine_animation x="0" y="0" w="232" h="203" filename="data/themes/christmas/backgrounds/back1/animations/ab0.anim.xml" autoremove="0">
          <image9 x='-30' y='-20' w="232" h="203" filename="data/gui/highlight_button.png" corner="50"/>
        </affine_animation>
        <image filename="data/gui/but_main_minimal_a.png" x="-5" y="-5"  w="192" h="163"  />
        <image filename="data/gui/gc.png"  x="-5" y="-5"  w="192" h="163" />           
      </container>
      <container name="pressed" w="180" h="100" x="5" y="5">
        <image filename="data/gui/but_main_minimal_a.png" x="-5" y="-5"  w="192" h="163" />
        <image filename="data/gui/gc.png"   x="-5" y="-5"  w="192" h="163" />                   
      </container>
    </button>

    <button x="325" y="0" w="182" h="153" on_click="pushAndSetState:options">
      <container name="default" w="180" h="100">
        <image filename="data/gui/but_main_minimal_d.png"  />
        <image filename="data/gui/settings.png"  />        
      </container>
      <container name="active" w="180" h="100" >
        <affine_animation x="0" y="0" w="232" h="203" filename="data/themes/christmas/backgrounds/back1/animations/ab0.anim.xml" autoremove="0">
          <image9 x='-30' y='-20' w="232" h="203" filename="data/gui/highlight_button.png" corner="50"/>
        </affine_animation>
        <image filename="data/gui/but_main_minimal_a.png" x="-5" y="-5"  w="192" h="163"  />
        <image filename="data/gui/settings.png"  x="-5" y="-5"  w="192" h="163" />                 
      </container>
      <container name="pressed" w="180" h="100" x="5" y="5">
        <image filename="data/gui/but_main_minimal_a.png" x="-5" y="-5"  w="192" h="163" />
        <image filename="data/gui/settings.png"  x="-5" y="-5"  w="192" h="163" />                   
      </container>
    </button>
	

  </container>
    
  
</container>