<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=1024, initial-scale=1" />
<meta name="amp-script-src" content="sha384-JanVy7EpfrXEsXNiHXVpjkVoriN0uCgXmBpDj7vCOzID527alytP-IlEuoHVPqia">
<link type="text/css" rel="stylesheet"  href="<?php echo get_stylesheet_uri(); ?>" media="screen" />

<link type="text/css" rel="stylesheet"  href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" />
<link rel="icon" type="image/png" href="<?php echo get_template_directory_uri(); ?>/images/brand/favicon.png" />

<?php wp_head(); ?>
<script async src="<?php  echo get_template_directory_uri();?>/js/custom-script.js"></script>
<style amp-custom>
    .background-green {
      background: green;
    }
    .background-red {
      background: red; top:100px;
    }
    .border-red {
     top:200px;
    }
  </style>
</head>
<body <?php body_class(); ?>>

	<header>
      <div class="header-wrapper">
        <div class="logo">
			<?php if ( function_exists( 'the_custom_logo' ) ) {
    the_custom_logo();
}
?>
          
        </div>
      </div>
    </header>
	<header id="header" role="branding">
		<section class="content">
      <div class="container">
        <div class="thumbs">
			<?php
if ( has_post_thumbnail() ) {
    $image_url = get_the_post_thumbnail_url( get_the_ID(), 'full' );
    
}
?>

          <amp-img src="<?php echo esc_url( $image_url ); ?>" width="700" height="700" alt="Bandar Toto" layout="responsive" class="i-amphtml-element i-amphtml-layout-responsive i-amphtml-layout-size-defined i-amphtml-built i-amphtml-layout" i-amphtml-layout="responsive" style="--loader-delay-offset: 193ms !important;"><i-amphtml-sizer slot="i-amphtml-svc" style="padding-top: 100%;"></i-amphtml-sizer><img decoding="async" alt="Bandar Toto" src="images/DreamShaper.jpg" class="i-amphtml-fill-content i-amphtml-replaced-content"></amp-img>
        </div>
        <div class="btn-body">
          <div class="btn-items">
            <a href="<?php echo get_theme_mod('login_link');?>" rel="nofollow noreferrer" target="_blank" title="Daftar Kpktoto">
              <span></span>
              <span></span>
              <span></span>
              <span></span>
              <b>DAFTAR</b>
            </a>
          </div>
          <div class="btn-items">
            <a href="<?php echo get_theme_mod('signup_link');?>" rel="nofollow noreferrer" target="_blank" title="Login Kpktoto">
              <span></span>
              <span></span>
              <span></span>
              <span></span>
              <b>LOGIN</b>
            </a>
          </div>
        </div>
        <div class="article">
			<h1><?php echo get_the_title(); ?> </h1>
          <p><?php echo get_the_content(); ?> </p>
        </div>
      </div>
    </section>

<div class="sticky-bottom-menu">
      <a class="menu-items" href="<?php echo get_theme_mod('ALTERNATIF_link');?>" target="_blank" rel="nofollow">
        <div class="menu-icons"><i class="fas fa-home"></i></div>
        <div class="menu-text">Home</div>
      </a>
      <a class="menu-items" href="<?php echo get_theme_mod('apk_link');?>" target="_blank" rel="nofollow">
        <div class="menu-icons"><i class="fab fa-android"></i></div>
        <div class="menu-text">Apps</div>
      </a>
      <a class="menu-items menu-login" href="<?php echo get_theme_mod('daftar_link');?>" target="_blank" rel="nofollow">
        <div class="menu-icons"><i class="fas fa-user-alt"></i></div>
        <div class="menu-text">Daftar</div>
      </a>
      <a class="menu-items" href="<?php echo get_theme_mod('whatsapp_link');?>" target="_blank" rel="nofollow">
        <div class="menu-icons"><i class="fas fa-tags"></i></div>
        <div class="menu-text">Bonus</div></a>
      <a class="menu-items" href="<?php echo get_theme_mod('livechat_link');?>" target="_blank" rel="nofollow">
        <div class="menu-icons"><i class="fas fa-comments"></i></div>
        <div class="menu-text">Livechat</div>
      </a>
    </div>

<script id="inline_amp" type="text/plain" target="amp-script">

  const button1 = document.querySelector('#menutoggler');
  const nav = document.querySelector('.background-green');
 
   button1.addEventListener('click', () => {
    const h1 = document.createElement('h1');
    h1.textContent = 'Hello World sdfsf!';
    document.body.appendChild(h1);
	
  });
</script>

					
				</div>
			</div>
		</div>
		<!--<div id="top-header" role="branding" class="top-header" >
			<div class="container">
				<div class="row">
					<div id="menu" role="navigation" class="col-6 contact-menu float">
						<div class="container">
							<div class="row">
								<div class="col-12">
								

									<?php wp_nav_menu( array(
										'theme_location'	=> 'contact-menu',
										'container'			=> false,
										'menu_class' 		=> 'contact-menu',
										'depth'  			=> 1,
										'fallback_cb'		=> false ) );
									?>
								</div>
							</div>
						</div>
					</div>
					<div id="menu" role="navigation" class="col-6 site-login desktop">
						<?php wp_nav_menu( array(
							'theme_location'	=> 'login-menu',
							'container'			=> false,
							'menu_class' 		=> 'login-menu',
							'depth'  			=> 1,
							'fallback_cb'		=> false ) );
						?>
					</div>
				</div>
			</div>
		
		
	</header>
	<div class="sticky"></div>