<container fillParent="1" visible="0">
  <state name="exit" visible="1"/>
  <state name="menu" visible="0"/>
  <state name="lose" visible="0"/>

  <container w="640" h="840" parentAlign="center" y="-1080" visible="0">
    <state name="exit" visible="1" y="240" easing="back_inout"/>
    <state name="menu" visible="0" y="-1080" easing="back_inout"/>
    <state name="lose" visible="0" y="-1080" easing="back_inout"/>
    
    <image9 x='20' y='0' w="600" h="580" filename="data/gui/composit1.png" corner="20"/>
		
    <text parentAlign="center" y="250" text="End game?" align="center" font="clearsans_medium.ttf" font_size="75" />
    
    <variant_container fillParent="1" dataSource="mode">
      <container fillParent="1" name="level">
        
        <!-- <text parentAlign="center" y="280" text="One life will be lost." align="center" font="clearsans_medium.ttf" font_size="50" /> -->
        <!-- 	<image parentAlign="center" y='250' filename="data/gui/lose_heart.png"  /> -->
	 

        <button x="160" y="350" w="322" h="153" on_click="pushAndSetState('lose')" >
          <container name="default" w="320" h="150">
            <image filename="data/gui/but_main_sm_d.png"  />
            <text centerParent="1" font="clearsans_medium.ttf" font_size="50" align="center" color="3d3d3d" text="End game"/>        
          </container>
          <container name="active" w="320" h="150" >
            <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="End game"/>          
          </container>
          <container name="pressed" w="320" h="150" 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="End game"/>                  
          </container>
        </button>
    
      </container>
      
      <container fillParent="1" name="challenge">

        <button x="160" y="350" w="322" h="153" on_click="toMain()" >
          <container name="default" w="320" h="150">
            <image filename="data/gui/but_main_sm_d.png"  />
            <text centerParent="1" font="clearsans_medium.ttf" font_size="50" align="center" color="3d3d3d" text="End game"/>        
          </container>
          <container name="active" w="320" h="150" >
            <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="End game"/>          
          </container>
          <container name="pressed" w="320" h="150" 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="End game"/>                  
          </container>
        </button>
        
      </container>
      
    </variant_container>

    <button x="525" y="15" w="80" h="80"  on_click="popState()">
      <container name="default" w="80" h="80" >
        <image9 fillParent="1" filename="data/gui/composit1.png" corner="20"/>  
        <text font="clearsans_medium.ttf" font_size="75" centerParent="1" text="X"/>
      </container>
		
      <container name="active" w="80" h="80" >
        <image9 x='-20' y='-20' w="120" h="120" filename="data/gui/highlight_button.png" corner="50"/>
        <image9 fillParent="1" filename="data/gui/composit1.png" corner="20"/>  
        <text font="clearsans_medium.ttf" font_size="75" centerParent="1" text="X"/>
      </container>
		
      <container name="pressed"  w="80" h="80" x="5" y="5" >
        <image9 x='-20' y='-20' w="120" h="120" filename="data/gui/highlight_button.png" corner="50"/>
        <image9 fillParent="1" filename="data/gui/composit1.png" corner="20"/>  
        <text font="clearsans_medium.ttf" font_size="75" centerParent="1" text="X"/>
      </container>
    </button> 
	
    
      
  </container>
  
</container>